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.
Diff: DisplayApp.cpp
- Revision:
- 2:b7ffe5216cd7
- Parent:
- 1:fdcf2c6a1167
- Child:
- 3:693902c86ca0
--- a/DisplayApp.cpp Fri Sep 16 08:04:52 2016 +0000
+++ b/DisplayApp.cpp Fri Sep 16 10:26:16 2016 +0000
@@ -9,7 +9,7 @@
pPcApp = new USBSerial;
- displayThread.set_priority(osPriorityNormal);
+ displayThread.set_priority(change_pri);
while (1) {
if (pPcApp->readable()) {
data = pPcApp->getc();
@@ -86,7 +86,7 @@
((DisplayApp *)arg)->display_app_process();
}
-DisplayApp::DisplayApp() : displayThread(DisplayApp::display_app_process_static, (void *)this, osPriorityLow, 1024) {
+DisplayApp::DisplayApp(osPriority tsk_pri, osPriority init_pri, uint32_t stack_size) : change_pri(tsk_pri), displayThread(DisplayApp::display_app_process_static, (void *)this, init_pri, stack_size) {
}
void DisplayApp::SendHeader(uint32_t size) {