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: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: COM_SND_TM.h
- Revision:
- 27:f408ea06fcab
- Parent:
- 26:5fbb71ac7127
- Child:
- 29:f4c59f7285a2
diff -r 5fbb71ac7127 -r f408ea06fcab COM_SND_TM.h
--- a/COM_SND_TM.h	Sat Jan 02 14:37:59 2016 +0000
+++ b/COM_SND_TM.h	Sun Jan 03 10:14:42 2016 +0000
@@ -1,7 +1,7 @@
 //void adf_not_SDcard();
  
 #define S_FRAME_SIZE 48
-#define ISR 40
+#define ISR 10
 #define TM_FRAME_SIZE 134           //in bytes
 #define T_FRAME_SIZE 159
 #define EOS_SIZE 120
@@ -63,7 +63,7 @@
         Base_tm*head = head_ptr;
         type0_no = 0;
         type1_no = 0;
-        while(head != NULL){
+        while(head->next_TM != NULL){
             switch( GETshort_or_long_tm(head->fields) ){
                 case 0:
                     type0_no++;
@@ -335,7 +335,15 @@
  
  
         void head_pointer(Base_tm* ptr){
-            head_ptr = ptr ;
+            Base_tm *genTM = ptr;
+            while(ptr->next_TM != NULL)
+            {
+                ptr=ptr->next_TM;
+            }
+            ptr->next_TM = new Long_tm;
+            ptr = ptr->next_TM;
+            ptr->next_TM = NULL;
+            head_ptr = genTM ;
             type1_frame_flag = true;
             type0_frame_flag = true;
             make_DataStream_f = true;
    