proxmark3/armsrc/usart.h

18 lines
419 B
C
Raw Normal View History

#ifndef __USART_H
#define __USART_H
#include "common.h"
#include "usart_defs.h"
2019-06-13 05:59:00 +08:00
// Higher baudrates are pointless, only increasing overflow risk
extern uint32_t g_usart_baudrate;
extern uint8_t g_usart_parity;
2019-04-21 01:17:32 +08:00
2019-05-15 08:15:19 +08:00
void usart_init(uint32_t baudrate, uint8_t parity);
int usart_writebuffer_sync(uint8_t *data, size_t len);
uint32_t usart_read_ng(uint8_t *data, size_t len);
2019-04-21 01:17:32 +08:00
uint16_t usart_rxdata_available(void);
#endif