Dummy program to demonstrate problems: working code

Dependencies:   SLCD mbed-rtos mbed

Fork of MNG_TC by Shreesha S

Files at this revision

API Documentation at this revision

Comitter:
shreeshas95
Date:
Thu Sep 17 14:15:00 2015 +0000
Parent:
14:a4c259ca0325
Commit message:
DUMMP program to demonstrate the problems : working

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Aug 17 12:05:09 2015 +0000
+++ b/main.cpp	Thu Sep 17 14:15:00 2015 +0000
@@ -111,12 +111,14 @@
     
     lcd.printf("0");
     
-    struct data_list *hehe = VAR_SPACE::head_data;
-    while( hehe != NULL ){
-        printf("%x ", hehe->val);
-        hehe = hehe->next;
+//    DUMMY PROGRAM START
+    unsigned char dummy_tc[] = {0x7e, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x7e};
+    for(int i = 0 ; i < 13 ; ++i){
+        VAR_SPACE::rx_new_node->val = dummy_tc[i];
+        VAR_SPACE::COM_RCV_TC_thread->signal_set(0x01);
+        Thread::wait(0.01);
     }
-    printf("\r\n");
+//    DUMMY PROGRAM END
     
     while(true){
 //        ledg = !ledg;