BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430halLED Struct Reference

#include <bsp430/utility/led.h>

Data Fields

volatile unsigned char *const outp
unsigned char const bit
unsigned char const flags

Detailed Description

Structure used to define the LED interface.

The assumption is that all MSP430 board LEDs are controlled through GPIO pins. The address of the PxOUT register is provided explicitly; the PxSEL and PxDIR registers are inferred by comparing that address with the known addresses of the PxOUT registers in the initialization loop.

Field Documentation

unsigned char const sBSP430halLED::bit

The bit mask for the LED (not the bit position)

unsigned char const sBSP430halLED::flags

Unused at the moment but makes alignment requirements explicit. If we need to support a platform that wires its LEDs to be on when low, this is where that would be communicated to the infrastructure.

volatile unsigned char* const sBSP430halLED::outp

Address of the PxOUT register used to control the LED

The documentation for this struct was generated from the following file: