Skip to content

Commit

Permalink
DAKEFPVF405/DAKEFPVF722 add PINIO2,DAKEFPVF405 add CAMERA_CONTROL (be…
Browse files Browse the repository at this point in the history
…taflight#625)

* DAKEFPVF405/DAKEFPVF722 Add PINIO2

* DAKEFPVF405 add CAMERA_CONTROL
  • Loading branch information
ThanYangFPV authored Dec 2, 2024
1 parent 278bd5b commit cb1d3ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion configs/DAKEFPVF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
#define USE_FLASH_M25P16
#define USE_MAX7456

#ifndef USE_CAMERA_CONTROL
#define USE_CAMERA_CONTROL
#endif

#define BEEPER_PIN PC3
#define MOTOR1_PIN PC8
#define MOTOR2_PIN PC9
Expand Down Expand Up @@ -76,11 +80,13 @@
#define SPI1_SDO_PIN PA7
#define SPI2_SDO_PIN PB15
#define SPI3_SDO_PIN PB5
#define CAMERA_CONTROL_PIN PA8
#define ADC_VBAT_PIN PC1
#define ADC_RSSI_PIN PC2
#define ADC_CURR_PIN PC0
#define BARO_CS_PIN PC13
#define PINIO1_PIN PC5
#define PINIO2_PIN PB4
#define FLASH_CS_PIN PA15
#define MAX7456_SPI_CS_PIN PB12
#define GYRO_1_EXTI_PIN PC4
Expand All @@ -97,7 +103,8 @@
TIMER_PIN_MAP( 7, PB6 , 1, 0) \
TIMER_PIN_MAP( 8, PB7 , 1, 0) \
TIMER_PIN_MAP( 9, PC8 , 2, 0) \
TIMER_PIN_MAP(10, PC9 , 2, 0)
TIMER_PIN_MAP(10, PC9 , 2, 0) \
TIMER_PIN_MAP(11, PA8 , 1, -1)



Expand All @@ -113,7 +120,9 @@
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI2
#define PINIO1_CONFIG 129
#define PINIO2_CONFIG 129
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW90_DEG
Expand Down
3 changes: 3 additions & 0 deletions configs/DAKEFPVF722/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
#define ADC_CURR_PIN PC0
#define BARO_CS_PIN PA13
#define PINIO1_PIN PA14
#define PINIO2_PIN PA8
#define FLASH_CS_PIN PA15
#define MAX7456_SPI_CS_PIN PB12
#define GYRO_1_EXTI_PIN PC4
Expand Down Expand Up @@ -119,7 +120,9 @@

#define BEEPER_INVERTED
#define PINIO1_CONFIG 129
#define PINIO2_CONFIG 129
#define PINIO1_BOX 40
#define PINIO2_BOX 41

#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW90_DEG
Expand Down

0 comments on commit cb1d3ac

Please sign in to comment.