Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CANnucleo by
Revision 18:cdab1fd4ff26, committed 2016-01-07
- Comitter:
- ptpaterson
- Date:
- Thu Jan 07 04:23:51 2016 +0000
- Parent:
- 17:1fd35431ee8e
- Commit message:
- Corrected interrupts for F0 chip
Changed in this revision
stm32f0xx_hal_msp.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/stm32f0xx_hal_msp.c Wed Dec 30 08:39:54 2015 +0000 +++ b/stm32f0xx_hal_msp.c Thu Jan 07 04:23:51 2016 +0000 @@ -145,8 +145,8 @@ else return; /* NVIC configuration for CAN1 Reception complete interrupt */ - HAL_NVIC_SetPriority(CAN_IRQ, 1, 0); - HAL_NVIC_EnableIRQ(CAN_IRQ); + HAL_NVIC_SetPriority(CEC_CAN_IRQn, 1, 0); + HAL_NVIC_EnableIRQ(CEC_CAN_IRQn); } /** @@ -183,18 +183,22 @@ /* Disable the NVIC for CAN reception */ - HAL_NVIC_DisableIRQ(CAN_IRQ); + HAL_NVIC_DisableIRQ(CEC_CAN_IRQn); } /** * @brief Handles CAN RX0 interrupt request. * @param None +* @note STM32F0 uses different interrupts than F4 * @retval None */ -void USB_LP_CAN_RX0_IRQHandler(void) { - HAL_CAN_IRQHandler(&_canHandle); +void CEC_CAN_IRQHandler(void) +{ + HAL_CAN_IRQHandler(&_canHandle); } + + /** * @brief Reception complete callback in non blocking mode * @param _canHandle: pointer to a CAN_HandleTypeDef structure that contains