ELEC351 / Mbed OS Year3_Version18_ET

Dependencies:   Peripherals Buffer_lib_v2 SD_Lib_EffedUP_ERP Time_Lib_v2 Year3_Version5 BMP280 Network_Lib TextLCD BME280

Files at this revision

API Documentation at this revision

Comitter:
cgogay
Date:
Fri Jan 04 11:30:18 2019 +0000
Parent:
15:00422efe0550
Child:
17:a3cc9013316c
Commit message:
sensor thread made higher priority, added sensor mutex lock to network lib

Changed in this revision

Network_Lib.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Network_Lib.lib	Thu Jan 03 19:25:04 2019 +0000
+++ b/Network_Lib.lib	Fri Jan 04 11:30:18 2019 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/ELEC351/code/Network_Lib/#91c4fe69ec2a
+https://os.mbed.com/teams/ELEC351/code/Network_Lib/#f49bf024d3d3
--- a/main.cpp	Thu Jan 03 19:25:04 2019 +0000
+++ b/main.cpp	Fri Jan 04 11:30:18 2019 +0000
@@ -21,10 +21,10 @@
 int setting;
 int t;
 
-Thread t1;
-Thread t2;
-Thread t3; 
-Thread t4;
+Thread t1(osPriorityRealtime);    //sensor thread is highest priority
+Thread t2(osPriorityNormal);    
+Thread t3(osPriorityNormal); 
+Thread t4(osPriorityNormal);
 
 
 //LDR sensor