summaryrefslogtreecommitdiff
path: root/board/nucleo-f072rb/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/nucleo-f072rb/board.c')
-rw-r--r--board/nucleo-f072rb/board.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/nucleo-f072rb/board.c b/board/nucleo-f072rb/board.c
index 7bbfdfab39..c3489a9617 100644
--- a/board/nucleo-f072rb/board.c
+++ b/board/nucleo-f072rb/board.c
@@ -8,6 +8,8 @@
#include "hooks.h"
#include "registers.h"
#include "task.h"
+#include "i2c.h"
+#include "timer.h"
void button_event(enum gpio_signal signal)
{
@@ -26,6 +28,14 @@ void tick_event(void)
}
DECLARE_HOOK(HOOK_TICK, tick_event, HOOK_PRIO_DEFAULT);
+#ifdef CTS_MODULE_I2C
+const struct i2c_port_t i2c_ports[] = {
+ {"test", STM32_I2C1_PORT, 100, GPIO_I2C1_SCL, GPIO_I2C1_SDA},
+};
+
+const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
+#endif
+
/******************************************************************************
* Initialize board.
*/