feat(ex01): done
This commit is contained in:
parent
dd41c1f072
commit
f49352a412
15 changed files with 921 additions and 0 deletions
19
ex01/include/uart.h
Normal file
19
ex01/include/uart.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef UART_H
|
||||
#define UART_H
|
||||
|
||||
#include "mystd.h"
|
||||
|
||||
void uart_init(void);
|
||||
|
||||
void uart_tx(char data);
|
||||
void uart_sendstring(const char* str);
|
||||
|
||||
void uart_send_u8(uint8_t val);
|
||||
void uart_send_u16(uint16_t val);
|
||||
|
||||
void uart_send_u8_hex(uint8_t val);
|
||||
void uart_send_u16_hex(uint16_t val);
|
||||
|
||||
char uart_rx(void);
|
||||
|
||||
#endif /* UART_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue