TLSR Improvements

This commit is contained in:
atc1441
2024-04-25 09:30:10 +02:00
parent c1171b2e99
commit 8bdf24f2c2
4 changed files with 19 additions and 3 deletions

View File

@@ -3,9 +3,9 @@
#include "uart.h"
#include "main.h"
#define RXD GPIO_PA0
#define TXD GPIO_PB1
#define UART_DEBUG
#ifdef UART_DEBUG
void init_uart(void)
{
gpio_set_func(TXD, AS_GPIO);
@@ -42,4 +42,20 @@ int putchar_custom(int c)
sleep_us(10);
};
return 0;
}
}
#else
void init_uart(void)
{
}
_attribute_ram_code_ void puts(const char *str)
{
}
int putchar_custom(int c)
{
return 0;
}
#endif

Binary file not shown.