AP_HAL_ChibiOS: move NTF_LED_TYPES from defaults to hwdef

This commit is contained in:
Henry Wurzburg 2023-04-24 07:49:03 -05:00 committed by Peter Barker
parent d8247d35f5
commit fc42f8f9be
60 changed files with 359 additions and 302 deletions

View File

@ -1,9 +1,9 @@
# setup for LEDs on chan5
SERVO5_FUNCTION 120
NTF_LED_TYPES 257
# disable compass
COMPASS_USE 0
COMPASS_USE2 0
COMPASS_USE3 0
# setup SERIAL3 for RCIN
SERIAL3_BAUD 115

View File

@ -141,3 +141,5 @@ include ../include/save_some_flash.inc
# only include ublox GPS driver
include ../include/minimal_GPS.inc
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,5 +1,5 @@
# setup for LEDs on chan5
SERVO5_FUNCTION 120
NTF_LED_TYPES 257
# setup SERIAL2 for RCIN
SERIAL2_BAUD 115

View File

@ -69,3 +69,5 @@ define AP_BATTERY_SMBUS_ENABLED 0
# only include ublox GPS driver
include ../include/minimal_GPS.inc
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,9 +1,9 @@
# setup for LEDs on chan5
SERVO5_FUNCTION 120
NTF_LED_TYPES 257
# disable compass
COMPASS_USE 0
COMPASS_USE2 0
COMPASS_USE3 0
# setup SERIAL3 for RCIN
SERIAL3_BAUD 115

View File

@ -136,3 +136,5 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define STM32_PWM_USE_ADVANCED TRUE
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,3 +1,3 @@
# setup for LEDs on chan5
SERVO5_FUNCTION 120
NTF_LED_TYPES 257

View File

@ -62,3 +62,5 @@ IMU BMI270 SPI:bmi270 ROTATION_ROLL_180_YAW_225
# Some boards have no baro, some have a DPS310 Baro on I2C1
define HAL_BARO_ALLOW_INIT_NO_BARO 1
BARO DPS310 I2C:0:0x76
define DEFAULT_NTF_LED_TYPES 257

View File

@ -14,6 +14,6 @@ BATT_VOLT_MULT 18.000
BATT_AMP_PERVLT 24.000
# turn on CAN RGB LED
NTF_LED_TYPES 231
EK2_IMU_MASK 7

View File

@ -10,3 +10,5 @@ PH12 TIM5_CH3 TIM5 PWM(3) GPIO(52) BIDIR
PD12 TIM4_CH1 TIM4 PWM(5) GPIO(54) BIDIR
PD14 TIM4_CH3 TIM4 PWM(7) GPIO(56) BIDIR
define DEFAULT_NTF_LED_TYPES 231

View File

@ -14,6 +14,6 @@ BATT_VOLT_MULT 18.000
BATT_AMP_PERVLT 24.000
# turn on CAN RGB LED
NTF_LED_TYPES 231
EK2_IMU_MASK 7

View File

@ -305,3 +305,5 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
DMA_PRIORITY ADC* SPI1* TIM*UP*
DMA_NOSHARE SPI1* TIM*UP*
define DEFAULT_NTF_LED_TYPES 231

View File

@ -1,6 +1,6 @@
# setup for Neopixel
OUT1_FUNCTION 120
NTF_LED_TYPES 455
NTF_LED_BRIGHT 2
NTF_LED_LEN 8

View File

@ -155,3 +155,5 @@ define HAL_PERIPH_NEOPIXEL_COUNT_WITHOUT_NOTIFY 8
# also enable buzzer
define HAL_PERIPH_ENABLE_BUZZER_WITHOUT_NOTIFY 1
define DEFAULT_NTF_LED_TYPES 455

View File

@ -1,6 +1,5 @@
# setup for LEDs on chan9
SERVO5_FUNCTION 120
NTF_LED_TYPES 257
NTF_LED_LEN 2
# ESC setup
MOT_PWM_TYPE 6
@ -9,3 +8,4 @@ SERVO_BLH_TRATE 0
# RC setup
RC_OPTIONS 8704
SERIAL1_PROTOCOL 23

View File

@ -145,3 +145,5 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
define HAL_DEFAULT_INS_FAST_SAMPLE 3
# Motor order implies Betaflight/X for standard ESCs
define HAL_FRAME_TYPE_DEFAULT 12
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,5 @@
# setup the four built-in Neopixel LEDs on chan 9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
NTF_LED_LEN 4
# setup SERIAL3 for RCIN

View File

@ -178,3 +178,5 @@ define HAL_PARACHUTE_ENABLED 0
include ../include/minimal.inc
define HAL_SPRAYER_ENABLED 0
define AP_BATTERY_SMBUS_ENABLED 0
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,5 @@
# setup the four built-in Neopixel LEDs on chan 9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
NTF_LED_LEN 4
# setup SERIAL3 for RCIN

