1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Reset all target definitions to use LEDx_PIN for clarity.

This commit is contained in:
blckmn 2017-06-17 16:56:35 +10:00
parent daa0afcd39
commit 1bc421133e
68 changed files with 137 additions and 137 deletions

View file

@ -261,14 +261,14 @@ void pgResetFn_statusLedConfig(statusLedConfig_t *statusLedConfig)
statusLedConfig->ioTags[i] = IO_TAG_NONE; statusLedConfig->ioTags[i] = IO_TAG_NONE;
} }
#ifdef LED0 #ifdef LED0_PIN
statusLedConfig->ioTags[0] = IO_TAG(LED0); statusLedConfig->ioTags[0] = IO_TAG(LED0_PIN);
#endif #endif
#ifdef LED1 #ifdef LED1_PIN
statusLedConfig->ioTags[1] = IO_TAG(LED1); statusLedConfig->ioTags[1] = IO_TAG(LED1_PIN);
#endif #endif
#ifdef LED2 #ifdef LED2_PIN
statusLedConfig->ioTags[2] = IO_TAG(LED2); statusLedConfig->ioTags[2] = IO_TAG(LED2_PIN);
#endif #endif
statusLedConfig->inversion = 0 statusLedConfig->inversion = 0

View file

@ -595,7 +595,7 @@ const clivalue_t valueTable[] = {
// PG_TELEMETRY_CONFIG // PG_TELEMETRY_CONFIG
#ifdef TELEMETRY #ifdef TELEMETRY
{ "tlm_switch", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, telemetry_switch) }, { "tlm_switch", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, telemetry_switch) },
{ "tlm_inverted", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, telemetry_inverted) }, { "tlm_inverted", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, telemetry_inverted) },
{ "tlm_halfduplex", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, halfDuplex) }, { "tlm_halfduplex", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, halfDuplex) },
{ "frsky_default_lat", VAR_INT16 | MASTER_VALUE, .config.minmax = { -9000, 9000 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, gpsNoFixLatitude) }, { "frsky_default_lat", VAR_INT16 | MASTER_VALUE, .config.minmax = { -9000, 9000 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, gpsNoFixLatitude) },
{ "frsky_default_long", VAR_INT16 | MASTER_VALUE, .config.minmax = { -18000, 18000 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, gpsNoFixLongitude) }, { "frsky_default_long", VAR_INT16 | MASTER_VALUE, .config.minmax = { -18000, 18000 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, gpsNoFixLongitude) },
@ -605,7 +605,7 @@ const clivalue_t valueTable[] = {
{ "hott_alarm_int", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, 120 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, hottAlarmSoundInterval) }, { "hott_alarm_int", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, 120 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, hottAlarmSoundInterval) },
{ "pid_in_tlm", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = {TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, pidValuesAsTelemetry) }, { "pid_in_tlm", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = {TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, pidValuesAsTelemetry) },
#if defined(TELEMETRY_IBUS) #if defined(TELEMETRY_IBUS)
{ "report_cell_voltage", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, report_cell_voltage) }, { "report_cell_voltage", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, report_cell_voltage) },
#endif #endif
#endif #endif

View file

@ -21,7 +21,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define LED0 PB5 // Blue LED - PB5 #define LED0_PIN PB5 // Blue LED - PB5
#define BEEPER PA0 #define BEEPER PA0

View file

@ -22,8 +22,8 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define CONFIG_PREFER_ACC_ON #define CONFIG_PREFER_ACC_ON
#define LED0 PB3 #define LED0_PIN PB3
#define LED1 PB4 #define LED1_PIN PB4
#define BEEPER PA12 #define BEEPER PA12
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -22,8 +22,8 @@
#define BRUSHED_ESC_AUTODETECT #define BRUSHED_ESC_AUTODETECT
#define LED0 PB3 #define LED0_PIN PB3
#define LED1 PB4 #define LED1_PIN PB4
#define BEEPER PA12 #define BEEPER PA12

View file

@ -28,8 +28,8 @@
#define BRUSHED_ESC_AUTODETECT #define BRUSHED_ESC_AUTODETECT
// LED's V1 // LED's V1
#define LED0 PB4 #define LED0_PIN PB4
#define LED1 PB5 #define LED1_PIN PB5
// LED's V2 // LED's V2
#define LED0_A PB8 #define LED0_A PB8

View file

