hwdef: backport CUAV-7-Nano hwdef defines

This commit is contained in:
cuav-chen2 2024-08-28 15:49:10 +08:00 committed by Randy Mackay
parent 7ce11b4194
commit 2ac7cf2d46
1 changed files with 7 additions and 6 deletions

View File

@ -104,8 +104,8 @@ PC3 ADC1_3V3 ADC1 SCALE(1) ANALOG(13)
define HAL_BATT_VOLT_PIN 9
define HAL_BATT_CURR_PIN 8
define HAL_BATT_VOLT_SCALE 10.1
define HAL_BATT_CURR_SCALE 17.0
define HAL_BATT_VOLT_SCALE 31.0
define HAL_BATT_CURR_SCALE 24.0
# SPI1 - IIM42652
PA5 SPI1_SCK SPI1
@ -239,11 +239,12 @@ PE4 LED_GREEN OUTPUT GPIO(91) LOW
PE5 LED_BLUE OUTPUT GPIO(92) LOW
# setup for "pixracer" RGB LEDs
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 90
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 91
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 92
define HAL_GPIO_A_LED_PIN 90
define HAL_GPIO_B_LED_PIN 91
define HAL_GPIO_C_LED_PIN 92
define HAL_GPIO_LED_ON 0
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1
define HAL_HAVE_PIXRACER_LED
# ID pins
PG0 HW_VER_REV_DRIVE OUTPUT LOW