View File

@ -26,3 +26,5 @@ DMA_PRIORITY USART1* I2C2* TIM1* TIM3*
define HAL_I2C_INTERNAL_MASK 1
define HAL_FRAME_TYPE_DEFAULT 12
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,4 +1,4 @@
# setup for LEDs on chan5
SERVO5_FUNCTION 120
NTF_LED_TYPES 256

View File

@ -152,3 +152,5 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
# minimal drivers to reduce flash usage
include ../include/minimal.inc
define DEFAULT_NTF_LED_TYPES 256

View File

@ -1,6 +1,5 @@
# setup for LEDs on chan5
SERVO5_FUNCTION 120
NTF_LED_TYPES 257
SERIAL3_BAUD 115
# default Serial1 to FrSky telemetry
SERIAL1_PROTOCOL 10
@ -8,3 +7,4 @@ SERIAL1_OPTIONS 7
# batt monitor defaults
BATT_VOLT_SCALE 10.9
BATT_CURR_SCALE 28.5

View File

@ -45,3 +45,5 @@ define AP_BATTERY_SMBUS_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define HAL_MOUNT_ENABLED 0
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,6 @@
# setup for LEDs on chan9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
SERIAL7_PROTOCOL 16
# UART1 for DJI Goggles
SERIAL1_PROTOCOL 33

View File

@ -160,3 +160,5 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define STM32_PWM_USE_ADVANCED TRUE
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,7 +1,7 @@
# setup for LEDs on chan9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
# Default VTX power to on
RELAY_DEFAULT 1
# UART1 for DJI Goggles
SERIAL1_PROTOCOL 33

View File

@ -10,3 +10,5 @@ SPIDEV bmi270 SPI4 DEVID1 MPU6000_CS MODE3 1*MHZ 4*MHZ
IMU BMI270 SPI:bmi270 ROTATION_PITCH_180_YAW_90
define HAL_LOGGING_DATAFLASH_DRIVER AP_Logger_W25N01GV
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,7 +1,7 @@
# setup for LEDs on chan9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
# Default VTX power to on
RELAY_DEFAULT 1
# UART1 for DJI Goggles
SERIAL1_PROTOCOL 33

View File

@ -158,3 +158,5 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define STM32_PWM_USE_ADVANCED TRUE
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,5 @@
# setup for LEDs on chan9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
# Default VTX power to on
RELAY_DEFAULT 1
# UART1 for DJI Goggles
@ -8,3 +7,4 @@ SERIAL1_PROTOCOL 33
# UART3 for VTX
SERIAL3_PROTOCOL 37

View File

@ -68,3 +68,5 @@ DMA_NOSHARE *UP SPI1*
define HAL_FRAME_TYPE_DEFAULT 12
define HAL_LOGGING_DATAFLASH_ENABLED 1
define HAL_LOGGING_DATAFLASH_DRIVER AP_Logger_W25N01GV
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,5 @@
# setup for LEDs on chan9
SERVO7_FUNCTION 120
NTF_LED_TYPES 257
# Default VTX power to on
RELAY_DEFAULT 1
# UART1 is RX input
@ -15,3 +14,4 @@ OSD_TYPE 1
SERIAL4_PROTOCOL -1
# UART6 is ESC Telem
SERIAL6_PROTOCOL 16

View File

@ -35,3 +35,5 @@ define AP_BARO_SPL06_ENABLED 1
# minimal drivers to reduce flash usage
include ../include/minimal.inc
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,5 +1,5 @@
# setup for LEDs on chan9
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
# Default VTX power to on
RELAY_DEFAULT 1

View File

@ -192,3 +192,5 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define STM32_PWM_USE_ADVANCED TRUE
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,6 @@
# setup for Neopixel
SERVO9_FUNCTION 120
NTF_LED_TYPES 487
NTF_LED_BRIGHT 2
NTF_LED_LEN 8
CAN_P1_DRIVER 1

View File

@ -177,3 +177,5 @@ define HAL_PARACHUTE_ENABLED 0
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define DEFAULT_NTF_LED_TYPES 487

View File

@ -1,6 +1,6 @@
SERVO13_FUNCTION 120
NTF_LED_TYPES 487
NTF_LED_BRIGHT 2
NTF_LED_LEN 8
CAN_D1_PROTOCOL 1
CAN_P1_DRIVER 1

View File

@ -26,3 +26,4 @@ IMU Invensensev3 SPI:icm42688 ROTATION_YAW_180
undef HAL_I2C_INTERNAL_MASK
define HAL_I2C_INTERNAL_MASK 0
define DEFAULT_NTF_LED_TYPES 487

