BSP430
20141115
Board Support Package for MSP430 microcontrollers
|
Common implementation of platform functions. More...
#include <bsp430/platform.h>
#include <bsp430/clock.h>
#include <bsp430/utility/uptime.h>
#include <bsp430/utility/led.h>
#include <bsp430/periph/pmm.h>
Macros | |
#define | BSP430_PLATFORM_STANDARD_USE_INITIALIZE 1 |
#define | BSP430_PLATFORM_STANDARD_INITIALIZE_PROLOGUE do { } while (0) |
#define | BSP430_PLATFORM_STANDARD_INITIALIZE_CLEAR_LOCKLPM5 do { } while (0) |
#define | BSP430_PLATFORM_STANDARD_INITIALIZE_EPILOGUE do { } while (0) |
Common implementation of platform functions.
This file provides a customizable implementations of functions like vBSP430platformInitialize_ni(). It is intended to be included into platform-specific implementation files.
#define BSP430_PLATFORM_STANDARD_INITIALIZE_CLEAR_LOCKLPM5 do { } while (0) |
Define to a C statement to do clear the LOCKLPM5 bit prior to configuring GPIOs in vBSP430platformInitialize_ni ().
This has effect only on platforms that support the Power Management Module.
In the current FR58xx family this bit is set on power-up, even if not waking from LPM3.5 or LPM4.5. Since vBSP430platformInitialize_ni() is supposed to configure things like LEDs, this bit needs to be cleared for normal startup.
Applications that make use of LPM5 should either provide their own platform initialization, or inspect and record the port state and configuration prior to invoking the default vBSP430platformInitialize_ni() provided by <bsp430/platform/standard.inc> when BSP430_PLATFORM_STANDARD_USE_INITIALIZE is enabled.
#define BSP430_PLATFORM_STANDARD_INITIALIZE_EPILOGUE do { } while (0) |
Define to a C statement to do platform-specific operations before leaving vBSP430platformInitialize_ni().
#define BSP430_PLATFORM_STANDARD_INITIALIZE_PROLOGUE do { } while (0) |
Define to a C statement to do platform-specific operations in vBSP430platformInitialize_ni() after initializing watchdog but before anything else.
#define BSP430_PLATFORM_STANDARD_USE_INITIALIZE 1 |
Define to true value to include default vBSP430platformInitialize_ni() implementation