]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blob - rpp/lib/rpp/include/drv/sci.h
Yet another place to fix
[pes-rpp/rpp-test-sw.git] / rpp / lib / rpp / include / drv / sci.h
1 /**
2  * Drivers library interface file.
3  *
4  * @file drv.h
5  *
6  * @copyright Copyright (C) 2013 Czech Technical University in Prague
7  *
8  * @author Carlos Jenkins <carlos@jenkins.co.cr>
9  */
10
11 #ifndef __DRV_SCI_H
12 #define __DRV_SCI_H
13
14 #include "drv/drv.h"
15
16 void drv_sci_init();
17 void drv_sci_set_baudrate(uint32_t baud);
18 uint16_t drv_sci_available();
19 int8_t drv_sci_receive(uint32_t amount, uint8_t* buffer, portTickType wait);
20 int8_t drv_sci_send(uint32_t length, uint8_t* data, portTickType wait);
21 int8_t drv_sci_flush(boolean_t buf);
22
23 #endif /* __DRV_SCI_H */