git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11917 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-04-13 08:52:44 +00:00
parent aa3c1d12b3
commit 23740a1139
2 changed files with 25 additions and 0 deletions

View File

@ -446,6 +446,29 @@
* @api * @api
*/ */
#define rccResetCAN1() rccResetAPB1R1(RCC_APB1RSTR1_CAN1RST) #define rccResetCAN1() rccResetAPB1R1(RCC_APB1RSTR1_CAN1RST)
/**
* @brief Enables the CAN2 peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccEnableCAN2(lp) rccEnableAPB1R1(RCC_APB1ENR1_CAN2EN, lp)
/**
* @brief Disables the CAN2 peripheral clock.
*
* @api
*/
#define rccDisableCAN2() rccDisableAPB1R1(RCC_APB1ENR1_CAN2EN)
/**
* @brief Resets the CAN2 peripheral.
*
* @api
*/
#define rccResetCAN2() rccResetAPB1R1(RCC_APB1RSTR1_CAN2RST)
/** @} */ /** @} */
/** /**

View File

@ -111,6 +111,8 @@
- EX: Updated LIS302DL to 1.1.0 (backported to 18.2.1). - 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 LPS25H to 1.1.0 (backported to 18.2.1).
- EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1). - EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1).
- HAL: Fixed missing CAN2 macros from STM32L4xx stm32_rcc.h file (bug #936)
(backported to 18.2.1).
- OTH: Fixed inclusion order problem in STM32L4 cmparams.h file (bug #935) - OTH: Fixed inclusion order problem in STM32L4 cmparams.h file (bug #935)
(backported to 18.2.1 and 17.6.5). (backported to 18.2.1 and 17.6.5).
- HAL: Fixed problem clearing UIF timer flag in STM32 PWM driver (bug #934) - HAL: Fixed problem clearing UIF timer flag in STM32 PWM driver (bug #934)