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-28 12:16:48 -04:00
committed by GitHub
co-authored by honglang
parent 8c0671e93d
commit 536877cf0a
9 changed files with 30 additions and 13 deletions
+1 -2
View File
@@ -111,8 +111,7 @@
/* High-resolution timer */
#define HRT_TIMER 2 /* use timer2 for the HRT */
#define HRT_TIMER_CHANNEL 3 /* use capture/compare channel 3 */
#define STM32_RCC_APB1ENR STM32_RCC_APB1LENR
#define RCC_APB1ENR_TIM2EN RCC_APB1LENR_TIM2EN /* This is stupid and only applies for H7 */
/* RC Serial port */