comparison gsm-fw/ccd/asn1_objid.c @ 672:0dc6f9e8e980

gsm-fw/ccd/asn1_objid.c: _TMS470 conditional: do what the official fw does
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 28 Sep 2014 19:36:23 +0000
parents 970d6199f2c5
children
comparison
equal deleted inserted replaced
671:210268d8e553 672:0dc6f9e8e980
66 SHORT cdc_asn1_obj_id_decode (const ULONG c_ref, const ULONG e_ref, T_CCD_Globs *globs) 66 SHORT cdc_asn1_obj_id_decode (const ULONG c_ref, const ULONG e_ref, T_CCD_Globs *globs)
67 { 67 {
68 U8 BER_Len; 68 U8 BER_Len;
69 69
70 #ifdef DEBUG_CCD 70 #ifdef DEBUG_CCD
71 #ifndef CCD_SYMBOLS 71 #ifndef CCD_SYMBOLS
72 TRACE_CCD (globs, "cdc_asn1_obj_id_decode()"); 72 TRACE_CCD (globs, "cdc_asn1_obj_id_decode()");
73 #else 73 #else
74 TRACE_CCD (globs, "cdc_asn1_obj_id_decode() %s", mcomp[melem[e_ref].elemRef].name); 74 TRACE_CCD (globs, "cdc_asn1_obj_id_decode() %s",
75 #endif 75 mcomp[melem[e_ref].elemRef].name);
76 #endif
76 #endif 77 #endif
77 78
78 globs->pstructOffs = melem[e_ref].structOffs; 79 globs->pstructOffs = melem[e_ref].structOffs;
79 80
80 /* For optional elements we have already set the valid flag in the 81 /* For optional elements we have already set the valid flag in the
96 *(U8 *)(globs->pstruct + globs->pstructOffs++) = BER_Len; 97 *(U8 *)(globs->pstruct + globs->pstructOffs++) = BER_Len;
97 98
98 /* 99 /*
99 * Copy the content of object identifier bytes into the C-Structure. 100 * Copy the content of object identifier bytes into the C-Structure.
100 */ 101 */
101 #ifdef _TMS470 102 #if 1 //#ifdef _TMS470
102 bf_incBitpos (8 * BER_Len, globs); 103 bf_incBitpos (8 * BER_Len, globs);
103 #else 104 #else
104 { 105 {
105 int i; 106 int i;
106 for (i=0; i < BER_Len; i++) 107 for (i=0; i < BER_Len; i++)
127 */ 128 */
128 SHORT cdc_asn1_obj_id_encode (const ULONG c_ref, const ULONG e_ref, T_CCD_Globs *globs) 129 SHORT cdc_asn1_obj_id_encode (const ULONG c_ref, const ULONG e_ref, T_CCD_Globs *globs)
129 { 130 {
130 131
131 #ifdef DEBUG_CCD 132 #ifdef DEBUG_CCD
132 #ifndef CCD_SYMBOLS 133 #ifndef CCD_SYMBOLS
133 TRACE_CCD (globs, "cdc_asn1_obj_id_encode()"); 134 TRACE_CCD (globs, "cdc_asn1_obj_id_encode()");
134 #else 135 #else
135 TRACE_CCD (globs, "cdc_asn1_obj_id_encode() %s", mcomp[melem[e_ref].elemRef].name); 136 TRACE_CCD (globs, "cdc_asn1_obj_id_encode() %s",
136 #endif 137 mcomp[melem[e_ref].elemRef].name);
138 #endif
137 #endif 139 #endif
138 140
139 return 1; 141 return 1;
140 } 142 }
141 #endif /* !RUN_INT_RAM */ 143 #endif /* !RUN_INT_RAM */