epicardium.h 435 Bytes
Newer Older
Rahix's avatar
Rahix committed
1
2
3
4
5
6
7
8
9
#ifndef _EPICARDIUM_H
#define _EPICARDIUM_H
#include <stdint.h>

#ifndef API
#  define API(id, def) def
#endif

#define API_UART_WRITE 0x1
Rahix's avatar
Rahix committed
10
API(API_UART_WRITE, void epic_uart_write_str(const char*str, intptr_t length));
Rahix's avatar
Rahix committed
11
12
13
14

#define API_UART_READ  0x2
API(API_UART_READ, char epic_uart_read_chr(void));

Rahix's avatar
Rahix committed
15
#define API_LEDS_SET   0x3
16
17
API(API_LEDS_SET, void epic_leds_set(int led, uint8_t r, uint8_t g, uint8_t b));

Rahix's avatar
Rahix committed
18
#endif /* _EPICARDIUM_H */