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.
Dependencies: BSP_DISCO_F746NG
example_main.cpp@1:a23fffad1321, 2020-09-10 (annotated)
- Committer:
- elelthvd
- Date:
- Thu Sep 10 09:24:23 2020 +0000
- Revision:
- 1:a23fffad1321
Add usage for Mbed Thread
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| elelthvd | 1:a23fffad1321 | 1 | /* example_main.cpp */ |
| elelthvd | 1:a23fffad1321 | 2 | // |
| elelthvd | 1:a23fffad1321 | 3 | //#include "lvgl_f746ng.h" |
| elelthvd | 1:a23fffad1321 | 4 | //#include "mbed.h" |
| elelthvd | 1:a23fffad1321 | 5 | // |
| elelthvd | 1:a23fffad1321 | 6 | //int main() { |
| elelthvd | 1:a23fffad1321 | 7 | // printf("main from context %p\n", ThisThread::get_id()); |
| elelthvd | 1:a23fffad1321 | 8 | // |
| elelthvd | 1:a23fffad1321 | 9 | // lvgl_f746ng_init(); // Initialize the LittlevGL |
| elelthvd | 1:a23fffad1321 | 10 | // |
| elelthvd | 1:a23fffad1321 | 11 | // while (1) { |
| elelthvd | 1:a23fffad1321 | 12 | // thread_sleep_for(100); |
| elelthvd | 1:a23fffad1321 | 13 | // } |
| elelthvd | 1:a23fffad1321 | 14 | //} |
| elelthvd | 1:a23fffad1321 | 15 | // |