Advertisement
Guest User

Main.c

a guest
May 7th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. //*********************************************************************//
  2. #define __GSM_MAIN_C
  3. //-----------------------------------------------------------------//
  4. //System Includes
  5. //-----------------------------------------------------------------//
  6. FILE *datei;
  7.  
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <string.h>
  11. #include <signal.h>
  12. #include <pthread.h>
  13. #include <ctype.h>
  14. #include <unistd.h>
  15. #include <sys/types.h>
  16. #include <sys/stat.h>
  17. #include <fcntl.h>
  18. //-----------------------------------------------------------------//
  19. //User Includes
  20. //-----------------------------------------------------------------//
  21. #include "LoadGSMfunction.h"
  22. #include "LoadIOfunction.h"
  23. #include "LoadRTUfunction.h"
  24. #include "LoadLibrary.h"
  25. #include "Test_GSM.h"
  26. #include "GSM_Agenda.h"
  27. #include "GSM_SMS.h"
  28. #include "GSM_Network.h"
  29. #include "GSM_VoiceCall.h"
  30. #include "GSM_Services.h"
  31. #include "GSM_Data.h"
  32. #include "GSM_Miscelaneous.h"
  33. #include "GPRS_iNet.h"
  34. #include "Traces_Verification.h"
  35.  
  36. #include "gsmLog.h"
  37.  
  38. //-----------------------------------------------------------------//
  39. //Defines
  40. //-----------------------------------------------------------------//
  41. //-----------------------------------------------------------------//
  42. //Macros
  43. //-----------------------------------------------------------------//
  44. //-----------------------------------------------------------------//
  45. //External variables
  46. //-----------------------------------------------------------------//
  47. //-----------------------------------------------------------------//
  48. //External functions
  49. //-----------------------------------------------------------------//
  50. //-----------------------------------------------------------------//
  51. //Private variables
  52. //-----------------------------------------------------------------//
  53.  
  54. //-----------------------------------------------------------------//
  55. //Private funcions
  56. //-----------------------------------------------------------------//
  57. //User Variables
  58. UCHAR keyEntry[ MAX_ENTRY_SIZE];
  59. static pthread_t gsmEvents;
  60. TGSM_MODULE_CONFIGURATION gsmConfig;
  61. INT ReturnCode = NO_ERROR;
  62. INT I;
  63. INT isActive;
  64. VOID gsmStart(VOID);
  65. VOID gsmStop(VOID);
  66. //-----------------------------------------------------------------//
  67. // Function: main()
  68. // Input Params:
  69. // -
  70. // Output Params:
  71. // Result of the program
  72. // Description:
  73. // Main function to work with GSM library
  74. //-----------------------------------------------------------------//
  75.  
  76. int startPSI( VOID) {
  77.  
  78. datei = fopen ("/tmp/gsmLog.txt", "w");
  79. if (datei == NULL) {
  80. printf("Fehler beim oeffnen der Datei.");
  81. return 1;
  82. }
  83.  
  84. printfile ("OWASYS--> Starting PSI GSM Application\n");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement