aboutsummaryrefslogtreecommitdiff
path: root/platforms/chibios/drivers/i2c_master.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-09-15 02:19:51 +0100
committerGitHub <noreply@github.com>2021-09-15 11:19:51 +1000
commita78f0e8a0ba869681d636457f30e668e34853cb7 (patch)
tree1b9b4a6a6eb97dc433e2bec397e579e96086b4bc /platforms/chibios/drivers/i2c_master.h
parentb56282756b5faa410301de8c4ecdcae0e0148652 (diff)
downloadqmk_firmware-a78f0e8a0ba869681d636457f30e668e34853cb7.tar.gz
qmk_firmware-a78f0e8a0ba869681d636457f30e668e34853cb7.zip
Refactor use of _STM32_ defines (#14439)
Diffstat (limited to 'platforms/chibios/drivers/i2c_master.h')
-rw-r--r--platforms/chibios/drivers/i2c_master.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/chibios/drivers/i2c_master.h b/platforms/chibios/drivers/i2c_master.h
index 303aa6990..ce32fd245 100644
--- a/platforms/chibios/drivers/i2c_master.h
+++ b/platforms/chibios/drivers/i2c_master.h
@@ -70,10 +70,10 @@
70 70
71#ifdef USE_GPIOV1 71#ifdef USE_GPIOV1
72# ifndef I2C1_SCL_PAL_MODE 72# ifndef I2C1_SCL_PAL_MODE
73# define I2C1_SCL_PAL_MODE PAL_MODE_STM32_ALTERNATE_OPENDRAIN 73# define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATE_OPENDRAIN
74# endif 74# endif
75# ifndef I2C1_SDA_PAL_MODE 75# ifndef I2C1_SDA_PAL_MODE
76# define I2C1_SDA_PAL_MODE PAL_MODE_STM32_ALTERNATE_OPENDRAIN 76# define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATE_OPENDRAIN
77# endif 77# endif
78#else 78#else
79// The default PAL alternate modes are used to signal that the pins are used for I2C 79// The default PAL alternate modes are used to signal that the pins are used for I2C