Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

tasks/tasks.h

Committer:
dbartolovic
Date:
2018-08-29
Branch:
axis_normal
Revision:
16:482d8f81d6f3
Parent:
15:c0c01188a29b
Child:
24:7539258b015c

File content as of revision 16:482d8f81d6f3:

#ifndef __TASKS_H__
#define __TASKS_H__

#include "Lis2dh12.h"

#define TEST_LEDS_BUZZ          (0)

#define MEASURE_INTERVAL_MS     (100)
#define ACTIVE_PERIOD           (10000)

#define MEAS_DONE               (0x00001000)
#define UPDATE_BUZZ_LEDS        (0x00001001)
#define START_MEAS              (0x00010000)

void tasks_init();

#if TEST_LEDS_BUZZ
void led_tick();
void buzz_tick();
#endif

void measureF(Lis2dh12 *mems);
void updateServiceF();
void updateBuzzLedsF();
void bleF(BLE *ble);
void servLoopC(void);

#endif//__TASKS_H__