1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

native board interface and dummy LED implementation

This commit is contained in:
Ludwig Ortmann 2013-03-06 12:19:15 +01:00
parent fbb33c3b8d
commit 81f2a5bc12
2 changed files with 71 additions and 0 deletions

22
native/board.h Normal file
View File

@ -0,0 +1,22 @@
/**
* Native Board interface
*
* Copyright (C) 2013 Ludwig Ortmann
*
* This file subject to the terms and conditions of the GNU General Public
* License. See the file LICENSE in the top level directory for more details.
*
* @ingroup native
* @{
* @file
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
* @}
*/
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);

49
native/native-led.c Normal file
View File

@ -0,0 +1,49 @@
/**
* Native Board LED implementation
*
* Copyright (C) 2013 Ludwig Ortmann
*
* This file subject to the terms and conditions of the GNU General Public
* License. See the file LICENSE in the top level directory for more details.
*
* @ingroup native
* @{
* @file
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
* @}
*/
#include <stdio.h>
#include "board.h"
void LED_GREEN_OFF(void)
{
printf("LED_GREEN_OFF\n");
}
void LED_GREEN_ON(void)
{
printf("LED_GREEN_ON\n");
}
void LED_GREEN_TOGGLE(void)
{
printf("LED_GREEN_TOGGLE\n");
}
void LED_RED_OFF(void)
{
printf("LED_RED_OFF\n");
}
void LED_RED_ON(void)
{
printf("LED_RED_ON\n");
}
void LED_RED_TOGGLE(void)
{
printf("LED_RED_TOGGLE\n");
}