Add i2c and bmp180 to init

master
Richard Meadows 2015-10-01 14:26:39 +01:00
rodzic e5e6cfaf85
commit b2e58bc4a5
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -28,6 +28,7 @@
#include "system/port.h"
#include "system/events.h"
#include "system/extint.h"
#include "sercom/i2c.h"
#include "gps.h"
#include "si_trx.h"
#include "watchdog.h"
@ -37,6 +38,7 @@
#include "data.h"
#include "memory.h"
#include "telemetry.h"
#include "bmp180.h"
#include "init.h"
/**
@ -116,6 +118,12 @@ void init(timepulse_callback_t callback, enum init_type init_t)
/* Enable the xosc on gclk1 */
xosc_init();
/* i2c */
i2c_init();
/* barometer */
bmp180_init();
if (init_t != INIT_TESTCASE) {
/* Telemetry init depends on gclk */
telemetry_init();