diff options
| author | skullY <skullydazed@gmail.com> | 2019-01-26 21:25:59 -0800 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-02-10 15:37:12 -0800 |
| commit | 6b74dd6de5359da18e87b2d4894e3ffc3fc89d47 (patch) | |
| tree | d4b467f032aadac477c4c2fb21d17a6c35dd30a0 /drivers/arm/i2c_master.h | |
| parent | bf2670601d29551896bab6811b9bb64de2d0ee0e (diff) | |
| download | qmk_firmware-6b74dd6de5359da18e87b2d4894e3ffc3fc89d47.tar.gz qmk_firmware-6b74dd6de5359da18e87b2d4894e3ffc3fc89d47.zip | |
led_matrix works now
Diffstat (limited to 'drivers/arm/i2c_master.h')
| -rw-r--r-- | drivers/arm/i2c_master.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/arm/i2c_master.h b/drivers/arm/i2c_master.h index 392760328..7a9eb32eb 100644 --- a/drivers/arm/i2c_master.h +++ b/drivers/arm/i2c_master.h | |||
| @@ -26,6 +26,16 @@ | |||
| 26 | #include "ch.h" | 26 | #include "ch.h" |
| 27 | #include <hal.h> | 27 | #include <hal.h> |
| 28 | 28 | ||
| 29 | #ifndef I2C1_BANK | ||
| 30 | #define I2C1_BANK GPIOB | ||
| 31 | #endif | ||
| 32 | #ifndef I2C1_SCL | ||
| 33 | #define I2C1_SCL 6 | ||
| 34 | #endif | ||
| 35 | #ifndef I2C1_SDA | ||
| 36 | #define I2C1_SDA 7 | ||
| 37 | #endif | ||
| 38 | |||
| 29 | #ifndef I2C_DRIVER | 39 | #ifndef I2C_DRIVER |
| 30 | #define I2C_DRIVER I2CD1 | 40 | #define I2C_DRIVER I2CD1 |
| 31 | #endif | 41 | #endif |
