Missing USART defines for STM32F0x1 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
josesimoes
Posts: 91
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 43 times
Been thanked: 23 times

Missing USART defines for STM32F0x1  Topic is solved

Postby josesimoes » Fri Jun 29, 2018 12:08 am

file os\hal\ports\STM32\STM32F0xx\stm32_rcc.h

@ line 809:

/**
* @brief Enables the UART7 peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccEnableUART7(lp) rccEnableAPB2(RCC_APB2ENR_USART7EN, lp)

/**
* @brief Disables the UART7 peripheral clock.
*
* @api
*/
#define rccDisableUART7() rccDisableAPB2(RCC_APB2ENR_USART7EN)

/**
* @brief Resets the UART7 peripheral.
*
* @api
*/
#define rccResetUART7() rccResetAPB2(RCC_APB2RSTR_USART7RST)
/** @} */

/**
* @brief Enables the UART8 peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccEnableUART8(lp) rccEnableAPB2(RCC_APB2ENR_USART8EN, lp)

/**
* @brief Disables the UART8 peripheral clock.
*
* @api
*/
#define rccDisableUART8() rccDisableAPB2(RCC_APB2ENR_USART8EN)

/**
* @brief Resets the UART8 peripheral.
*
* @api
*/
#define rccResetUART8() rccResetAPB2(RCC_APB2RSTR_USART8RST)
/** @} */



//////////////////////////////////////////////
file os\hal\ports\STM32\STM32F0xx\hal_lld.h:

@ line 937:


/**
* @brief USART7 frequency.
*/
#define STM32_USART7CLK STM32_PCLK

/**
* @brief USART8 frequency.
*/
#define STM32_USART8CLK STM32_PCLK


///////////////////////////////////////////////
file os\hal\ports\STM32\LLD\USARTv2\hal_uart_lld.c


@ line 667:
UARTD7.clock = STM32_USART7CLK;


@ line 679:
UARTD8.clock = STM32_USART8CLK;

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Missing USART defines for STM32F0x1

Postby Giovanni » Sun Jul 01, 2018 10:24 am

Hi,

Fixed bug as #956.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 15 guests