mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
add: FPC connector skeleton usart. Not working but if will be a starting point for those who might want to help out with it.
This commit is contained in:
parent
08d9d9daf9
commit
bacf8aff0f
8 changed files with 384 additions and 32 deletions
21
common/usart.h
Normal file
21
common/usart.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef __USART_H
|
||||
#define __USART_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include "proxmark3.h"
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||
extern void Dbprintf(const char *fmt, ...);
|
||||
|
||||
void usart_init(void);
|
||||
void usart_close(void);
|
||||
|
||||
uint32_t usart_rx_ready();
|
||||
uint32_t usart_tx_ready();
|
||||
|
||||
uint8_t usart_read(uint32_t timeout);
|
||||
uint8_t usart_readbuffer(uint8_t *data, size_t len);
|
||||
|
||||
void usart_write( uint8_t data, uint32_t timeout);
|
||||
uint8_t usart_writebuffer(uint8_t *data, size_t len, uint32_t timeout);
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue