Skip to content

Commit

Permalink
FIX CONFIG: PIN IO CONFIG, PIN IO BOX (betaflight#12467)
Browse files Browse the repository at this point in the history
  • Loading branch information
blckmn authored and davidbitton committed Feb 5, 2024
1 parent 8fc578e commit 1358a7d
Show file tree
Hide file tree
Showing 122 changed files with 313 additions and 216 deletions.
5 changes: 4 additions & 1 deletion src/config/AIKONF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,7 @@
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG
//TODO #define PINIO_BOX 40,0,0,0
#define PINIO1_BOX 40
#define PINIO2_BOX 0
#define PINIO3_BOX 0
#define PINIO4_BOX 0
3 changes: 1 addition & 2 deletions src/config/AIRF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@
#define DEFAULT_CURRENT_METER_SCALE 179
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI3
//TODO #define PINIO_BOX 40,255,255,255
//TODO #define PINIO_CONFIG 1,1,1,1
#define PINIO1_BOX 40
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/AOCODARCH7DUAL/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
#define DEFAULT_CURRENT_METER_SCALE 500
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
6 changes: 4 additions & 2 deletions src/config/APEXF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,129,1,1
//TODO #define PINIO_BOX 0,40,255,255
#define PINIO1_CONFIG 129
#define PINIO2_CONFIG 129
#define PINIO1_BOX 0
#define PINIO2_BOX 40
#define FLASH_SPI_INSTANCE SPI1
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI3
Expand Down
4 changes: 2 additions & 2 deletions src/config/ARESF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
#define BEEPER_INVERTED
//TODO #define OSD_CRAFT_NAME_POS 2048
#define MAX7456_SPI_INSTANCE SPI3
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 40
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/AXISFLYINGF7PRO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
#define DEFAULT_CURRENT_METER_SCALE 200
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
3 changes: 2 additions & 1 deletion src/config/BETAFPVH743/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
#define DEFAULT_CURRENT_METER_SCALE 350
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI3
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 1 addition & 2 deletions src/config/CLRACINGF4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@

#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
//TODO #define PINIO_CONFIG 1,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_BOX 40
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 250
Expand Down
4 changes: 1 addition & 3 deletions src/config/CLRACINGF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,12 @@
#define USE_SDCARD_SPI
#define SDCARD_SPI_INSTANCE SPI2
#define MAX7456_SPI_INSTANCE SPI3
//TODO #define PINIO_BOX 39,255,255,255
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_2_SPI_INSTANCE SPI1
#define GYRO_2_ALIGN CW90_DEG
#define GYRO_2_ALIGN_YAW 900
//TODO #define GYRO_TO_USE BOTH
//TODO #define PINIO_CONFIG 1,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_BOX 40
//TODO #define MCO2_ON_PC9 ON
3 changes: 2 additions & 1 deletion src/config/CRAZYBEEF4SX1280/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@
#define BEEPER_INVERTED
#define SYSTEM_HSE_MHZ 8
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
4 changes: 2 additions & 2 deletions src/config/CYCLONEF405_PRO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
#define BEEPER_INVERTED
//TODO #define OSD_DISPLAYPORT_DEVICE MAX7456
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 0,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 0
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
4 changes: 2 additions & 2 deletions src/config/CYCLONEF722_PRO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
#define BEEPER_INVERTED
//TODO #define OSD_DISPLAYPORT_DEVICE MAX7456
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 0,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 0
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
4 changes: 2 additions & 2 deletions src/config/DAKEFPVF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 40
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
4 changes: 2 additions & 2 deletions src/config/DAKEFPVF411/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define BEEPER_INVERTED
#define SYSTEM_HSE_MHZ 8
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 40
#define MAX7456_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
4 changes: 2 additions & 2 deletions src/config/DAKEFPVF722/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 40
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/DARWINF722HD/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
#define BEEPER_INVERTED
//TODO #define OSD_WARN_CORE_TEMP OFF
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
4 changes: 2 additions & 2 deletions src/config/DFR_F722_DUAL_HD/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
#define DEFAULT_CURRENT_METER_SCALE 100
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 0,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 0
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 1 addition & 2 deletions src/config/DRONIUSF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,4 @@
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG_FLIP
#define GYRO_1_ALIGN_PITCH 1800
//TODO #define PINIO_CONFIG 1,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_BOX 40
3 changes: 2 additions & 1 deletion src/config/EACHINEF722/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,5 @@
#define GYRO_1_ALIGN CW180_DEG_FLIP
#define GYRO_1_ALIGN_PITCH 1800
#define GYRO_1_ALIGN_YAW 1800
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
3 changes: 2 additions & 1 deletion src/config/EACHINEF722_AIO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,5 @@
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_YAW 1800
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
3 changes: 2 additions & 1 deletion src/config/ELINF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
//TODO #define VCD_VIDEO_SYSTEM NTSC
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define DASHBOARD_I2C_BUS 1
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/ELINF722/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
//TODO #define OSD_WARNINGS_POS 2377
//TODO #define VCD_VIDEO_SYSTEM NTSC
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
2 changes: 1 addition & 1 deletion src/config/EXUAVF4PRO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
#define SYSTEM_HSE_MHZ 8
#define MAX7456_SPI_INSTANCE SPI3
//TODO #define DASHBOARD_I2C_BUS 2
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_BOX 40
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
5 changes: 3 additions & 2 deletions src/config/FF_RACEPIT/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@

#define ESCSERIAL_PIN PB0

//TODO #define PINIO_CONFIG 1,129,1,1
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO2_CONFIG 129
#define PINIO1_BOX 40
#define PINIO2_BOX 41
//TODO #define TLM_HALFDUPLEX OFF
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define USE_ADC
Expand Down
2 changes: 1 addition & 1 deletion src/config/FF_RACEPITF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
#define DEFAULT_CURRENT_METER_SCALE 170
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_BOX 40
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
2 changes: 1 addition & 1 deletion src/config/FF_RACEPITF7_MINI/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
#define DEFAULT_CURRENT_METER_SCALE 170
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_BOX 40
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
5 changes: 3 additions & 2 deletions src/config/FF_RACEPIT_MINI/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@

#define ESCSERIAL_PIN PB0

//TODO #define PINIO_CONFIG 1,129,1,1
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO2_CONFIG 129
#define PINIO1_BOX 40
#define PINIO2_BOX 41
//TODO #define TLM_HALFDUPLEX OFF
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define USE_ADC
Expand Down
3 changes: 2 additions & 1 deletion src/config/FLYCOLORF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
#define BEEPER_INVERTED
//TODO #define PID_PROCESS_DENOM 4
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/FLYCOLORF7_AIO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
#define DEFAULT_CURRENT_METER_SCALE 450
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/FLYWOOF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
#define BEEPER_INVERTED
#define SYSTEM_HSE_MHZ 8
#define MAX7456_SPI_INSTANCE SPI3
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
//TODO #define DASHBOARD_I2C_BUS 1
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
Expand Down
3 changes: 2 additions & 1 deletion src/config/FLYWOOF411/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@
#define BEEPER_INVERTED
#define SYSTEM_HSE_MHZ 8
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/FLYWOOF7DUAL/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
#define DEFAULT_CURRENT_METER_SCALE 170
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
3 changes: 2 additions & 1 deletion src/config/GEPRCF722/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
#define BEEPER_INVERTED
//TODO #define GPS_PROVIDER UBLOX
#define MAX7456_SPI_INSTANCE SPI1
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI3
Expand Down
4 changes: 2 additions & 2 deletions src/config/GEPRCF722BT/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 0,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 0
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
7 changes: 5 additions & 2 deletions src/config/GEPRCF722_BT_HD/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,11 @@
#define USE_SDCARD_SPI
#define SDCARD_SPI_INSTANCE SPI3
#define MAX7456_SPI_INSTANCE SPI2
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 0,40,41,42
#define PINIO1_CONFIG 129
#define PINIO1_BOX 0
#define PINIO2_BOX 40
#define PINIO3_BOX 41
#define PINIO4_BOX 42
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
Expand Down
7 changes: 5 additions & 2 deletions src/config/GEPRCF745_BT_HD/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@
#define BEEPER_INVERTED
#define USE_SDCARD_SPI
#define SDCARD_SPI_INSTANCE SPI3
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 0,40,41,42
#define PINIO1_CONFIG 129
#define PINIO1_BOX 0
#define PINIO2_BOX 40
#define PINIO3_BOX 41
#define PINIO4_BOX 42
#define FLASH_SPI_INSTANCE SPI3
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
Expand Down
4 changes: 2 additions & 2 deletions src/config/GRAVITYF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG_FLIP
#define GYRO_1_ALIGN_PITCH 1800
//TODO #define PINIO_CONFIG 129,1,1,1
//TODO #define PINIO_BOX 40,255,255,255
#define PINIO1_CONFIG 129
#define PINIO1_BOX 40
4 changes: 2 additions & 2 deletions src/config/HAKRCF405D/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
#define FLASH_SPI_INSTANCE SPI3
#define SYSTEM_HSE_MHZ 8
#define DEFAULT_CURRENT_METER_SCALE 179
//TODO #define PINIO_CONFIG 1,1,1,1
//TODO #define PINIO_BOX 40,41,255,255
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
Expand Down

0 comments on commit 1358a7d

Please sign in to comment.