Add baud rate setting and some minor changes

This commit is contained in:
Steffen Lange 2019-04-19 14:39:18 +02:00
parent 7e8ba61b04
commit 13ffe0c2c7
10 changed files with 52 additions and 18 deletions

View file

@ -12,7 +12,7 @@
Specification of GC10 Data I/O Interface: http://netiodev.com/GC10/GC10_UART_SPEC.pdf
*/
int diy_open(const char *device);
int diy_open(const char *device, speed_t baud);
void diy_close(int device);
int diy_get_cpm(int device);
int diy_read(int device, char *buf, unsigned int len);