git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12126 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-07-01 09:24:31 +00:00
parent 45871e99e9
commit ca1927e008
4 changed files with 60 additions and 2 deletions

View File

@ -685,8 +685,8 @@ void uart_lld_init(void) {
#endif
#endif
#if STM32_UART_USE_USART3 || STM32_UART_USE_UART4 || \
STM32_UART_USE_UART5 || STM32_UART_USE_USART6 || \
#if STM32_UART_USE_USART3 || STM32_UART_USE_UART4 || \
STM32_UART_USE_UART5 || STM32_UART_USE_USART6 || \
STM32_UART_USE_UART7 || STM32_UART_USE_UART8
#if defined(STM32_USART3_8_HANDLER)
nvicEnableVector(STM32_USART3_8_NUMBER, STM32_UART_USART3_8_IRQ_PRIORITY);

View File

@ -935,6 +935,16 @@
*/
#define STM32_USART6CLK STM32_PCLK
/**
* @brief USART7 frequency.
*/
#define STM32_UART7CLK STM32_PCLK
/**
* @brief USART8 frequency.
*/
#define STM32_UART8CLK STM32_PCLK
/**
* @brief Timers clock.
*/

View File

@ -805,6 +805,52 @@
* @api
*/
#define rccResetUSART6() rccResetAPB2(RCC_APB2RSTR_USART6RST)
/**
* @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)
/** @} */
/**

View File

@ -138,6 +138,8 @@
- EX: Updated LIS302DL to 1.1.0 (backported to 18.2.1).
- EX: Updated LPS25H to 1.1.0 (backported to 18.2.1).
- EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1).
- HAL: Fixed missing USART7/8 definitions in STM32F0 HAL (bug #956)(backported
to 18.2.2).
- LIB: Fixed heap allocation issue (bug #955)(backported to 18.2.2 and 17.6.5).
- HAL: Fixed win32 simulator HAL broken because a typo (bug #954)(backported
to 18.2.2).