1
0
Fork 0
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:
Konstantin Sharlaimov 2018-08-14 20:54:48 +02:00 committed by GitHub
commit 05e1440dc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 44 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -180,3 +180,5 @@
#define TARGET_IO_PORTD BIT(2)
#define MAX_PWM_OUTPUT_PORTS 4
#define PCA9685_I2C_BUS BUS_I2C2

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -177,3 +177,5 @@
#define TARGET_IO_PORTD (BIT(2))
#define MAX_PWM_OUTPUT_PORTS 9
#define PCA9685_I2C_BUS BUS_I2C2

View file

@ -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

View file

@ -262,3 +262,5 @@
#ifdef OMNIBUSF4PRO
#define CURRENT_METER_SCALE 265
#endif
#define PCA9685_I2C_BUS BUS_I2C2

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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