Skip to content

Commit

Permalink
Made interrupts work
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaIqbal786110 committed Jan 30, 2024
1 parent 65bfc48 commit e6cf2ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Inc/stm32f4xx_hal_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
#define DATA_CACHE_ENABLE 1U

#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
#define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */
#define USE_HAL_CAN_REGISTER_CALLBACKS 1U /* CAN register callback disabled */
#define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */
#define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */
#define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
Expand Down
4 changes: 4 additions & 0 deletions Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ int main(void)
MX_USART3_UART_Init();
MX_ADC2_Init();
MX_ADC3_Init();

/* USER CODE BEGIN 2 */

/* USER CODE END 2 */
Expand Down Expand Up @@ -478,6 +479,9 @@ static void MX_CAN1_Init(void)
/* USER CODE BEGIN CAN1_Init 2 */

/* USER CODE END CAN1_Init 2 */
HAL_NVIC_SetPriority(CAN1_RX0_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn);
HAL_CAN_IRQHandler(&hcan1);

}

Expand Down

0 comments on commit e6cf2ce

Please sign in to comment.