mcuconf.h.ftl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. [#ftl]
  2. [@pp.dropOutputFile /]
  3. [@pp.changeOutputFile name="mcuconf.h" /]
  4. /*
  5. SPC5 HAL - Copyright (C) 2013 STMicroelectronics
  6. Licensed under the Apache License, Version 2.0 (the "License");
  7. you may not use this file except in compliance with the License.
  8. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. */
  16. #ifndef _MCUCONF_H_
  17. #define _MCUCONF_H_
  18. /*
  19. * SPC564Axx drivers configuration.
  20. * The following settings override the default settings present in
  21. * the various device driver implementation headers.
  22. * Note that the settings for each driver only have effect if the whole
  23. * driver is enabled in halconf.h.
  24. *
  25. * IRQ priorities:
  26. * 1...15 Lowest...Highest.
  27. * DMA priorities:
  28. * 0...15 Highest...Lowest.
  29. */
  30. #define SPC564Axx_MCUCONF
  31. /*
  32. * HAL driver system settings.
  33. */
  34. #define SPC5_NO_INIT ${conf.instance.initialization_settings.do_not_init.value[0]?upper_case}
  35. #define SPC5_CLK_BYPASS ${conf.instance.initialization_settings.clock_bypass.value[0]?upper_case}
  36. #define SPC5_ALLOW_OVERCLOCK ${conf.instance.initialization_settings.allow_overclocking.value[0]?upper_case}
  37. #define SPC5_CLK_PREDIV_VALUE ${conf.instance.initialization_settings.fmpll0_settings.prediv_value.value[0]}
  38. #define SPC5_CLK_MFD_VALUE ${conf.instance.initialization_settings.fmpll0_settings.mfd_value.value[0]}
  39. #define SPC5_CLK_RFD ${conf.instance.initialization_settings.fmpll0_settings.rfd_value.value[0]}
  40. #define SPC5_FLASH_BIUCR (BIUCR_BANK1_TOO | \
  41. BIUCR_MASTER4_PREFETCH | \
  42. BIUCR_MASTER0_PREFETCH | \
  43. BIUCR_DPFEN | \
  44. BIUCR_IPFEN | \
  45. BIUCR_PFLIM_ON_MISS | \
  46. BIUCR_BFEN)
  47. #define SPC5_EMIOS_GPRE_VALUE ${conf.instance.initialization_settings.clocks.emios_global_prescaler.value[0]}
  48. /*
  49. * EDMA driver settings.
  50. */
  51. #define SPC5_EDMA_CR_SETTING (EDMA_CR_GRP3PRI(3) | \
  52. EDMA_CR_GRP2PRI(2) | \
  53. EDMA_CR_GRP1PRI(1) | \
  54. EDMA_CR_GRP0PRI(0) | \
  55. EDMA_CR_EMLM | \
  56. EDMA_CR_ERGA)
  57. #define SPC5_EDMA_GROUP0_PRIORITIES [#rt/]
  58. [#list conf.instance.edma_settings.group_0_channels_priorities.* as channel]
  59. [#if channel_has_next]
  60. ${channel.value[0]}, [#rt/]
  61. [#else]
  62. ${channel.value[0]}
  63. [/#if]
  64. [/#list]
  65. #define SPC5_EDMA_GROUP1_PRIORITIES [#rt/]
  66. [#list conf.instance.edma_settings.group_1_channels_priorities.* as channel]
  67. [#if channel_has_next]
  68. ${channel.value[0]}, [#rt/]
  69. [#else]
  70. ${channel.value[0]}
  71. [/#if]
  72. [/#list]
  73. #define SPC5_EDMA_GROUP2_PRIORITIES [#rt/]
  74. [#list conf.instance.edma_settings.group_2_channels_priorities.* as channel]
  75. [#if channel_has_next]
  76. ${channel.value[0]}, [#rt/]
  77. [#else]
  78. ${channel.value[0]}
  79. [/#if]
  80. [/#list]
  81. #define SPC5_EDMA_GROUP3_PRIORITIES [#rt/]
  82. [#list conf.instance.edma_settings.group_3_channels_priorities.* as channel]
  83. [#if channel_has_next]
  84. ${channel.value[0]}, [#rt/]
  85. [#else]
  86. ${channel.value[0]}
  87. [/#if]
  88. [/#list]
  89. #define SPC5_EDMA_ERROR_IRQ_PRIO 12
  90. #define SPC5_EDMA_ERROR_HANDLER() osalSysHalt("DMA failure")
  91. /*
  92. * ADC driver settings.
  93. */
  94. #define SPC5_ADC_USE_ADC0_Q0 ${conf.instance.eqadc_settings.fifo0.value[0]?upper_case}
  95. #define SPC5_ADC_USE_ADC0_Q1 ${conf.instance.eqadc_settings.fifo1.value[0]?upper_case}
  96. #define SPC5_ADC_USE_ADC0_Q2 ${conf.instance.eqadc_settings.fifo2.value[0]?upper_case}
  97. #define SPC5_ADC_USE_ADC1_Q3 ${conf.instance.eqadc_settings.fifo3.value[0]?upper_case}
  98. #define SPC5_ADC_USE_ADC1_Q4 ${conf.instance.eqadc_settings.fifo4.value[0]?upper_case}
  99. #define SPC5_ADC_USE_ADC1_Q5 ${conf.instance.eqadc_settings.fifo5.value[0]?upper_case}
  100. #define SPC5_ADC_FIFO0_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.eqadc_fifo0.value[0]}
  101. #define SPC5_ADC_FIFO1_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.eqadc_fifo1.value[0]}
  102. #define SPC5_ADC_FIFO2_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.eqadc_fifo2.value[0]}
  103. #define SPC5_ADC_FIFO3_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.eqadc_fifo3.value[0]}
  104. #define SPC5_ADC_FIFO4_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.eqadc_fifo4.value[0]}
  105. #define SPC5_ADC_FIFO5_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.eqadc_fifo5.value[0]}
  106. #define SPC5_ADC_CR_CLK_PS ADC_CR_CLK_PS(${conf.instance.eqadc_settings.divider.value[0]})
  107. [#assign AN0 = conf.instance.eqadc_settings.an0.value[0]?upper_case?replace(" ", "_") /]
  108. [#assign AN1 = conf.instance.eqadc_settings.an1.value[0]?upper_case?replace(" ", "_") /]
  109. [#assign AN2 = conf.instance.eqadc_settings.an2.value[0]?upper_case?replace(" ", "_") /]
  110. [#assign AN3 = conf.instance.eqadc_settings.an3.value[0]?upper_case?replace(" ", "_") /]
  111. [#assign AN4 = conf.instance.eqadc_settings.an4.value[0]?upper_case?replace(" ", "_") /]
  112. [#assign AN5 = conf.instance.eqadc_settings.an5.value[0]?upper_case?replace(" ", "_") /]
  113. [#assign AN6 = conf.instance.eqadc_settings.an6.value[0]?upper_case?replace(" ", "_") /]
  114. [#assign AN7 = conf.instance.eqadc_settings.an7.value[0]?upper_case?replace(" ", "_") /]
  115. #define SPC5_ADC_PUDCR {ADC_PUDCR_${AN0},ADC_PUDCR_${AN1},ADC_PUDCR_${AN2},ADC_PUDCR_${AN3},ADC_PUDCR_${AN4},ADC_PUDCR_${AN5},ADC_PUDCR_${AN6},ADC_PUDCR_${AN7}}
  116. /*
  117. * SERIAL driver system settings.
  118. */
  119. #define SPC5_USE_ESCIA ${(conf.instance.esci_settings.esci0.value[0] == "Serial")?string?upper_case}
  120. #define SPC5_USE_ESCIB ${(conf.instance.esci_settings.esci1.value[0] == "Serial")?string?upper_case}
  121. #define SPC5_USE_ESCIC ${(conf.instance.esci_settings.esci2.value[0] == "Serial")?string?upper_case}
  122. #define SPC5_ESCIA_PRIORITY ${conf.instance.irq_priority_settings.esci0.value[0]}
  123. #define SPC5_ESCIB_PRIORITY ${conf.instance.irq_priority_settings.esci1.value[0]}
  124. #define SPC5_ESCIC_PRIORITY ${conf.instance.irq_priority_settings.esci2.value[0]}
  125. /*
  126. * SPI driver system settings.
  127. */
  128. #define SPC5_SPI_USE_DSPI1 ${conf.instance.dspi_settings.dspi_b.value[0]?upper_case}
  129. #define SPC5_SPI_USE_DSPI2 ${conf.instance.dspi_settings.dspi_c.value[0]?upper_case}
  130. #define SPC5_SPI_USE_DSPI3 ${conf.instance.dspi_settings.dspi_c.value[0]?upper_case}
  131. #define SPC5_SPI_DMA_MODE SPC5_SPI_DMA_${conf.instance.dspi_settings.dma_mode.value[0]?upper_case?replace(" ", "_")}
  132. [#assign bs0 = [""," | SPC5_MCR_PCSIS0"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs0[0].@index[0]?trim?number] /]
  133. [#assign bs1 = [""," | SPC5_MCR_PCSIS1"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs1[0].@index[0]?trim?number] /]
  134. [#assign bs2 = [""," | SPC5_MCR_PCSIS2"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs2[0].@index[0]?trim?number] /]
  135. [#assign bs3 = [""," | SPC5_MCR_PCSIS3"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs3[0].@index[0]?trim?number] /]
  136. [#assign bs4 = [""," | SPC5_MCR_PCSIS4"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs4[0].@index[0]?trim?number] /]
  137. [#assign bs5 = [""," | SPC5_MCR_PCSIS5"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs5[0].@index[0]?trim?number] /]
  138. [#assign bs6 = [""," | SPC5_MCR_PCSIS6"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs6[0].@index[0]?trim?number] /]
  139. [#assign bs7 = [""," | SPC5_MCR_PCSIS7"][conf.instance.dspi_settings.inactive_states.dspi_b___pcs7[0].@index[0]?trim?number] /]
  140. #define SPC5_SPI_DSPI1_MCR (0${bs0 + bs1 + bs2 + bs3 + bs4 + bs5 + bs6 + bs7})
  141. [#assign cs0 = [""," | SPC5_MCR_PCSIS0"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs0[0].@index[0]?trim?number] /]
  142. [#assign cs1 = [""," | SPC5_MCR_PCSIS1"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs1[0].@index[0]?trim?number] /]
  143. [#assign cs2 = [""," | SPC5_MCR_PCSIS2"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs2[0].@index[0]?trim?number] /]
  144. [#assign cs3 = [""," | SPC5_MCR_PCSIS3"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs3[0].@index[0]?trim?number] /]
  145. [#assign cs4 = [""," | SPC5_MCR_PCSIS4"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs4[0].@index[0]?trim?number] /]
  146. [#assign cs5 = [""," | SPC5_MCR_PCSIS5"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs5[0].@index[0]?trim?number] /]
  147. [#assign cs6 = [""," | SPC5_MCR_PCSIS6"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs6[0].@index[0]?trim?number] /]
  148. [#assign cs7 = [""," | SPC5_MCR_PCSIS7"][conf.instance.dspi_settings.inactive_states.dspi_c___pcs7[0].@index[0]?trim?number] /]
  149. #define SPC5_SPI_DSPI2_MCR (0${cs0 + cs1 + cs2 + cs3 + cs4 + cs5 + cs6 + cs7})
  150. [#assign ds0 = [""," | SPC5_MCR_PCSIS0"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs0[0].@index[0]?trim?number] /]
  151. [#assign ds1 = [""," | SPC5_MCR_PCSIS1"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs1[0].@index[0]?trim?number] /]
  152. [#assign ds2 = [""," | SPC5_MCR_PCSIS2"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs2[0].@index[0]?trim?number] /]
  153. [#assign ds3 = [""," | SPC5_MCR_PCSIS3"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs3[0].@index[0]?trim?number] /]
  154. [#assign ds4 = [""," | SPC5_MCR_PCSIS4"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs4[0].@index[0]?trim?number] /]
  155. [#assign ds5 = [""," | SPC5_MCR_PCSIS5"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs5[0].@index[0]?trim?number] /]
  156. [#assign ds6 = [""," | SPC5_MCR_PCSIS6"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs6[0].@index[0]?trim?number] /]
  157. [#assign ds7 = [""," | SPC5_MCR_PCSIS7"][conf.instance.dspi_settings.inactive_states.dspi_d___pcs7[0].@index[0]?trim?number] /]
  158. #define SPC5_SPI_DSPI3_MCR (0${ds0 + ds1 + ds2 + ds3 + ds4 + ds5 + ds6 + ds7})
  159. #define SPC5_SPI_DSPI1_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.dspi_b.value[0]}
  160. #define SPC5_SPI_DSPI2_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.dspi_c.value[0]}
  161. #define SPC5_SPI_DSPI3_DMA_IRQ_PRIO ${conf.instance.irq_priority_settings.dspi_d.value[0]}
  162. #define SPC5_SPI_DSPI1_IRQ_PRIO ${conf.instance.irq_priority_settings.dspi_b.value[0]}
  163. #define SPC5_SPI_DSPI2_IRQ_PRIO ${conf.instance.irq_priority_settings.dspi_c.value[0]}
  164. #define SPC5_SPI_DSPI3_IRQ_PRIO ${conf.instance.irq_priority_settings.dspi_d.value[0]}
  165. #define SPC5_SPI_DMA_ERROR_HOOK(spip) ${conf.instance.dspi_settings.dma_error_hook.value[0]}
  166. /*
  167. * ICU driver system settings.
  168. */
  169. #define SPC5_ICU_USE_EMIOS_CH0 ${(conf.instance.emios200_settings.emios_uc0.value[0] == "ICU")?string?upper_case}
  170. #define SPC5_ICU_USE_EMIOS_CH1 ${(conf.instance.emios200_settings.emios_uc1.value[0] == "ICU")?string?upper_case}
  171. #define SPC5_ICU_USE_EMIOS_CH2 ${(conf.instance.emios200_settings.emios_uc2.value[0] == "ICU")?string?upper_case}
  172. #define SPC5_ICU_USE_EMIOS_CH3 ${(conf.instance.emios200_settings.emios_uc3.value[0] == "ICU")?string?upper_case}
  173. #define SPC5_ICU_USE_EMIOS_CH4 ${(conf.instance.emios200_settings.emios_uc4.value[0] == "ICU")?string?upper_case}
  174. #define SPC5_ICU_USE_EMIOS_CH5 ${(conf.instance.emios200_settings.emios_uc5.value[0] == "ICU")?string?upper_case}
  175. #define SPC5_ICU_USE_EMIOS_CH6 ${(conf.instance.emios200_settings.emios_uc6.value[0] == "ICU")?string?upper_case}
  176. #define SPC5_ICU_USE_EMIOS_CH7 ${(conf.instance.emios200_settings.emios_uc7.value[0] == "ICU")?string?upper_case}
  177. #define SPC5_ICU_USE_EMIOS_CH8 ${(conf.instance.emios200_settings.emios_uc8.value[0] == "ICU")?string?upper_case}
  178. #define SPC5_ICU_USE_EMIOS_CH9 ${(conf.instance.emios200_settings.emios_uc9.value[0] == "ICU")?string?upper_case}
  179. #define SPC5_ICU_USE_EMIOS_CH10 ${(conf.instance.emios200_settings.emios_uc10.value[0] == "ICU")?string?upper_case}
  180. #define SPC5_ICU_USE_EMIOS_CH11 ${(conf.instance.emios200_settings.emios_uc11.value[0] == "ICU")?string?upper_case}
  181. #define SPC5_ICU_USE_EMIOS_CH12 ${(conf.instance.emios200_settings.emios_uc12.value[0] == "ICU")?string?upper_case}
  182. #define SPC5_ICU_USE_EMIOS_CH13 ${(conf.instance.emios200_settings.emios_uc13.value[0] == "ICU")?string?upper_case}
  183. #define SPC5_ICU_USE_EMIOS_CH14 ${(conf.instance.emios200_settings.emios_uc14.value[0] == "ICU")?string?upper_case}
  184. #define SPC5_ICU_USE_EMIOS_CH15 ${(conf.instance.emios200_settings.emios_uc15.value[0] == "ICU")?string?upper_case}
  185. #define SPC5_ICU_USE_EMIOS_CH16 ${(conf.instance.emios200_settings.emios_uc16.value[0] == "ICU")?string?upper_case}
  186. #define SPC5_ICU_USE_EMIOS_CH17 ${(conf.instance.emios200_settings.emios_uc17.value[0] == "ICU")?string?upper_case}
  187. #define SPC5_ICU_USE_EMIOS_CH18 ${(conf.instance.emios200_settings.emios_uc18.value[0] == "ICU")?string?upper_case}
  188. #define SPC5_ICU_USE_EMIOS_CH19 ${(conf.instance.emios200_settings.emios_uc19.value[0] == "ICU")?string?upper_case}
  189. #define SPC5_ICU_USE_EMIOS_CH20 ${(conf.instance.emios200_settings.emios_uc20.value[0] == "ICU")?string?upper_case}
  190. #define SPC5_ICU_USE_EMIOS_CH21 ${(conf.instance.emios200_settings.emios_uc21.value[0] == "ICU")?string?upper_case}
  191. #define SPC5_ICU_USE_EMIOS_CH22 ${(conf.instance.emios200_settings.emios_uc22.value[0] == "ICU")?string?upper_case}
  192. #define SPC5_ICU_USE_EMIOS_CH23 ${(conf.instance.emios200_settings.emios_uc23.value[0] == "ICU")?string?upper_case}
  193. /*
  194. * PWM driver system settings.
  195. */
  196. #define SPC5_PWM_USE_EMIOS_CH0 ${(conf.instance.emios200_settings.emios_uc0.value[0] == "PWM")?string?upper_case}
  197. #define SPC5_PWM_USE_EMIOS_CH1 ${(conf.instance.emios200_settings.emios_uc1.value[0] == "PWM")?string?upper_case}
  198. #define SPC5_PWM_USE_EMIOS_CH2 ${(conf.instance.emios200_settings.emios_uc2.value[0] == "PWM")?string?upper_case}
  199. #define SPC5_PWM_USE_EMIOS_CH3 ${(conf.instance.emios200_settings.emios_uc3.value[0] == "PWM")?string?upper_case}
  200. #define SPC5_PWM_USE_EMIOS_CH4 ${(conf.instance.emios200_settings.emios_uc4.value[0] == "PWM")?string?upper_case}
  201. #define SPC5_PWM_USE_EMIOS_CH5 ${(conf.instance.emios200_settings.emios_uc5.value[0] == "PWM")?string?upper_case}
  202. #define SPC5_PWM_USE_EMIOS_CH6 ${(conf.instance.emios200_settings.emios_uc6.value[0] == "PWM")?string?upper_case}
  203. #define SPC5_PWM_USE_EMIOS_CH7 ${(conf.instance.emios200_settings.emios_uc7.value[0] == "PWM")?string?upper_case}
  204. #define SPC5_PWM_USE_EMIOS_CH8 ${(conf.instance.emios200_settings.emios_uc8.value[0] == "PWM")?string?upper_case}
  205. #define SPC5_PWM_USE_EMIOS_CH9 ${(conf.instance.emios200_settings.emios_uc9.value[0] == "PWM")?string?upper_case}
  206. #define SPC5_PWM_USE_EMIOS_CH10 ${(conf.instance.emios200_settings.emios_uc10.value[0] == "PWM")?string?upper_case}
  207. #define SPC5_PWM_USE_EMIOS_CH11 ${(conf.instance.emios200_settings.emios_uc11.value[0] == "PWM")?string?upper_case}
  208. #define SPC5_PWM_USE_EMIOS_CH12 ${(conf.instance.emios200_settings.emios_uc12.value[0] == "PWM")?string?upper_case}
  209. #define SPC5_PWM_USE_EMIOS_CH13 ${(conf.instance.emios200_settings.emios_uc13.value[0] == "PWM")?string?upper_case}
  210. #define SPC5_PWM_USE_EMIOS_CH14 ${(conf.instance.emios200_settings.emios_uc14.value[0] == "PWM")?string?upper_case}
  211. #define SPC5_PWM_USE_EMIOS_CH15 ${(conf.instance.emios200_settings.emios_uc15.value[0] == "PWM")?string?upper_case}
  212. #define SPC5_PWM_USE_EMIOS_CH16 ${(conf.instance.emios200_settings.emios_uc16.value[0] == "PWM")?string?upper_case}
  213. #define SPC5_PWM_USE_EMIOS_CH17 ${(conf.instance.emios200_settings.emios_uc17.value[0] == "PWM")?string?upper_case}
  214. #define SPC5_PWM_USE_EMIOS_CH18 ${(conf.instance.emios200_settings.emios_uc18.value[0] == "PWM")?string?upper_case}
  215. #define SPC5_PWM_USE_EMIOS_CH19 ${(conf.instance.emios200_settings.emios_uc19.value[0] == "PWM")?string?upper_case}
  216. #define SPC5_PWM_USE_EMIOS_CH20 ${(conf.instance.emios200_settings.emios_uc20.value[0] == "PWM")?string?upper_case}
  217. #define SPC5_PWM_USE_EMIOS_CH21 ${(conf.instance.emios200_settings.emios_uc21.value[0] == "PWM")?string?upper_case}
  218. #define SPC5_PWM_USE_EMIOS_CH22 ${(conf.instance.emios200_settings.emios_uc22.value[0] == "PWM")?string?upper_case}
  219. #define SPC5_PWM_USE_EMIOS_CH23 ${(conf.instance.emios200_settings.emios_uc23.value[0] == "PWM")?string?upper_case}
  220. /*
  221. * eMIOS channel priorities.
  222. */
  223. #define SPC5_EMIOS_FLAG_F0_PRIORITY ${conf.instance.irq_priority_settings.emios_uc0.value[0]}
  224. #define SPC5_EMIOS_FLAG_F1_PRIORITY ${conf.instance.irq_priority_settings.emios_uc1.value[0]}
  225. #define SPC5_EMIOS_FLAG_F2_PRIORITY ${conf.instance.irq_priority_settings.emios_uc2.value[0]}
  226. #define SPC5_EMIOS_FLAG_F3_PRIORITY ${conf.instance.irq_priority_settings.emios_uc3.value[0]}
  227. #define SPC5_EMIOS_FLAG_F4_PRIORITY ${conf.instance.irq_priority_settings.emios_uc4.value[0]}
  228. #define SPC5_EMIOS_FLAG_F5_PRIORITY ${conf.instance.irq_priority_settings.emios_uc5.value[0]}
  229. #define SPC5_EMIOS_FLAG_F6_PRIORITY ${conf.instance.irq_priority_settings.emios_uc6.value[0]}
  230. #define SPC5_EMIOS_FLAG_F7_PRIORITY ${conf.instance.irq_priority_settings.emios_uc7.value[0]}
  231. #define SPC5_EMIOS_FLAG_F8_PRIORITY ${conf.instance.irq_priority_settings.emios_uc8.value[0]}
  232. #define SPC5_EMIOS_FLAG_F9_PRIORITY ${conf.instance.irq_priority_settings.emios_uc9.value[0]}
  233. #define SPC5_EMIOS_FLAG_F10_PRIORITY ${conf.instance.irq_priority_settings.emios_uc10.value[0]}
  234. #define SPC5_EMIOS_FLAG_F11_PRIORITY ${conf.instance.irq_priority_settings.emios_uc11.value[0]}
  235. #define SPC5_EMIOS_FLAG_F12_PRIORITY ${conf.instance.irq_priority_settings.emios_uc12.value[0]}
  236. #define SPC5_EMIOS_FLAG_F13_PRIORITY ${conf.instance.irq_priority_settings.emios_uc13.value[0]}
  237. #define SPC5_EMIOS_FLAG_F14_PRIORITY ${conf.instance.irq_priority_settings.emios_uc14.value[0]}
  238. #define SPC5_EMIOS_FLAG_F15_PRIORITY ${conf.instance.irq_priority_settings.emios_uc15.value[0]}
  239. #define SPC5_EMIOS_FLAG_F16_PRIORITY ${conf.instance.irq_priority_settings.emios_uc16.value[0]}
  240. #define SPC5_EMIOS_FLAG_F17_PRIORITY ${conf.instance.irq_priority_settings.emios_uc17.value[0]}
  241. #define SPC5_EMIOS_FLAG_F18_PRIORITY ${conf.instance.irq_priority_settings.emios_uc18.value[0]}
  242. #define SPC5_EMIOS_FLAG_F19_PRIORITY ${conf.instance.irq_priority_settings.emios_uc19.value[0]}
  243. #define SPC5_EMIOS_FLAG_F20_PRIORITY ${conf.instance.irq_priority_settings.emios_uc20.value[0]}
  244. #define SPC5_EMIOS_FLAG_F21_PRIORITY ${conf.instance.irq_priority_settings.emios_uc21.value[0]}
  245. #define SPC5_EMIOS_FLAG_F22_PRIORITY ${conf.instance.irq_priority_settings.emios_uc22.value[0]}
  246. #define SPC5_EMIOS_FLAG_F23_PRIORITY ${conf.instance.irq_priority_settings.emios_uc23.value[0]}
  247. /*
  248. * CAN driver system settings.
  249. */
  250. #define SPC5_CAN_USE_FILTERS ${conf.instance.flexcan_settings.flexcan_enable_filters.value[0]?upper_case}
  251. #define SPC5_CAN_USE_FLEXCAN0 ${conf.instance.flexcan_settings.flexcan0.value[0]?upper_case}
  252. #define SPC5_CAN_FLEXCAN0_USE_EXT_CLK ${conf.instance.flexcan_settings.flexcan0_use_external_clock.value[0]?upper_case}
  253. #define SPC5_CAN_FLEXCAN0_IRQ_PRIORITY ${conf.instance.irq_priority_settings.flexcan0.value[0]}
  254. #define SPC5_CAN_NUM_RX_MAILBOXES ${conf.instance.flexcan_settings.can_configurations.mailboxes_configuration.number_of_rx_mailboxes.value[0]}
  255. #define SPC5_CAN_NUM_TX_MAILBOXES ${conf.instance.flexcan_settings.can_configurations.mailboxes_configuration.number_of_tx_mailboxes.value[0]}
  256. #define SPC5_CAN_USE_FLEXCAN1 ${conf.instance.flexcan_settings.flexcan1.value[0]?upper_case}
  257. #define SPC5_CAN_FLEXCAN1_USE_EXT_CLK ${conf.instance.flexcan_settings.flexcan1_use_external_clock.value[0]?upper_case}
  258. #define SPC5_CAN_FLEXCAN1_IRQ_PRIORITY ${conf.instance.irq_priority_settings.flexcan1.value[0]}
  259. #define SPC5_CAN_USE_FLEXCAN2 ${conf.instance.flexcan_settings.flexcan2.value[0]?upper_case}
  260. #define SPC5_CAN_FLEXCAN2_USE_EXT_CLK ${conf.instance.flexcan_settings.flexcan2_use_external_clock.value[0]?upper_case}
  261. #define SPC5_CAN_FLEXCAN2_IRQ_PRIORITY ${conf.instance.irq_priority_settings.flexcan2.value[0]}
  262. #endif /* _MCUCONF_H_ */