APP Team / Mbed 2 deprecated app2

Dependencies:   mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #ifndef MAIN_H
00002 #define MAIN_H
00003 
00004 #include "mbed.h"
00005 #include "rtos.h"
00006 
00007 #define NUM_DELAY 100
00008 #define ANN_DELAY 250
00009 #define ANN_THRESOLD 125
00010 
00011 #define SWITCH_1 0
00012 #define SWITCH_2 1
00013 #define POT_1 2
00014 #define POT_2 3
00015 
00016 
00017 struct Event
00018 {
00019        short type;
00020        time_t time;
00021 };
00022 
00023 typedef Event Event_t;
00024 
00025 void NumEvent_thread(void const *args);
00026 void AnnEvent_thread(void const *args);
00027 void Collector_thread(void const *args);
00028 
00029 #endif //MAIN_H