diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-12-04 02:08:56 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-12-04 02:08:56 +0100 |
commit | 8e8dbf2c2aa18a25f3a330db9135fd64de8ebf6c (patch) | |
tree | 7b4fa7908d55a40ef329f365c23a5b1a34720152 /hal/stm32.h | |
parent | a91546773296485bceff48c13d0c8211515b7fce (diff) |
Moved I2C register definitions into separate header, improved I2C implementation.
Diffstat (limited to 'hal/stm32.h')
-rw-r--r-- | hal/stm32.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/hal/stm32.h b/hal/stm32.h index 7ddb479..6c7a04b 100644 --- a/hal/stm32.h +++ b/hal/stm32.h @@ -42,21 +42,6 @@ struct STK_t { static STK_t& STK = *(STK_t*)0xe000e010; -struct I2C_t { - volatile uint32_t CR1; - volatile uint32_t CR2; - volatile uint32_t OAR1; - volatile uint32_t OAR2; - volatile uint32_t DR; - volatile uint32_t SR1; - volatile uint32_t SR2; - volatile uint32_t CCR; - volatile uint32_t TRISE; -}; - -static I2C_t& I2C1 = *(I2C_t*)0x40005400; -static I2C_t& I2C2 = *(I2C_t*)0x40005800; - struct TIM_t { volatile uint32_t CR1; volatile uint32_t CR2; |