feat(ex00)

This commit is contained in:
Maix0 2026-04-21 16:40:57 +02:00
parent b6b8e3bceb
commit f021ef0fa6
19 changed files with 1404 additions and 0 deletions

26
ex00/include/uart.h Normal file
View file

@ -0,0 +1,26 @@
#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_u32(uint32_t val);
void uart_send_u8_hex(uint8_t val);
void uart_send_u16_hex(uint16_t val);
static inline void print_hex_value(char c)
{
uart_send_u8_hex(c);
}
char uart_rx(void);
#endif /* UART_H */