diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-16 01:25:21 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-16 01:25:21 +0100 |
commit | 172d694cf7ba582635ac38454bad0f0fdaa14773 (patch) | |
tree | efb0d145ed7fb3eeb44541714568680a6451ab3d /i2c/i2c.cpp | |
parent | 9921c9db409ad5b00fe4a43a2459e2fd2de6b0cf (diff) |
interrupt: Generate interrupts from platform spec.
Diffstat (limited to 'i2c/i2c.cpp')
-rw-r--r-- | i2c/i2c.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/i2c/i2c.cpp b/i2c/i2c.cpp index 36ce972..3039e47 100644 --- a/i2c/i2c.cpp +++ b/i2c/i2c.cpp @@ -4,12 +4,12 @@ #include <os/thread.h> #if defined(STM32F1) -I2C_t I2C1(0x40005400, 36000000, Interrupt::I2C1_EV, Interrupt::I2C1_ER); -I2C_t I2C2(0x40005800, 36000000, Interrupt::I2C2_EV, Interrupt::I2C2_ER); +I2C_t I2C1(0x40005400, 36000000); +I2C_t I2C2(0x40005800, 36000000); #elif defined(STM32F4) -I2C_t I2C1(0x40005400, 42000000, Interrupt::I2C1_EV, Interrupt::I2C1_ER); -I2C_t I2C2(0x40005800, 42000000, Interrupt::I2C2_EV, Interrupt::I2C2_ER); -//I2C_t I2C3(0x40005c00, 42000000, Interrupt::I2C3_EV, Interrupt::I2C3_ER); +I2C_t I2C1(0x40005400, 42000000); +I2C_t I2C2(0x40005800, 42000000); +//I2C_t I2C3(0x40005c00, 42000000); #endif #if defined(STM32F1) || defined(STM32F4) |