FreeCalypso > hg > freecalypso-sw
diff gsm-fw/gpf/tst_drv/ser_tr.c @ 325:ffb0442ffccf
gsm-fw/gpf/tst_drv: got as far as compiling tr2.c
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 19 Apr 2014 00:18:44 +0000 |
parents | 5d1e22505446 |
children |
line wrap: on
line diff
--- a/gsm-fw/gpf/tst_drv/ser_tr.c Sun Apr 13 08:19:38 2014 +0000 +++ b/gsm-fw/gpf/tst_drv/ser_tr.c Sat Apr 19 00:18:44 2014 +0000 @@ -21,9 +21,10 @@ #define __SER_TR_C__ #endif +#include "gpfconf.h" #include "typedefs.h" -#include "traceswitch.h" -#include "serialswitch.h" +#include "../../serial/traceswitch.h" +#include "../../serial/serialswitch.h" #include "gdi.h" #include "tstheader.h" @@ -68,10 +69,10 @@ */ void Callback ( void ) { - if ( SER_TR_Data.EnabledSignalType & DRV_SIGTYPE_READ ) + if ( SER_TR_Data.EnabledSignalType & DRV_SIGTYPE_READ ) { Signal.SignalType = DRV_SIGTYPE_READ; - Signal.DrvHandle = SER_TR_Data.Handle; + Signal.DrvHandle = SER_TR_Data.Handle; (SER_TR_Data.Callback)( &Signal ); } @@ -149,7 +150,7 @@ */ USHORT SER_TR_SetSignal ( USHORT SignalType ) { - if ( !(SignalType & ALLOWED_SER_TR_SIGNALS) ) + if ( !(SignalType & ALLOWED_SER_TR_SIGNALS) ) return DRV_INVALID_PARAMS; else SER_TR_Data.EnabledSignalType |= SignalType; @@ -170,7 +171,7 @@ */ USHORT SER_TR_ResetSignal ( USHORT SignalType ) { - if ( !(SignalType & ALLOWED_SER_TR_SIGNALS) ) + if ( !(SignalType & ALLOWED_SER_TR_SIGNALS) ) return DRV_INVALID_PARAMS; else SER_TR_Data.EnabledSignalType &= ~SignalType; @@ -195,7 +196,7 @@ if ( !SER_TR_Data.Connected ) { Signal.SignalType = DRV_SIGTYPE_CONNECT; - Signal.DrvHandle = SER_TR_Data.Handle; + Signal.DrvHandle = SER_TR_Data.Handle; Signal.UserData = NULL; (SER_TR_Data.Callback)( &Signal ); SER_TR_Data.Connected = TRUE;