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:
parent
92c5ca8d81
commit
ac222754ce
@ -26,7 +26,7 @@ void board_init()
|
|||||||
#ifdef MODULE_UART0
|
#ifdef MODULE_UART0
|
||||||
_native_init_uart0();
|
_native_init_uart0();
|
||||||
#endif
|
#endif
|
||||||
LED_GREEN_OFF();
|
LED_GREEN_OFF;
|
||||||
LED_RED_ON();
|
LED_RED_ON;
|
||||||
puts("RIOT native board initialized.");
|
puts("RIOT native board initialized.");
|
||||||
}
|
}
|
||||||
|
@ -19,32 +19,32 @@
|
|||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
|
|
||||||
void LED_GREEN_OFF(void)
|
void _native_LED_GREEN_OFF(void)
|
||||||
{
|
{
|
||||||
printf("LED_GREEN_OFF\n");
|
printf("LED_GREEN_OFF\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LED_GREEN_ON(void)
|
void _native_LED_GREEN_ON(void)
|
||||||
{
|
{
|
||||||
printf("LED_GREEN_ON\n");
|
printf("LED_GREEN_ON\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LED_GREEN_TOGGLE(void)
|
void _native_LED_GREEN_TOGGLE(void)
|
||||||
{
|
{
|
||||||
printf("LED_GREEN_TOGGLE\n");
|
printf("LED_GREEN_TOGGLE\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LED_RED_OFF(void)
|
void _native_LED_RED_OFF(void)
|
||||||
{
|
{
|
||||||
printf("LED_RED_OFF\n");
|
printf("LED_RED_OFF\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LED_RED_ON(void)
|
void _native_LED_RED_ON(void)
|
||||||
{
|
{
|
||||||
printf("LED_RED_ON\n");
|
printf("LED_RED_ON\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void LED_RED_TOGGLE(void)
|
void _native_LED_RED_TOGGLE(void)
|
||||||
{
|
{
|
||||||
printf("LED_RED_TOGGLE\n");
|
printf("LED_RED_TOGGLE\n");
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,15 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void LED_GREEN_OFF(void);
|
void _native_LED_GREEN_OFF(void);
|
||||||
void LED_GREEN_ON(void);
|
#define LED_GREEN_OFF (_native_LED_GREEN_OFF())
|
||||||
void LED_GREEN_TOGGLE(void);
|
void _native_LED_GREEN_ON(void);
|
||||||
void LED_RED_OFF(void);
|
#define LED_GREEN_ON (_native_LED_GREEN_ON())
|
||||||
void LED_RED_ON(void);
|
void _native_LED_GREEN_TOGGLE(void);
|
||||||
void LED_RED_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())
|
||||||
|
Loading…
Reference in New Issue
Block a user