diff options
author | jaseg <git@jaseg.net> | 2019-04-15 01:25:05 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2019-04-15 01:25:05 +0900 |
commit | a860bd27a0950e4dd8ae530f9095a91ced7436a3 (patch) | |
tree | ec7fd410ac208e5d02b1c852171df7419fdf6de0 /driver_fw/i2c.h | |
parent | af19e3b1128e7d2de425849c342db59eece729e3 (diff) | |
download | 8seg-a860bd27a0950e4dd8ae530f9095a91ced7436a3.tar.gz 8seg-a860bd27a0950e4dd8ae530f9095a91ced7436a3.tar.bz2 8seg-a860bd27a0950e4dd8ae530f9095a91ced7436a3.zip |
driver/fw: Temp sensor working modulo some brownout condition
Diffstat (limited to 'driver_fw/i2c.h')
-rw-r--r-- | driver_fw/i2c.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/driver_fw/i2c.h b/driver_fw/i2c.h index ac4674d..4df7750 100644 --- a/driver_fw/i2c.h +++ b/driver_fw/i2c.h @@ -3,45 +3,6 @@ #include "global.h"
-// I2C HAL
-
-// I2C1
-// SCL [PB6, PB8]
-#define I2C1_SCL_GPIO_PERIPH RCC_AHB2ENR_GPIOBEN
-#define I2C1_SCL_GPIO_PORT GPIOB
-#define I2C1_SCL_GPIO_PIN GPIO_PIN_8
-#define I2C1_SCL_GPIO_SRC GPIO_PinSource8
-// SDA [PB7, PB9]
-#define I2C1_SDA_GPIO_PERIPH RCC_AHB2ENR_GPIOBEN
-#define I2C1_SDA_GPIO_PORT GPIOB
-#define I2C1_SDA_GPIO_PIN GPIO_PIN_9
-#define I2C1_SDA_GPIO_SRC GPIO_PinSource9
-
-// I2C2
-// SCL [PB10, PB13]
-#define I2C2_SCL_GPIO_PERIPH RCC_AHB2ENR_GPIOBEN
-#define I2C2_SCL_GPIO_PORT GPIOB
-#define I2C2_SCL_GPIO_PIN GPIO_PIN_10
-#define I2C2_SCL_GPIO_SRC GPIO_PinSource10
-// SDA [PB11, PB14]
-#define I2C2_SDA_GPIO_PERIPH RCC_AHB2ENR_GPIOBEN
-#define I2C2_SDA_GPIO_PORT GPIOB
-#define I2C2_SDA_GPIO_PIN GPIO_PIN_11
-#define I2C2_SDA_GPIO_SRC GPIO_PinSource11
-
-// I2C3
-// SCL [PC0]
-#define I2C3_SCL_GPIO_PERIPH RCC_AHB2ENR_GPIOCEN
-#define I2C3_SCL_GPIO_PORT GPIOC
-#define I2C3_SCL_GPIO_PIN GPIO_PIN_0
-#define I2C3_SCL_GPIO_SRC GPIO_PinSource0
-// SDA [PC1]
-#define I2C3_SDA_GPIO_PERIPH RCC_AHB2ENR_GPIOCEN
-#define I2C3_SDA_GPIO_PORT GPIOC
-#define I2C3_SDA_GPIO_PIN GPIO_PIN_1
-#define I2C3_SDA_GPIO_SRC GPIO_PinSource1
-
-
// Definitions of I2C analog filter state
#define I2C_AF_ENABLE ((uint32_t)0x00000000U) // Analog filter is enabled
#define I2C_AF_DISABLE I2C_CR1_ANFOFF // Analog filter is disabled
|