0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 22:31:25 +03:00

fix no uart compile bug

This commit is contained in:
OneOfEleven 2023-10-27 14:50:49 +01:00
parent 2a7dbc1e73
commit a2b78a7b99
3 changed files with 4 additions and 5 deletions

Binary file not shown.

Binary file not shown.

9
main.c
View File

@ -48,11 +48,6 @@
#include "ui/menu.h" #include "ui/menu.h"
#include "version.h" #include "version.h"
void _putchar(char c)
{
UART_Send((uint8_t *)&c, 1);
}
void Main(void) void Main(void)
{ {
unsigned int i; unsigned int i;
@ -95,6 +90,10 @@ void Main(void)
BK4819_Init(); BK4819_Init();
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
UART_printf("bk4819 id %04X rev %04X\r\n", BK4819_ReadRegister(0x00), BK4819_ReadRegister(0x01));
#endif
#ifdef ENABLE_MDC1200 #ifdef ENABLE_MDC1200
mdc1200_init(); mdc1200_init();
#endif #endif