@ -25,8 +25,8 @@
#define USBD_PRODUCT_STRING "AlienFlight F4" #define USBD_PRODUCT_STRING "AlienFlight F4"
#define LED0 PC12 #define LED0_PIN PC12
#define LED1 PD2 #define LED1_PIN PD2
#define BEEPER PC13 #define BEEPER PC13
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -25,8 +25,8 @@
#define USBD_PRODUCT_STRING "AlienFlightNG F7" #define USBD_PRODUCT_STRING "AlienFlightNG F7"
#define LED0 PC12 #define LED0_PIN PC12
#define LED1 PD2 #define LED1_PIN PD2
#define BEEPER PC13 #define BEEPER PC13
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -20,7 +20,7 @@
#define USBD_PRODUCT_STRING "BeeRotorF4" #define USBD_PRODUCT_STRING "BeeRotorF4"
#define LED0 PB4 #define LED0_PIN PB4
#define BEEPER PB3 #define BEEPER PB3
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -28,9 +28,9 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define LED0 PB6 #define LED0_PIN PB6
#define LED1 PB5 #define LED1_PIN PB5
#define LED2 PB4 #define LED2_PIN PB4
#define BEEPER PC1 #define BEEPER PC1
#define BEEPER_OPT PB7 #define BEEPER_OPT PB7

View file

@ -17,7 +17,7 @@
#define TARGET_BOARD_IDENTIFIER "CC3D" // CopterControl 3D #define TARGET_BOARD_IDENTIFIER "CC3D" // CopterControl 3D
#define LED0 PB3 #define LED0_PIN PB3
#define INVERTER_PIN_UART1 PB2 // PB2 (BOOT1) used as inverter select GPIO #define INVERTER_PIN_UART1 PB2 // PB2 (BOOT1) used as inverter select GPIO

View file

@ -24,9 +24,9 @@
#define STM32F3DISCOVERY #define STM32F3DISCOVERY
#endif #endif
#define LED0 PE8 // Blue LEDs - PE8/PE12 #define LED0_PIN PE8 // Blue LEDs - PE8/PE12
#define LED0_INVERTED #define LED0_INVERTED
#define LED1 PE10 // Orange LEDs - PE10/PE14 #define LED1_PIN PE10 // Orange LEDs - PE10/PE14
#define LED1_INVERTED #define LED1_INVERTED
#define BEEPER PE9 // Red LEDs - PE9/PE13 #define BEEPER PE9 // Red LEDs - PE9/PE13

View file

@ -21,9 +21,9 @@
#define USE_HARDWARE_REVISION_DETECTION #define USE_HARDWARE_REVISION_DETECTION
#define TARGET_BUS_INIT #define TARGET_BUS_INIT
#define LED0 PC14 #define LED0_PIN PC14
#define LED1 PC13 #define LED1_PIN PC13
#define LED2 PC15 #define LED2_PIN PC15
#undef BEEPER #undef BEEPER

View file

@ -24,7 +24,7 @@
#endif #endif
#define LED0 PB5 #define LED0_PIN PB5
#define BEEPER PB4 #define BEEPER PB4
#define BEEPER_INVERTED #define BEEPER_INVERTED
#define BEEPER_PWM_HZ 3800 // Beeper PWM frequency in Hz #define BEEPER_PWM_HZ 3800 // Beeper PWM frequency in Hz

View file

@ -20,7 +20,7 @@
#define USBD_PRODUCT_STRING "CLRACINGF7" #define USBD_PRODUCT_STRING "CLRACINGF7"
#define LED0 PB0 #define LED0_PIN PB0
#define BEEPER PB4 #define BEEPER PB4
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -26,8 +26,8 @@
#define TARGET_XTAL_MHZ 16 #define TARGET_XTAL_MHZ 16
#define LED0 PC14 #define LED0_PIN PC14
#define LED1 PC13 #define LED1_PIN PC13
#define BEEPER PC5 #define BEEPER PC5

View file

@ -26,9 +26,9 @@
#undef USE_RX_MSP // never used. #undef USE_RX_MSP // never used.
#define LED0 PC15 #define LED0_PIN PC15
#define LED1 PC14 #define LED1_PIN PC14
#define LED2 PC13 #define LED2_PIN PC13
#define BEEPER PB13 #define BEEPER PB13
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -42,9 +42,9 @@
#define USED_TIMERS ( TIM_N(2) | TIM_N(4) ) #define USED_TIMERS ( TIM_N(2) | TIM_N(4) )
#endif #endif
#define LED0 PD2 #define LED0_PIN PD2
#define LED1 PC0 #define LED1_PIN PC0
#define LED2 PC3 #define LED2_PIN PC3
// Using STM32F405RG, 64 pin package (LQFP64) // Using STM32F405RG, 64 pin package (LQFP64)
// 16 pins per port, ports A, B, C, and also PD2 // 16 pins per port, ports A, B, C, and also PD2

