set I²C lines
This commit is contained in:
parent
d247e2e1e8
commit
1770362588
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue