![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Program to test exporting mbed-os
Fork of RTOS_L073RZ_blinky by
main.cpp@0:fcb2f7f70518, 2018-02-08 (annotated)
- Committer:
- michaelVisimid
- Date:
- Thu Feb 08 20:27:41 2018 +0000
- Revision:
- 0:fcb2f7f70518
RTOS test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michaelVisimid | 0:fcb2f7f70518 | 1 | #include "mbed.h" |
michaelVisimid | 0:fcb2f7f70518 | 2 | |
michaelVisimid | 0:fcb2f7f70518 | 3 | DigitalOut led1(LED1); |
michaelVisimid | 0:fcb2f7f70518 | 4 | |
michaelVisimid | 0:fcb2f7f70518 | 5 | // main() runs in its own thread in the OS |
michaelVisimid | 0:fcb2f7f70518 | 6 | int main() { |
michaelVisimid | 0:fcb2f7f70518 | 7 | while (true) { |
michaelVisimid | 0:fcb2f7f70518 | 8 | led1 = !led1; |
michaelVisimid | 0:fcb2f7f70518 | 9 | wait(0.5); |
michaelVisimid | 0:fcb2f7f70518 | 10 | } |
michaelVisimid | 0:fcb2f7f70518 | 11 | } |
michaelVisimid | 0:fcb2f7f70518 | 12 |