mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 17:36:40 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user