![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp@2:1c9645acea2f, 2018-03-28 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed Mar 28 08:53:32 2018 +0000
- Revision:
- 2:1c9645acea2f
- Parent:
- 0:98e4994363bf
- Child:
- 3:0d013b7e4dea
Begin Threads
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 0:98e4994363bf | 1 | #include "mbed.h" |
KlaasGovaerts | 2:1c9645acea2f | 2 | #include "rtos.h" |
KlaasGovaerts | 2:1c9645acea2f | 3 | |
KlaasGovaerts | 2:1c9645acea2f | 4 | int main (void){ |
KlaasGovaerts | 2:1c9645acea2f | 5 | Mutex ArrayRead_mutex; |
KlaasGovaerts | 2:1c9645acea2f | 6 | int LED[12]; |
KlaasGovaerts | 2:1c9645acea2f | 7 | for(int i=0;i<12;i++){ |
KlaasGovaerts | 2:1c9645acea2f | 8 | |
KlaasGovaerts | 2:1c9645acea2f | 9 | } |
KlaasGovaerts | 2:1c9645acea2f | 10 | |
KlaasGovaerts | 2:1c9645acea2f | 11 | Thread recieverThread; |
KlaasGovaerts | 2:1c9645acea2f | 12 | Thread ledThread; |
KlaasGovaerts | 2:1c9645acea2f | 13 | |
KlaasGovaerts | 2:1c9645acea2f | 14 | recieverThread.start(); |
KlaasGovaerts | 2:1c9645acea2f | 15 | } |