Added support for timers 6 and 7

This commit is contained in:
Pavel Kirienko 2014-04-05 10:43:58 +04:00
parent e04a32662e
commit c92573b840
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
#define TIMX_IRQn UAVCAN_STM32_GLUE3(TIM, UAVCAN_STM32_TIMER_NUMBER, _IRQn)
#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_RSTR RCC->APB1RSTR
# define TIMX_RCC_ENR_MASK UAVCAN_STM32_GLUE3(RCC_APB1ENR_TIM, UAVCAN_STM32_TIMER_NUMBER, EN)

View File

@ -16,7 +16,7 @@ UDEFS = -DUAVCAN_STM32_CHIBIOS=1 -DUAVCAN_STM32_DEBUG=1
# UAVCAN library
#
UDEFS += -DUAVCAN_STM32_TIMER_NUMBER=2
UDEFS += -DUAVCAN_STM32_TIMER_NUMBER=7
include ../../../libuavcan/include.mk
CPPSRC += $(LIBUAVCAN_SRC)