fixed all exercices

This commit is contained in:
Maix0 2026-04-24 18:28:21 +02:00
parent 5763bbb065
commit 2f91952d78
49 changed files with 3151 additions and 24 deletions

29
ex03/include/uart.h Normal file
View file

@ -0,0 +1,29 @@
#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_i16(int16_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 */