View file

@ -22,11 +22,11 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
// tqfp48 pin 34 // tqfp48 pin 34
#define LED0 PA13 #define LED0_PIN PA13
// tqfp48 pin 37 // tqfp48 pin 37
#define LED1 PA14 #define LED1_PIN PA14
// tqfp48 pin 38 // tqfp48 pin 38
#define LED2 PA15 #define LED2_PIN PA15
#define BEEPER PB2 #define BEEPER PB2
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -22,9 +22,9 @@
#define USBD_PRODUCT_STRING "Elle0" #define USBD_PRODUCT_STRING "Elle0"
#define LED0 PA8 #define LED0_PIN PA8
#define LED1 PB4 #define LED1_PIN PB4
#define LED2 PC2 #define LED2_PIN PC2
// MPU9250 interrupt // MPU9250 interrupt
#define USE_EXTI #define USE_EXTI

View file

@ -20,9 +20,9 @@
#define USBD_PRODUCT_STRING "Swift-Flyer F4BY" #define USBD_PRODUCT_STRING "Swift-Flyer F4BY"
#define LED0 PE3 // Blue LED #define LED0_PIN PE3 // Blue LED
#define LED1 PE2 // Red LED #define LED1_PIN PE2 // Red LED
#define LED2 PE1 // Blue LED #define LED2_PIN PE1 // Blue LED
#define BEEPER PE5 #define BEEPER PE5

View file

@ -19,8 +19,8 @@
#define TARGET_BOARD_IDENTIFIER "FORT" #define TARGET_BOARD_IDENTIFIER "FORT"
#define USBD_PRODUCT_STRING "FortiniF4" #define USBD_PRODUCT_STRING "FortiniF4"
/*--------------LED----------------*/ /*--------------LED----------------*/
#define LED0 PB5 #define LED0_PIN PB5
#define LED1 PB6 #define LED1_PIN PB6
#define LED_STRIP #define LED_STRIP
/*---------------------------------*/ /*---------------------------------*/

View file

@ -32,8 +32,8 @@
#define TARGET_CONFIG #define TARGET_CONFIG
#define BRUSHED_ESC_AUTODETECT #define BRUSHED_ESC_AUTODETECT
#define LED0 PB9 #define LED0_PIN PB9
#define LED1 PB5 #define LED1_PIN PB5
#define BEEPER PA0 #define BEEPER PA0
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -19,8 +19,8 @@
#define TARGET_BOARD_IDENTIFIER "PIK4" #define TARGET_BOARD_IDENTIFIER "PIK4"
#define USBD_PRODUCT_STRING "PikoF4" #define USBD_PRODUCT_STRING "PikoF4"
/*--------------LED----------------*/ /*--------------LED----------------*/
#define LED0 PA15 #define LED0_PIN PA15
#define LED1 PB6 #define LED1_PIN PB6
#define LED_STRIP #define LED_STRIP
/*---------------------------------*/ /*---------------------------------*/

View file

@ -21,8 +21,8 @@
#define USBD_PRODUCT_STRING "FishDroneF4" #define USBD_PRODUCT_STRING "FishDroneF4"
#define LED0 PC13 #define LED0_PIN PC13
#define LED1 PC14 #define LED1_PIN PC14
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -21,7 +21,7 @@
#define TARGET_CONFIG #define TARGET_CONFIG
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -19,7 +19,7 @@
#define USBD_PRODUCT_STRING "FRSKYF4" #define USBD_PRODUCT_STRING "FRSKYF4"
#define TARGET_CONFIG #define TARGET_CONFIG
#define LED0 PB5 #define LED0_PIN PB5
#define BEEPER PB4 #define BEEPER PB4
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -28,7 +28,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define CONFIG_PREFER_ACC_ON #define CONFIG_PREFER_ACC_ON
#define LED0 PC14 #define LED0_PIN PC14
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -25,8 +25,8 @@
#define USBD_PRODUCT_STRING "FuryF4" #define USBD_PRODUCT_STRING "FuryF4"
#endif #endif
#define LED0 PB5 #define LED0_PIN PB5
#define LED1 PB4 #define LED1_PIN PB4
#define BEEPER PA8 #define BEEPER PA8
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -21,8 +21,8 @@
#define USBD_PRODUCT_STRING "FuryF7" #define USBD_PRODUCT_STRING "FuryF7"
#define LED0 PB5 #define LED0_PIN PB5
#define LED1 PB4 #define LED1_PIN PB4
#define BEEPER PD10 #define BEEPER PD10
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -21,7 +21,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB7 #define LED0_PIN PB7
#define BEEPER PC15 #define BEEPER PC15