View File

@ -1,2 +1,2 @@
SERVO13_FUNCTION 120
NTF_LED_TYPES 455

View File

@ -12,3 +12,5 @@ PA0 TIM2_CH1 TIM2 PWM(1) GPIO(50) BIDIR
PA1 TIM2_CH2 TIM2 PWM(2) GPIO(51)
PA2 TIM5_CH3 TIM5 PWM(3) GPIO(52) BIDIR
PA3 TIM5_CH4 TIM5 PWM(4) GPIO(53)
define DEFAULT_NTF_LED_TYPES 455

View File

@ -1,2 +1,2 @@
SERVO13_FUNCTION 120
NTF_LED_TYPES 455

View File

@ -213,3 +213,5 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define DEFAULT_NTF_LED_TYPES 455

View File

@ -1,6 +1,5 @@
# setup for LEDs on chan5
SERVO11_FUNCTION 120
NTF_LED_TYPES 257
# setup SERIAL2 for SmartPort
SERIAL2_PROTOCOL 10
@ -8,3 +7,4 @@ SERIAL2_OPTIONS 15
# currently using both IMUs is too CPU intensive
INS_ENABLE_MASK 1

View File

@ -193,3 +193,5 @@ define BOARD_PWM_COUNT_DEFAULT 11
define STM32_PWM_USE_ADVANCED TRUE
define HAL_STORAGE_SIZE 16384
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,4 +1,4 @@
# setup for Neopixel
OUT3_FUNCTION 120
OUT4_FUNCTION 121
NTF_LED_TYPES 455

View File

@ -128,3 +128,5 @@ PC7 M9SB INPUT
# allow for reboot command for faster development
define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0
define DEFAULT_NTF_LED_TYPES 455

View File

@ -1,4 +1,4 @@
# setup for Neopixel
OUT3_FUNCTION 120
OUT4_FUNCTION 121
NTF_LED_TYPES 455

View File

@ -131,3 +131,5 @@ PC11 M9EXTINT INPUT
PC10 M9RST INPUT
PC8 GPS_PPS_IN INPUT
PC7 M9SB INPUT
define DEFAULT_NTF_LED_TYPES 455

View File

@ -1,8 +1,8 @@
# setup for Neopixel
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
NTF_LED_LEN 1
# Default VTX power to on
RELAY_DEFAULT 1
SERIAL3_PROTOCOL 16
RSSI_TYPE 3

View File

@ -44,3 +44,5 @@ PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51)
PD12 TIM4_CH1 TIM4 PWM(3) GPIO(52) BIDIR
PA0 TIM2_CH1 TIM2 PWM(5) GPIO(54) BIDIR
PA2 TIM2_CH3 TIM2 PWM(7) GPIO(56) BIDIR
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,5 @@
# setup for Neopixel
SERVO9_FUNCTION 120
NTF_LED_TYPES 257
NTF_LED_LEN 1
# set up Sbus-in
@ -14,3 +13,4 @@ SERIAL1_BAUDRATE 115
RSSI_TYPE 3

View File

@ -194,3 +194,5 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define STM32_PWM_USE_ADVANCED TRUE
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,9 +1,9 @@
# WS2812 LED
NTF_LED_LEN,4
NTF_LED_TYPES 257
SERVO12_FUNCTION,120
#Serial Port defaults
SERIAL1_PROTOCOL 23
SERIAL4_PROTOCOL -1
SERIAL6_PROTOCOL 2

View File

@ -222,3 +222,5 @@ define AP_GPS_UBLOX_ENABLED 1
define AP_GPS_NMEA_ENABLED 1
define AP_TRAMP_ENABLED 1
define DEFAULT_NTF_LED_TYPES 257

View File

@ -1,6 +1,5 @@
# setup for Neopixel
OUT7_FUNCTION 120
NTF_LED_TYPES 455
NTF_LED_BRIGHT 2
NTF_LED_LEN 8
@ -9,3 +8,4 @@ NTF_LED_LEN 8
#| USART1 | USART2 | USART3 | UART4 | UART5 |
GPS_PORT 3
MSP_PORT 4

View File

@ -226,3 +226,5 @@ define HAL_BATT2_VOLT_SCALE 11.0
# -------------------- Buzzer+NeoPixels --------------d------
define HAL_PERIPH_ENABLE_RC_OUT
define HAL_PERIPH_ENABLE_NOTIFY
define DEFAULT_NTF_LED_TYPES 455

View File

@ -1,2 +1,2 @@
SERVO9_FUNCTION 120
NTF_LED_TYPES 257

View File

@ -156,3 +156,5 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
# minimal drivers to reduce flash usage
include ../include/minimal.inc
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0
define DEFAULT_NTF_LED_TYPES 257