Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable AIRBOTF435 MAX7456 #12584

Merged
merged 1 commit into from
Mar 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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