FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/include/condat/gsm.h @ 663:643379e7e141
gsm-fw/include/condat: initial round of fixes
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 28 Sep 2014 04:25:41 +0000 |
parents | a712c95b60c1 |
children |
comparison
equal
deleted
inserted
replaced
662:a712c95b60c1 | 663:643379e7e141 |
---|---|
149 #else | 149 #else |
150 #define FREE_BUFFER(p) | 150 #define FREE_BUFFER(p) |
151 #define NEW_BUFFER(p,s) UBYTE buf_##p [(s)+sizeof(T_PRIM_HEADER)]; T_PRIM *p=(T_PRIM*)p1 | 151 #define NEW_BUFFER(p,s) UBYTE buf_##p [(s)+sizeof(T_PRIM_HEADER)]; T_PRIM *p=(T_PRIM*)p1 |
152 #endif | 152 #endif |
153 | 153 |
154 #if !defined (_TMS470) | 154 #if 0 //!defined (_TMS470) |
155 #define Sprintf sprintf | 155 #define Sprintf sprintf |
156 #else | 156 #else |
157 int sprintf( char *buffer, const char *format, ... ); | 157 int sprintf( char *buffer, const char *format, ... ); |
158 #endif | 158 #endif |
159 | 159 |
160 #ifndef NEW_FRAME | 160 #ifndef NEW_FRAME |
161 | 161 |
162 #ifdef _TMS470 | 162 #if 1 //#ifdef _TMS470 |
163 #define SET_PRIM_OPCODE(P,O) P->custom.opc = O; P->custom.opc2 = 0 | 163 #define SET_PRIM_OPCODE(P,O) P->custom.opc = O; P->custom.opc2 = 0 |
164 #else | 164 #else |
165 #define SET_PRIM_OPCODE(P,O) P->custom.opc = O | 165 #define SET_PRIM_OPCODE(P,O) P->custom.opc = O |
166 #endif | 166 #endif |
167 | 167 |
422 */ | 422 */ |
423 | 423 |
424 #ifdef OPTION_TIMER | 424 #ifdef OPTION_TIMER |
425 #define TSTART(i,h,v) tim_start_timer(i,h,v) | 425 #define TSTART(i,h,v) tim_start_timer(i,h,v) |
426 #else | 426 #else |
427 #define TSTART(i,h,v) TIMER_START(VSI_CALLER h,v) | 427 #define TSTART(i,h,v) vsi_t_start(VSI_CALLER h,v) |
428 #endif | 428 #endif |
429 | 429 |
430 #ifdef OPTION_RELATIVE | 430 #ifdef OPTION_RELATIVE |
431 #define JUMP(a) (a+offset) | 431 #define JUMP(a) (a+offset) |
432 #else | 432 #else |