src/arch/socs/stm32f429/C/soc-usart.c
uint32_t soc_usart_get_bus_clock(usart_config_t * config)
{
    switch (config->usart) {
    case 1:
    case 6:
        return PROD_CLOCK_APB2;
        break;
    case 2:
    case 3:
    case 4:
    case 5:
        return PROD_CLOCK_APB1;
        break;
    default:
        panic("Wrong usart %d. You should use USART1 to USART6", config->usart);
    }

    return 0;
}
/* Get the current clock value of the USART bus */
Get the current clock value of the USART bus
Get the current clock value of the USART bus
uint32_t soc_usart_get_bus_clock(usart_config_t * config)
{
    switch (config->usart) {
    case 1:
    case 6:
        return PROD_CLOCK_APB2;
        break;
    case 2:
    case 3:
    case 4:
    case 5:
        return PROD_CLOCK_APB1;
        break;
    default:
        panic("Wrong usart %d. You should use USART1 to USART6", config->usart);
    }
    return 0;
}
uint32_t soc_usart_get_bus_clock ( usart_config_t * config ) { switch ( config -> usart ) { case 1 : case 6 : return PROD_CLOCK_APB2 ; break ; case 2 : case 3 : case 4 : case 5 : return PROD_CLOCK_APB1 ; break ; default : panic ( " " , config -> usart ) ; } return 0 ; }
Get the current clock value of the USART bus
Get the current clock value of the USART bus