diff --git a/libraries/mbed/common/board.c b/libraries/mbed/common/board.c index 9103236456..695b2f4305 100644 --- a/libraries/mbed/common/board.c +++ b/libraries/mbed/common/board.c @@ -19,7 +19,7 @@ #include "mbed_interface.h" WEAK void mbed_die(void) { -#ifndef NRF51_H +#if !defined (NRF51_H) && !defined(TARGET_EFM32) __disable_irq(); // dont allow interrupts to disturb the flash pattern #endif #if (DEVICE_ERROR_RED == 1) diff --git a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h index c3fd48cbdf..a57a2c070a 100644 --- a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h +++ b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h @@ -50,6 +50,8 @@ #define DEVICE_LOWPOWERTIMER 1 +#define DEVICE_ERROR_PATTERN 1 + #include "objects.h" #include "device_peripherals.h" diff --git a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h index 683ea026f2..f43dbfb52a 100644 --- a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h +++ b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h @@ -50,6 +50,8 @@ #define DEVICE_LOWPOWERTIMER 1 +#define DEVICE_ERROR_PATTERN 1 + // Redefine OPEN_MAX from sys_limits.h to save on RAM. // Effect: maximum amount of file handlers = OPEN_MAX // This is not going to have an impact, since this is a RAM-limited part anyway. diff --git a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h index f93fb1c6dd..25ba028d47 100644 --- a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h +++ b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h @@ -50,6 +50,8 @@ #define DEVICE_LOWPOWERTIMER 1 +#define DEVICE_ERROR_PATTERN 1 + #include "objects.h" #include "Modules.h" #include "device_peripherals.h" diff --git a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h index f93fb1c6dd..25ba028d47 100644 --- a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h +++ b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h @@ -50,6 +50,8 @@ #define DEVICE_LOWPOWERTIMER 1 +#define DEVICE_ERROR_PATTERN 1 + #include "objects.h" #include "Modules.h" #include "device_peripherals.h" diff --git a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h index 33d911f9a6..657bf62e39 100644 --- a/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h +++ b/libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h @@ -50,6 +50,8 @@ #define DEVICE_LOWPOWERTIMER 1 +#define DEVICE_ERROR_PATTERN 1 + // Redefine OPEN_MAX from sys_limits.h to save on RAM. // Effect: maximum amount of file handlers = OPEN_MAX // This is not going to have an impact, since this is a RAM-limited part anyway.