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:
parent
2a7dbc1e73
commit
a2b78a7b99
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
9
main.c
9
main.c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user