BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros
standard.inc File Reference

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)
 

Detailed Description

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.

Homepage
http://github.com/pabigot/bsp430

Macro Definition Documentation

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

Defaulted:
The value here is superseded by previously encountered definitions.
Platform-Specific Value:
The value here is an example, and may differ from the actual value used depending on platform information.
#define BSP430_PLATFORM_STANDARD_INITIALIZE_EPILOGUE   do { } while (0)

Define to a C statement to do platform-specific operations before leaving vBSP430platformInitialize_ni().

Defaulted:
The value here is superseded by previously encountered definitions.
#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.

Defaulted:
The value here is superseded by previously encountered definitions.
#define BSP430_PLATFORM_STANDARD_USE_INITIALIZE   1

Define to true value to include default vBSP430platformInitialize_ni() implementation

Defaulted:
The value here is superseded by previously encountered definitions.