MemMap.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956
  1. /********************************************************************************
  2. * 常州易控汽车电子股份有限公司
  3. * (c) Copyright 2005~2017 ECTEK
  4. * 保留所有权利
  5. ********************************************************************************
  6. * 工程名称:HardwareLib
  7. * 文件名: MemMap.h
  8. * 功能描述 : 内存映射设置
  9. * 引用记录:
  10. * 发布记录:
  11. * 备注:
  12. * 代码段
  13. * Prefix_START(STOP)_SEC_CODE
  14. * Prefix_START(STOP)_SEC_CALLOUT_CODE
  15. * Prefix_START(STOP)_SEC_CODE_FAST_<NUM>
  16. * Prefix_START(STOP)_SEC_CODE_SLOW
  17. * Prefix_START(STOP)_SEC_CODE_LIB
  18. * 变量段
  19. * Prefix_START(STOP)_SEC_VAR_NOINIT_<SIZE>
  20. * Prefix_START(STOP)_SEC_VAR_POWER_ON_INIT_<SIZE>
  21. * Prefix_START(STOP)_SEC_VAR_FAST_<SIZE>
  22. * Prefix_START(STOP)_SEC__INTERNAL_VAR_<SIZE>
  23. * Prefix_START(STOP)_SEC_VAR_SAVED_ZONE_<SIZE>
  24. * Prefix_START(STOP)_SEC_VAR_SAVED_RECOVERY_<SIZE>
  25. * Prefix_START(STOP)_SEC_VAR_<SIZE>
  26. * 常数段
  27. * Prefix_START(STOP)_SEC_CONST_<SIZE>
  28. * Prefix_START(STOP)_SEC_CALIB_<SIZE>
  29. * Prefix_START(STOP)_SEC_CARTO_<SIZE>
  30. * 配置段
  31. * Prefix_START(STOP)_SEC_CONFIG_DATA_<SIZE>
  32. * 修订记录:
  33. * 日期 版本 作者 描述
  34. * 2014.12.21 01.00.00 方成 第一版
  35. *******************************************************************************/
  36. /***********************AUTOSAR用户定义*************************/
  37. #if !defined(MEM_VENDOR_ID)
  38. #define MEM_VENDOR_ID 1U /* 3SOFT GmbH */
  39. #endif
  40. /***********************以下为版本定义*************************/
  41. #if !defined(MEM_AR_RELEASE_MAJOR_VERSION)
  42. #define MEM_AR_RELEASE_MAJOR_VERSION 4U
  43. #endif
  44. #if !defined(MEM_AR_RELEASE_MINOR_VERSION)
  45. #define MEM_AR_RELEASE_MINOR_VERSION 0U
  46. #endif
  47. #if !defined(MEM_AR_RELEASE_REVISION_VERSION)
  48. #define MEM_AR_RELEASE_REVISION_VERSION 0U
  49. #endif
  50. /***********************以下为软件版本定义*************************/
  51. #if !defined(MEM_SW_MAJOR_VERSION)
  52. #define MEM_SW_MAJOR_VERSION 1U
  53. #endif
  54. #if !defined(MEM_SW_MINOR_VERSION)
  55. #define MEM_SW_MINOR_VERSION 0U
  56. #endif
  57. #if !defined(MEM_SW_PATCH_VERSION)
  58. #define MEM_SW_PATCH_VERSION 0U
  59. #endif
  60. /***********************以下为MEMMAP_ERROR定义*************************/
  61. #if defined(MEMMAP_ERROR)
  62. #error MEMMAP_ERROR defined, wrong MemMap.h usage
  63. #endif
  64. #define MEMMAP_ERROR
  65. /***********************以下为对开发环境的定义*************************/
  66. #ifndef _HIGHTEC_TC2XX_
  67. #define _HIGHTEC_TC2XX_
  68. #endif
  69. /***********************以下为各模块内存映射定义*************************/
  70. /*CODE*/
  71. /*CODE_FAST*/
  72. /*代码段*/
  73. #if defined ADC_START_SEC_CODE
  74. #undef ADC_START_SEC_CODE
  75. #undef MEMMAP_ERROR
  76. #elif defined ADC_STOP_SEC_CODE
  77. #undef ADC_STOP_SEC_CODE
  78. #undef MEMMAP_ERROR
  79. #elif defined ADC_START_SEC_CODE_FAST
  80. #undef ADC_START_SEC_CODE_FAST
  81. #undef MEMMAP_ERROR
  82. #elif defined ADC_STOP_SEC_CODE_FAST
  83. #undef ADC_STOP_SEC_CODE_FAST
  84. #undef MEMMAP_ERROR
  85. /*VAR_NOINIT,不需要初始化的变量*/
  86. #elif defined ADC_START_SEC_VAR_NOINIT_8BIT
  87. #undef ADC_START_SEC_VAR_NOINIT_8BIT
  88. #undef MEMMAP_ERROR
  89. #elif defined ADC_STOP_SEC_VAR_NOINIT_8BIT
  90. #undef ADC_STOP_SEC_VAR_NOINIT_8BIT
  91. #undef MEMMAP_ERROR
  92. #elif defined ADC_START_SEC_VAR_NOINIT_16BIT
  93. #undef ADC_START_SEC_VAR_NOINIT_16BIT
  94. #undef MEMMAP_ERROR
  95. #elif defined ADC_STOP_SEC_VAR_NOINIT_16BIT
  96. #undef ADC_STOP_SEC_VAR_NOINIT_16BIT
  97. #undef MEMMAP_ERROR
  98. #elif defined ADC_START_SEC_VAR_NOINIT_32BIT
  99. #undef ADC_START_SEC_VAR_NOINIT_32BIT
  100. #undef MEMMAP_ERROR
  101. #elif defined ADC_STOP_SEC_VAR_NOINIT_32BIT
  102. #undef ADC_STOP_SEC_VAR_NOINIT_32BIT
  103. #undef MEMMAP_ERROR
  104. #elif defined ADC_START_SEC_VAR_NOINIT_UNSPECIFIED
  105. #undef ADC_START_SEC_VAR_NOINIT_UNSPECIFIED
  106. #undef MEMMAP_ERROR
  107. #elif defined ADC_STOP_SEC_VAR_NOINIT_UNSPECIFIED
  108. #undef ADC_STOP_SEC_VAR_NOINIT_UNSPECIFIED
  109. #undef MEMMAP_ERROR
  110. /*VAR_POWER_ON_INIT 上电后初始化的变量*/
  111. #elif defined ADC_START_SEC_VAR_POWER_ON_INIT_8BIT
  112. #undef ADC_START_SEC_VAR_POWER_ON_INIT_8BIT
  113. #undef MEMMAP_ERROR
  114. #elif defined ADC_STOP_SEC_VAR_POWER_ON_INIT_8BIT
  115. #undef ADC_STOP_SEC_VAR_POWER_ON_INIT_8BIT
  116. #undef MEMMAP_ERROR
  117. #elif defined ADC_START_SEC_VAR_POWER_ON_INIT_16BIT
  118. #undef ADC_START_SEC_VAR_POWER_ON_INIT_16BIT
  119. #undef MEMMAP_ERROR
  120. #elif defined ADC_STOP_SEC_VAR_POWER_ON_INIT_16BIT
  121. #undef ADC_STOP_SEC_VAR_POWER_ON_INIT_16BIT
  122. #undef MEMMAP_ERROR
  123. #elif defined ADC_START_SEC_VAR_POWER_ON_INIT_32BIT
  124. #undef ADC_START_SEC_VAR_POWER_ON_INIT_32BIT
  125. #undef MEMMAP_ERROR
  126. #elif defined ADC_STOP_SEC_VAR_POWER_ON_INIT_32BIT
  127. #undef ADC_STOP_SEC_VAR_POWER_ON_INIT_32BIT
  128. #undef MEMMAP_ERROR
  129. #elif defined ADC_START_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  130. #undef ADC_START_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  131. #undef MEMMAP_ERROR
  132. #elif defined ADC_STOP_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  133. #undef ADC_STOP_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  134. #undef MEMMAP_ERROR
  135. /*VAR_FAST,经常使用的变量*/
  136. #elif defined ADC_START_SEC_VAR_FAST_8BIT
  137. #undef ADC_START_SEC_VAR_FAST_8BIT
  138. #undef MEMMAP_ERROR
  139. #elif defined ADC_STOP_SEC_VAR_FAST_8BIT
  140. #undef ADC_STOP_SEC_VAR_FAST_8BIT
  141. #undef MEMMAP_ERROR
  142. #elif defined ADC_START_SEC_VAR_FAST_16BIT
  143. #undef ADC_START_SEC_VAR_FAST_16BIT
  144. #undef MEMMAP_ERROR
  145. #elif defined ADC_STOP_SEC_VAR_FAST_16BIT
  146. #undef ADC_STOP_SEC_VAR_FAST_16BIT
  147. #undef MEMMAP_ERROR
  148. #elif defined ADC_START_SEC_VAR_FAST_32BIT
  149. #undef ADC_START_SEC_VAR_FAST_32BIT
  150. #undef MEMMAP_ERROR
  151. #elif defined ADC_STOP_SEC_VAR_FAST_32BIT
  152. #undef ADC_STOP_SEC_VAR_FAST_32BIT
  153. #undef MEMMAP_ERROR
  154. #elif defined ADC_START_SEC_VAR_FAST_UNSPECIFIED
  155. #undef ADC_START_SEC_VAR_FAST_UNSPECIFIED
  156. #undef MEMMAP_ERROR
  157. #elif defined ADC_STOP_SEC_VAR_FAST_UNSPECIFIED
  158. #undef ADC_STOP_SEC_VAR_FAST_UNSPECIFIED
  159. #undef MEMMAP_ERROR
  160. /*VAR,每次复位都初始化的变量*/
  161. #elif defined ADC_START_SEC_VAR_8BIT
  162. #undef ADC_START_SEC_VAR_8BIT
  163. #undef MEMMAP_ERROR
  164. #elif defined ADC_STOP_SEC_VAR_8BIT
  165. #undef ADC_STOP_SEC_VAR_8BIT
  166. #undef MEMMAP_ERROR
  167. #elif defined ADC_START_SEC_VAR_16BIT
  168. #undef ADC_START_SEC_VAR_16BIT
  169. #undef MEMMAP_ERROR
  170. #elif defined ADC_STOP_SEC_VAR_16BIT
  171. #undef ADC_STOP_SEC_VAR_16BIT
  172. #undef MEMMAP_ERROR
  173. #elif defined ADC_START_SEC_VAR_32BIT
  174. #undef ADC_START_SEC_VAR_32BIT
  175. #undef MEMMAP_ERROR
  176. #elif defined ADC_STOP_SEC_VAR_32BIT
  177. #undef ADC_STOP_SEC_VAR_32BIT
  178. #undef MEMMAP_ERROR
  179. #elif defined ADC_START_SEC_VAR_UNSPECIFIED
  180. #undef ADC_START_SEC_VAR_UNSPECIFIED
  181. #undef MEMMAP_ERROR
  182. #elif defined ADC_STOP_SEC_VAR_UNSPECIFIED
  183. #undef ADC_STOP_SEC_VAR_UNSPECIFIED
  184. #undef MEMMAP_ERROR
  185. /*CONST,常数*/
  186. #elif defined ADC_START_SEC_CONST_8BIT
  187. #undef ADC_START_SEC_CONST_8BIT
  188. #undef MEMMAP_ERROR
  189. #elif defined ADC_STOP_SEC_CONST_8BIT
  190. #undef ADC_STOP_SEC_CONST_8BIT
  191. #undef MEMMAP_ERROR
  192. #elif defined ADC_START_SEC_CONST_16BIT
  193. #undef ADC_START_SEC_CONST_16BIT
  194. #undef MEMMAP_ERROR
  195. #elif defined ADC_STOP_SEC_CONST_16BIT
  196. #undef ADC_STOP_SEC_CONST_16BIT
  197. #undef MEMMAP_ERROR
  198. #elif defined ADC_START_SEC_CONST_32BIT
  199. #undef ADC_START_SEC_CONST_32BIT
  200. #undef MEMMAP_ERROR
  201. #elif defined ADC_STOP_SEC_CONST_32BIT
  202. #undef ADC_STOP_SEC_CONST_32BIT
  203. #undef MEMMAP_ERROR
  204. #elif defined ADC_START_SEC_CONST_UNSPECIFIED
  205. #undef ADC_START_SEC_CONST_UNSPECIFIED
  206. #undef MEMMAP_ERROR
  207. #elif defined ADC_STOP_SEC_CONST_UNSPECIFIED
  208. #undef ADC_STOP_SEC_CONST_UNSPECIFIED
  209. #undef MEMMAP_ERROR
  210. /*CONFIG_DATA,配置数据*/
  211. #elif defined ADC_START_CONFIG_DATA_8BIT
  212. #undef ADC_START_CONFIG_DATA_8BIT
  213. #undef MEMMAP_ERROR
  214. #elif defined ADC_STOP_CONFIG_DATA_8BIT
  215. #undef ADC_STOP_CONFIG_DATA_8BIT
  216. #undef MEMMAP_ERROR
  217. #elif defined ADC_START_CONFIG_DATA_16BIT
  218. #undef ADC_START_CONFIG_DATA_16BIT
  219. #undef MEMMAP_ERROR
  220. #elif defined ADC_STOP_CONFIG_DATA_16BIT
  221. #undef ADC_STOP_CONFIG_DATA_16BIT
  222. #undef MEMMAP_ERROR
  223. #elif defined ADC_START_CONFIG_DATA_32BIT
  224. #undef ADC_START_CONFIG_DATA_32BIT
  225. #undef MEMMAP_ERROR
  226. #elif defined ADC_STOP_CONFIG_DATA_32BIT
  227. #undef ADC_STOP_CONFIG_DATA_32BIT
  228. #undef MEMMAP_ERROR
  229. #elif defined ADC_START_CONFIG_DATA_UNSPECIFIED
  230. #undef ADC_START_CONFIG_DATA_UNSPECIFIED
  231. #undef MEMMAP_ERROR
  232. #elif defined ADC_STOP_CONFIG_DATA_UNSPECIFIED
  233. #undef ADC_STOP_CONFIG_DATA_UNSPECIFIED
  234. #undef MEMMAP_ERROR
  235. /***********************以下为Os模块内存映射定义*************************/
  236. /*CODE*/
  237. /*CODE_FAST*/
  238. /*代码段*/
  239. #elif defined OS_START_SEC_CODE
  240. #undef OS_START_SEC_CODE
  241. #undef MEMMAP_ERROR
  242. #elif defined OS_STOP_SEC_CODE
  243. #undef OS_STOP_SEC_CODE
  244. #undef MEMMAP_ERROR
  245. #elif defined OS_START_SEC_CODE_FAST
  246. #undef OS_START_SEC_CODE_FAST
  247. #undef MEMMAP_ERROR
  248. #elif defined OS_STOP_SEC_CODE_FAST
  249. #undef OS_STOP_SEC_CODE_FAST
  250. #undef MEMMAP_ERROR
  251. /*VAR_NOINIT,不需要初始化的变量*/
  252. #elif defined OS_START_SEC_VAR_NOINIT_8BIT
  253. #undef OS_START_SEC_VAR_NOINIT_8BIT
  254. #undef MEMMAP_ERROR
  255. #elif defined OS_STOP_SEC_VAR_NOINIT_8BIT
  256. #undef OS_STOP_SEC_VAR_NOINIT_8BIT
  257. #undef MEMMAP_ERROR
  258. #elif defined OS_START_SEC_VAR_NOINIT_16BIT
  259. #undef OS_START_SEC_VAR_NOINIT_16BIT
  260. #undef MEMMAP_ERROR
  261. #elif defined OS_STOP_SEC_VAR_NOINIT_16BIT
  262. #undef OS_STOP_SEC_VAR_NOINIT_16BIT
  263. #undef MEMMAP_ERROR
  264. #elif defined OS_START_SEC_VAR_NOINIT_32BIT
  265. #undef OS_START_SEC_VAR_NOINIT_32BIT
  266. #undef MEMMAP_ERROR
  267. #elif defined OS_STOP_SEC_VAR_NOINIT_32BIT
  268. #undef OS_STOP_SEC_VAR_NOINIT_32BIT
  269. #undef MEMMAP_ERROR
  270. #elif defined OS_START_SEC_VAR_NOINIT_UNSPECIFIED
  271. #undef OS_START_SEC_VAR_NOINIT_UNSPECIFIED
  272. #undef MEMMAP_ERROR
  273. #elif defined OS_STOP_SEC_VAR_NOINIT_UNSPECIFIED
  274. #undef OS_STOP_SEC_VAR_NOINIT_UNSPECIFIED
  275. #undef MEMMAP_ERROR
  276. /*VAR_POWER_ON_INIT 上电后初始化的变量*/
  277. #elif defined OS_START_SEC_VAR_POWER_ON_INIT_8BIT
  278. #undef OS_START_SEC_VAR_POWER_ON_INIT_8BIT
  279. #undef MEMMAP_ERROR
  280. #elif defined OS_STOP_SEC_VAR_POWER_ON_INIT_8BIT
  281. #undef OS_STOP_SEC_VAR_POWER_ON_INIT_8BIT
  282. #undef MEMMAP_ERROR
  283. #elif defined OS_START_SEC_VAR_POWER_ON_INIT_16BIT
  284. #undef OS_START_SEC_VAR_POWER_ON_INIT_16BIT
  285. #undef MEMMAP_ERROR
  286. #elif defined OS_STOP_SEC_VAR_POWER_ON_INIT_16BIT
  287. #undef OS_STOP_SEC_VAR_POWER_ON_INIT_16BIT
  288. #undef MEMMAP_ERROR
  289. #elif defined OS_START_SEC_VAR_POWER_ON_INIT_32BIT
  290. #undef OS_START_SEC_VAR_POWER_ON_INIT_32BIT
  291. #undef MEMMAP_ERROR
  292. #elif defined OS_STOP_SEC_VAR_POWER_ON_INIT_32BIT
  293. #undef OS_STOP_SEC_VAR_POWER_ON_INIT_32BIT
  294. #undef MEMMAP_ERROR
  295. #elif defined OS_START_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  296. #undef OS_START_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  297. #undef MEMMAP_ERROR
  298. #elif defined OS_STOP_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  299. #undef OS_STOP_SEC_VAR_POWER_ON_INIT_UNSPECIFIED
  300. #undef MEMMAP_ERROR
  301. /*VAR_FAST,经常使用的变量*/
  302. #elif defined OS_START_SEC_VAR_FAST_8BIT
  303. #undef OS_START_SEC_VAR_FAST_8BIT
  304. #undef MEMMAP_ERROR
  305. #elif defined OS_STOP_SEC_VAR_FAST_8BIT
  306. #undef OS_STOP_SEC_VAR_FAST_8BIT
  307. #undef MEMMAP_ERROR
  308. #elif defined OS_START_SEC_VAR_FAST_16BIT
  309. #undef OS_START_SEC_VAR_FAST_16BIT
  310. #undef MEMMAP_ERROR
  311. #elif defined OS_STOP_SEC_VAR_FAST_16BIT
  312. #undef OS_STOP_SEC_VAR_FAST_16BIT
  313. #undef MEMMAP_ERROR
  314. #elif defined OS_START_SEC_VAR_FAST_32BIT
  315. #undef OS_START_SEC_VAR_FAST_32BIT
  316. #undef MEMMAP_ERROR
  317. #elif defined OS_STOP_SEC_VAR_FAST_32BIT
  318. #undef OS_STOP_SEC_VAR_FAST_32BIT
  319. #undef MEMMAP_ERROR
  320. #elif defined OS_START_SEC_VAR_FAST_UNSPECIFIED
  321. #undef OS_START_SEC_VAR_FAST_UNSPECIFIED
  322. #undef MEMMAP_ERROR
  323. #elif defined OS_STOP_SEC_VAR_FAST_UNSPECIFIED
  324. #undef OS_STOP_SEC_VAR_FAST_UNSPECIFIED
  325. #undef MEMMAP_ERROR
  326. /*VAR,每次复位都初始化的变量*/
  327. #elif defined OS_START_SEC_VAR_8BIT
  328. #undef OS_START_SEC_VAR_8BIT
  329. #undef MEMMAP_ERROR
  330. #elif defined OS_STOP_SEC_VAR_8BIT
  331. #undef OS_STOP_SEC_VAR_8BIT
  332. #undef MEMMAP_ERROR
  333. #elif defined OS_START_SEC_VAR_16BIT
  334. #undef OS_START_SEC_VAR_16BIT
  335. #undef MEMMAP_ERROR
  336. #elif defined OS_STOP_SEC_VAR_16BIT
  337. #undef OS_STOP_SEC_VAR_16BIT
  338. #undef MEMMAP_ERROR
  339. #elif defined OS_START_SEC_VAR_32BIT
  340. #undef OS_START_SEC_VAR_32BIT
  341. #undef MEMMAP_ERROR
  342. #elif defined OS_STOP_SEC_VAR_32BIT
  343. #undef OS_STOP_SEC_VAR_32BIT
  344. #undef MEMMAP_ERROR
  345. #elif defined OS_START_SEC_VAR_UNSPECIFIED
  346. #undef OS_START_SEC_VAR_UNSPECIFIED
  347. #undef MEMMAP_ERROR
  348. #elif defined OS_STOP_SEC_VAR_UNSPECIFIED
  349. #undef OS_STOP_SEC_VAR_UNSPECIFIED
  350. #undef MEMMAP_ERROR
  351. /*CONST,常数*/
  352. #elif defined OS_START_SEC_CONST_8BIT
  353. #undef OS_START_SEC_CONST_8BIT
  354. #undef MEMMAP_ERROR
  355. #elif defined OS_STOP_SEC_CONST_8BIT
  356. #undef OS_STOP_SEC_CONST_8BIT
  357. #undef MEMMAP_ERROR
  358. #elif defined OS_START_SEC_CONST_16BIT
  359. #undef OS_START_SEC_CONST_16BIT
  360. #undef MEMMAP_ERROR
  361. #elif defined OS_STOP_SEC_CONST_16BIT
  362. #undef OS_STOP_SEC_CONST_16BIT
  363. #undef MEMMAP_ERROR
  364. #elif defined OS_START_SEC_CONST_32BIT
  365. #undef OS_START_SEC_CONST_32BIT
  366. #undef MEMMAP_ERROR
  367. #elif defined OS_STOP_SEC_CONST_32BIT
  368. #undef OS_STOP_SEC_CONST_32BIT
  369. #undef MEMMAP_ERROR
  370. #elif defined OS_START_SEC_CONST_UNSPECIFIED
  371. #undef OS_START_SEC_CONST_UNSPECIFIED
  372. #undef MEMMAP_ERROR
  373. #elif defined OS_STOP_SEC_CONST_UNSPECIFIED
  374. #undef OS_STOP_SEC_CONST_UNSPECIFIED
  375. #undef MEMMAP_ERROR
  376. /*CONFIG_DATA,配置数据*/
  377. #elif defined OS_START_CONFIG_DATA_8BIT
  378. #undef OS_START_CONFIG_DATA_8BIT
  379. #undef MEMMAP_ERROR
  380. #elif defined OS_STOP_CONFIG_DATA_8BIT
  381. #undef OS_STOP_CONFIG_DATA_8BIT
  382. #undef MEMMAP_ERROR
  383. #elif defined OS_START_CONFIG_DATA_16BIT
  384. #undef OS_START_CONFIG_DATA_16BIT
  385. #undef MEMMAP_ERROR
  386. #elif defined OS_STOP_CONFIG_DATA_16BIT
  387. #undef OS_STOP_CONFIG_DATA_16BIT
  388. #undef MEMMAP_ERROR
  389. #elif defined OS_START_CONFIG_DATA_32BIT
  390. #undef OS_START_CONFIG_DATA_32BIT
  391. #undef MEMMAP_ERROR
  392. #elif defined OS_STOP_CONFIG_DATA_32BIT
  393. #undef OS_STOP_CONFIG_DATA_32BIT
  394. #undef MEMMAP_ERROR
  395. #elif defined OS_START_CONFIG_DATA_UNSPECIFIED
  396. #undef OS_START_CONFIG_DATA_UNSPECIFIED
  397. #undef MEMMAP_ERROR
  398. #elif defined OS_STOP_CONFIG_DATA_UNSPECIFIED
  399. #undef OS_STOP_CONFIG_DATA_UNSPECIFIED
  400. #undef MEMMAP_ERROR
  401. /***********************以下为PORT模块内存映射定义*************************/
  402. #elif defined PORT_START_CONFIG_DATA_UNSPECIFIED
  403. #undef PORT_START_CONFIG_DATA_UNSPECIFIED
  404. #undef MEMMAP_ERROR
  405. #elif defined PORT_STOP_CONFIG_DATA_UNSPECIFIED
  406. #undef PORT_STOP_CONFIG_DATA_UNSPECIFIED
  407. #undef MEMMAP_ERROR
  408. #elif defined PORT_START_SEC_CODE
  409. #undef PORT_START_SEC_CODE
  410. #undef MEMMAP_ERROR
  411. #elif defined PORT_STOP_SEC_CODE
  412. #undef PORT_STOP_SEC_CODE
  413. #undef MEMMAP_ERROR
  414. #elif defined PORT_START_SEC_VAR_UNSPECIFIED
  415. #undef PORT_START_SEC_VAR_UNSPECIFIED
  416. #undef MEMMAP_ERROR
  417. #elif defined PORT_STOP_SEC_VAR_UNSPECIFIED
  418. #undef PORT_STOP_SEC_VAR_UNSPECIFIED
  419. #undef MEMMAP_ERROR
  420. /***********************以下为DIO模块内存映射定义*************************/
  421. #elif defined DIO_START_CONFIG_DATA_UNSPECIFIED
  422. #undef DIO_START_CONFIG_DATA_UNSPECIFIED
  423. #undef MEMMAP_ERROR
  424. #elif defined DIO_STOP_CONFIG_DATA_UNSPECIFIED
  425. #undef DIO_STOP_CONFIG_DATA_UNSPECIFIED
  426. #undef MEMMAP_ERROR
  427. #elif defined DIO_START_SEC_CODE
  428. #undef DIO_START_SEC_CODE
  429. #undef MEMMAP_ERROR
  430. #elif defined DIO_STOP_SEC_CODE
  431. #undef DIO_STOP_SEC_CODE
  432. #undef MEMMAP_ERROR
  433. #elif defined DIO_START_SEC_VAR_UNSPECIFIED
  434. #undef DIO_START_SEC_VAR_UNSPECIFIED
  435. #undef MEMMAP_ERROR
  436. #elif defined DIO_STOP_SEC_VAR_UNSPECIFIED
  437. #undef DIO_STOP_SEC_VAR_UNSPECIFIED
  438. #undef MEMMAP_ERROR
  439. /***********************以下为PWM模块内存映射定义*************************/
  440. #elif defined PWM_START_CONFIG_DATA_UNSPECIFIED
  441. #undef PWM_START_CONFIG_DATA_UNSPECIFIED
  442. #undef MEMMAP_ERROR
  443. #elif defined PWM_STOP_CONFIG_DATA_UNSPECIFIED
  444. #undef PWM_STOP_CONFIG_DATA_UNSPECIFIED
  445. #undef MEMMAP_ERROR
  446. #elif defined PWM_START_SEC_CODE
  447. #undef PWM_START_SEC_CODE
  448. #undef MEMMAP_ERROR
  449. #elif defined PWM_STOP_SEC_CODE
  450. #undef PWM_STOP_SEC_CODE
  451. #undef MEMMAP_ERROR
  452. #elif defined PWM_START_SEC_VAR_UNSPECIFIED
  453. #undef PWM_START_SEC_VAR_UNSPECIFIED
  454. #undef MEMMAP_ERROR
  455. #elif defined PWM_STOP_SEC_VAR_UNSPECIFIED
  456. #undef PWM_STOP_SEC_VAR_UNSPECIFIED
  457. #undef MEMMAP_ERROR
  458. /***********************以下为ICU模块内存映射定义*************************/
  459. #elif defined ICU_START_CONFIG_DATA_UNSPECIFIED
  460. #undef ICU_START_CONFIG_DATA_UNSPECIFIED
  461. #undef MEMMAP_ERROR
  462. #elif defined ICU_STOP_CONFIG_DATA_UNSPECIFIED
  463. #undef ICU_STOP_CONFIG_DATA_UNSPECIFIED
  464. #undef MEMMAP_ERROR
  465. #elif defined ICU_START_SEC_CODE
  466. #undef ICU_START_SEC_CODE
  467. #undef MEMMAP_ERROR
  468. #elif defined ICU_STOP_SEC_CODE
  469. #undef ICU_STOP_SEC_CODE
  470. #undef MEMMAP_ERROR
  471. #elif defined ICU_START_SEC_VAR_UNSPECIFIED
  472. #undef ICU_START_SEC_VAR_UNSPECIFIED
  473. #undef MEMMAP_ERROR
  474. #elif defined ICU_STOP_SEC_VAR_UNSPECIFIED
  475. #undef ICU_STOP_SEC_VAR_UNSPECIFIED
  476. #undef MEMMAP_ERROR
  477. /***********************以下为CAN模块内存映射定义*************************/
  478. #elif defined CAN_START_CONFIG_DATA_UNSPECIFIED
  479. #undef CAN_START_CONFIG_DATA_UNSPECIFIED
  480. #undef MEMMAP_ERROR
  481. #elif defined CAN_STOP_CONFIG_DATA_UNSPECIFIED
  482. #undef CAN_STOP_CONFIG_DATA_UNSPECIFIED
  483. #undef MEMMAP_ERROR
  484. #elif defined CAN_START_SEC_CODE
  485. #undef CAN_START_SEC_CODE
  486. #undef MEMMAP_ERROR
  487. #elif defined CAN_STOP_SEC_CODE
  488. #undef CAN_STOP_SEC_CODE
  489. #undef MEMMAP_ERROR
  490. #elif defined CAN_START_SEC_VAR_UNSPECIFIED
  491. #undef CAN_START_SEC_VAR_UNSPECIFIED
  492. #undef MEMMAP_ERROR
  493. #elif defined CAN_STOP_SEC_VAR_UNSPECIFIED
  494. #undef CAN_STOP_SEC_VAR_UNSPECIFIED
  495. #undef MEMMAP_ERROR
  496. /***********************以下为SPI模块内存映射定义*************************/
  497. #elif defined SPI_START_CONFIG_DATA_UNSPECIFIED
  498. #undef SPI_START_CONFIG_DATA_UNSPECIFIED
  499. #undef MEMMAP_ERROR
  500. #elif defined SPI_STOP_CONFIG_DATA_UNSPECIFIED
  501. #undef SPI_STOP_CONFIG_DATA_UNSPECIFIED
  502. #undef MEMMAP_ERROR
  503. #elif defined SPI_START_SEC_CODE
  504. #undef SPI_START_SEC_CODE
  505. #undef MEMMAP_ERROR
  506. #elif defined SPI_STOP_SEC_CODE
  507. #undef SPI_STOP_SEC_CODE
  508. #undef MEMMAP_ERROR
  509. #elif defined SPI_START_SEC_VAR_UNSPECIFIED
  510. #undef SPI_START_SEC_VAR_UNSPECIFIED
  511. #undef MEMMAP_ERROR
  512. #elif defined SPI_STOP_SEC_VAR_UNSPECIFIED
  513. #undef SPI_STOP_SEC_VAR_UNSPECIFIED
  514. #undef MEMMAP_ERROR
  515. /***********************以下为MCU模块内存映射定义*************************/
  516. #elif defined MCU_START_CONFIG_DATA_UNSPECIFIED
  517. #undef MCU_START_CONFIG_DATA_UNSPECIFIED
  518. #undef MEMMAP_ERROR
  519. #elif defined MCU_STOP_CONFIG_DATA_UNSPECIFIED
  520. #undef MCU_STOP_CONFIG_DATA_UNSPECIFIED
  521. #undef MEMMAP_ERROR
  522. #elif defined MCU_START_SEC_CODE
  523. #undef MCU_START_SEC_CODE
  524. #undef MEMMAP_ERROR
  525. #elif defined MCU_STOP_SEC_CODE
  526. #undef MCU_STOP_SEC_CODE
  527. #undef MEMMAP_ERROR
  528. #elif defined MCU_START_SEC_VAR_UNSPECIFIED
  529. #undef MCU_START_SEC_VAR_UNSPECIFIED
  530. #undef MEMMAP_ERROR
  531. #elif defined MCU_STOP_SEC_VAR_UNSPECIFIED
  532. #undef MCU_STOP_SEC_VAR_UNSPECIFIED
  533. #undef MEMMAP_ERROR
  534. /***********************以下为IoHwAb模块内存映射定义*************************/
  535. #elif defined IOHWAB_START_CONFIG_DATA_UNSPECIFIED
  536. #undef IOHWAB_START_CONFIG_DATA_UNSPECIFIED
  537. #undef MEMMAP_ERROR
  538. #elif defined IOHWAB_STOP_CONFIG_DATA_UNSPECIFIED
  539. #undef IOHWAB_STOP_CONFIG_DATA_UNSPECIFIED
  540. #undef MEMMAP_ERROR
  541. #elif defined IOHWAB_START_SEC_CODE
  542. #undef IOHWAB_START_SEC_CODE
  543. #undef MEMMAP_ERROR
  544. #elif defined IOHWAB_STOP_SEC_CODE
  545. #undef IOHWAB_STOP_SEC_CODE
  546. #undef MEMMAP_ERROR
  547. #elif defined IOHWAB_START_SEC_VAR_UNSPECIFIED
  548. #undef IOHWAB_START_SEC_VAR_UNSPECIFIED
  549. #undef MEMMAP_ERROR
  550. #elif defined IOHWAB_STOP_SEC_VAR_UNSPECIFIED
  551. #undef IOHWAB_STOP_SEC_VAR_UNSPECIFIED
  552. #undef MEMMAP_ERROR
  553. /***********************以下为CANIF模块内存映射定义*************************/
  554. #elif defined CANIF_START_CONFIG_DATA_UNSPECIFIED
  555. #undef CANIF_START_CONFIG_DATA_UNSPECIFIED
  556. #undef MEMMAP_ERROR
  557. #elif defined CANIF_STOP_CONFIG_DATA_UNSPECIFIED
  558. #undef CANIF_STOP_CONFIG_DATA_UNSPECIFIED
  559. #undef MEMMAP_ERROR
  560. #elif defined CANIF_START_SEC_CODE
  561. #undef CANIF_START_SEC_CODE
  562. #undef MEMMAP_ERROR
  563. #elif defined CANIF_STOP_SEC_CODE
  564. #undef CANIF_STOP_SEC_CODE
  565. #undef MEMMAP_ERROR
  566. #elif defined CANIF_START_SEC_VAR_UNSPECIFIED
  567. #undef CANIF_START_SEC_VAR_UNSPECIFIED
  568. #undef MEMMAP_ERROR
  569. #elif defined CANIF_STOP_SEC_VAR_UNSPECIFIED
  570. #undef CANIF_STOP_SEC_VAR_UNSPECIFIED
  571. #undef MEMMAP_ERROR
  572. /***********************以下为CANTP模块内存映射定义*************************/
  573. #elif defined CANTP_START_CONFIG_DATA_UNSPECIFIED
  574. #undef CANTP_START_CONFIG_DATA_UNSPECIFIED
  575. #undef MEMMAP_ERROR
  576. #elif defined CANTP_STOP_CONFIG_DATA_UNSPECIFIED
  577. #undef CANTP_STOP_CONFIG_DATA_UNSPECIFIED
  578. #undef MEMMAP_ERROR
  579. #elif defined CANTP_START_SEC_CODE
  580. #undef CANTP_START_SEC_CODE
  581. #undef MEMMAP_ERROR
  582. #elif defined CANTP_STOP_SEC_CODE
  583. #undef CANTP_STOP_SEC_CODE
  584. #undef MEMMAP_ERROR
  585. #elif defined CANTP_START_SEC_VAR_UNSPECIFIED
  586. #undef CANTP_START_SEC_VAR_UNSPECIFIED
  587. #undef MEMMAP_ERROR
  588. #elif defined CANTP_STOP_SEC_VAR_UNSPECIFIED
  589. #undef CANTP_STOP_SEC_VAR_UNSPECIFIED
  590. #undef MEMMAP_ERROR
  591. /***********************以下为J1939TP模块内存映射定义*************************/
  592. #elif defined J1939TP_START_CONFIG_DATA_UNSPECIFIED
  593. #undef J1939TP_START_CONFIG_DATA_UNSPECIFIED
  594. #undef MEMMAP_ERROR
  595. #elif defined J1939TP_STOP_CONFIG_DATA_UNSPECIFIED
  596. #undef J1939TP_STOP_CONFIG_DATA_UNSPECIFIED
  597. #undef MEMMAP_ERROR
  598. #elif defined J1939TP_START_SEC_CODE
  599. #undef J1939TP_START_SEC_CODE
  600. #undef MEMMAP_ERROR
  601. #elif defined J1939TP_STOP_SEC_CODE
  602. #undef J1939TP_STOP_SEC_CODE
  603. #undef MEMMAP_ERROR
  604. #elif defined J1939TP_START_SEC_VAR_UNSPECIFIED
  605. #undef J1939TP_START_SEC_VAR_UNSPECIFIED
  606. #undef MEMMAP_ERROR
  607. #elif defined J1939TP_STOP_SEC_VAR_UNSPECIFIED
  608. #undef J1939TP_STOP_SEC_VAR_UNSPECIFIED
  609. #undef MEMMAP_ERROR
  610. /***********************以下为PDUR模块内存映射定义*************************/
  611. #elif defined PDUR_START_CONFIG_DATA_UNSPECIFIED
  612. #undef PDUR_START_CONFIG_DATA_UNSPECIFIED
  613. #undef MEMMAP_ERROR
  614. #elif defined PDUR_STOP_CONFIG_DATA_UNSPECIFIED
  615. #undef PDUR_STOP_CONFIG_DATA_UNSPECIFIED
  616. #undef MEMMAP_ERROR
  617. #elif defined PDUR_START_SEC_CODE
  618. #undef PDUR_START_SEC_CODE
  619. #undef MEMMAP_ERROR
  620. #elif defined PDUR_STOP_SEC_CODE
  621. #undef PDUR_STOP_SEC_CODE
  622. #undef MEMMAP_ERROR
  623. #elif defined PDUR_START_SEC_VAR_UNSPECIFIED
  624. #undef PDUR_START_SEC_VAR_UNSPECIFIED
  625. #undef MEMMAP_ERROR
  626. #elif defined PDUR_STOP_SEC_VAR_UNSPECIFIED
  627. #undef PDUR_STOP_SEC_VAR_UNSPECIFIED
  628. #undef MEMMAP_ERROR
  629. /***********************以下为COM模块内存映射定义*************************/
  630. #elif defined COM_START_CONFIG_DATA_UNSPECIFIED
  631. #undef COM_START_CONFIG_DATA_UNSPECIFIED
  632. #undef MEMMAP_ERROR
  633. #elif defined COM_STOP_CONFIG_DATA_UNSPECIFIED
  634. #undef COM_STOP_CONFIG_DATA_UNSPECIFIED
  635. #undef MEMMAP_ERROR
  636. #elif defined COM_START_SEC_CODE
  637. #undef COM_START_SEC_CODE
  638. #undef MEMMAP_ERROR
  639. #elif defined COM_STOP_SEC_CODE
  640. #undef COM_STOP_SEC_CODE
  641. #undef MEMMAP_ERROR
  642. #elif defined COM_START_SEC_VAR_UNSPECIFIED
  643. #undef COM_START_SEC_VAR_UNSPECIFIED
  644. #undef MEMMAP_ERROR
  645. #elif defined COM_STOP_SEC_VAR_UNSPECIFIED
  646. #undef COM_STOP_SEC_VAR_UNSPECIFIED
  647. #undef MEMMAP_ERROR
  648. #elif defined MAPDATA_START_SEC_VAR_CONST
  649. #undef MAPDATA_START_SEC_VAR_CONST
  650. #undef MEMMAP_ERROR
  651. #define PRAGMA_MAPDATA volatile
  652. #if defined MAPVER_SEC_VAR_CONST
  653. #pragma section ".cal_data_ver"
  654. #else
  655. #pragma section ".cal_data"
  656. #endif
  657. #elif defined MAPDATA_STOP_SEC_VAR_CONST
  658. #undef MAPDATA_STOP_SEC_VAR_CONST
  659. #undef MEMMAP_ERROR
  660. #pragma section
  661. #undef PRAGMA_MAPDATA
  662. #elif defined EEPDATA_START_SEC_VAR
  663. #undef EEPDATA_START_SEC_VAR
  664. #undef MEMMAP_ERROR
  665. #pragma section ".runinfo_data" aw
  666. #elif defined EEPDATA_STOP_SEC_VAR
  667. #undef EEPDATA_STOP_SEC_VAR
  668. #undef MEMMAP_ERROR
  669. #pragma section
  670. #elif defined APPLAYERVER_START_SEC_VAR
  671. #undef APPLAYERVER_START_SEC_VAR
  672. #undef MEMMAP_ERROR
  673. #pragma section ".applayer_info" a
  674. #elif defined APPLAYERVER_STOP_SEC_VAR
  675. #undef APPLAYERVER_STOP_SEC_VAR
  676. #undef MEMMAP_ERROR
  677. #pragma section
  678. #elif defined EOL_START_SEC_VAR
  679. #undef EOL_START_SEC_VAR
  680. #undef MEMMAP_ERROR
  681. #pragma section ".eol_data" aw
  682. #elif defined EOL_STOP_SEC_VAR
  683. #undef EOL_STOP_SEC_VAR
  684. #undef MEMMAP_ERROR
  685. #pragma section
  686. #endif
  687. #if defined(MEMMAP_ERROR)
  688. #error MEMMAP_ERROR defined,wrong Memory class defined!
  689. #endif