Skip to content

Commit

Permalink
Enable AIRBOTF435 MAX7456 (#12584)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveCEvans committed Mar 27, 2023
1 parent 9eda78f commit caa497e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/config/AIRBOTF435/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#define USE_FLASH_M25P16

#define USE_MAX7456
#define MAX7456_SPI_CS_PIN PH2
#define MAX7456_SPI_INSTANCE SPI3

#define BEEPER_PIN PB10
#define MOTOR1_PIN PC9
Expand Down Expand Up @@ -95,10 +97,11 @@
//TODO #define PINIO2_PIN PH3

#define FLASH_CS_PIN PC13
//TODO #define MAX7456_SPI_CS_PIN PH2
#define FLASH_SPI_INSTANCE SPI3

#define GYRO_1_EXTI_PIN PB12
#define GYRO_1_CS_PIN PC14
#define GYRO_1_SPI_INSTANCE SPI2

#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, -1 ) \
TIMER_PIN_MAP( 1, MOTOR4_PIN, 1, 2 ) \
Expand All @@ -118,10 +121,6 @@
#define ADC_INSTANCE ADC1
#define BARO_I2C_INSTANCE (I2CDEV_1)

#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI2
#define MAX7456_SPI_INSTANCE SPI1

#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH

#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
Expand Down

0 comments on commit caa497e

Please sign in to comment.