Skip to content

Commit

Permalink
Remove redundant I2C config defines from keyboards (qmk#11661)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Jan 25, 2021
1 parent 66836ef commit c65aecc
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion keyboards/aeboards/ext65/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define I2C1_SCL_PAL_MODE 1
#define I2C1_SDA_PAL_MODE 1

#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 3U
#define I2C1_TIMINGR_SDADEL 1U
#define I2C1_TIMINGR_SCLH 3U
Expand Down
1 change: 0 additions & 1 deletion keyboards/clueboard/66_hotswap/gen1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
// 0b1110101 AD <-> SCL
// 0b1110110 AD <-> SDA
#define LED_DRIVER_ADDR_1 0b1110100
#define I2C1_BANK GPIOB
#define I2C1_SCL 8
#define I2C1_SDA 9

Expand Down
6 changes: 0 additions & 6 deletions keyboards/dekunukem/duckypad/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#define RGB_MATRIX_STARTUP_HUE 221

#define I2C1_SCL_BANK GPIOB
#define I2C1_SCL 8
#define I2C1_SDA_BANK GPIOB
#define I2C1_SDA 9

#define I2C1_SCL_PAL_MODE 1
#define I2C1_SDA_PAL_MODE 1

#define I2C1_OPMODE OPMODE_I2C
#define I2C1_CLOCK_SPEED 100000
#define I2C1_DUTY_CYCLE STD_DUTY_CYCLE

#define OLED_DISPLAY_ADDRESS 0x3C
#define OLED_DISPLAY_128X64
#define OLED_COM_PINS 0x12
Expand Down
7 changes: 0 additions & 7 deletions keyboards/handwired/pill60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,3 @@
#define ENCODERS_PAD_B \
{ B8 }
#define ENCODER_RESOLUTION 2

/* OLED */
#define I2C_DRIVER I2CD1
#define I2C1_SCL_BANK GPIOB
#define I2C1_SDA_BANK GPIOB
#define I2C1_SCL 6
#define I2C1_SDA 7
3 changes: 0 additions & 3 deletions keyboards/handwired/riblee_f411/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

#undef I2C_DRIVER
#define I2C_DRIVER I2CD1
1 change: 0 additions & 1 deletion keyboards/matrix/m20add/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
#define DEBOUNCE 5

// i2c setting
#define USE_I2CV1
#define I2C1_SCL 8
#define I2C1_SDA 9
#define I2C1_CLOCK_SPEED 400000
Expand Down
1 change: 0 additions & 1 deletion keyboards/matrix/noah/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#define DEBOUNCE 5

// i2c setting
#define USE_I2CV1
#define I2C1_SCL 8
#define I2C1_SDA 9
#define I2C1_CLOCK_SPEED 400000
Expand Down
1 change: 0 additions & 1 deletion keyboards/xelus/kangaroo/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#define I2C1_SCL_PAL_MODE 1
#define I2C1_SDA_PAL_MODE 1

#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 3U
#define I2C1_TIMINGR_SDADEL 1U
#define I2C1_TIMINGR_SCLH 3U
Expand Down
1 change: 0 additions & 1 deletion keyboards/xelus/valor_frl_tkl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#define I2C1_SCL_PAL_MODE 1
#define I2C1_SDA_PAL_MODE 1

#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 3U
#define I2C1_TIMINGR_SDADEL 1U
#define I2C1_TIMINGR_SCLH 3U
Expand Down
4 changes: 0 additions & 4 deletions keyboards/zoo/wampus/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

// OLED defines
#define OLED_TIMEOUT 60000
/* Both pins are in bank B */
#define I2C1_SCL 6 // B6
#define I2C1_SDA 7 // B7
#define I2C1_SCL_PAL_MODE 1
#define I2C1_SDA_PAL_MODE 1
/* This configures the I2C clock to 400khz assuming a 48Mhz clock */
#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 3U
#define I2C1_TIMINGR_SDADEL 1U
#define I2C1_TIMINGR_SCLH 3U
Expand Down

0 comments on commit c65aecc

Please sign in to comment.