Skip to content

Commit

Permalink
Merge pull request #113 from partyzzzan/chibi-version
Browse files Browse the repository at this point in the history
Fixed. Add new CH_KERNEL_MAJOR to stm32 driver.
  • Loading branch information
pavel-kirienko authored Oct 5, 2017
2 parents 38702ff + 60ea60e commit d577c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libuavcan_drivers/stm32/driver/src/uc_stm32_can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# endif
#endif

#if (UAVCAN_STM32_CHIBIOS && (CH_KERNEL_MAJOR == 3 || CH_KERNEL_MAJOR == 4))
#if (UAVCAN_STM32_CHIBIOS && (CH_KERNEL_MAJOR == 3 || CH_KERNEL_MAJOR == 4 || CH_KERNEL_MAJOR == 5))
#define CAN1_TX_IRQHandler STM32_CAN1_TX_HANDLER
#define CAN1_RX0_IRQHandler STM32_CAN1_RX0_HANDLER
#define CAN1_RX1_IRQHandler STM32_CAN1_RX1_HANDLER
Expand Down
2 changes: 1 addition & 1 deletion libuavcan_drivers/stm32/driver/src/uc_stm32_clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# define TIMX_INPUT_CLOCK STM32_TIMCLK1
# endif

# if (UAVCAN_STM32_CHIBIOS && (CH_KERNEL_MAJOR == 3 || CH_KERNEL_MAJOR == 4))
# if (UAVCAN_STM32_CHIBIOS && (CH_KERNEL_MAJOR == 3 || CH_KERNEL_MAJOR == 4 || CH_KERNEL_MAJOR == 5))
# define TIMX UAVCAN_STM32_GLUE2(STM32_TIM, UAVCAN_STM32_TIMER_NUMBER)
# define TIMX_IRQn UAVCAN_STM32_GLUE3(STM32_TIM, UAVCAN_STM32_TIMER_NUMBER, _NUMBER)
# define TIMX_IRQHandler UAVCAN_STM32_GLUE3(STM32_TIM, UAVCAN_STM32_TIMER_NUMBER, _HANDLER)
Expand Down

0 comments on commit d577c58

Please sign in to comment.