Skip to content

Commit

Permalink
AP_HAL_ChibiOS: lucid pro update
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Nov 4, 2024
1 parent 4607310 commit fd09983
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/TBS_LUCID_PRO/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The TBS LUCID PRO is a flight controller produced by [Team Black Sheep](https://

## Pinout

![TBS LUCID PRO Board Top](Top.jpg "TBS LUCID PRO Top")
![TBS LUCID PRO Board Bottom](Bottom.jpg "TBS LUCID PRO Bottom")
![TBS LUCID PRO Board Top](Top.png "TBS LUCID PRO Top")
![TBS LUCID PRO Board Bottom](Bottom.png "TBS LUCID PRO Bottom")

## UART Mapping

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions libraries/AP_HAL_ChibiOS/hwdef/TBS_LUCID_PRO/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PA12 OTG_FS_DP OTG1
# USART1
PA10 USART1_RX USART1
PA9 USART1_TX USART1
DEFAULT_SERIAL1_PROTOCOL SerialProtocol_MAVLink2
DEFAULT_SERIAL1_PROTOCOL SerialProtocol_RCIN

# USART2 - ESC Telem
PA2 USART2_TX USART2 NODMA
Expand All @@ -74,22 +74,22 @@ PA0 UART4_TX UART4 NODMA
PA1 UART4_RX UART4 NODMA
DEFAULT_SERIAL4_PROTOCOL SerialProtocol_SmartAudio

# UART5 - Tracer
PC12 UART5_TX UART5
PD2 UART5_RX UART5
DEFAULT_SERIAL5_PROTOCOL SerialProtocol_RCIN
# UART5 - MAVLink
PC12 UART5_TX UART5 NODMA
PD2 UART5_RX UART5 NODMA
DEFAULT_SERIAL5_PROTOCOL SerialProtocol_MAVLink2

# USART6 - GPS
PC6 USART6_TX USART6
PC7 USART6_RX USART6
DEFAULT_SERIAL6_PROTOCOL SerialProtocol_GPS

# I2C ports
I2C_ORDER I2C3
I2C_ORDER I2C1

# I2C3
PA8 I2C3_SCL I2C3
PC9 I2C3_SDA I2C3
# I2C1
PB8 I2C1_SCL I2C1
PB9 I2C1_SDA I2C1

# Servos

Expand All @@ -107,15 +107,15 @@ define HAL_BATT_MONITOR_DEFAULT 4
# MOTORS
PB6 TIM4_CH1 TIM4 PWM(1) GPIO(50) # M1
PB7 TIM4_CH2 TIM4 PWM(2) GPIO(51) BIDIR # M2
PB8 TIM4_CH3 TIM4 PWM(3) GPIO(52) BIDIR # M3
PB9 TIM4_CH4 TIM4 PWM(4) GPIO(53) # M4
PC8 TIM3_CH3 TIM3 PWM(3) GPIO(52) # M3
PC9 TIM3_CH4 TIM3 PWM(4) GPIO(53) BIDIR # M4
PB3 TIM2_CH2 TIM2 PWM(5) GPIO(54) NODMA # M5 / GPIO1
PB4 TIM3_CH1 TIM3 PWM(6) GPIO(55) # M6 / GPIO2
PB0 TIM1_CH2N TIM1 PWM(6) GPIO(55) # M6 / GPIO2

PC8 TIM3_CH3 TIM3 PWM(7) GPIO(56) # CAMC_PWM
PB1 TIM3_CH4 TIM3 PWM(8) GPIO(57) # LED
PA8 TIM1_CH1 TIM1 PWM(7) GPIO(56) # CAMC_PWM
PB1 TIM1_CH3N TIM1 PWM(8) GPIO(57) # LED

DMA_PRIORITY UART5_RX
DMA_PRIORITY UART5_RX TIM4_UP TIM3_UP

PC14 LED0 OUTPUT LOW GPIO(90)
define HAL_GPIO_A_LED_PIN 90
Expand Down

0 comments on commit fd09983

Please sign in to comment.