pecanpico9/tracker/software/threads/threads.c

23 wiersze
462 B
C
Czysty Zwykły widok Historia

2017-05-30 22:58:20 +00:00
#include "ch.h"
#include "hal.h"
2017-09-01 22:36:45 +00:00
#include "threads.h"
#include "tracking.h"
#include "watchdog.h"
#include "pi2c.h"
#include "pac1720.h"
2017-05-30 22:58:20 +00:00
systime_t watchdog_tracking;
void start_essential_threads(void) {
// Init watchdog
init_watchdog();
// Initialize tracking manager (without GPS, GPS is initialized if needed by position thread)
init_tracking_manager(false);
pi2cInit(); // Initialize I2C
pac1720_init(); // Initialize current measurement
}