added BLoD functionality to all Silicon Labs boards. Added #define to all device.h files and a disable_irq() exception in common/board.c because the wait function is implemented in a interrupt for both NRF and SiLabs boards

pull/1290/head
Austin Blackstone 2015-08-11 11:32:11 -05:00
parent 020975119c
commit 0278260cad
6 changed files with 11 additions and 1 deletions

View File

@ -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)

View File

@ -50,6 +50,8 @@
#define DEVICE_LOWPOWERTIMER 1
#define DEVICE_ERROR_PATTERN 1
#include "objects.h"
#include "device_peripherals.h"

View File

@ -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.

View File

@ -50,6 +50,8 @@
#define DEVICE_LOWPOWERTIMER 1
#define DEVICE_ERROR_PATTERN 1
#include "objects.h"
#include "Modules.h"
#include "device_peripherals.h"

View File

@ -50,6 +50,8 @@
#define DEVICE_LOWPOWERTIMER 1
#define DEVICE_ERROR_PATTERN 1
#include "objects.h"
#include "Modules.h"
#include "device_peripherals.h"

View File

@ -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.