set I²C lines

This commit is contained in:
King Kévin 2022-07-11 12:24:54 +02:00
parent d247e2e1e8
commit 1770362588
1 changed files with 4 additions and 4 deletions

View File

@ -20,13 +20,13 @@
static uint16_t period = 0;
// port for data line
#define SDA_PORT GPIO_PB
#define SDA_PORT GPIO_PD
// pin for data line
#define SDA_PIN PB5
#define SDA_PIN PD2
// port for clock line
#define SCL_PORT GPIO_PB
#define SCL_PORT GPIO_PD
// pin for clock line
#define SCL_PIN PB4
#define SCL_PIN PD3
// operation timeout (in half period)
#define TIMEOUT 10U