Skip to content

Commit

Permalink
Fix H573 example
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Jan 10, 2024
1 parent 727b3d4 commit 3e0d20a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/stm32/stm32h573i-dk-make-baremetal-builtin/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/stm32/stm32h573i-dk-make-baremetal-builtin/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main(void) {
}

MG_INFO(("Initialising application..."));
//web_init(&mgr);
web_init(&mgr);

MG_INFO(("Starting event loop"));
for (;;) {
Expand Down

0 comments on commit 3e0d20a

Please sign in to comment.