drivers: hwinfo: gecko: Fix build
Fix how HAS_BROWNOUT so things build correct and without warnings. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
67295be71e
commit
f1affb5e67
|
@ -11,12 +11,13 @@
|
|||
#include <string.h>
|
||||
#include <sys/byteorder.h>
|
||||
|
||||
#define HAS_BROWNOUT (defined(RMU_RSTCAUSE_BODUNREGRST)
|
||||
|| defined(RMU_RSTCAUSE_BODREGRST)
|
||||
|| defined(RMU_RSTCAUSE_AVDDBOD) || defined(RMU_RSTCAUSE_DVDDBOD)
|
||||
|| defined(RMU_RSTCAUSE_DECBOD) || defined(RMU_RSTCAUSE_BODAVDD0)
|
||||
|| defined(RMU_RSTCAUSE_BODAVDD1)
|
||||
|| (defined(BU_PRESENT) && defined(_SILICON_LABS_32B_SERIES_0)))
|
||||
#if defined(RMU_RSTCAUSE_BODUNREGRST) || defined(RMU_RSTCAUSE_BODREGRST) || \
|
||||
defined(RMU_RSTCAUSE_AVDDBOD) || defined(RMU_RSTCAUSE_DVDDBOD) || \
|
||||
defined(RMU_RSTCAUSE_DECBOD) || defined(RMU_RSTCAUSE_BODAVDD0) || \
|
||||
defined(RMU_RSTCAUSE_BODAVDD1) || \
|
||||
(defined(BU_PRESENT) && defined(_SILICON_LABS_32B_SERIES_0))
|
||||
#define HAS_BROWNOUT 1
|
||||
#endif
|
||||
|
||||
ssize_t z_impl_hwinfo_get_device_id(uint8_t *buffer, size_t length)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue