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) |
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 392760328f..7a9eb32eb9 100644 --- a/drivers/arm/i2c_master.h +++ b/drivers/arm/i2c_master.h @@ -26,6 +26,16 @@ #include "ch.h" #include <hal.h> +#ifndef I2C1_BANK + #define I2C1_BANK GPIOB +#endif +#ifndef I2C1_SCL + #define I2C1_SCL 6 +#endif +#ifndef I2C1_SDA + #define I2C1_SDA 7 +#endif + #ifndef I2C_DRIVER #define I2C_DRIVER I2CD1 #endif |