tested 12V output en and adc

This commit is contained in:
Jacob Dahl 2024-12-16 15:02:30 -09:00
parent 99d1c1d0d1
commit 5e33b0c521
2 changed files with 12 additions and 11 deletions

View File

@ -26,9 +26,6 @@ PB7 USART1_RX USART1
# Armed indication # Armed indication
PE6 nARMED OUTPUT HIGH PE6 nARMED OUTPUT HIGH
# 12V peripheral enable
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH
# LEDs # LEDs
PE3 LED_ACTIVITY OUTPUT OPENDRAIN HIGH # red PE3 LED_ACTIVITY OUTPUT OPENDRAIN HIGH # red
PE5 LED_BOOTLOADER OUTPUT OPENDRAIN HIGH # blue PE5 LED_BOOTLOADER OUTPUT OPENDRAIN HIGH # blue

View File

@ -48,7 +48,8 @@ define DEFAULT_SERIAL3_PROTOCOL SerialProtocol_GPS
# VTX (DJI Air Unit, RX only) # VTX (DJI Air Unit, RX only)
PA3 USART2_RX USART2 PA3 USART2_RX USART2
PD5 USART2_TX USART2 NODMA PD5 USART2_TX USART2 NODMA
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_None # TODO: DJI HDL? # TODO: DJI HDL?
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_None
# ESC Telem (RX only) # ESC Telem (RX only)
PH13 UART4_TX UART4 NODMA PH13 UART4_TX UART4 NODMA
@ -66,8 +67,8 @@ define DEFAULT_SERIAL6_PROTOCOL SerialProtocol_RCIN
# ADCs # ADCs
PA0 SCALED1_V3V3 ADC1 SCALE(2) PA0 SCALED1_V3V3 ADC1 SCALE(2)
PB1 VDD_5V_SENS ADC1 SCALE(2) PB1 VDD_5V_SENS ADC1 SCALE(2)
# TODO: 12V monitor # 12V monitor
# PA4 SCALED2_V3V3 ADC1 SCALE(7.66) PA4 FMU_SERVORAIL_VCC_SENS ADC1 SCALE(7.66)
PB0 BATT_VOLTAGE_SENS ADC1 SCALE(1) PB0 BATT_VOLTAGE_SENS ADC1 SCALE(1)
PC2 BATT_CURRENT_SENS ADC1 SCALE(1) PC2 BATT_CURRENT_SENS ADC1 SCALE(1)
@ -148,13 +149,16 @@ PE6 nARMED OUTPUT HIGH
PC13 VDD_3V3_SD_CARD_EN OUTPUT HIGH PC13 VDD_3V3_SD_CARD_EN OUTPUT HIGH
PI11 VDD_3V3_SENSORS1_EN OUTPUT HIGH PI11 VDD_3V3_SENSORS1_EN OUTPUT HIGH
# 12V enable, start with it off # 12V enable, start with it ON
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH PG4 VDD_5V_PERIPH_EN OUTPUT HIGH
# Power sensing # Power sensing
PE15 VDD_5V_PERIPH_nOC INPUT PULLUP # 12V PGOOD
PF13 VDD_5V_HIPOWER_nOC INPUT PULLUP PE15 VDD_5V_PERIPH_nOC INPUT FLOATING
PG1 VDD_BRICK_nVALID INPUT PULLUP # 5V PGOOD
PF13 VDD_5V_HIPOWER_nOC INPUT FLOATING
# 5V_ON_BATn
PG1 VDD_BRICK_nVALID INPUT FLOATING
# MicroSD # MicroSD
PD6 SDMMC2_CK SDMMC2 PD6 SDMMC2_CK SDMMC2