mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 06:51:36 +08:00
Added support for timers 6 and 7
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
#define TIMX_IRQn UAVCAN_STM32_GLUE3(TIM, UAVCAN_STM32_TIMER_NUMBER, _IRQn)
|
#define TIMX_IRQn UAVCAN_STM32_GLUE3(TIM, UAVCAN_STM32_TIMER_NUMBER, _IRQn)
|
||||||
#define TIMX_IRQHandler UAVCAN_STM32_GLUE3(TIM, UAVCAN_STM32_TIMER_NUMBER, _IRQHandler)
|
#define TIMX_IRQHandler UAVCAN_STM32_GLUE3(TIM, UAVCAN_STM32_TIMER_NUMBER, _IRQHandler)
|
||||||
|
|
||||||
#if UAVCAN_STM32_TIMER_NUMBER >= 2 && UAVCAN_STM32_TIMER_NUMBER <= 5
|
#if UAVCAN_STM32_TIMER_NUMBER >= 2 && UAVCAN_STM32_TIMER_NUMBER <= 7
|
||||||
# define TIMX_RCC_ENR RCC->APB1ENR
|
# define TIMX_RCC_ENR RCC->APB1ENR
|
||||||
# define TIMX_RCC_RSTR RCC->APB1RSTR
|
# define TIMX_RCC_RSTR RCC->APB1RSTR
|
||||||
# define TIMX_RCC_ENR_MASK UAVCAN_STM32_GLUE3(RCC_APB1ENR_TIM, UAVCAN_STM32_TIMER_NUMBER, EN)
|
# define TIMX_RCC_ENR_MASK UAVCAN_STM32_GLUE3(RCC_APB1ENR_TIM, UAVCAN_STM32_TIMER_NUMBER, EN)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ UDEFS = -DUAVCAN_STM32_CHIBIOS=1 -DUAVCAN_STM32_DEBUG=1
|
|||||||
# UAVCAN library
|
# UAVCAN library
|
||||||
#
|
#
|
||||||
|
|
||||||
UDEFS += -DUAVCAN_STM32_TIMER_NUMBER=2
|
UDEFS += -DUAVCAN_STM32_TIMER_NUMBER=7
|
||||||
|
|
||||||
include ../../../libuavcan/include.mk
|
include ../../../libuavcan/include.mk
|
||||||
CPPSRC += $(LIBUAVCAN_SRC)
|
CPPSRC += $(LIBUAVCAN_SRC)
|
||||||
|
|||||||
Reference in New Issue
Block a user