mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 00:35:34 +03:00
Merge pull request #3744 from iNavFlight/dzikuvx-fix-pca9685-i2c-bus
Fix pca9685 on bunch of boards
This commit is contained in:
commit
05e1440dc8
22 changed files with 44 additions and 1 deletions
|
@ -159,3 +159,5 @@
|
|||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -142,3 +142,5 @@
|
|||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD (BIT(2))
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -143,3 +143,5 @@
|
|||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -206,3 +206,5 @@
|
|||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
#define TARGET_IO_PORTE 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -140,3 +140,5 @@
|
|||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
#define TARGET_IO_PORTE 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
||||
|
|
|
@ -172,3 +172,5 @@
|
|||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -180,3 +180,5 @@
|
|||
#define TARGET_IO_PORTD BIT(2)
|
||||
|
||||
#define MAX_PWM_OUTPUT_PORTS 4
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -134,3 +134,5 @@
|
|||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD (BIT(2))
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -150,3 +150,5 @@
|
|||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
#define TARGET_IO_PORTE 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -144,3 +144,5 @@
|
|||
#define TARGET_IO_PORTC 0xFFFF
|
||||
#define TARGET_IO_PORTD 0xFFFF
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -184,3 +184,5 @@
|
|||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -113,3 +113,5 @@
|
|||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD (BIT(2))
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -154,7 +154,6 @@
|
|||
#define DEFAULT_I2C_BUS BUS_I2C1
|
||||
#endif
|
||||
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_BUS DEFAULT_I2C_BUS
|
||||
#define USE_BARO_BMP280
|
||||
|
@ -214,3 +213,5 @@
|
|||
#define TARGET_IO_PORTD (BIT(2))
|
||||
|
||||
#define MAX_PWM_OUTPUT_PORTS 6
|
||||
|
||||
#define PCA9685_I2C_BUS DEFAULT_I2C_BUS
|
|
@ -177,3 +177,5 @@
|
|||
#define TARGET_IO_PORTD (BIT(2))
|
||||
|
||||
#define MAX_PWM_OUTPUT_PORTS 9
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -131,3 +131,5 @@
|
|||
// #define TARGET_IO_PORTF (BIT(0)|BIT(1))
|
||||
// !!TODO - check the following line is correct
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -262,3 +262,5 @@
|
|||
#ifdef OMNIBUSF4PRO
|
||||
#define CURRENT_METER_SCALE 265
|
||||
#endif
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -223,3 +223,5 @@
|
|||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
#define TARGET_IO_PORTE 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -121,3 +121,5 @@
|
|||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
||||
|
|
|
@ -158,3 +158,5 @@
|
|||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -117,3 +117,5 @@
|
|||
#define TARGET_IO_PORTA (BIT(1)|BIT(2)|BIT(3)|BIT(4)|BIT(5)|BIT(6)|BIT(7)|BIT(8)|BIT(9)|BIT(10)|BIT(11)|BIT(12)|BIT(13)|BIT(14)|BIT(15))
|
||||
#define TARGET_IO_PORTB (BIT(0)|BIT(1)|BIT(6)|BIT(10)|BIT(11)|BIT(14)|BIT(15)|BIT(3)|BIT(4)|BIT(5)|BIT(6)|BIT(7)|BIT(8)|BIT(9)|BIT(12)|BIT(13))
|
||||
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -140,3 +140,5 @@
|
|||
#define TARGET_IO_PORTA 0xffff
|
||||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC 0xffff
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
|
@ -177,3 +177,5 @@
|
|||
#define TARGET_IO_PORTB 0xffff
|
||||
#define TARGET_IO_PORTC 0xffff
|
||||
#define TARGET_IO_PORTD (BIT(2))
|
||||
|
||||
#define PCA9685_I2C_BUS BUS_I2C2
|
Loading…
Add table
Add a link
Reference in a new issue