From cb1d3ac2e0a1fcb2445f495c4da3b6f955ac4504 Mon Sep 17 00:00:00 2001 From: ThanYangFPV <74483959+ThanYangFPV@users.noreply.github.com> Date: Mon, 2 Dec 2024 09:12:48 +0800 Subject: [PATCH] DAKEFPVF405/DAKEFPVF722 add PINIO2,DAKEFPVF405 add CAMERA_CONTROL (#625) * DAKEFPVF405/DAKEFPVF722 Add PINIO2 * DAKEFPVF405 add CAMERA_CONTROL --- configs/DAKEFPVF405/config.h | 11 ++++++++++- configs/DAKEFPVF722/config.h | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/DAKEFPVF405/config.h b/configs/DAKEFPVF405/config.h index 02f66718..ea98b225 100644 --- a/configs/DAKEFPVF405/config.h +++ b/configs/DAKEFPVF405/config.h @@ -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 @@ -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 @@ -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) @@ -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 diff --git a/configs/DAKEFPVF722/config.h b/configs/DAKEFPVF722/config.h index a09e806d..a1fa1d40 100644 --- a/configs/DAKEFPVF722/config.h +++ b/configs/DAKEFPVF722/config.h @@ -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 @@ -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