From 24f5bc8cef985f01e238d552698095bf5a197873 Mon Sep 17 00:00:00 2001 From: Aaron Sowry Date: Tue, 8 Dec 2015 14:14:43 +1300 Subject: [PATCH] Update OpenMote board header file to define UPDATE_CCA. As per the cc2538dk and ReMote boards. This enables the cc2538's bootloader backdoor, to allow flashing via the serial interface even when a valid image is already present. Backdoor enable is set to LOW, PORT A, PIN 6 (ON/SLEEP on the OpenBase), for consistency with the default OpenMote firmware. --- boards/openmote-cc2538/include/board.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boards/openmote-cc2538/include/board.h b/boards/openmote-cc2538/include/board.h index d3363f26fa..266e61c6d9 100644 --- a/boards/openmote-cc2538/include/board.h +++ b/boards/openmote-cc2538/include/board.h @@ -71,6 +71,19 @@ #define XTIMER_ISR_BACKOFF (40) /** @} */ +/** + * @name Flash Customer Configuration Area (CCA) parameters + * @{ + */ +#ifndef UPDATE_CCA +#define UPDATE_CCA (1) +#endif + +#define CCA_BACKDOOR_ENABLE (1) +#define CCA_BACKDOOR_PORT_A_PIN (6) /**< ON/SLEEP Pin */ +#define CCA_BACKDOOR_ACTIVE_LEVEL (0) /**< Active low */ +/** @} */ + /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO */