GlobalVariable.s43
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:9k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1.         NAME GlobalVariable
  2.         RTMODEL "__double_size", "32"
  3.         RTMODEL "__pic", "no"
  4.         RTMODEL "__reg_r4", "free"
  5.         RTMODEL "__reg_r5", "free"
  6.         RTMODEL "__rt_version", "1"
  7.         RSEG CSTACK:DATA:SORT:NOROOT(1)
  8.         EXTERN ?cstart_init_copy
  9.         EXTERN ?cstart_init_zero
  10.         EXTERN ?longjmp_r4
  11.         EXTERN ?longjmp_r5
  12.         EXTERN ?setjmp_r4
  13.         EXTERN ?setjmp_r5
  14.         PUBWEAK ?setjmp_save_r4
  15.         PUBWEAK ?setjmp_save_r5
  16.         PUBLIC ADDRESS_VALUE
  17.         PUBLIC COLUMN_ADDRESS_HIGH
  18.         PUBLIC COLUMN_ADDRESS_LOW
  19.         PUBLIC COMMAND_VAL
  20.         PUBLIC FLASH_READ_DATA
  21.         PUBLIC FLASH_STATUS
  22.         PUBLIC FRHTSI
  23.         PUBLIC FTHCSI
  24.         PUBLIC FTHDIS
  25.         PUBLIC ROW_ADDRESS_HIGH
  26.         PUBLIC ROW_ADDRESS_LOW
  27.         PUBLIC aucSoftUartRxBuf
  28.         PUBLIC aucUartRxBuf
  29.         PUBLIC aucUartTxBuf
  30.         PUBLIC aucViewData
  31.         PUBLIC gdwRxQueueFrontCnt
  32.         PUBLIC gdwRxQueueRearCnt
  33.         PUBLIC gpucQueueFront
  34.         PUBLIC gpucQueueRear
  35.         PUBLIC gpucTxBufPnt
  36.         PUBLIC gucFrhErrorStatus
  37.         PUBLIC gucGeneralStatus
  38.         PUBLIC gucSoftUartRxCnt
  39.         PUBLIC gucTimeOverflowCount
  40.         PUBLIC gucTxBufCnt
  41.         PUBLIC gucUartRxCnt
  42.         PUBLIC gwColumnAddress
  43.         PUBLIC gwGeneralPageAddress
  44.         PUBLIC gwPageAddress
  45.         PUBLIC gwTimeOverflowCount
  46.         PUBLIC gwTxNum
  47. // E:projectFaxProgramVson_Bryan_Fax_Conexant_070423filesGlobalVariable.c
  48. //    1 #include  "includeH.h"
  49. //    2 
  50.         RSEG DATA16_Z:DATA:SORT:NOROOT(1)
  51. REQUIRE ?cstart_init_zero
  52. //    3 unsigned int gwTxNum;
  53. gwTxNum:
  54.         DS8 2
  55. //    4 
  56.         RSEG DATA16_I:DATA:SORT:NOROOT(0)
  57. REQUIRE ?cstart_init_copy
  58. //    5 unsigned char   FTHCSI[25]={0xff,0x03,0x40,0x20,0x20,0x20,0x20,0x20,
  59. FTHCSI:
  60.         DS8 25
  61. REQUIRE `?<Initializer for FTHCSI>`
  62. //    6                   0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  63. //    7                   0x78,0x61,0x46,0x10,0x03};//Default Value is @Fax 25Bytes
  64.         RSEG DATA16_I:DATA:SORT:NOROOT(0)
  65. REQUIRE ?cstart_init_copy
  66. //    8 unsigned char   FTHDIS[8]={0xff,0x13,0x80,0x00,0x46,0x78,0x10,0x03};//c6 T.4 2D 46 T.4 1D
  67. FTHDIS:
  68.         DS8 8
  69. REQUIRE `?<Initializer for FTHDIS>`
  70.         RSEG DATA16_I:DATA:SORT:NOROOT(0)
  71. REQUIRE ?cstart_init_copy
  72. //    9 unsigned char   FRHTSI[25]={0xff,0x03,0x40,0x20,0x20,0x20,0x20,0x20,
  73. FRHTSI:
  74.         DS8 25
  75. REQUIRE `?<Initializer for FRHTSI>`
  76. //   10                   0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
  77. //   11                   0x78,0x61,0x46,0x10,0x03};//Default Value is @Fax 25Bytes
  78. //   12 
  79.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  80. REQUIRE ?cstart_init_zero
  81. //   13 unsigned char   aucUartRxBuf[256];
  82. aucUartRxBuf:
  83.         DS8 256
  84.         RSEG DATA16_I:DATA:SORT:NOROOT(0)
  85. REQUIRE ?cstart_init_copy
  86. //   14 unsigned char   aucUartTxBuf[32]={0x41,0x54,0x0D,0x0A};
  87. aucUartTxBuf:
  88.         DS8 32
  89. REQUIRE `?<Initializer for aucUartTxBuf>`
  90.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  91. REQUIRE ?cstart_init_zero
  92. //   15 unsigned char   aucSoftUartRxBuf[20];
  93. aucSoftUartRxBuf:
  94.         DS8 20
  95. //   16 
  96.         RSEG DATA16_I:DATA:SORT:NOROOT(1)
  97. REQUIRE ?cstart_init_copy
  98. //   17 unsigned int  gwPageAddress=cstFaxContentStartPage-1;//2559;//1279, //for write flash page by page
  99. gwPageAddress:
  100.         DS8 2
  101. REQUIRE `?<Initializer for gwPageAddress>`
  102.         RSEG DATA16_Z:DATA:SORT:NOROOT(1)
  103. REQUIRE ?cstart_init_zero
  104. //   18 unsigned int  gwColumnAddress=0; //for find blank page
  105. gwColumnAddress:
  106.         DS8 2
  107. //   19 
  108. //   20               
  109.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  110. REQUIRE ?cstart_init_zero
  111. //   21 unsigned char  gucGeneralStatus=0;
  112. gucGeneralStatus:
  113.         DS8 1
  114. //   22 
  115. //   23 
  116. //   24 /*
  117. //   25 unsigned char gucYear=0;
  118. //   26 unsigned char gucMonth=0;
  119. //   27 unsigned char gucDate=0;
  120. //   28 unsigned char gucHour=0x10;
  121. //   29 unsigned char gucMinute=0x00;
  122. //   30 unsigned char gucSecond=0;
  123. //   31 unsigned char gucViewRingNum=2;//default ring twice, start faxing
  124. //   32 //X RingNum Manual Auto X NewFax Sending Receiving
  125. //   33 unsigned char gucViewStaticStatus=0x51; //static status control default in Receiving status 
  126. //   34 unsigned char gucViewDynamicStatus=0x00;//flash status control
  127. //   35 unsigned char gucIcon2=0;            //reserved
  128. //   36 */
  129.         RSEG DATA16_I:DATA:SORT:NOROOT(0)
  130. REQUIRE ?cstart_init_copy
  131. //   37 unsigned char aucViewData[] = {0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x51, 0x00, 0x00};
  132. aucViewData:
  133.         DS8 10
  134. REQUIRE `?<Initializer for aucViewData>`
  135. //   38 
  136.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  137. REQUIRE ?cstart_init_zero
  138. //   39 unsigned char COMMAND_VAL=0;
  139. COMMAND_VAL:
  140.         DS8 1
  141.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  142. REQUIRE ?cstart_init_zero
  143. //   40 unsigned char ADDRESS_VALUE=0;
  144. ADDRESS_VALUE:
  145.         DS8 1
  146.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  147. REQUIRE ?cstart_init_zero
  148. //   41 unsigned char FLASH_READ_DATA=0;
  149. FLASH_READ_DATA:
  150.         DS8 1
  151.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  152. REQUIRE ?cstart_init_zero
  153. //   42 unsigned char FLASH_STATUS=0; 
  154. FLASH_STATUS:
  155.         DS8 1
  156.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  157. REQUIRE ?cstart_init_zero
  158. //   43 unsigned char COLUMN_ADDRESS_LOW=0;
  159. COLUMN_ADDRESS_LOW:
  160.         DS8 1
  161.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  162. REQUIRE ?cstart_init_zero
  163. //   44 unsigned char COLUMN_ADDRESS_HIGH=0;
  164. COLUMN_ADDRESS_HIGH:
  165.         DS8 1
  166.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  167. REQUIRE ?cstart_init_zero
  168. //   45 unsigned char ROW_ADDRESS_LOW=0;
  169. ROW_ADDRESS_LOW:
  170.         DS8 1
  171.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  172. REQUIRE ?cstart_init_zero
  173. //   46 unsigned char ROW_ADDRESS_HIGH=0;
  174. ROW_ADDRESS_HIGH:
  175.         DS8 1
  176. //   47 
  177. //   48 
  178. //   49 
  179.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  180. REQUIRE ?cstart_init_zero
  181. //   50 unsigned char  gucFrhErrorStatus=0;
  182. gucFrhErrorStatus:
  183.         DS8 1
  184.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  185. REQUIRE ?cstart_init_zero
  186. //   51 unsigned char  gucTimeOverflowCount=0;
  187. gucTimeOverflowCount:
  188.         DS8 1
  189.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  190. REQUIRE ?cstart_init_zero
  191. //   52 unsigned char  gucTxBufCnt = 0;
  192. gucTxBufCnt:
  193.         DS8 1
  194.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  195. REQUIRE ?cstart_init_zero
  196. //   53 unsigned char  gpucTxBufPnt=0;
  197. gpucTxBufPnt:
  198.         DS8 1
  199. //   54 
  200.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  201. REQUIRE ?cstart_init_zero
  202. //   55 unsigned char  gucUartRxCnt=0;
  203. gucUartRxCnt:
  204.         DS8 1
  205.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  206. REQUIRE ?cstart_init_zero
  207. //   56 unsigned char  gucSoftUartRxCnt=0;
  208. gucSoftUartRxCnt:
  209.         DS8 1
  210. //   57 //unsigned char  gucRxTxFlag=0;
  211. //   58 
  212.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  213. REQUIRE ?cstart_init_zero
  214. //   59 unsigned char  gpucQueueRear=0; 
  215. gpucQueueRear:
  216.         DS8 1
  217.         RSEG DATA16_Z:DATA:SORT:NOROOT(0)
  218. REQUIRE ?cstart_init_zero
  219. //   60 unsigned char  gpucQueueFront=0;
  220. gpucQueueFront:
  221.         DS8 1
  222. //   61 
  223.         RSEG DATA16_Z:DATA:SORT:NOROOT(1)
  224. REQUIRE ?cstart_init_zero
  225. //   62 unsigned long  gdwRxQueueRearCnt=0; 
  226. gdwRxQueueRearCnt:
  227.         DS8 4
  228.         RSEG DATA16_Z:DATA:SORT:NOROOT(1)
  229. REQUIRE ?cstart_init_zero
  230. //   63 unsigned long  gdwRxQueueFrontCnt=0;
  231. gdwRxQueueFrontCnt:
  232.         DS8 4
  233.         RSEG DATA16_Z:DATA:SORT:NOROOT(1)
  234. REQUIRE ?cstart_init_zero
  235. //   64 unsigned int  gwTimeOverflowCount=0;
  236. gwTimeOverflowCount:
  237.         DS8 2
  238. //   65 
  239.         RSEG DATA16_Z:DATA:SORT:NOROOT(1)
  240. REQUIRE ?cstart_init_zero
  241. //   66 unsigned int  gwGeneralPageAddress; 
  242. gwGeneralPageAddress:
  243.         DS8 2
  244.         RSEG DATA16_ID:CONST:SORT:NOROOT(0)
  245. `?<Initializer for FTHCSI>`:
  246.         DC8 255, 3, 64, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32
  247.         DC8 32, 32, 32, 120, 97, 70, 16, 3
  248.         RSEG DATA16_ID:CONST:SORT:NOROOT(0)
  249. `?<Initializer for FTHDIS>`:
  250.         DC8 255, 19, 128, 0, 70, 120, 16, 3
  251.         RSEG DATA16_ID:CONST:SORT:NOROOT(0)
  252. `?<Initializer for FRHTSI>`:
  253.         DC8 255, 3, 64, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32
  254.         DC8 32, 32, 32, 120, 97, 70, 16, 3
  255.         RSEG DATA16_ID:CONST:SORT:NOROOT(0)
  256. `?<Initializer for aucUartTxBuf>`:
  257.         DC8 65, 84, 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  258.         DC8 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  259.         RSEG DATA16_ID:CONST:SORT:NOROOT(1)
  260. `?<Initializer for gwPageAddress>`:
  261.         DC16 5119
  262.         RSEG DATA16_ID:CONST:SORT:NOROOT(0)
  263. `?<Initializer for aucViewData>`:
  264.         DC8 16, 0, 0, 0, 0, 0, 2, 81, 0, 0
  265.         RSEG CODE:CODE:NOROOT(1)
  266. ?setjmp_save_r4:
  267. REQUIRE ?setjmp_r4
  268. REQUIRE ?longjmp_r4
  269.         RSEG CODE:CODE:NOROOT(1)
  270. ?setjmp_save_r5:
  271. REQUIRE ?setjmp_r5
  272. REQUIRE ?longjmp_r5
  273.         END
  274. // 
  275. // 102 bytes in segment DATA16_I
  276. // 102 bytes in segment DATA16_ID
  277. // 309 bytes in segment DATA16_Z
  278. // 
  279. // 102 bytes of CONST memory
  280. // 411 bytes of DATA  memory
  281. //
  282. //Errors: none
  283. //Warnings: none