Skip to content

Commit

Permalink
hwdef: added DMA for USART3 for MatekL431-RC and GPS
Browse files Browse the repository at this point in the history
this allows for faster connections

also added 4 PWM output requested by Josh and Sampson
  • Loading branch information
tridge committed Aug 24, 2023
1 parent 56b5074 commit 36f6d4b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekL431-GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ define HAL_CAN_POOL_SIZE 12000
define HAL_PERIPH_ENABLE_MSP
define HAL_MSP_ENABLED 1
define AP_PERIPH_MSP_PORT_DEFAULT 1

undef PB10
undef PB11
PB10 USART3_TX USART3 SPEED_HIGH
PB11 USART3_RX USART3 SPEED_HIGH
19 changes: 19 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekL431-RC/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,22 @@ define HAL_DISABLE_ADC_DRIVER TRUE

define HAL_PERIPH_ENABLE_RCIN 1
define AP_PERIPH_RC1_PORT_DEFAULT 2

# Added DMA for RC input
undef PB10
undef PB11
PB10 USART3_TX USART3 SPEED_HIGH
PB11 USART3_RX USART3 SPEED_HIGH

# allow for 4 PWM outputs
PA8 TIM1_CH1 TIM1 PWM(1) GPIO(50)
PA9 TIM1_CH2 TIM1 PWM(2) GPIO(51)
PA10 TIM1_CH3 TIM1 PWM(3) GPIO(52)
PA11 TIM1_CH4 TIM1 PWM(4) GPIO(53)

define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY

# enable ESC control
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1

0 comments on commit 36f6d4b

Please sign in to comment.