Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*********************************************************************//
- #define __GSM_MAIN_C
- //-----------------------------------------------------------------//
- //System Includes
- //-----------------------------------------------------------------//
- FILE *datei;
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <signal.h>
- #include <pthread.h>
- #include <ctype.h>
- #include <unistd.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- //-----------------------------------------------------------------//
- //User Includes
- //-----------------------------------------------------------------//
- #include "LoadGSMfunction.h"
- #include "LoadIOfunction.h"
- #include "LoadRTUfunction.h"
- #include "LoadLibrary.h"
- #include "Test_GSM.h"
- #include "GSM_Agenda.h"
- #include "GSM_SMS.h"
- #include "GSM_Network.h"
- #include "GSM_VoiceCall.h"
- #include "GSM_Services.h"
- #include "GSM_Data.h"
- #include "GSM_Miscelaneous.h"
- #include "GPRS_iNet.h"
- #include "Traces_Verification.h"
- #include "gsmLog.h"
- //-----------------------------------------------------------------//
- //Defines
- //-----------------------------------------------------------------//
- //-----------------------------------------------------------------//
- //Macros
- //-----------------------------------------------------------------//
- //-----------------------------------------------------------------//
- //External variables
- //-----------------------------------------------------------------//
- //-----------------------------------------------------------------//
- //External functions
- //-----------------------------------------------------------------//
- //-----------------------------------------------------------------//
- //Private variables
- //-----------------------------------------------------------------//
- //-----------------------------------------------------------------//
- //Private funcions
- //-----------------------------------------------------------------//
- //User Variables
- UCHAR keyEntry[ MAX_ENTRY_SIZE];
- static pthread_t gsmEvents;
- TGSM_MODULE_CONFIGURATION gsmConfig;
- INT ReturnCode = NO_ERROR;
- INT I;
- INT isActive;
- VOID gsmStart(VOID);
- VOID gsmStop(VOID);
- //-----------------------------------------------------------------//
- // Function: main()
- // Input Params:
- // -
- // Output Params:
- // Result of the program
- // Description:
- // Main function to work with GSM library
- //-----------------------------------------------------------------//
- int startPSI( VOID) {
- datei = fopen ("/tmp/gsmLog.txt", "w");
- if (datei == NULL) {
- printf("Fehler beim oeffnen der Datei.");
- return 1;
- }
- printfile ("OWASYS--> Starting PSI GSM Application\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement