hekate/nyx: adhere to uart driver changes

This commit is contained in:
CTCaer 2022-05-08 05:46:23 +03:00
parent f7bf4af3ec
commit 334d89973f
2 changed files with 3 additions and 3 deletions

View file

@ -1479,7 +1479,7 @@ void ipl_main()
#ifdef DEBUG_UART_PORT #ifdef DEBUG_UART_PORT
uart_send(DEBUG_UART_PORT, (u8 *)"hekate: Hello!\r\n", 16); uart_send(DEBUG_UART_PORT, (u8 *)"hekate: Hello!\r\n", 16);
uart_wait_idle(DEBUG_UART_PORT, UART_TX_IDLE); uart_wait_xfer(DEBUG_UART_PORT, UART_TX_IDLE);
#endif #endif
// Check if battery is enough. // Check if battery is enough.

View file

@ -437,11 +437,11 @@ void ipl_main()
#endif #endif
pinmux_config_uart(DEBUG_UART_PORT); pinmux_config_uart(DEBUG_UART_PORT);
clock_enable_uart(DEBUG_UART_PORT); clock_enable_uart(DEBUG_UART_PORT);
uart_init(DEBUG_UART_PORT, DEBUG_UART_BAUDRATE); uart_init(DEBUG_UART_PORT, DEBUG_UART_BAUDRATE, UART_AO_TX_AO_RX);
uart_invert(DEBUG_UART_PORT, DEBUG_UART_INVERT, UART_INVERT_TXD); uart_invert(DEBUG_UART_PORT, DEBUG_UART_INVERT, UART_INVERT_TXD);
uart_send(DEBUG_UART_PORT, (u8 *)"hekate-NYX: Hello!\r\n", 20); uart_send(DEBUG_UART_PORT, (u8 *)"hekate-NYX: Hello!\r\n", 20);
uart_wait_idle(DEBUG_UART_PORT, UART_TX_IDLE); uart_wait_xfer(DEBUG_UART_PORT, UART_TX_IDLE);
#endif #endif
// Initialize the rest of hw and load nyx's resources. // Initialize the rest of hw and load nyx's resources.