blob: 63393cd9af770a022f663830c5461ac321845565 [file] [log] [blame]
#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 */