View file

@ -21,7 +21,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#define USE_EXTI #define USE_EXTI
#define MPU_INT_EXTI PC13 #define MPU_INT_EXTI PC13

View file

@ -21,7 +21,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -20,9 +20,9 @@
#define USBD_PRODUCT_STRING "KakuteF4-V1" #define USBD_PRODUCT_STRING "KakuteF4-V1"
#define LED0 PB5 #define LED0_PIN PB5
#define LED1 PB4 #define LED1_PIN PB4
#define LED2 PB6 #define LED2_PIN PB6
#define BEEPER PC9 #define BEEPER PC9
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -29,7 +29,7 @@
#define ESCSERIAL_TIMER_TX_HARDWARE 6 #define ESCSERIAL_TIMER_TX_HARDWARE 6
#define REMAP_TIM17_DMA #define REMAP_TIM17_DMA
#define LED0 PB1 #define LED0_PIN PB1
#define BEEPER PB13 #define BEEPER PB13
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -32,11 +32,11 @@
#endif #endif
#if defined(PLUMF4) || defined(KIWIF4V2) #if defined(PLUMF4) || defined(KIWIF4V2)
#define LED0 PB4 #define LED0_PIN PB4
#else #else
#define LED0 PB5 #define LED0_PIN PB5
#define LED1 PB4 #define LED1_PIN PB4
#endif #endif
#define BEEPER PA8 #define BEEPER PA8

View file

@ -27,8 +27,8 @@
#define TARGET_CONFIG #define TARGET_CONFIG
#define TARGET_PREINIT #define TARGET_PREINIT
#define LED0 PA14 // Red LED #define LED0_PIN PA14 // Red LED
#define LED1 PA13 // Green LED #define LED1_PIN PA13 // Green LED
#define BEEPER PC1 #define BEEPER PC1

View file

@ -17,7 +17,7 @@
#define TARGET_BOARD_IDENTIFIER "MCF3" // LumbaF3 Flight Controller by mC #define TARGET_BOARD_IDENTIFIER "MCF3" // LumbaF3 Flight Controller by mC
#define LED0 PB3 #define LED0_PIN PB3
#define BEEPER PC15 #define BEEPER PC15
// MPU6000 interrupts // MPU6000 interrupts

View file

@ -26,10 +26,10 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define LED0 PC15 #define LED0_PIN PC15
#define LED1 PC14 #define LED1_PIN PC14
#ifndef LUXV2_RACE #ifndef LUXV2_RACE
#define LED2 PC13 #define LED2_PIN PC13
#endif #endif
#ifdef LUXV2_RACE #ifdef LUXV2_RACE

View file

@ -22,8 +22,8 @@
#define USBD_PRODUCT_STRING "MatekF4" #define USBD_PRODUCT_STRING "MatekF4"
#define LED0 PB9 #define LED0_PIN PB9
#define LED1 PA14 #define LED1_PIN PA14
#define BEEPER PC13 #define BEEPER PC13
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -19,8 +19,8 @@
#define TARGET_BOARD_IDENTIFIER "MSKY" // Micro sciSKY #define TARGET_BOARD_IDENTIFIER "MSKY" // Micro sciSKY
#define LED0 PB3 #define LED0_PIN PB3
#define LED1 PB4 #define LED1_PIN PB4
#define BEEPER PA12 #define BEEPER PA12

View file

@ -22,8 +22,8 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define TARGET_CONFIG #define TARGET_CONFIG
#define LED0 PB5 // Blue LEDs - PB5 #define LED0_PIN PB5 // Blue LEDs - PB5
//#define LED1 PB9 // Green LEDs - PB9 //#define LED1_PIN PB9 // Green LEDs - PB9
#define BEEPER PA0 #define BEEPER PA0
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -22,7 +22,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -26,8 +26,8 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define LED0 PB3 #define LED0_PIN PB3
#define LED1 PB4 #define LED1_PIN PB4
#define BEEPER PA12 #define BEEPER PA12

