1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

harmonize LED implementation

fix https://github.com/RIOT-OS/RIOT/issues/145
This commit is contained in:
Ludwig Ortmann 2013-08-15 23:51:49 +02:00
parent 92c5ca8d81
commit ac222754ce
3 changed files with 20 additions and 14 deletions

View File

@ -26,7 +26,7 @@ void board_init()
#ifdef MODULE_UART0
_native_init_uart0();
#endif
LED_GREEN_OFF();
LED_RED_ON();
LED_GREEN_OFF;
LED_RED_ON;
puts("RIOT native board initialized.");
}

View File

@ -19,32 +19,32 @@
#include "board.h"
void LED_GREEN_OFF(void)
void _native_LED_GREEN_OFF(void)
{
printf("LED_GREEN_OFF\n");
}
void LED_GREEN_ON(void)
void _native_LED_GREEN_ON(void)
{
printf("LED_GREEN_ON\n");
}
void LED_GREEN_TOGGLE(void)
void _native_LED_GREEN_TOGGLE(void)
{
printf("LED_GREEN_TOGGLE\n");
}
void LED_RED_OFF(void)
void _native_LED_RED_OFF(void)
{
printf("LED_RED_OFF\n");
}
void LED_RED_ON(void)
void _native_LED_RED_ON(void)
{
printf("LED_RED_ON\n");
}
void LED_RED_TOGGLE(void)
void _native_LED_RED_TOGGLE(void)
{
printf("LED_RED_TOGGLE\n");
}

View File

@ -15,9 +15,15 @@
* @}
*/
void LED_GREEN_OFF(void);
void LED_GREEN_ON(void);
void LED_GREEN_TOGGLE(void);
void LED_RED_OFF(void);
void LED_RED_ON(void);
void LED_RED_TOGGLE(void);
void _native_LED_GREEN_OFF(void);
#define LED_GREEN_OFF (_native_LED_GREEN_OFF())
void _native_LED_GREEN_ON(void);
#define LED_GREEN_ON (_native_LED_GREEN_ON())
void _native_LED_GREEN_TOGGLE(void);
#define LED_GREEN_TOGGLE (_native_LED_GREEN_TOGGLE())
void _native_LED_RED_OFF(void);
#define LED_RED_OFF (_native_LED_RED_OFF())
void _native_LED_RED_ON(void);
#define LED_RED_ON (_native_LED_RED_ON())
void _native_LED_RED_TOGGLE(void);
#define LED_RED_TOGGLE (_native_LED_RED_TOGGLE())