mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
boards/msb-430(h): added LED_GREEN_x macros
This commit is contained in:
parent
95893a5653
commit
6dc4f0d007
@ -55,7 +55,10 @@ extern "C" {
|
||||
#define MSP430_HAS_DCOR 1
|
||||
#define MSP430_HAS_EXTERNAL_CRYSTAL 0
|
||||
|
||||
/* LEDs ports MSB430 */
|
||||
/**
|
||||
* @brief LED definitions
|
||||
* @{
|
||||
*/
|
||||
#define LEDS_PxDIR P5DIR
|
||||
#define LEDS_PxOUT P5OUT
|
||||
#define LEDS_CONF_RED 0x80
|
||||
@ -65,6 +68,10 @@ extern "C" {
|
||||
#define LED_RED_ON LEDS_PxOUT &=~LEDS_CONF_RED
|
||||
#define LED_RED_OFF LEDS_PxOUT |= LEDS_CONF_RED
|
||||
#define LED_RED_TOGGLE LEDS_PxOUT ^= LEDS_CONF_RED
|
||||
#define LED_GREEN_ON /* not present */
|
||||
#define LED_GREEN_OFF /* not present */
|
||||
#define LED_GREEN_TOGGLE /* not present */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -49,7 +49,10 @@ extern "C" {
|
||||
#define MSP430_HAS_DCOR 1
|
||||
#define MSP430_HAS_EXTERNAL_CRYSTAL 1
|
||||
|
||||
/* LEDs ports MSB430 */
|
||||
/**
|
||||
* @brief LED definitions
|
||||
* @{
|
||||
*/
|
||||
#define LEDS_PxDIR P5DIR
|
||||
#define LEDS_PxOUT P5OUT
|
||||
#define LEDS_CONF_RED 0x80
|
||||
@ -59,6 +62,10 @@ extern "C" {
|
||||
#define LED_RED_ON LEDS_PxOUT &=~LEDS_CONF_RED
|
||||
#define LED_RED_OFF LEDS_PxOUT |= LEDS_CONF_RED
|
||||
#define LED_RED_TOGGLE LEDS_PxOUT ^= LEDS_CONF_RED
|
||||
#define LED_GREEN_ON /* not present */
|
||||
#define LED_GREEN_OFF /* not present */
|
||||
#define LED_GREEN_TOGGLE /* not present */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user