mcuconf_community.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. ChibiOS/RT - Copyright (C) 2014 Uladzimir Pylinsky aka barthess
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /*
  14. * FSMC driver system settings.
  15. */
  16. #define STM32_FSMC_USE_FSMC1 FALSE
  17. #define STM32_FSMC_FSMC1_IRQ_PRIORITY 10
  18. /*
  19. * FSMC NAND driver system settings.
  20. */
  21. #define STM32_NAND_USE_NAND1 FALSE
  22. #define STM32_NAND_USE_NAND2 FALSE
  23. #define STM32_NAND_USE_EXT_INT FALSE
  24. #define STM32_NAND_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
  25. #define STM32_NAND_DMA_PRIORITY 0
  26. #define STM32_NAND_DMA_ERROR_HOOK(nandp) osalSysHalt("DMA failure")
  27. /*
  28. * FSMC SRAM driver system settings.
  29. */
  30. #define STM32_USE_FSMC_SRAM FALSE
  31. #define STM32_SRAM_USE_FSMC_SRAM1 FALSE
  32. #define STM32_SRAM_USE_FSMC_SRAM2 FALSE
  33. #define STM32_SRAM_USE_FSMC_SRAM3 FALSE
  34. #define STM32_SRAM_USE_FSMC_SRAM4 FALSE
  35. /*
  36. * FSMC SDRAM driver system settings.
  37. */
  38. #define STM32_USE_FSMC_SDRAM FALSE
  39. #define STM32_SDRAM_USE_FSMC_SDRAM1 FALSE
  40. #define STM32_SDRAM_USE_FSMC_SDRAM2 FALSE
  41. /*
  42. * TIMCAP driver system settings.
  43. */
  44. #define STM32_TIMCAP_USE_TIM1 FALSE
  45. #define STM32_TIMCAP_USE_TIM2 FALSE
  46. #define STM32_TIMCAP_USE_TIM3 FALSE
  47. #define STM32_TIMCAP_USE_TIM4 FALSE
  48. #define STM32_TIMCAP_USE_TIM5 FALSE
  49. #define STM32_TIMCAP_USE_TIM8 FALSE
  50. #define STM32_TIMCAP_USE_TIM9 FALSE
  51. #define STM32_TIMCAP_TIM1_IRQ_PRIORITY 3
  52. #define STM32_TIMCAP_TIM2_IRQ_PRIORITY 3
  53. #define STM32_TIMCAP_TIM3_IRQ_PRIORITY 3
  54. #define STM32_TIMCAP_TIM4_IRQ_PRIORITY 3
  55. #define STM32_TIMCAP_TIM5_IRQ_PRIORITY 3
  56. #define STM32_TIMCAP_TIM8_IRQ_PRIORITY 3
  57. #define STM32_TIMCAP_TIM9_IRQ_PRIORITY 3
  58. /*
  59. * COMP driver system settings.
  60. */
  61. #define STM32_COMP_USE_COMP1 FALSE
  62. #define STM32_COMP_USE_COMP2 FALSE
  63. #define STM32_COMP_USE_COMP3 FALSE
  64. #define STM32_COMP_USE_COMP4 FALSE
  65. #define STM32_COMP_USE_COMP5 FALSE
  66. #define STM32_COMP_USE_COMP6 FALSE
  67. #define STM32_COMP_USE_COMP7 FALSE
  68. #define STM32_COMP_USE_INTERRUPTS FALSE
  69. #define STM32_COMP_1_2_3_IRQ_PRIORITY 5
  70. #define STM32_COMP_4_5_6_IRQ_PRIORITY 5
  71. #define STM32_COMP_7_IRQ_PRIORITY 5
  72. #if STM32_COMP_USE_INTERRUPTS
  73. #define STM32_DISABLE_EXTI21_22_29_HANDLER
  74. #define STM32_DISABLE_EXTI30_32_HANDLER
  75. #define STM32_DISABLE_EXTI33_HANDLER
  76. #endif
  77. /*
  78. * USBH driver system settings.
  79. */
  80. #define STM32_OTG_FS_CHANNELS_NUMBER 8
  81. #define STM32_OTG_HS_CHANNELS_NUMBER 12
  82. #define STM32_USBH_USE_OTG1 1
  83. #define STM32_OTG_FS_RXFIFO_SIZE 1024
  84. #define STM32_OTG_FS_PTXFIFO_SIZE 128
  85. #define STM32_OTG_FS_NPTXFIFO_SIZE 128
  86. #define STM32_USBH_USE_OTG2 0
  87. #define STM32_OTG_HS_RXFIFO_SIZE 2048
  88. #define STM32_OTG_HS_PTXFIFO_SIZE 1024
  89. #define STM32_OTG_HS_NPTXFIFO_SIZE 1024
  90. #define STM32_USBH_MIN_QSPACE 4
  91. #define STM32_USBH_CHANNELS_NP 4
  92. /*
  93. * CRC driver system settings.
  94. */
  95. #define STM32_CRC_USE_CRC1 FALSE
  96. #define STM32_CRC_CRC1_DMA_IRQ_PRIORITY 1
  97. #define STM32_CRC_CRC1_DMA_PRIORITY 2
  98. #define STM32_CRC_CRC1_DMA_STREAM STM32_DMA1_STREAM2
  99. #define CRCSW_USE_CRC1 FALSE
  100. #define CRCSW_CRC32_TABLE FALSE
  101. #define CRCSW_CRC16_TABLE FALSE
  102. #define CRCSW_PROGRAMMABLE FALSE
  103. /*
  104. * EICU driver system settings.
  105. */
  106. #define STM32_EICU_USE_TIM1 FALSE
  107. #define STM32_EICU_USE_TIM2 FALSE
  108. #define STM32_EICU_USE_TIM3 FALSE
  109. #define STM32_EICU_USE_TIM4 FALSE
  110. #define STM32_EICU_USE_TIM5 FALSE
  111. #define STM32_EICU_USE_TIM8 FALSE
  112. #define STM32_EICU_USE_TIM9 FALSE
  113. #define STM32_EICU_USE_TIM10 FALSE
  114. #define STM32_EICU_USE_TIM11 FALSE
  115. #define STM32_EICU_USE_TIM12 FALSE
  116. #define STM32_EICU_USE_TIM13 FALSE
  117. #define STM32_EICU_USE_TIM14 FALSE
  118. #define STM32_EICU_TIM1_IRQ_PRIORITY 7
  119. #define STM32_EICU_TIM2_IRQ_PRIORITY 7
  120. #define STM32_EICU_TIM3_IRQ_PRIORITY 7
  121. #define STM32_EICU_TIM4_IRQ_PRIORITY 7
  122. #define STM32_EICU_TIM5_IRQ_PRIORITY 7
  123. #define STM32_EICU_TIM8_IRQ_PRIORITY 7
  124. #define STM32_EICU_TIM9_IRQ_PRIORITY 7
  125. #define STM32_EICU_TIM10_IRQ_PRIORITY 7
  126. #define STM32_EICU_TIM11_IRQ_PRIORITY 7
  127. #define STM32_EICU_TIM12_IRQ_PRIORITY 7
  128. #define STM32_EICU_TIM13_IRQ_PRIORITY 7
  129. #define STM32_EICU_TIM14_IRQ_PRIORITY 7
  130. /*
  131. * QEI driver system settings.
  132. */
  133. #define STM32_QEI_USE_TIM1 FALSE
  134. #define STM32_QEI_USE_TIM2 FALSE
  135. #define STM32_QEI_USE_TIM3 FALSE
  136. #define STM32_QEI_TIM1_IRQ_PRIORITY 3
  137. #define STM32_QEI_TIM2_IRQ_PRIORITY 3
  138. #define STM32_QEI_TIM3_IRQ_PRIORITY 3