src/main.c
static void plain_log_uart_init(void)
{
    hal_uart_config_t uart_config;
    /* Set Pinmux to UART */
    hal_pinmux_set_function(HAL_GPIO_0, HAL_GPIO_0_UART1_RTS_CM4);
    hal_pinmux_set_function(HAL_GPIO_1, HAL_GPIO_1_UART1_CTS_CM4);
    hal_pinmux_set_function(HAL_GPIO_2, HAL_GPIO_2_UART1_RX_CM4);
    hal_pinmux_set_function(HAL_GPIO_3, HAL_GPIO_3_UART1_TX_CM4);

    /* COM port settings */
    uart_config.baudrate = HAL_UART_BAUDRATE_115200;
    uart_config.word_length = HAL_UART_WORD_LENGTH_8;
    uart_config.stop_bit = HAL_UART_STOP_BIT_1;
    uart_config.parity = HAL_UART_PARITY_NONE;
    hal_uart_init(HAL_UART_0, &uart_config);
}
/* UART hardware initialization for log output */
UART hardware initialization for log output
UART hardware initialization for log output
static void plain_log_uart_init(void)
{
    hal_uart_config_t uart_config;
    hal_pinmux_set_function(HAL_GPIO_0, HAL_GPIO_0_UART1_RTS_CM4);
    hal_pinmux_set_function(HAL_GPIO_1, HAL_GPIO_1_UART1_CTS_CM4);
    hal_pinmux_set_function(HAL_GPIO_2, HAL_GPIO_2_UART1_RX_CM4);
    hal_pinmux_set_function(HAL_GPIO_3, HAL_GPIO_3_UART1_TX_CM4);
    uart_config.baudrate = HAL_UART_BAUDRATE_115200;
    uart_config.word_length = HAL_UART_WORD_LENGTH_8;
    uart_config.stop_bit = HAL_UART_STOP_BIT_1;
    uart_config.parity = HAL_UART_PARITY_NONE;
    hal_uart_init(HAL_UART_0, &uart_config);
}
static void plain_log_uart_init ( void ) { hal_uart_config_t uart_config ; hal_pinmux_set_function ( HAL_GPIO_0 , HAL_GPIO_0_UART1_RTS_CM4 ) ; hal_pinmux_set_function ( HAL_GPIO_1 , HAL_GPIO_1_UART1_CTS_CM4 ) ; hal_pinmux_set_function ( HAL_GPIO_2 , HAL_GPIO_2_UART1_RX_CM4 ) ; hal_pinmux_set_function ( HAL_GPIO_3 , HAL_GPIO_3_UART1_TX_CM4 ) ; uart_config . baudrate = HAL_UART_BAUDRATE_115200 ; uart_config . word_length = HAL_UART_WORD_LENGTH_8 ; uart_config . stop_bit = HAL_UART_STOP_BIT_1 ; uart_config . parity = HAL_UART_PARITY_NONE ; hal_uart_init ( HAL_UART_0 , & uart_config ) ; }
UART hardware initialization for log output
UART hardware initialization for log output
/* Set Pinmux to UART */ /* COM port settings */