aboutsummaryrefslogtreecommitdiff
path: root/main/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/init.c')
-rw-r--r--main/init.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/init.c b/main/init.c
index 6d29d19..25fa5e3 100644
--- a/main/init.c
+++ b/main/init.c
@@ -7,7 +7,7 @@
#include "config.h"
#include "init.h"
#include "tasks.h"
-#include "pbdrv.h"
+#include "pb-mod.h"
static void init_stdio() {
stdio_init_all();
@@ -29,11 +29,15 @@ static void init_wifi() {
}
static void init_i2c() {
- gpio_set_function(CFG_SDA_PIN, GPIO_FUNC_I2C);
- gpio_set_function(CFG_SCL_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SDA0_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SCL0_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SDA1_PIN, GPIO_FUNC_I2C);
+ gpio_set_function(CFG_SCL1_PIN, GPIO_FUNC_I2C);
- gpio_pull_up(CFG_SDA_PIN);
- gpio_pull_up(CFG_SCL_PIN);
+ gpio_pull_up(CFG_SDA0_PIN);
+ gpio_pull_up(CFG_SCL0_PIN);
+ gpio_pull_up(CFG_SDA1_PIN);
+ gpio_pull_up(CFG_SCL1_PIN);
pb_setup();
}