Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Wed Jul 13 2022 03:00:04 by
1.7.2