View file

@ -24,9 +24,9 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define LED0 PB6 #define LED0_PIN PB6
#define LED1 PB5 #define LED1_PIN PB5
#define LED2 PB4 #define LED2_PIN PB4
#define BEEPER PC1 #define BEEPER PC1
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -26,7 +26,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -33,8 +33,8 @@
#define USBD_SERIALNUMBER_STRING "0x8020000" // Remove this at the next major release (?) #define USBD_SERIALNUMBER_STRING "0x8020000" // Remove this at the next major release (?)
#endif #endif
#define LED0 PB5 #define LED0_PIN PB5
//#define LED1 PB4 // Remove this at the next major release //#define LED1_PIN PB4 // Remove this at the next major release
#define BEEPER PB4 #define BEEPER PB4
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -19,7 +19,7 @@
#define USBD_PRODUCT_STRING "OmnibusF7" #define USBD_PRODUCT_STRING "OmnibusF7"
#define LED0 PE0 #define LED0_PIN PE0
#define BEEPER PD15 #define BEEPER PD15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -21,10 +21,10 @@
#define USE_HARDWARE_REVISION_DETECTION #define USE_HARDWARE_REVISION_DETECTION
#define TARGET_CONFIG #define TARGET_CONFIG
#define LED0 PB3 #define LED0_PIN PB3
#define LED0_INVERTED #define LED0_INVERTED
#define LED1 PB4 #define LED1_PIN PB4
#define LED1_INVERTED #define LED1_INVERTED
#define BEEPER PA12 #define BEEPER PA12

View file

@ -21,8 +21,8 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB4 #define LED0_PIN PB4
#define LED1 PB5 #define LED1_PIN PB5
#define BEEPER PA0 #define BEEPER PA0
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -48,10 +48,10 @@
#endif #endif
#define LED0 PB5 #define LED0_PIN PB5
#if defined(PODIUMF4) #if defined(PODIUMF4)
#define LED1 PB4 #define LED1_PIN PB4
#define LED2 PB6 #define LED2_PIN PB6
#endif #endif
// Disable LED1, conflicts with AirbotF4/Flip32F4/Revolt beeper // Disable LED1, conflicts with AirbotF4/Flip32F4/Revolt beeper
@ -64,7 +64,7 @@
#define BEEPER PB6 #define BEEPER PB6
#define BEEPER_INVERTED #define BEEPER_INVERTED
#else #else
#define LED1 PB4 #define LED1_PIN PB4
// Leave beeper here but with none as io - so disabled unless mapped. // Leave beeper here but with none as io - so disabled unless mapped.
#define BEEPER NONE #define BEEPER NONE
#endif #endif

View file

@ -23,8 +23,8 @@
#define USBD_SERIALNUMBER_STRING "0x8010000" #define USBD_SERIALNUMBER_STRING "0x8010000"
#endif #endif
#define LED0 PC14 #define LED0_PIN PC14
#define LED1 PC13 #define LED1_PIN PC13
#define BEEPER PC13 #define BEEPER PC13

View file

@ -19,8 +19,8 @@
#define TARGET_BOARD_IDENTIFIER "RGF3" // rgSSD_F3 #define TARGET_BOARD_IDENTIFIER "RGF3" // rgSSD_F3
#define LED0 PC1 #define LED0_PIN PC1
#define LED1 PC0 #define LED1_PIN PC0
#define BEEPER PA8 #define BEEPER PA8
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -21,7 +21,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#define BEEPER PC15 #define BEEPER PC15

View file

@ -19,7 +19,7 @@
#define TARGET_BOARD_IDENTIFIER "SIRF" #define TARGET_BOARD_IDENTIFIER "SIRF"
#define LED0 PB2 #define LED0_PIN PB2
#define BEEPER PA1 #define BEEPER PA1

View file

