Fix H573 example

This commit is contained in:
Sergey Lyubka 2024-01-10 14:25:38 +00:00
parent 727b3d4f19
commit 3e0d20a335
2 changed files with 5 additions and 5 deletions

View File

@ -27,6 +27,10 @@
#define LED LED2 // Use orange LED for blinking
#ifndef UART_DEBUG
#define UART_DEBUG USART1
#endif
// System clock (11.4, Figure 48; 11.4.5, Figure 51; 11.4.8
// CPU_FREQUENCY <= 250 MHz; (SYS_FREQUENCY / HPRE) ; hclk = CPU_FREQUENCY
// APB clocks <= 250 MHz. Configure flash latency (WS) in accordance to hclk
@ -92,10 +96,6 @@ static inline void gpio_output(uint16_t pin) {
GPIO_PULL_NONE, 0);
}
#ifndef UART_DEBUG
#define UART_DEBUG USART3
#endif
static inline bool uart_init(USART_TypeDef *uart, unsigned long baud) {
uint8_t af = 7; // Alternate function
uint16_t rx = 0, tx = 0; // pins

View File

@ -77,7 +77,7 @@ int main(void) {
}
MG_INFO(("Initialising application..."));
//web_init(&mgr);
web_init(&mgr);
MG_INFO(("Starting event loop"));
for (;;) {