1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
20 #include "usart_defs.h"
22 // Higher baudrates are pointless, only increasing overflow risk
24 extern uint32_t g_usart_baudrate
;
25 extern uint8_t g_usart_parity
;
27 void usart_init(uint32_t baudrate
, uint8_t parity
);
28 int usart_writebuffer_sync(uint8_t *data
, size_t len
);
29 uint32_t usart_read_ng(uint8_t *data
, size_t len
);
30 uint16_t usart_rxdata_available(void);