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@10:72b75743f231, 2017-03-05 (annotated)
- Committer:
- mimi3
- Date:
- Sun Mar 05 18:02:41 2017 +0900
- Revision:
- 10:72b75743f231
- Parent:
- 2:3e748cfff1d7
fixed:typo
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mimi3 | 2:3e748cfff1d7 | 1 | |
| mimi3 | 2:3e748cfff1d7 | 2 | #include "mbed.h" |
| mimi3 | 2:3e748cfff1d7 | 3 | #include "led_tsk.h" |
| mimi3 | 2:3e748cfff1d7 | 4 | |
| mimi3 | 2:3e748cfff1d7 | 5 | #define SCHEDULER_TASK_STACK_SIZE_EACH 1000 |
| mimi3 | 2:3e748cfff1d7 | 6 | #include "Scheduler.h" |
| mimi3 | 2:3e748cfff1d7 | 7 | |
| mimi3 | 2:3e748cfff1d7 | 8 | Serial pc(USBTX, USBRX); |
| mimi3 | 2:3e748cfff1d7 | 9 | |
| mimi3 | 2:3e748cfff1d7 | 10 | int main() |
| mimi3 | 2:3e748cfff1d7 | 11 | { |
| mimi3 | 2:3e748cfff1d7 | 12 | int i=0; |
| mimi3 | 2:3e748cfff1d7 | 13 | pc.baud(115200); |
| mimi3 | 2:3e748cfff1d7 | 14 | scheduler_startLoop( led1_task ); |
| mimi3 | 2:3e748cfff1d7 | 15 | |
| mimi3 | 2:3e748cfff1d7 | 16 | while(1) { |
| mimi3 | 2:3e748cfff1d7 | 17 | pc.printf("\n[%4d] Hello World ! / mbed ",i++); |
| mimi3 | 2:3e748cfff1d7 | 18 | taskWait(1000); |
| mimi3 | 2:3e748cfff1d7 | 19 | } |
| mimi3 | 2:3e748cfff1d7 | 20 | |
| mimi3 | 2:3e748cfff1d7 | 21 | } |
| mimi3 | 2:3e748cfff1d7 | 22 | |
| mimi3 | 2:3e748cfff1d7 | 23 | |
| mimi3 | 2:3e748cfff1d7 | 24 |