Working fork to test F0 application
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 |
diff -r 1fd35431ee8e -r cdab1fd4ff26 stm32f0xx_hal_msp.c --- 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