| #ifndef JACANA_SERIALPORT_H |
| #define JACANA_SERIALPORT_H |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| #include <stdint.h> |
| #include <stdlib.h> |
| #include "aboot-tiny.h" |
| |
| extern aboot_tiny_uart_rx_callback_t rx_callback; |
| |
| /*---------------------------------------------------------------------------*/ |
| int jacana_serialport_init(const char *dev, int baud, |
| aboot_tiny_uart_rx_callback_t cb); |
| void jacana_serialport_exit(void); |
| int jacana_serialport_write(const uint8_t *buf, size_t len); |
| /*---------------------------------------------------------------------------*/ |
| |
| #ifdef __cplusplus |
| } /* extern "C" */ |
| #endif |
| |
| #endif /* JACANA_SERIALPORT_H */ |