...

Dependencies:   mbed-rtos mbed

main.h

Committer:
passelin
Date:
2014-01-28
Revision:
4:7d6b46b40fba
Parent:
3:cd25d0efe0e1

File content as of revision 4:7d6b46b40fba:

#ifndef MAIN_H
#define MAIN_H

#include "mbed.h"
#include "rtos.h"

#define NUM_DELAY 100
#define ANN_DELAY 250
#define ANN_THRESOLD 125

#define SWITCH_1 0
#define SWITCH_2 1
#define POT_1 2
#define POT_2 3

struct Event
{
       short type;
       time_t time;
};

typedef Event Event_t;

void NumEvent_thread(void const *args);
void AnnEvent_thread(void const *args);
void Collector_thread(void const *args);

#endif //MAIN_H