Skip to content

Commit

Permalink
hwdef: correct hwdef for MicoAir405v2
Browse files Browse the repository at this point in the history
Update hwdef: DMA allocation and LED mapping
Update README: UARTs DMA allocation
Update defaults.parm: GPS low baudrate
  • Loading branch information
Minderring authored and peterbarker committed Apr 10, 2024
1 parent bc29550 commit 3ca03b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ The MicoAir405v2 is a flight controller produced by [MicoAir](http://micoair.com

- SERIAL0 -> USB
- SERIAL1 -> UART1 (DMA-enabled)
- SERIAL2 -> UART2 (DJI - VTX, DMA-enabled)
- SERIAL2 -> UART2 (DJI - VTX, TX only is DMA Enabled)
- SERIAL3 -> UART3 (GPS)
- SERIAL4 -> UART4 (DMA-enabled)
- SERIAL4 -> UART4 (TX only is DMA Enabled)
- SERIAL5 -> UART5 (ESC Telemetry)
- SERIAL6 -> UART6 (RX6 is inverted from SBUS pin, no DMA on TX6)
- SERIAL6 -> UART6 (RX6 is inverted from SBUS pin, RX only is DMA Enabled)

## RC Input

Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/defaults.parm
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ SERIAL3_PROTOCOL 5
SERIAL4_PROTOCOL 2
SERIAL5_PROTOCOL 16
SERIAL6_PROTOCOL 23
GPS_DRV_OPTIONS 4
18 changes: 9 additions & 9 deletions libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ PA8 LED_BLUE OUTPUT LOW GPIO(0)
PC4 LED_GREEN OUTPUT LOW GPIO(1)
PC5 LED_RED OUTPUT LOW GPIO(2)

define HAL_GPIO_A_LED_PIN 0
define HAL_GPIO_B_LED_PIN 2
define HAL_GPIO_C_LED_PIN 1
define HAL_GPIO_A_LED_PIN 2
define HAL_GPIO_B_LED_PIN 1
define HAL_GPIO_C_LED_PIN 0

define HAL_GPIO_LED_ON 0
define HAL_GPIO_LED_OFF 1
Expand Down Expand Up @@ -92,18 +92,18 @@ PA10 USART1_RX USART1

# USART2
PA2 USART2_TX USART2
PA3 USART2_RX USART2
PA3 USART2_RX USART2 NODMA

# USART3
PB10 USART3_TX USART3 NODMA
PB11 USART3_RX USART3
PB11 USART3_RX USART3 NODMA

# UART4
PA0 UART4_TX UART4
PA1 UART4_RX UART4
PA1 UART4_RX UART4 NODMA

# UART5
PD2 UART5_RX UART5
PD2 UART5_RX UART5 NODMA

# UART6
PC7 USART6_RX USART6
Expand All @@ -113,8 +113,8 @@ PC15 SBUS_INV OUTPUT
# 10 PWM available by default
define BOARD_PWM_COUNT_DEFAULT 10

PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50) BIDIR
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51)
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50)
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51) BIDIR
PA15 TIM2_CH1 TIM2 PWM(3) GPIO(52) BIDIR
PB3 TIM2_CH2 TIM2 PWM(4) GPIO(53)
PB4 TIM3_CH1 TIM3 PWM(5) GPIO(54)
Expand Down

0 comments on commit 3ca03b3

Please sign in to comment.