Option.inc
上传用户:dzdeming
上传日期:2022-08-03
资源大小:381k
文件大小:4k
源码类别:

Windows CE

开发平台:

Visual C++

  1. ;===========================================
  2. ; NAME: OPTION.A
  3. ; DESC: Configuration options for .S files
  4. ; HISTORY:
  5. ; 02.28.2002: ver 0.0
  6. ; 03.11.2003: ver 0.0 attached for 2440.
  7. ; jan E, 2004: ver0.03  modified for 2440A01.
  8. ;===========================================
  9. ;Start address of each stacks,
  10. _STACK_BASEADDRESS EQU 0x33ff8000
  11. _MMUTT_STARTADDRESS EQU 0x33ff8000
  12. _ISR_STARTADDRESS EQU 0x33ffff00
  13. GBLL  PLL_ON_START
  14. PLL_ON_START SETL  {TRUE}
  15. GBLL ENDIAN_CHANGE
  16. ENDIAN_CHANGE SETL {FALSE}
  17. GBLA ENTRY_BUS_WIDTH
  18. ENTRY_BUS_WIDTH SETA 16
  19. ;BUSWIDTH = 16,32
  20. GBLA    BUSWIDTH ;max. bus width for the GPIO configuration
  21. BUSWIDTH SETA    32
  22. GBLA UCLK
  23. UCLK SETA 48000000
  24. GBLA XTAL_SEL
  25. GBLA FCLK
  26. GBLA CPU_SEL
  27. ;(1) Select CPU
  28. ;CPU_SEL SETA 32440000 ; 32440000:2440X.
  29. CPU_SEL SETA 32440001 ; 32440001:2440A
  30. ;(2) Select XTaL
  31. XTAL_SEL SETA 12000000
  32. ;XTAL_SEL SETA 16934400
  33. ;(3) Select FCLK
  34. FCLK SETA 304000000
  35. ;FCLK SETA 296352000
  36. ;FCLK SETA 271500000
  37. ;FCLK SETA 100000000
  38. ;FCLK SETA 200000000
  39. FCLK SETA 400000000
  40. ;(4) Select Clock Division (Fclk:Hclk:Pclk)
  41. ;FCLK = 100000000
  42. ;CLKDIV_VAL EQU 1 ; 0=1:1:1, 1=1:1:2, 2=1:2:2, 3=1:2:4, 4=1:4:4, 5=1:4:8, 6=1:3:3, 7=1:3:6.
  43. ;FCLK = 200000000
  44. ;CLKDIV_VAL EQU 3 ; 0=1:1:1, 1=1:1:2, 2=1:2:2, 3=1:2:4, 4=1:4:4, 5=1:4:8, 6=1:3:3, 7=1:3:6.
  45. ;FCLK = 400000000
  46. CLKDIV_VAL EQU 5 ; 0=1:1:1, 1=1:1:2, 2=1:2:2, 3=1:2:4, 4=1:4:4, 5=1:4:8, 6=1:3:3, 7=1:3:6.
  47. ;FCLK = 304000000 or 271500000
  48. ;CLKDIV_VAL EQU 7 ; 0=1:1:1, 1=1:1:2, 2=1:2:2, 3=1:2:4, 4=1:4:4, 5=1:4:8, 6=1:3:3, 7=1:3:6.
  49.  [ XTAL_SEL = 12000000
  50.  
  51. [ FCLK = 271500000
  52. M_MDIV EQU 173 ;Fin=12.0MHz Fout=271.5MHz
  53. M_PDIV EQU 2
  54. [ CPU_SEL = 32440001
  55. M_SDIV EQU 2 ; 2440A
  56.     |
  57. M_SDIV EQU 1 ; 2440X
  58.     ]
  59. ]
  60. [ FCLK = 304000000
  61. M_MDIV EQU 68 ;Fin=12.0MHz Fout=304.8MHz
  62. M_PDIV EQU 1
  63. [ CPU_SEL = 32440001
  64. M_SDIV EQU 1 ; 2440A
  65. |
  66. M_SDIV EQU 0 ; 2440X
  67. ]
  68. ]
  69. [ FCLK = 100000000
  70. M_MDIV EQU 42 ;Fin=12.0MHz Fout=100MHz
  71. M_PDIV EQU 4
  72. [ CPU_SEL = 32440001
  73. M_SDIV EQU 1 ; 2440A
  74. |
  75. M_SDIV EQU 0 ; 2440X
  76. ]
  77. ]
  78. [ FCLK = 200000000
  79. M_MDIV EQU 92 ;Fin=12.0MHz Fout=200MHz
  80. M_PDIV EQU 4
  81. [ CPU_SEL = 32440001
  82. M_SDIV EQU 1 ; 2440A
  83. |
  84. M_SDIV EQU 0 ; 2440X
  85. ]
  86. ]
  87. [ FCLK = 400000000
  88. M_MDIV EQU 92 ;Fin=12.0MHz Fout=400MHz
  89. M_PDIV EQU 1
  90. [ CPU_SEL = 32440001
  91. M_SDIV EQU 1 ; 2440A
  92. |
  93. M_SDIV EQU 0 ; 2440X
  94. ]
  95. ]
  96. [ UCLK = 48000000
  97. U_MDIV EQU 56 ;Fin=12.0MHz Fout=48MHz
  98. U_PDIV EQU 2
  99. [ CPU_SEL = 32440001
  100. U_SDIV EQU 2 ; 2440A
  101.     |
  102. U_SDIV EQU 1 ; 2440X
  103.     ]
  104. ]
  105. [ UCLK = 96000000
  106. U_MDIV EQU 56 ;Fin=12.0MHz Fout=96MHz
  107. U_PDIV EQU 2
  108. [ CPU_SEL = 32440001
  109. U_SDIV EQU 1 ; 2440A
  110.     |
  111. U_SDIV EQU 0 ; 2440X
  112.     ]
  113. ]
  114.   | ; else if XTAL_SEL = 16.9344Mhz
  115. [ FCLK = 266716800
  116. M_MDIV EQU 118 ;Fin=16.9344MHz
  117. M_PDIV EQU 2
  118. [ CPU_SEL = 32440001
  119. M_SDIV EQU 2 ; 2440A
  120. |
  121. M_SDIV EQU 1 ; 2440X
  122. ]
  123. ]
  124. [ FCLK = 296352000
  125. M_MDIV EQU 97 ;Fin=16.9344MHz
  126. M_PDIV EQU 1
  127. [ CPU_SEL = 32440001
  128. M_SDIV EQU 2 ; 2440A
  129. |
  130. M_SDIV EQU 1 ; 2440X
  131. ]
  132. ]
  133. [ FCLK = 541900800
  134. M_MDIV EQU 120 ;Fin=16.9344MHz
  135. M_PDIV EQU 2
  136. [ CPU_SEL = 32440001
  137. M_SDIV EQU 1 ; 2440A
  138. |
  139. M_SDIV EQU 0 ; 2440X
  140. ]
  141. ]
  142. [ UCLK = 48000000
  143. U_MDIV EQU 60 ;Fin=16.9344MHz Fout=48MHz
  144. U_PDIV EQU 4
  145. [ CPU_SEL = 32440001
  146. U_SDIV EQU 2 ; 2440A
  147.     |
  148. U_SDIV EQU 1 ; 2440X
  149.     ]
  150.     ]
  151. [ UCLK = 96000000
  152. U_MDIV EQU 60 ;Fin=16.9344MHz Fout=96MHz
  153. U_PDIV EQU 4
  154. [ CPU_SEL = 32440001
  155. U_SDIV EQU 1 ; 2440A
  156.     |
  157. U_SDIV EQU 0 ; 2440X
  158.     ]
  159. ]
  160.    ] ; end of if XTAL_SEL = 12000000.
  161.   
  162. END