mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
FIX: SPI Pins, and I2C pins should be configured in config.h (#12484)
* FIX: SPI Pins, and I2C pins should be configured in config.h * Set defaults to none.
This commit is contained in:
parent
5def26485b
commit
8e85029b00
4 changed files with 44 additions and 108 deletions
|
@ -252,87 +252,3 @@ extern uint8_t _dmaram_end__;
|
|||
|
||||
#define USE_TIMER_MGMT
|
||||
#define USE_TIMER_AF
|
||||
|
||||
#ifdef STM32F4
|
||||
#ifndef I2C1_SCL_PIN
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#endif
|
||||
#ifndef I2C1_SDA_PIN
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#endif
|
||||
#ifndef I2C2_SCL_PIN
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#endif
|
||||
#ifndef I2C2_SDA_PIN
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#endif
|
||||
#ifndef I2C3_SCL_PIN
|
||||
#define I2C3_SCL_PIN PA8
|
||||
#endif
|
||||
#ifndef I2C3_SDA_PIN
|
||||
#define I2C3_SDA_PIN PC9
|
||||
#endif
|
||||
#endif // STM32F4
|
||||
|
||||
#ifdef STM32F7
|
||||
#ifndef I2C1_SCL_PIN
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#endif
|
||||
#ifndef I2C1_SDA_PIN
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#endif
|
||||
#ifndef I2C2_SCL_PIN
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#endif
|
||||
#ifndef I2C2_SDA_PIN
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#endif
|
||||
#ifndef I2C3_SCL_PIN
|
||||
#define I2C3_SCL_PIN PA8
|
||||
#endif
|
||||
#ifndef I2C3_SDA_PIN
|
||||
#define I2C3_SDA_PIN PB4
|
||||
#endif
|
||||
#ifndef I2C4_SCL_PIN
|
||||
#define I2C4_SCL_PIN PD12
|
||||
#endif
|
||||
#ifndef I2C4_SDA_PIN
|
||||
#define I2C4_SDA_PIN PD13
|
||||
#endif
|
||||
#endif // STM32F7
|
||||
|
||||
#ifndef SPI1_SCK_PIN
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#endif
|
||||
|
||||
#ifndef SPI2_SCK_PIN
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#endif
|
||||
|
||||
#ifndef SPI3_SCK_PIN
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#endif
|
||||
|
||||
#ifndef SPI4_SCK_PIN
|
||||
#define SPI4_SCK_PIN NONE
|
||||
#define SPI4_SDI_PIN NONE
|
||||
#define SPI4_SDO_PIN NONE
|
||||
#endif
|
||||
|
||||
#ifndef SPI5_SCK_PIN
|
||||
#define SPI5_SCK_PIN NONE
|
||||
#define SPI5_SDI_PIN NONE
|
||||
#define SPI5_SDO_PIN NONE
|
||||
#endif
|
||||
|
||||
#ifndef SPI6_SCK_PIN
|
||||
#define SPI6_SCK_PIN NONE
|
||||
#define SPI6_SDI_PIN NONE
|
||||
#define SPI6_SDO_PIN NONE
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue