boards: add UAVCAN timer override mechanism and CUAV X7 add CAN (#15348)

* X7Pro adds CAN driver
* UAVCAN timer selection moved to default.cmake
* Modify some details about @CUAVcaijie UAVCAN timer selection moved to default.cmake
* Put some timer parameters to micro_hal.h from board_config.h. Fix all h7 boards

Co-authored-by: honglang <honglang@cuav.net>
This commit is contained in:
CUAVcaijie
2020-08-29 00:16:48 +08:00
committed by GitHub
parent 8c0671e93d
commit 536877cf0a
9 changed files with 30 additions and 13 deletions
@@ -38,6 +38,19 @@
__BEGIN_DECLS
#define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_STM32H7
#define STM32_RCC_APB1ENR STM32_RCC_APB1LENR
#define STM32_RCC_APB1RSTR STM32_RCC_APB1LRSTR
#define RCC_APB1ENR_TIM2EN RCC_APB1LENR_TIM2EN
#define RCC_APB1ENR_TIM3EN RCC_APB1LENR_TIM3EN
#define RCC_APB1ENR_TIM5EN RCC_APB1LENR_TIM5EN
#define RCC_APB1ENR_TIM14EN RCC_APB1LENR_TIM14EN
#define RCC_APB1RSTR_TIM2RST RCC_APB1LRSTR_TIM2RST
#define RCC_APB1RSTR_TIM5RST RCC_APB1LRSTR_TIM5RST
#include <chip.h>
#include <hardware/stm32_flash.h>
#include <up_internal.h> //include up_systemreset() which is included on stm32.h