@ -21,8 +21,8 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB4 // Blue (Rev 1 & 2) - PB4 #define LED0_PIN PB4 // Blue (Rev 1 & 2) - PB4
#define LED1 PB5 // Green (Rev 1) / Red (Rev 2) - PB5 #define LED1_PIN PB5 // Green (Rev 1) / Red (Rev 2) - PB5
#define BEEPER PA1 #define BEEPER PA1
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -23,9 +23,9 @@
#define USBD_SERIALNUMBER_STRING "0x8020000" #define USBD_SERIALNUMBER_STRING "0x8020000"
#endif #endif
#define LED0 PB5 #define LED0_PIN PB5
#define LED1 PB4 #define LED1_PIN PB4
#define LED2 PB6 #define LED2_PIN PB6
#define BEEPER PC9 #define BEEPER PC9
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -30,11 +30,11 @@
#if defined(ZCOREF3) #if defined(ZCOREF3)
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define LED0 PB8 #define LED0_PIN PB8
#else #else
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#endif #endif
#define BEEPER PC15 #define BEEPER PC15

View file

@ -46,7 +46,7 @@
#define BRUSHED_ESC_AUTODETECT #define BRUSHED_ESC_AUTODETECT
#define LED0 PB8 #define LED0_PIN PB8
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -22,7 +22,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define LED0 PB8 #define LED0_PIN PB8
#else #else
#define TARGET_BOARD_IDENTIFIER "SRFM" #define TARGET_BOARD_IDENTIFIER "SRFM"
@ -32,7 +32,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PB3 #define LED0_PIN PB3
#endif #endif
#define BEEPER PC15 #define BEEPER PC15

View file

@ -22,8 +22,8 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define LED0 PB9 #define LED0_PIN PB9
#define LED1 PB2 #define LED1_PIN PB2
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -22,7 +22,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
#define LED0 PA15 #define LED0_PIN PA15
#define USE_EXTI #define USE_EXTI

View file

@ -26,7 +26,7 @@
#define USBD_PRODUCT_STRING "SP Racing F4 NEO" #define USBD_PRODUCT_STRING "SP Racing F4 NEO"
#define LED0 PA0 #define LED0_PIN PA0
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -27,16 +27,16 @@
#define USBD_PRODUCT_STRING "SP Racing F4 NEO" #define USBD_PRODUCT_STRING "SP Racing F4 NEO"
#if (SPRACINGF4NEO_REV >= 3) #if (SPRACINGF4NEO_REV >= 3)
#define LED0 PA0 #define LED0_PIN PA0
#define LED1 PB1 #define LED1_PIN PB1
#endif #endif
#if (SPRACINGF4NEO_REV == 2) #if (SPRACINGF4NEO_REV == 2)
#define LED0 PB9 #define LED0_PIN PB9
#define LED1 PB2 #define LED1_PIN PB2
#endif #endif
#if (SPRACINGF4NEO_REV == 1) #if (SPRACINGF4NEO_REV == 1)
#define LED0 PB9 #define LED0_PIN PB9
#define LED1 PB2 #define LED1_PIN PB2
#endif #endif
#define BEEPER PC15 #define BEEPER PC15

View file

@ -31,9 +31,9 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PE8 // Blue LEDs - PE8/PE12 #define LED0_PIN PE8 // Blue LEDs - PE8/PE12
#define LED0_INVERTED #define LED0_INVERTED
#define LED1 PE10 // Orange LEDs - PE10/PE14 #define LED1_PIN PE10 // Orange LEDs - PE10/PE14
#define LED1_INVERTED #define LED1_INVERTED
#define BEEPER PD12 #define BEEPER PD12

View file

@ -22,8 +22,8 @@
#define TARGET_BOARD_IDENTIFIER "TFSH" // http://fishpepper.de/projects/tinyFISH #define TARGET_BOARD_IDENTIFIER "TFSH" // http://fishpepper.de/projects/tinyFISH
#define LED0 PC14 #define LED0_PIN PC14
#define LED1 PA13 #define LED1_PIN PA13
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -22,7 +22,7 @@
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
#define LED0 PC14 #define LED0_PIN PC14
#define BEEPER PC15 #define BEEPER PC15
#define BEEPER_INVERTED #define BEEPER_INVERTED

View file

@ -21,9 +21,9 @@
#define USBD_PRODUCT_STRING "YupiF4" #define USBD_PRODUCT_STRING "YupiF4"
#define LED0 PB6 #define LED0_PIN PB6
#define LED1 PB4 #define LED1_PIN PB4
#define LED2 PB5 #define LED2_PIN PB5
#define BEEPER PC9 #define BEEPER PC9
#define BEEPER_PWM_HZ 2200 // Beeper PWM frequency in Hz #define BEEPER_PWM_HZ 2200 // Beeper PWM frequency in Hz