APP Team / Mbed 2 deprecated app2

Dependencies:   mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "main.h"
00002 
00003 Queue<Event_t, 16> eventQueue;
00004 Mutex queue_mutex; 
00005 
00006 void RTC_Init()
00007 {
00008      set_time(1391097600);  // Set RTC time to Thursday, 30 Jan 2014 16:00:00   
00009 }
00010 
00011 int main() 
00012 {
00013     RTC_Init();
00014     Thread thread1(NumEvent_thread);
00015     Thread thread2(AnnEvent_thread);
00016     Thread thread3(Collector_thread);
00017     
00018     
00019     thread1.set_priority(osPriorityHigh);
00020     thread2.set_priority(osPriorityHigh);
00021     thread3.set_priority(osPriorityNormal);
00022     
00023     
00024     while (true){} 
00025  }
00026