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

#ifndef API
Rahix's avatar
Rahix committed
6
#define API(id, def) def
Rahix's avatar
Rahix committed
7
8
9
#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

Rahix's avatar
Rahix committed
12
#define API_UART_READ 0x2
Rahix's avatar
Rahix committed
13
14
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 */