mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/msb-430(h): style fixed in board.h
fixed indention and parens for LED defines
This commit is contained in:
parent
6dc4f0d007
commit
08d1e8de91
@ -59,18 +59,18 @@ extern "C" {
|
||||
* @brief LED definitions
|
||||
* @{
|
||||
*/
|
||||
#define LEDS_PxDIR P5DIR
|
||||
#define LEDS_PxOUT P5OUT
|
||||
#define LEDS_CONF_RED 0x80
|
||||
#define LEDS_CONF_GREEN 0x00
|
||||
#define LEDS_CONF_YELLOW 0x00
|
||||
#define LEDS_PxDIR (P5DIR)
|
||||
#define LEDS_PxOUT (P5OUT)
|
||||
#define LEDS_CONF_RED (0x80)
|
||||
#define LEDS_CONF_GREEN (0x00)
|
||||
#define LEDS_CONF_YELLOW (0x00)
|
||||
|
||||
#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 */
|
||||
#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
|
||||
|
@ -53,18 +53,18 @@ extern "C" {
|
||||
* @brief LED definitions
|
||||
* @{
|
||||
*/
|
||||
#define LEDS_PxDIR P5DIR
|
||||
#define LEDS_PxOUT P5OUT
|
||||
#define LEDS_CONF_RED 0x80
|
||||
#define LEDS_CONF_GREEN 0x00
|
||||
#define LEDS_CONF_YELLOW 0x00
|
||||
#define LEDS_PxDIR (P5DIR)
|
||||
#define LEDS_PxOUT (P5OUT)
|
||||
#define LEDS_CONF_RED (0x80)
|
||||
#define LEDS_CONF_GREEN (0x00)
|
||||
#define LEDS_CONF_YELLOW (0x00)
|
||||
|
||||
#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 */
|
||||
#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