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: mbed Rejestrator
ThreadGet.cpp
00001 #include "ThreadGet.h" 00002 /* 00003 void ThreadGet(const void *param) 00004 { 00005 osEvent queue_returned; 00006 struct row_type *data_buffer; 00007 char buf[5]; 00008 00009 while (1) 00010 { 00011 // rtos::Thread::wait(100); 00012 // WaitForSwitch(Switch2, led_red); 00013 queue_returned = data_queue.get(5); 00014 if (queue_returned.status == osEventMessage) 00015 { 00016 // WaitForSwitch(Switch2, led_red); 00017 data_buffer = (struct row_type *)queue_returned.value.p; 00018 sprintf (buf, "T%3x", (int)data_buffer->time); 00019 slcd.display (buf); 00020 data_memory.free(data_buffer); 00021 } 00022 else 00023 { 00024 // sprintf (buf, "G%3x", (int)queue_returned.status); 00025 // slcd.display (buf); 00026 } 00027 } 00028 } 00029 */
Generated on Sat Jul 30 2022 15:40:23 by
