diff --git a/src/config/AIKONF7/config.h b/src/config/AIKONF7/config.h index 802cb9f875..f9b12a7405 100644 --- a/src/config/AIKONF7/config.h +++ b/src/config/AIKONF7/config.h @@ -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 diff --git a/src/config/AIRF7/config.h b/src/config/AIRF7/config.h index 80913a0e87..9715507507 100644 --- a/src/config/AIRF7/config.h +++ b/src/config/AIRF7/config.h @@ -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 diff --git a/src/config/AOCODARCH7DUAL/config.h b/src/config/AOCODARCH7DUAL/config.h index 7e3a60993f..cf4ad5f131 100644 --- a/src/config/AOCODARCH7DUAL/config.h +++ b/src/config/AOCODARCH7DUAL/config.h @@ -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 diff --git a/src/config/APEXF7/config.h b/src/config/APEXF7/config.h index 2c8b0ac569..9eb5757a8b 100644 --- a/src/config/APEXF7/config.h +++ b/src/config/APEXF7/config.h @@ -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 diff --git a/src/config/ARESF7/config.h b/src/config/ARESF7/config.h index 925fe4ab91..87bf2e428c 100644 --- a/src/config/ARESF7/config.h +++ b/src/config/ARESF7/config.h @@ -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 diff --git a/src/config/AXISFLYINGF7PRO/config.h b/src/config/AXISFLYINGF7PRO/config.h index e3290e370a..9b38c53b88 100644 --- a/src/config/AXISFLYINGF7PRO/config.h +++ b/src/config/AXISFLYINGF7PRO/config.h @@ -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 diff --git a/src/config/BETAFPVH743/config.h b/src/config/BETAFPVH743/config.h index 0aca41181c..bb429a77f8 100644 --- a/src/config/BETAFPVH743/config.h +++ b/src/config/BETAFPVH743/config.h @@ -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 diff --git a/src/config/CLRACINGF4/config.h b/src/config/CLRACINGF4/config.h index b1264cfca5..f07bde2181 100644 --- a/src/config/CLRACINGF4/config.h +++ b/src/config/CLRACINGF4/config.h @@ -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 diff --git a/src/config/CLRACINGF7/config.h b/src/config/CLRACINGF7/config.h index 5893cde7a2..b936826748 100644 --- a/src/config/CLRACINGF7/config.h +++ b/src/config/CLRACINGF7/config.h @@ -122,7 +122,6 @@ #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 @@ -130,6 +129,5 @@ #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 diff --git a/src/config/CRAZYBEEF4SX1280/config.h b/src/config/CRAZYBEEF4SX1280/config.h index feba738d6d..eb40f6d641 100644 --- a/src/config/CRAZYBEEF4SX1280/config.h +++ b/src/config/CRAZYBEEF4SX1280/config.h @@ -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 diff --git a/src/config/CYCLONEF405_PRO/config.h b/src/config/CYCLONEF405_PRO/config.h index b8e720e007..dbe848a5ac 100644 --- a/src/config/CYCLONEF405_PRO/config.h +++ b/src/config/CYCLONEF405_PRO/config.h @@ -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 diff --git a/src/config/CYCLONEF722_PRO/config.h b/src/config/CYCLONEF722_PRO/config.h index ee716175ed..5013511db8 100644 --- a/src/config/CYCLONEF722_PRO/config.h +++ b/src/config/CYCLONEF722_PRO/config.h @@ -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 diff --git a/src/config/DAKEFPVF405/config.h b/src/config/DAKEFPVF405/config.h index e342d159eb..eeb888f45f 100644 --- a/src/config/DAKEFPVF405/config.h +++ b/src/config/DAKEFPVF405/config.h @@ -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 diff --git a/src/config/DAKEFPVF411/config.h b/src/config/DAKEFPVF411/config.h index 24f30298f8..75313a6104 100644 --- a/src/config/DAKEFPVF411/config.h +++ b/src/config/DAKEFPVF411/config.h @@ -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 diff --git a/src/config/DAKEFPVF722/config.h b/src/config/DAKEFPVF722/config.h index 1deea32dd7..281d156bf1 100644 --- a/src/config/DAKEFPVF722/config.h +++ b/src/config/DAKEFPVF722/config.h @@ -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 diff --git a/src/config/DARWINF722HD/config.h b/src/config/DARWINF722HD/config.h index 469fe24da4..a1cb734667 100644 --- a/src/config/DARWINF722HD/config.h +++ b/src/config/DARWINF722HD/config.h @@ -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 diff --git a/src/config/DFR_F722_DUAL_HD/config.h b/src/config/DFR_F722_DUAL_HD/config.h index b1fdb3469c..fe9248c47b 100644 --- a/src/config/DFR_F722_DUAL_HD/config.h +++ b/src/config/DFR_F722_DUAL_HD/config.h @@ -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 diff --git a/src/config/DRONIUSF7/config.h b/src/config/DRONIUSF7/config.h index 3cea7dc7c4..5fbd56e141 100644 --- a/src/config/DRONIUSF7/config.h +++ b/src/config/DRONIUSF7/config.h @@ -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 diff --git a/src/config/EACHINEF722/config.h b/src/config/EACHINEF722/config.h index 7af5ddf568..09dd2f8583 100644 --- a/src/config/EACHINEF722/config.h +++ b/src/config/EACHINEF722/config.h @@ -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 diff --git a/src/config/EACHINEF722_AIO/config.h b/src/config/EACHINEF722_AIO/config.h index 344246ac2a..7a15eca012 100644 --- a/src/config/EACHINEF722_AIO/config.h +++ b/src/config/EACHINEF722_AIO/config.h @@ -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 diff --git a/src/config/ELINF405/config.h b/src/config/ELINF405/config.h index 1fd2caabec..cc9a77d6e6 100644 --- a/src/config/ELINF405/config.h +++ b/src/config/ELINF405/config.h @@ -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 diff --git a/src/config/ELINF722/config.h b/src/config/ELINF722/config.h index 80d468c2c5..c454e8fe98 100644 --- a/src/config/ELINF722/config.h +++ b/src/config/ELINF722/config.h @@ -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 diff --git a/src/config/EXUAVF4PRO/config.h b/src/config/EXUAVF4PRO/config.h index b3b9369612..ad8e98f380 100644 --- a/src/config/EXUAVF4PRO/config.h +++ b/src/config/EXUAVF4PRO/config.h @@ -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 diff --git a/src/config/FF_RACEPIT/config.h b/src/config/FF_RACEPIT/config.h index cebd876eee..57ee0ff1d0 100644 --- a/src/config/FF_RACEPIT/config.h +++ b/src/config/FF_RACEPIT/config.h @@ -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 diff --git a/src/config/FF_RACEPITF7/config.h b/src/config/FF_RACEPITF7/config.h index c800147bb9..0456e1af5f 100644 --- a/src/config/FF_RACEPITF7/config.h +++ b/src/config/FF_RACEPITF7/config.h @@ -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 diff --git a/src/config/FF_RACEPITF7_MINI/config.h b/src/config/FF_RACEPITF7_MINI/config.h index 565e33afbf..af67f56bee 100644 --- a/src/config/FF_RACEPITF7_MINI/config.h +++ b/src/config/FF_RACEPITF7_MINI/config.h @@ -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 diff --git a/src/config/FF_RACEPIT_MINI/config.h b/src/config/FF_RACEPIT_MINI/config.h index e31423823e..5d6f38b124 100644 --- a/src/config/FF_RACEPIT_MINI/config.h +++ b/src/config/FF_RACEPIT_MINI/config.h @@ -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 diff --git a/src/config/FLYCOLORF7/config.h b/src/config/FLYCOLORF7/config.h index cfcb295654..a174390016 100644 --- a/src/config/FLYCOLORF7/config.h +++ b/src/config/FLYCOLORF7/config.h @@ -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 diff --git a/src/config/FLYCOLORF7_AIO/config.h b/src/config/FLYCOLORF7_AIO/config.h index 9fe12c9e9e..599ba75d10 100644 --- a/src/config/FLYCOLORF7_AIO/config.h +++ b/src/config/FLYCOLORF7_AIO/config.h @@ -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 diff --git a/src/config/FLYWOOF405/config.h b/src/config/FLYWOOF405/config.h index fc1e2484d3..47cb02193d 100644 --- a/src/config/FLYWOOF405/config.h +++ b/src/config/FLYWOOF405/config.h @@ -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 diff --git a/src/config/FLYWOOF411/config.h b/src/config/FLYWOOF411/config.h index 1491eba3a7..20f811db10 100644 --- a/src/config/FLYWOOF411/config.h +++ b/src/config/FLYWOOF411/config.h @@ -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 diff --git a/src/config/FLYWOOF7DUAL/config.h b/src/config/FLYWOOF7DUAL/config.h index 7f8f8993ba..e10d621846 100644 --- a/src/config/FLYWOOF7DUAL/config.h +++ b/src/config/FLYWOOF7DUAL/config.h @@ -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 diff --git a/src/config/GEPRCF722/config.h b/src/config/GEPRCF722/config.h index 0e23876480..79a9aca4b3 100644 --- a/src/config/GEPRCF722/config.h +++ b/src/config/GEPRCF722/config.h @@ -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 diff --git a/src/config/GEPRCF722BT/config.h b/src/config/GEPRCF722BT/config.h index 1ddd40f0c7..26f4332bed 100644 --- a/src/config/GEPRCF722BT/config.h +++ b/src/config/GEPRCF722BT/config.h @@ -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 diff --git a/src/config/GEPRCF722_BT_HD/config.h b/src/config/GEPRCF722_BT_HD/config.h index 1b4fe40747..e687941490 100644 --- a/src/config/GEPRCF722_BT_HD/config.h +++ b/src/config/GEPRCF722_BT_HD/config.h @@ -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 diff --git a/src/config/GEPRCF745_BT_HD/config.h b/src/config/GEPRCF745_BT_HD/config.h index 641503f6a6..71ba2c3d2a 100644 --- a/src/config/GEPRCF745_BT_HD/config.h +++ b/src/config/GEPRCF745_BT_HD/config.h @@ -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 diff --git a/src/config/GRAVITYF7/config.h b/src/config/GRAVITYF7/config.h index 831d147b5e..096a38a41d 100644 --- a/src/config/GRAVITYF7/config.h +++ b/src/config/GRAVITYF7/config.h @@ -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 diff --git a/src/config/HAKRCF405D/config.h b/src/config/HAKRCF405D/config.h index 9ef1671952..32b2286068 100644 --- a/src/config/HAKRCF405D/config.h +++ b/src/config/HAKRCF405D/config.h @@ -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 diff --git a/src/config/HAKRCF405V2/config.h b/src/config/HAKRCF405V2/config.h index 9566580dff..a02e21667c 100644 --- a/src/config/HAKRCF405V2/config.h +++ b/src/config/HAKRCF405V2/config.h @@ -110,8 +110,8 @@ #define DEFAULT_CURRENT_METER_SCALE 100 #define MAX7456_SPI_INSTANCE SPI2 #define FLASH_SPI_INSTANCE SPI3 -//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 CW90_DEG diff --git a/src/config/HAKRCF411D/config.h b/src/config/HAKRCF411D/config.h index 70e5ce89a6..714da81f23 100644 --- a/src/config/HAKRCF411D/config.h +++ b/src/config/HAKRCF411D/config.h @@ -98,8 +98,8 @@ //TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define MAX7456_SPI_INSTANCE SPI2 -//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 FLASH_SPI_INSTANCE SPI2 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/HAKRCF722D/config.h b/src/config/HAKRCF722D/config.h index ae3ee691c1..cfd4cd6301 100644 --- a/src/config/HAKRCF722D/config.h +++ b/src/config/HAKRCF722D/config.h @@ -121,8 +121,8 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED #define MAX7456_SPI_INSTANCE SPI2 -//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 FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/HAKRCF722MINI/config.h b/src/config/HAKRCF722MINI/config.h index b54ad17e95..674704e488 100644 --- a/src/config/HAKRCF722MINI/config.h +++ b/src/config/HAKRCF722MINI/config.h @@ -117,7 +117,8 @@ #define DEFAULT_CURRENT_METER_SCALE 179 #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 diff --git a/src/config/HAKRCF722V2/config.h b/src/config/HAKRCF722V2/config.h index 65e5e33caa..57e721bd89 100644 --- a/src/config/HAKRCF722V2/config.h +++ b/src/config/HAKRCF722V2/config.h @@ -111,8 +111,10 @@ #define DEFAULT_CURRENT_METER_SCALE 250 #define BEEPER_INVERTED #define MAX7456_SPI_INSTANCE SPI2 -//TODO #define PINIO_CONFIG 129,129,1,1 -//TODO #define PINIO_BOX 40,41,255,255 +#define PINIO1_CONFIG 129 +#define PINIO2_CONFIG 129 +#define PINIO1_BOX 40 +#define PINIO2_BOX 41 #define FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/HAKRCF7230D/config.h b/src/config/HAKRCF7230D/config.h index 6553e4e50b..7e9a552648 100644 --- a/src/config/HAKRCF7230D/config.h +++ b/src/config/HAKRCF7230D/config.h @@ -116,8 +116,8 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED #define MAX7456_SPI_INSTANCE SPI2 -//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 FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/HGLRCF722/config.h b/src/config/HGLRCF722/config.h index d10ecc46b1..411f95799e 100644 --- a/src/config/HGLRCF722/config.h +++ b/src/config/HGLRCF722/config.h @@ -121,4 +121,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 diff --git a/src/config/HGLRCF722E/config.h b/src/config/HGLRCF722E/config.h index 83f6338ce4..f1b0e7f6d5 100644 --- a/src/config/HGLRCF722E/config.h +++ b/src/config/HGLRCF722E/config.h @@ -117,4 +117,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 diff --git a/src/config/HIFIONRCF7/config.h b/src/config/HIFIONRCF7/config.h index c3b14186af..ed48cfe1fa 100644 --- a/src/config/HIFIONRCF7/config.h +++ b/src/config/HIFIONRCF7/config.h @@ -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 diff --git a/src/config/IFLIGHT_BLITZ_F722_X1/config.h b/src/config/IFLIGHT_BLITZ_F722_X1/config.h index 26dc0c0ced..aaa35b5920 100644 --- a/src/config/IFLIGHT_BLITZ_F722_X1/config.h +++ b/src/config/IFLIGHT_BLITZ_F722_X1/config.h @@ -105,7 +105,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 diff --git a/src/config/IFLIGHT_BLITZ_F7_PRO/config.h b/src/config/IFLIGHT_BLITZ_F7_PRO/config.h index bfef661034..a077fc961a 100644 --- a/src/config/IFLIGHT_BLITZ_F7_PRO/config.h +++ b/src/config/IFLIGHT_BLITZ_F7_PRO/config.h @@ -105,8 +105,7 @@ #define USE_SDCARD_SPI #define SDCARD_SPI_INSTANCE SPI3 #define MAX7456_SPI_INSTANCE SPI2 -//TODO #define PINIO_CONFIG 1,1,1,1 -//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 diff --git a/src/config/IFLIGHT_F405_AIO/config.h b/src/config/IFLIGHT_F405_AIO/config.h index b0d94c7025..e392aa0385 100644 --- a/src/config/IFLIGHT_F405_AIO/config.h +++ b/src/config/IFLIGHT_F405_AIO/config.h @@ -94,7 +94,8 @@ #define SYSTEM_HSE_MHZ 8 #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 diff --git a/src/config/IFLIGHT_F405_TWING/config.h b/src/config/IFLIGHT_F405_TWING/config.h index ff3e0b8ee5..1cbdbdd851 100644 --- a/src/config/IFLIGHT_F405_TWING/config.h +++ b/src/config/IFLIGHT_F405_TWING/config.h @@ -107,7 +107,8 @@ #define SYSTEM_HSE_MHZ 8 #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 diff --git a/src/config/IFLIGHT_F722_TWING/config.h b/src/config/IFLIGHT_F722_TWING/config.h index 30e49e54ec..ad45dadc87 100644 --- a/src/config/IFLIGHT_F722_TWING/config.h +++ b/src/config/IFLIGHT_F722_TWING/config.h @@ -116,8 +116,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 diff --git a/src/config/IFLIGHT_SUCCEX_E_F7/config.h b/src/config/IFLIGHT_SUCCEX_E_F7/config.h index d580fdd1f1..c5472de5d8 100644 --- a/src/config/IFLIGHT_SUCCEX_E_F7/config.h +++ b/src/config/IFLIGHT_SUCCEX_E_F7/config.h @@ -110,8 +110,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 diff --git a/src/config/JBF7/config.h b/src/config/JBF7/config.h index 16534953e9..e3616f8a2f 100644 --- a/src/config/JBF7/config.h +++ b/src/config/JBF7/config.h @@ -155,8 +155,8 @@ //TODO #define OSD_ESC_RPM_POS 83 //TODO #define OSD_STAT_MAX_SPD OFF #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 diff --git a/src/config/JBF7_DJI/config.h b/src/config/JBF7_DJI/config.h index 744edfef9a..320a51630b 100644 --- a/src/config/JBF7_DJI/config.h +++ b/src/config/JBF7_DJI/config.h @@ -129,8 +129,8 @@ //TODO #define OSD_AVG_CELL_VOLTAGE_POS 2516 //TODO #define OSD_DISARMED_POS 2284 #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 diff --git a/src/config/JBF7_V2/config.h b/src/config/JBF7_V2/config.h index 78f9938b04..b1bd4568ed 100644 --- a/src/config/JBF7_V2/config.h +++ b/src/config/JBF7_V2/config.h @@ -110,8 +110,8 @@ #define SDCARD_SPI_INSTANCE SPI3 //TODO #define OSD_VBAT_POS 2433 #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 diff --git a/src/config/JHEF7DUAL/config.h b/src/config/JHEF7DUAL/config.h index 9ff871047f..6472f9958c 100644 --- a/src/config/JHEF7DUAL/config.h +++ b/src/config/JHEF7DUAL/config.h @@ -109,7 +109,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 diff --git a/src/config/KAKUTEH7/config.h b/src/config/KAKUTEH7/config.h index 497f9a8fec..a509706ec8 100644 --- a/src/config/KAKUTEH7/config.h +++ b/src/config/KAKUTEH7/config.h @@ -118,8 +118,8 @@ #define SDCARD_SPI_INSTANCE SPI1 #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DASHBOARD_I2C_BUS 1 -//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 USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI4 #define GYRO_1_ALIGN CW270_DEG diff --git a/src/config/KAKUTEH7MINI/config.h b/src/config/KAKUTEH7MINI/config.h index fe6d8fab25..48f4cf67d4 100644 --- a/src/config/KAKUTEH7MINI/config.h +++ b/src/config/KAKUTEH7MINI/config.h @@ -118,8 +118,8 @@ #define FLASH_SPI_INSTANCE SPI1 #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DASHBOARD_I2C_BUS 1 -//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 USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI4 #define GYRO_1_ALIGN CW270_DEG diff --git a/src/config/KAKUTEH7V2/config.h b/src/config/KAKUTEH7V2/config.h index f99900ccb1..7422378672 100644 --- a/src/config/KAKUTEH7V2/config.h +++ b/src/config/KAKUTEH7V2/config.h @@ -116,7 +116,9 @@ #define FLASH_SPI_INSTANCE SPI1 #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DASHBOARD_I2C_BUS 1 -//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 USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI4 diff --git a/src/config/KD722/config.h b/src/config/KD722/config.h index a1eae7225b..c9e3fd50f7 100644 --- a/src/config/KD722/config.h +++ b/src/config/KD722/config.h @@ -97,8 +97,8 @@ #define DEFAULT_CURRENT_METER_SCALE 250 #define BEEPER_INVERTED #define MAX7456_SPI_INSTANCE SPI2 -//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 FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/LUXAIO/config.h b/src/config/LUXAIO/config.h index e0b64bac2b..b7be87d7a6 100644 --- a/src/config/LUXAIO/config.h +++ b/src/config/LUXAIO/config.h @@ -96,5 +96,5 @@ #define GYRO_1_ALIGN CW90_DEG_FLIP #define GYRO_1_ALIGN_PITCH 1800 #define GYRO_1_ALIGN_YAW 900 -//TODO #define PINIO_CONFIG 1,129,1,1 -//TODO #define PINIO_BOX 255,40,255,255 +#define PINIO2_CONFIG 129 +#define PINIO2_BOX 40 diff --git a/src/config/LUXMINIF7/config.h b/src/config/LUXMINIF7/config.h index a0ae74b884..8be2ef16d4 100644 --- a/src/config/LUXMINIF7/config.h +++ b/src/config/LUXMINIF7/config.h @@ -91,8 +91,8 @@ #define DEFAULT_CURRENT_METER_SCALE 179 #define BEEPER_INVERTED #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 diff --git a/src/config/MAMBAF405US/config.h b/src/config/MAMBAF405US/config.h index 59b746cb87..6137fc8daa 100644 --- a/src/config/MAMBAF405US/config.h +++ b/src/config/MAMBAF405US/config.h @@ -119,7 +119,7 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define PINIO_BOX 0,255,255,255 -//TODO #define PINIO_CONFIG 129,1,1,1 +#define PINIO1_BOX 0 +#define PINIO1_CONFIG 129 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/src/config/MAMBAF405US_I2C/config.h b/src/config/MAMBAF405US_I2C/config.h index 1696eda2a7..550194bba1 100644 --- a/src/config/MAMBAF405US_I2C/config.h +++ b/src/config/MAMBAF405US_I2C/config.h @@ -120,7 +120,7 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define PINIO_BOX 0,255,255,255 -//TODO #define PINIO_CONFIG 129,1,1,1 +#define PINIO1_BOX 0 +#define PINIO1_CONFIG 129 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/src/config/MAMBAF405_2022A/config.h b/src/config/MAMBAF405_2022A/config.h index 6153fa5a7e..72e6f7242f 100644 --- a/src/config/MAMBAF405_2022A/config.h +++ b/src/config/MAMBAF405_2022A/config.h @@ -110,8 +110,10 @@ #define BEEPER_INVERTED //TODO #define OSD_DISPLAYPORT_DEVICE MAX7456 #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 SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/MAMBAF405_2022B/config.h b/src/config/MAMBAF405_2022B/config.h index aa44166bdc..a3b31742d8 100644 --- a/src/config/MAMBAF405_2022B/config.h +++ b/src/config/MAMBAF405_2022B/config.h @@ -110,8 +110,10 @@ #define BEEPER_INVERTED //TODO #define OSD_DISPLAYPORT_DEVICE MAX7456 #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 SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/MAMBAF722/config.h b/src/config/MAMBAF722/config.h index 06a414f03a..020bf1fcf9 100644 --- a/src/config/MAMBAF722/config.h +++ b/src/config/MAMBAF722/config.h @@ -115,7 +115,7 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define PINIO_BOX 0,255,255,255 -//TODO #define PINIO_CONFIG 129,1,1,1 +#define PINIO1_BOX 0 +#define PINIO1_CONFIG 129 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/src/config/MAMBAF722_2022A/config.h b/src/config/MAMBAF722_2022A/config.h index d78eaaab0a..e7b3984d30 100644 --- a/src/config/MAMBAF722_2022A/config.h +++ b/src/config/MAMBAF722_2022A/config.h @@ -108,8 +108,10 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 115 #define BEEPER_INVERTED -//TODO #define PINIO_BOX 0,40,255,255 -//TODO #define PINIO_CONFIG 129,129,1,1 +#define PINIO1_BOX 0 +#define PINIO2_BOX 40 +#define PINIO1_CONFIG 129 +#define PINIO2_CONFIG 129 //TODO #define BEEPER_OD OFF #define MAX7456_SPI_INSTANCE SPI2 #define FLASH_SPI_INSTANCE SPI3 diff --git a/src/config/MAMBAF722_2022B/config.h b/src/config/MAMBAF722_2022B/config.h index 2d62433aa1..d0bc9a14ea 100644 --- a/src/config/MAMBAF722_2022B/config.h +++ b/src/config/MAMBAF722_2022B/config.h @@ -111,8 +111,10 @@ #define DEFAULT_CURRENT_METER_SCALE 115 #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 SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/MAMBAF722_I2C/config.h b/src/config/MAMBAF722_I2C/config.h index d414384571..4c7f82ebcd 100644 --- a/src/config/MAMBAF722_I2C/config.h +++ b/src/config/MAMBAF722_I2C/config.h @@ -119,7 +119,7 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define PINIO_BOX 0,255,255,255 -//TODO #define PINIO_CONFIG 129,1,1,1 +#define PINIO1_BOX 0 +#define PINIO1_CONFIG 129 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/src/config/MAMBAH743/config.h b/src/config/MAMBAH743/config.h index 9bb7a95061..20bc2e0566 100644 --- a/src/config/MAMBAH743/config.h +++ b/src/config/MAMBAH743/config.h @@ -130,8 +130,8 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_VOLTAGE_METER_SCALE 110 #define DEFAULT_CURRENT_METER_SCALE 400 -//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 USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_1_ALIGN CW180_DEG diff --git a/src/config/MATEKF405TE/config.h b/src/config/MATEKF405TE/config.h index 501387c25c..4f2a4ea90f 100644 --- a/src/config/MATEKF405TE/config.h +++ b/src/config/MATEKF405TE/config.h @@ -115,7 +115,8 @@ #define SYSTEM_HSE_MHZ 8 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #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 SPI1 diff --git a/src/config/MATEKF405TEMINI/config.h b/src/config/MATEKF405TEMINI/config.h index 4bef5a23b9..00690674bc 100644 --- a/src/config/MATEKF405TEMINI/config.h +++ b/src/config/MATEKF405TEMINI/config.h @@ -115,11 +115,13 @@ #define DEFAULT_VOLTAGE_METER_SCALE 210 #define DEFAULT_CURRENT_METER_SCALE 150 #define BEEPER_INVERTED +#define PINIO1_BOX 40 +#define PINIO2_BOX 41 #define SYSTEM_HSE_MHZ 8 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define MAX7456_SPI_INSTANCE SPI1 -//TODO #define PINIO_BOX 40,41,255,255 #define FLASH_SPI_INSTANCE SPI2 + #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_1_ALIGN CW270_DEG_FLIP diff --git a/src/config/MATEKF411SE/config.h b/src/config/MATEKF411SE/config.h index eafbe9a76f..69603b1f98 100644 --- a/src/config/MATEKF411SE/config.h +++ b/src/config/MATEKF411SE/config.h @@ -96,7 +96,7 @@ #define BEEPER_INVERTED #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 //TODO #define GYRO_1_I2CBUS 0 diff --git a/src/config/MATEKF722HD/config.h b/src/config/MATEKF722HD/config.h index 8f2a1975dc..cb6cd7263d 100644 --- a/src/config/MATEKF722HD/config.h +++ b/src/config/MATEKF722HD/config.h @@ -126,7 +126,8 @@ #define DEFAULT_CURRENT_METER_SCALE 179 #define BEEPER_INVERTED -//TODO #define PINIO_BOX 40,41,255,255 +#define PINIO1_BOX 40 +#define PINIO2_BOX 41 #define FLASH_SPI_INSTANCE SPI2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/MATEKF722MINI/config.h b/src/config/MATEKF722MINI/config.h index e1cce1264e..f33a1dd46a 100644 --- a/src/config/MATEKF722MINI/config.h +++ b/src/config/MATEKF722MINI/config.h @@ -119,7 +119,8 @@ #define DEFAULT_CURRENT_METER_SCALE 179 #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 diff --git a/src/config/MATEKF722SE/config.h b/src/config/MATEKF722SE/config.h index 2c2ccf4d00..859d5abd96 100644 --- a/src/config/MATEKF722SE/config.h +++ b/src/config/MATEKF722SE/config.h @@ -122,7 +122,8 @@ #define USE_SDCARD_SPI #define SDCARD_SPI_INSTANCE SPI3 #define MAX7456_SPI_INSTANCE SPI2 -//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 CW180_DEG_FLIP diff --git a/src/config/MATEKH743/config.h b/src/config/MATEKH743/config.h index 218c500c54..40f02b1d6a 100644 --- a/src/config/MATEKH743/config.h +++ b/src/config/MATEKH743/config.h @@ -167,7 +167,8 @@ #define SDIO_USE_4BIT 1 #define MAX7456_SPI_INSTANCE SPI2 -//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 CW0_DEG_FLIP diff --git a/src/config/MINI_H743_HD/config.h b/src/config/MINI_H743_HD/config.h index b5a8488ea3..100ab1a7f0 100644 --- a/src/config/MINI_H743_HD/config.h +++ b/src/config/MINI_H743_HD/config.h @@ -132,7 +132,8 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 250 #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 diff --git a/src/config/NBD_INFINITYF4/config.h b/src/config/NBD_INFINITYF4/config.h index 0eae194e8a..d7245ef755 100644 --- a/src/config/NBD_INFINITYF4/config.h +++ b/src/config/NBD_INFINITYF4/config.h @@ -101,5 +101,5 @@ #define GYRO_1_SPI_INSTANCE SPI2 #define GYRO_1_ALIGN CW90_DEG #define GYRO_1_ALIGN_YAW 900 -//TODO #define PINIO_CONFIG 129,1,1,1 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_CONFIG 129 +#define PINIO1_BOX 40 diff --git a/src/config/NEUTRONRCF407/config.h b/src/config/NEUTRONRCF407/config.h index 1c6362437c..a6d5d4027a 100644 --- a/src/config/NEUTRONRCF407/config.h +++ b/src/config/NEUTRONRCF407/config.h @@ -98,8 +98,11 @@ #define BEEPER_INVERTED #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DASHBOARD_I2C_BUS 1 -//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 diff --git a/src/config/NEUTRONRCH743AIO/config.h b/src/config/NEUTRONRCH743AIO/config.h index d4d5b70da0..b26c00355f 100644 --- a/src/config/NEUTRONRCH743AIO/config.h +++ b/src/config/NEUTRONRCH743AIO/config.h @@ -135,8 +135,11 @@ #define USE_SDCARD_SDIO #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 CW90_DEG diff --git a/src/config/NEUTRONRCH7BT/config.h b/src/config/NEUTRONRCH7BT/config.h index 65c7c0fa8c..53173106e9 100644 --- a/src/config/NEUTRONRCH7BT/config.h +++ b/src/config/NEUTRONRCH7BT/config.h @@ -137,8 +137,11 @@ #define USE_SDCARD_SDIO #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 diff --git a/src/config/NIDICI_F4/config.h b/src/config/NIDICI_F4/config.h index 5fbd1e739a..7e97679531 100644 --- a/src/config/NIDICI_F4/config.h +++ b/src/config/NIDICI_F4/config.h @@ -97,7 +97,8 @@ #define SYSTEM_HSE_MHZ 8 #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 diff --git a/src/config/PYRODRONEF4/config.h b/src/config/PYRODRONEF4/config.h index 17d6d9c7ce..c9e9ad7ecc 100644 --- a/src/config/PYRODRONEF4/config.h +++ b/src/config/PYRODRONEF4/config.h @@ -87,6 +87,6 @@ //TODO #define PID_PROCESS_DENOM 1 #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/PYRODRONEF4PDB/config.h b/src/config/PYRODRONEF4PDB/config.h index 6abd221e89..6862efbb8a 100644 --- a/src/config/PYRODRONEF4PDB/config.h +++ b/src/config/PYRODRONEF4PDB/config.h @@ -97,6 +97,7 @@ #define BEEPER_INVERTED //TODO #define PID_PROCESS_DENOM 1 #define SYSTEM_HSE_MHZ 8 -//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 diff --git a/src/config/PYRODRONEF7/config.h b/src/config/PYRODRONEF7/config.h index b97e06458b..370937e3da 100644 --- a/src/config/PYRODRONEF7/config.h +++ b/src/config/PYRODRONEF7/config.h @@ -113,5 +113,4 @@ #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_2_SPI_INSTANCE SPI1 -//TODO #define PINIO_CONFIG 1,1,1,1 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 diff --git a/src/config/RUSRACE_F4/config.h b/src/config/RUSRACE_F4/config.h index 07d36445d5..a71acfa19a 100644 --- a/src/config/RUSRACE_F4/config.h +++ b/src/config/RUSRACE_F4/config.h @@ -92,8 +92,11 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DISPLAYPORT_MAX7456_WHT 3 -//TODO #define PINIO_CONFIG 129,1,1,1 -//TODO #define PINIO_BOX 40,0,0,0 +#define PINIO1_CONFIG 129 +#define PINIO1_BOX 40 +#define PINIO2_BOX 0 +#define PINIO3_BOX 0 +#define PINIO4_BOX 0 #define FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/RUSRACE_F7/config.h b/src/config/RUSRACE_F7/config.h index e24c3486aa..99ec6ec07e 100644 --- a/src/config/RUSRACE_F7/config.h +++ b/src/config/RUSRACE_F7/config.h @@ -91,8 +91,11 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DISPLAYPORT_MAX7456_WHT 3 -//TODO #define PINIO_CONFIG 129,1,1,1 -//TODO #define PINIO_BOX 40,0,0,0 +#define PINIO1_CONFIG 129 +#define PINIO1_BOX 40 +#define PINIO2_BOX 0 +#define PINIO3_BOX 0 +#define PINIO4_BOX 0 #define FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/SKYSTARSF7HD/config.h b/src/config/SKYSTARSF7HD/config.h index 8fc8bfd8f5..fe081d3bb5 100644 --- a/src/config/SKYSTARSF7HD/config.h +++ b/src/config/SKYSTARSF7HD/config.h @@ -103,8 +103,8 @@ //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 //TODO #define ALIGN_BOARD_ROLL 180 //TODO #define ALIGN_BOARD_YAW 90 -//TODO #define PINIO_BOX 0,255,255,255 -//TODO #define PINIO_CONFIG 129,1,1,1 +#define PINIO1_BOX 0 +#define PINIO1_CONFIG 129 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC //TODO #define BEEPER_OD OFF diff --git a/src/config/SKYSTARSF7HDPRO/config.h b/src/config/SKYSTARSF7HDPRO/config.h index 9e68c62886..3fa3d45947 100644 --- a/src/config/SKYSTARSF7HDPRO/config.h +++ b/src/config/SKYSTARSF7HDPRO/config.h @@ -114,8 +114,8 @@ //TODO #define OSD_WARNINGS_POS 14761 //TODO #define OSD_AVG_CELL_VOLTAGE_POS 2114 #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 diff --git a/src/config/SKYSTARSH7HD/config.h b/src/config/SKYSTARSH7HD/config.h index 38b283c311..a56edcbd18 100644 --- a/src/config/SKYSTARSH7HD/config.h +++ b/src/config/SKYSTARSH7HD/config.h @@ -135,7 +135,8 @@ #define DEFAULT_CURRENT_METER_SCALE 290 #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 diff --git a/src/config/SPEEDYBEEF4/config.h b/src/config/SPEEDYBEEF4/config.h index 62e21df7bd..5281bc66e8 100644 --- a/src/config/SPEEDYBEEF4/config.h +++ b/src/config/SPEEDYBEEF4/config.h @@ -98,14 +98,12 @@ #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 302 -//TODO #define PINIO_CONFIG 129,1,1,1 -//TODO #define PINIO_BOX 0,255,255,255 #define BEEPER_INVERTED #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DASHBOARD_I2C_BUS 1 -//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 diff --git a/src/config/SPEEDYBEEF405V3/config.h b/src/config/SPEEDYBEEF405V3/config.h index b4b69631f5..9e56e60b95 100644 --- a/src/config/SPEEDYBEEF405V3/config.h +++ b/src/config/SPEEDYBEEF405V3/config.h @@ -110,7 +110,7 @@ #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 //TODO #define DASHBOARD_I2C_BUS 2 -//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 USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/SPEEDYBEEF7/config.h b/src/config/SPEEDYBEEF7/config.h index 8c9c277ccf..f5ed0fa9e4 100644 --- a/src/config/SPEEDYBEEF7/config.h +++ b/src/config/SPEEDYBEEF7/config.h @@ -105,8 +105,8 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//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 DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 102 diff --git a/src/config/SPEEDYBEEF7MINI/config.h b/src/config/SPEEDYBEEF7MINI/config.h index fd673e2e8f..1af9b6240f 100644 --- a/src/config/SPEEDYBEEF7MINI/config.h +++ b/src/config/SPEEDYBEEF7MINI/config.h @@ -110,8 +110,8 @@ //TODO #define IBATA_OFFSET -500 #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 diff --git a/src/config/SPEEDYBEEF7MINIV2/config.h b/src/config/SPEEDYBEEF7MINIV2/config.h index 5e5220cfa8..7d8ab009ae 100644 --- a/src/config/SPEEDYBEEF7MINIV2/config.h +++ b/src/config/SPEEDYBEEF7MINIV2/config.h @@ -109,8 +109,8 @@ //TODO #define IBATA_OFFSET -500 #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 diff --git a/src/config/SPEEDYBEEF7V2/config.h b/src/config/SPEEDYBEEF7V2/config.h index 3e4030b1a2..707c97045d 100644 --- a/src/config/SPEEDYBEEF7V2/config.h +++ b/src/config/SPEEDYBEEF7V2/config.h @@ -101,8 +101,8 @@ #define DEFAULT_CURRENT_METER_SCALE 168 #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 diff --git a/src/config/SPEEDYBEEF7V3/config.h b/src/config/SPEEDYBEEF7V3/config.h index 64331c4faf..ea0f988810 100644 --- a/src/config/SPEEDYBEEF7V3/config.h +++ b/src/config/SPEEDYBEEF7V3/config.h @@ -112,8 +112,8 @@ #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,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 diff --git a/src/config/SPEEDYBEE_F745_AIO/config.h b/src/config/SPEEDYBEE_F745_AIO/config.h index e4b95bb239..aab675ff8b 100644 --- a/src/config/SPEEDYBEE_F745_AIO/config.h +++ b/src/config/SPEEDYBEE_F745_AIO/config.h @@ -96,8 +96,8 @@ #define DEFAULT_CURRENT_METER_SCALE 256 #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 SPI1 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI4 diff --git a/src/config/SPRACINGH7RF/config.h b/src/config/SPRACINGH7RF/config.h index f1acaded55..7aac74e42f 100644 --- a/src/config/SPRACINGH7RF/config.h +++ b/src/config/SPRACINGH7RF/config.h @@ -261,8 +261,7 @@ #define BARO_I2C_INSTANCE (I2CDEV_2) //TODO #define ADC_DEVICE 3 -//TODO #define PINIO_CONFIG 1,1,1,1 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/src/config/SYNERGYF4/config.h b/src/config/SYNERGYF4/config.h index 4f0905a48b..3daa19b094 100644 --- a/src/config/SYNERGYF4/config.h +++ b/src/config/SYNERGYF4/config.h @@ -105,7 +105,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 diff --git a/src/config/TALONF4V2/config.h b/src/config/TALONF4V2/config.h index 0c06718232..81b645b0bf 100644 --- a/src/config/TALONF4V2/config.h +++ b/src/config/TALONF4V2/config.h @@ -116,5 +116,4 @@ #define GYRO_1_ALIGN_ROLL 0 #define GYRO_1_ALIGN_PITCH 0 #define GYRO_1_ALIGN_YAW 0 -//TODO #define PINIO_BOX 40,255,255,255 -//TODO #define PINIO_CONFIG 1,1,1,1 +#define PINIO1_BOX 40 diff --git a/src/config/TALONF7DJIHD/config.h b/src/config/TALONF7DJIHD/config.h index 8264f63c7e..44c9f42cbf 100644 --- a/src/config/TALONF7DJIHD/config.h +++ b/src/config/TALONF7DJIHD/config.h @@ -111,7 +111,7 @@ #define BEEPER_INVERTED //TODO #define PID_PROCESS_DENOM 1 #define MAX7456_SPI_INSTANCE SPI3 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 #define FLASH_SPI_INSTANCE SPI2 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/TALONF7FUSION/config.h b/src/config/TALONF7FUSION/config.h index c4abd40064..647c652480 100644 --- a/src/config/TALONF7FUSION/config.h +++ b/src/config/TALONF7FUSION/config.h @@ -119,4 +119,4 @@ //TODO #define OSD_MAH_DRAWN_POS 2433 //TODO #define OSD_CRAFT_NAME_POS 2058 //TODO #define OSD_WARNINGS_POS 14378 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 diff --git a/src/config/TCMMF7/config.h b/src/config/TCMMF7/config.h index 4fa5c4d540..64982dd966 100644 --- a/src/config/TCMMF7/config.h +++ b/src/config/TCMMF7/config.h @@ -119,7 +119,8 @@ #define USE_SDCARD_SPI #define SDCARD_SPI_INSTANCE SPI3 #define MAX7456_SPI_INSTANCE SPI2 -//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 CW180_DEG diff --git a/src/config/TMOTORF7/config.h b/src/config/TMOTORF7/config.h index 62fae2b1ea..3f5b4c70a9 100644 --- a/src/config/TMOTORF7/config.h +++ b/src/config/TMOTORF7/config.h @@ -112,4 +112,4 @@ #define FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 diff --git a/src/config/TMOTORF722SE/config.h b/src/config/TMOTORF722SE/config.h index fb582a2a8e..4e19815c6d 100644 --- a/src/config/TMOTORF722SE/config.h +++ b/src/config/TMOTORF722SE/config.h @@ -116,7 +116,8 @@ #define BEEPER_INVERTED #define FLASH_SPI_INSTANCE SPI3 #define MAX7456_SPI_INSTANCE SPI2 -//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 CW0_DEG_FLIP diff --git a/src/config/TMOTORF7V2/config.h b/src/config/TMOTORF7V2/config.h index eddb1371a9..2c02a16709 100644 --- a/src/config/TMOTORF7V2/config.h +++ b/src/config/TMOTORF7V2/config.h @@ -111,8 +111,9 @@ #define DEFAULT_CURRENT_METER_SCALE 250 #define BEEPER_INVERTED #define MAX7456_SPI_INSTANCE SPI2 -//TODO #define PINIO_CONFIG 129,1,1,1 -//TODO #define PINIO_BOX 0,41,255,255 +#define PINIO1_CONFIG 129 +#define PINIO1_BOX 0 +#define PINIO2_BOX 41 #define FLASH_SPI_INSTANCE SPI3 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 diff --git a/src/config/TMOTORF7_AIO/config.h b/src/config/TMOTORF7_AIO/config.h index 5a905c2ada..a86c058fd3 100644 --- a/src/config/TMOTORF7_AIO/config.h +++ b/src/config/TMOTORF7_AIO/config.h @@ -105,4 +105,4 @@ #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI1 //TODO #define ALIGN_BOARD_YAW -45 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 diff --git a/src/config/TMVELOXF7/config.h b/src/config/TMVELOXF7/config.h index a053074b99..aa395a4f06 100644 --- a/src/config/TMVELOXF7/config.h +++ b/src/config/TMVELOXF7/config.h @@ -108,7 +108,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 diff --git a/src/config/TRANSTECF411/config.h b/src/config/TRANSTECF411/config.h index da535a5bdd..4fe12b2ba4 100644 --- a/src/config/TRANSTECF411/config.h +++ b/src/config/TRANSTECF411/config.h @@ -74,7 +74,7 @@ //TODO #define DSHOT_IDLE_VALUE 600 #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON //TODO #define MOTOR_PWM_PROTOCOL DSHOT300 -//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 BEEPER_INVERTED diff --git a/src/config/TRANSTECF7/config.h b/src/config/TRANSTECF7/config.h index b08102b4e8..b3cb53fde5 100644 --- a/src/config/TRANSTECF7/config.h +++ b/src/config/TRANSTECF7/config.h @@ -94,4 +94,4 @@ #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_1_ALIGN CW180_DEG_FLIP #define GYRO_2_SPI_INSTANCE SPI1 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 diff --git a/src/config/VGOODF722DUAL/config.h b/src/config/VGOODF722DUAL/config.h index d36ae69f5a..128fe85c38 100644 --- a/src/config/VGOODF722DUAL/config.h +++ b/src/config/VGOODF722DUAL/config.h @@ -101,7 +101,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 diff --git a/src/config/VGOODRCF722_DJI/config.h b/src/config/VGOODRCF722_DJI/config.h index c7a7cc6a4b..5484c1e96a 100644 --- a/src/config/VGOODRCF722_DJI/config.h +++ b/src/config/VGOODRCF722_DJI/config.h @@ -88,8 +88,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 diff --git a/src/config/WIZZF7HD/config.h b/src/config/WIZZF7HD/config.h index b164cfccb7..6f97d3d46d 100644 --- a/src/config/WIZZF7HD/config.h +++ b/src/config/WIZZF7HD/config.h @@ -109,4 +109,4 @@ #define GYRO_1_SPI_INSTANCE SPI1 //TODO #define GYRO_TO_USE BOTH //TODO #define MCO2_ON_PC9 ON -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 diff --git a/src/config/XILOF4/config.h b/src/config/XILOF4/config.h index 26a8ecc8c4..6c2f1c7d40 100644 --- a/src/config/XILOF4/config.h +++ b/src/config/XILOF4/config.h @@ -95,8 +95,8 @@ #define BEEPER_INVERTED #define SYSTEM_HSE_MHZ 8 #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 diff --git a/src/config/ZEEZF7/config.h b/src/config/ZEEZF7/config.h index 423f582941..81bb82aca2 100644 --- a/src/config/ZEEZF7/config.h +++ b/src/config/ZEEZF7/config.h @@ -97,8 +97,7 @@ #define DEFAULT_CURRENT_METER_SCALE 350 #define BEEPER_INVERTED #define MAX7456_SPI_INSTANCE SPI3 -//TODO #define PINIO_CONFIG 1,1,1,1 -//TODO #define PINIO_BOX 40,255,255,255 +#define PINIO1_BOX 40 //TODO #define BOX_USER_1_NAME VTX SWITCH #define FLASH_SPI_INSTANCE SPI1 #define GYRO_1_SPI_INSTANCE SPI2 diff --git a/src/config/ZEUSF722_AIO/config.h b/src/config/ZEUSF722_AIO/config.h index 8e6296f4da..14e9dc5513 100644 --- a/src/config/ZEUSF722_AIO/config.h +++ b/src/config/ZEUSF722_AIO/config.h @@ -120,4 +120,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 diff --git a/src/main/pg/pinio.c b/src/main/pg/pinio.c index cec8f99347..ac706e3eeb 100644 --- a/src/main/pg/pinio.c +++ b/src/main/pg/pinio.c @@ -39,20 +39,34 @@ #define PINIO4_PIN NONE #endif -PG_REGISTER_WITH_RESET_TEMPLATE(pinioConfig_t, pinioConfig, PG_PINIO_CONFIG, 0); - -PG_RESET_TEMPLATE(pinioConfig_t, pinioConfig, - .ioTag = { - IO_TAG(PINIO1_PIN), - IO_TAG(PINIO2_PIN), - IO_TAG(PINIO3_PIN), - IO_TAG(PINIO4_PIN), - }, - .config = { - PINIO_CONFIG_MODE_OUT_PP, - PINIO_CONFIG_MODE_OUT_PP, - PINIO_CONFIG_MODE_OUT_PP, - PINIO_CONFIG_MODE_OUT_PP - }, -); +#ifndef PINIO1_CONFIG +#define PINIO1_CONFIG PINIO_CONFIG_MODE_OUT_PP +#endif + +#ifndef PINIO2_CONFIG +#define PINIO2_CONFIG PINIO_CONFIG_MODE_OUT_PP +#endif + +#ifndef PINIO3_CONFIG +#define PINIO3_CONFIG PINIO_CONFIG_MODE_OUT_PP +#endif + +#ifndef PINIO4_CONFIG +#define PINIO4_CONFIG PINIO_CONFIG_MODE_OUT_PP +#endif + +PG_REGISTER_WITH_RESET_FN(pinioConfig_t, pinioConfig, PG_PINIO_CONFIG, 0); + +void pgResetFn_pinioConfig(pinioConfig_t *config) +{ + config->ioTag[0] = IO_TAG(PINIO1_PIN); + config->ioTag[1] = IO_TAG(PINIO2_PIN); + config->ioTag[2] = IO_TAG(PINIO3_PIN); + config->ioTag[3] = IO_TAG(PINIO4_PIN); + + config->config[0] = PINIO1_CONFIG; + config->config[1] = PINIO2_CONFIG; + config->config[2] = PINIO3_CONFIG; + config->config[3] = PINIO4_CONFIG; +} #endif diff --git a/src/main/pg/piniobox.c b/src/main/pg/piniobox.c index 56730b4768..ca158da75b 100644 --- a/src/main/pg/piniobox.c +++ b/src/main/pg/piniobox.c @@ -30,15 +30,30 @@ #include "piniobox.h" - -PG_REGISTER_WITH_RESET_TEMPLATE(pinioBoxConfig_t, pinioBoxConfig, PG_PINIOBOX_CONFIG, 1); - -PG_RESET_TEMPLATE(pinioBoxConfig_t, pinioBoxConfig, - .permanentId = { - PERMANENT_ID_NONE, - PERMANENT_ID_NONE, - PERMANENT_ID_NONE, - PERMANENT_ID_NONE - }, -); +#ifndef PINIO1_BOX +#define PINIO1_BOX PERMANENT_ID_NONE +#endif + +#ifndef PINIO2_BOX +#define PINIO2_BOX PERMANENT_ID_NONE +#endif + +#ifndef PINIO3_BOX +#define PINIO3_BOX PERMANENT_ID_NONE +#endif + +#ifndef PINIO4_BOX +#define PINIO4_BOX PERMANENT_ID_NONE +#endif + +PG_REGISTER_WITH_RESET_FN(pinioBoxConfig_t, pinioBoxConfig, PG_PINIOBOX_CONFIG, 1); + +void pgResetFn_pinioBoxConfig(pinioBoxConfig_t *config) +{ + config->permanentId[0] = PINIO1_BOX; + config->permanentId[1] = PINIO2_BOX; + config->permanentId[2] = PINIO3_BOX; + config->permanentId[3] = PINIO4_BOX; +} + #endif