The friendly Operating System for the Internet of Things
native/include/board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
24 #ifndef BOARD_H
25 #define BOARD_H
26 
27 #include <stdint.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #ifdef MODULE_MTD
34 #include "mtd_native.h"
35 #endif
36 
41 void _native_LED_GREEN_OFF(void);
42 void _native_LED_GREEN_ON(void);
43 void _native_LED_GREEN_TOGGLE(void);
44 void _native_LED_RED_OFF(void);
45 void _native_LED_RED_ON(void);
46 void _native_LED_RED_TOGGLE(void);
47 
48 #define LED0_ON (_native_LED_RED_ON())
49 #define LED0_OFF (_native_LED_RED_OFF())
50 #define LED0_TOGGLE (_native_LED_RED_TOGGLE())
51 #define LED1_ON (_native_LED_GREEN_ON())
52 #define LED1_OFF (_native_LED_GREEN_OFF())
53 #define LED1_TOGGLE (_native_LED_GREEN_TOGGLE())
54 
56 #ifdef MODULE_MTD
57 #define MTD_0 mtd0
58 
60 extern mtd_native_dev_t mtd0;
61 #endif
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
68 #endif /* BOARD_H */
mtd native descriptor
Definition: mtd_native.h:30
void _native_LED_GREEN_OFF(void)
LED handlers.