proxmark3/common/usart.h
iceman1001 d28fac3ef0 style
2019-04-14 11:43:05 +02:00

19 lines
421 B
C

#ifndef __USART_H
#define __USART_H
#include <stddef.h>
#include "proxmark3.h"
#define AT91_BAUD_RATE 115200
void usart_init(void);
void usart_close(void);
int16_t usart_readbuffer(uint8_t *data);
int16_t usart_writebuffer(uint8_t *data, size_t len);
bool usart_dataavailable(void);
int16_t usart_readcommand(uint8_t *data);
void usart_readcheck(uint8_t *data, size_t len);
bool usart_commandavailable(void);
#endif