mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 17:56:53 +08:00
19 lines
421 B
C
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
|