platform.dox 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  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. * @defgroup STM32L1xx_DRIVERS STM32L1xx Drivers
  15. * @details This section describes all the supported drivers on the STM32L1xx
  16. * platform and the implementation details of the single drivers.
  17. *
  18. * @ingroup platforms
  19. */
  20. /**
  21. * @defgroup STM32L1xx_HAL STM32L1xx Initialization Support
  22. * @details The STM32L1xx HAL support is responsible for system initialization.
  23. *
  24. * @section stm32l1xx_hal_1 Supported HW resources
  25. * - PLL1.
  26. * - RCC.
  27. * - Flash.
  28. * .
  29. * @section stm32l1xx_hal_2 STM32L1xx HAL driver implementation features
  30. * - PLL startup and stabilization.
  31. * - Clock tree initialization.
  32. * - Clock source selection.
  33. * - Flash wait states initialization based on the selected clock options.
  34. * - SYSTICK initialization based on current clock and kernel required rate.
  35. * - DMA support initialization.
  36. * .
  37. * @ingroup STM32L1xx_DRIVERS
  38. */
  39. /**
  40. * @defgroup STM32L1xx_ADC STM32L1xx ADC Support
  41. * @details The STM32L1xx ADC driver supports the ADC peripherals using DMA
  42. * channels for maximum performance.
  43. *
  44. * @section stm32l1xx_adc_1 Supported HW resources
  45. * - ADC1.
  46. * - DMA1.
  47. * .
  48. * @section stm32l1xx_adc_2 STM32L1xx ADC driver implementation features
  49. * - Clock stop for reduced power usage when the driver is in stop state.
  50. * - Streaming conversion using DMA for maximum performance.
  51. * - Programmable ADC interrupt priority level.
  52. * - Programmable DMA bus priority for each DMA channel.
  53. * - Programmable DMA interrupt priority for each DMA channel.
  54. * - DMA and ADC errors detection.
  55. * .
  56. * @ingroup STM32L1xx_DRIVERS
  57. */
  58. /**
  59. * @defgroup STM32L1xx_EXT STM32L1xx EXT Support
  60. * @details The STM32L1xx EXT driver uses the EXTI peripheral.
  61. *
  62. * @section stm32l1xx_ext_1 Supported HW resources
  63. * - EXTI.
  64. * .
  65. * @section stm32l1xx_ext_2 STM32L1xx EXT driver implementation features
  66. * - Each EXTI channel can be independently enabled and programmed.
  67. * - Programmable EXTI interrupts priority level.
  68. * - Capability to work as event sources (WFE) rather than interrupt sources.
  69. * .
  70. * @ingroup STM32L1xx_DRIVERS
  71. */
  72. /**
  73. * @defgroup STM32L1xx_GPT STM32L1xx GPT Support
  74. * @details The STM32L1xx GPT driver uses the TIMx peripherals.
  75. *
  76. * @section stm32l1xx_gpt_1 Supported HW resources
  77. * - TIM2.
  78. * - TIM3.
  79. * - TIM4.
  80. * .
  81. * @section stm32l1xx_gpt_2 STM32L1xx GPT driver implementation features
  82. * - Each timer can be independently enabled and programmed. Unused
  83. * peripherals are left in low power mode.
  84. * - Programmable TIMx interrupts priority level.
  85. * .
  86. * @ingroup STM32L1xx_DRIVERS
  87. */
  88. /**
  89. * @defgroup STM32L1xx_ICU STM32L1xx ICU Support
  90. * @details The STM32L1xx ICU driver uses the TIMx peripherals.
  91. *
  92. * @section stm32l1xx_icu_1 Supported HW resources
  93. * - TIM2.
  94. * - TIM3.
  95. * - TIM4.
  96. * .
  97. * @section stm32l1xx_icu_2 STM32L1xx ICU driver implementation features
  98. * - Each timer can be independently enabled and programmed. Unused
  99. * peripherals are left in low power mode.
  100. * - Programmable TIMx interrupts priority level.
  101. * .
  102. * @ingroup STM32L1xx_DRIVERS
  103. */
  104. /**
  105. * @defgroup STM32L1xx_PAL STM32L1xx PAL Support
  106. * @details The STM32L1xx PAL driver uses the GPIO peripherals.
  107. *
  108. * @section stm32l1xx_pal_1 Supported HW resources
  109. * - GPIOA.
  110. * - GPIOB.
  111. * - GPIOC.
  112. * - GPIOD.
  113. * - GPIOE.
  114. * - GPIOH.
  115. * .
  116. * @section stm32l1xx_pal_2 STM32L1xx PAL driver implementation features
  117. * The PAL driver implementation fully supports the following hardware
  118. * capabilities:
  119. * - 16 bits wide ports.
  120. * - Atomic set/reset functions.
  121. * - Atomic set+reset function (atomic bus operations).
  122. * - Output latched regardless of the pad setting.
  123. * - Direct read of input pads regardless of the pad setting.
  124. * .
  125. * @section stm32l1xx_pal_3 Supported PAL setup modes
  126. * The STM32L1xx PAL driver supports the following I/O modes:
  127. * - @p PAL_MODE_RESET.
  128. * - @p PAL_MODE_UNCONNECTED.
  129. * - @p PAL_MODE_INPUT.
  130. * - @p PAL_MODE_INPUT_PULLUP.
  131. * - @p PAL_MODE_INPUT_PULLDOWN.
  132. * - @p PAL_MODE_INPUT_ANALOG.
  133. * - @p PAL_MODE_OUTPUT_PUSHPULL.
  134. * - @p PAL_MODE_OUTPUT_OPENDRAIN.
  135. * - @p PAL_MODE_ALTERNATE (non standard).
  136. * .
  137. * Any attempt to setup an invalid mode is ignored.
  138. *
  139. * @section stm32l1xx_pal_4 Suboptimal behavior
  140. * The STM32L1xx GPIO is less than optimal in several areas, the limitations
  141. * should be taken in account while using the PAL driver:
  142. * - Pad/port toggling operations are not atomic.
  143. * - Pad/group mode setup is not atomic.
  144. * .
  145. * @ingroup STM32L1xx_DRIVERS
  146. */
  147. /**
  148. * @defgroup STM32L1xx_PWM STM32L1xx PWM Support
  149. * @details The STM32L1xx PWM driver uses the TIMx peripherals.
  150. *
  151. * @section stm32l1xx_pwm_1 Supported HW resources
  152. * - TIM1.
  153. * - TIM2.
  154. * - TIM3.
  155. * - TIM4.
  156. * .
  157. * @section stm32l1xx_pwm_2 STM32L1xx PWM driver implementation features
  158. * - Each timer can be independently enabled and programmed. Unused
  159. * peripherals are left in low power mode.
  160. * - Four independent PWM channels per timer.
  161. * - Programmable TIMx interrupts priority level.
  162. * .
  163. * @ingroup STM32L1xx_DRIVERS
  164. */
  165. /**
  166. * @defgroup STM32L1xx_SERIAL STM32L1xx Serial Support
  167. * @details The STM32L1xx Serial driver uses the USART/UART peripherals in a
  168. * buffered, interrupt driven, implementation.
  169. *
  170. * @section stm32l1xx_serial_1 Supported HW resources
  171. * The serial driver can support any of the following hardware resources:
  172. * - USART1.
  173. * - USART2.
  174. * - USART3 (where present).
  175. * - UART4 (where present).
  176. * - UART5 (where present).
  177. * .
  178. * @section stm32l1xx_serial_2 STM32L1xx Serial driver implementation features
  179. * - Clock stop for reduced power usage when the driver is in stop state.
  180. * - Each UART/USART can be independently enabled and programmed. Unused
  181. * peripherals are left in low power mode.
  182. * - Fully interrupt driven.
  183. * - Programmable priority levels for each UART/USART.
  184. * .
  185. * @ingroup STM32L1xx_DRIVERS
  186. */
  187. /**
  188. * @defgroup STM32L1xx_SPI STM32L1xx SPI Support
  189. * @details The SPI driver supports the STM32L1xx SPI peripherals using DMA
  190. * channels for maximum performance.
  191. *
  192. * @section stm32l1xx_spi_1 Supported HW resources
  193. * - SPI1.
  194. * - SPI2.
  195. * - SPI3 (where present).
  196. * - DMA1.
  197. * - DMA2 (where present).
  198. * .
  199. * @section stm32l1xx_spi_2 STM32L1xx SPI driver implementation features
  200. * - Clock stop for reduced power usage when the driver is in stop state.
  201. * - Each SPI can be independently enabled and programmed. Unused
  202. * peripherals are left in low power mode.
  203. * - Programmable interrupt priority levels for each SPI.
  204. * - DMA is used for receiving and transmitting.
  205. * - Programmable DMA bus priority for each DMA channel.
  206. * - Programmable DMA interrupt priority for each DMA channel.
  207. * - Programmable DMA error hook.
  208. * .
  209. * @ingroup STM32L1xx_DRIVERS
  210. */
  211. /**
  212. * @defgroup STM32L1xx_UART STM32L1xx UART Support
  213. * @details The UART driver supports the STM32L1xx USART peripherals using DMA
  214. * channels for maximum performance.
  215. *
  216. * @section stm32l1xx_uart_1 Supported HW resources
  217. * The UART driver can support any of the following hardware resources:
  218. * - USART1.
  219. * - USART2.
  220. * - USART3 (where present).
  221. * - DMA1.
  222. * .
  223. * @section stm32l1xx_uart_2 STM32L1xx UART driver implementation features
  224. * - Clock stop for reduced power usage when the driver is in stop state.
  225. * - Each UART/USART can be independently enabled and programmed. Unused
  226. * peripherals are left in low power mode.
  227. * - Programmable interrupt priority levels for each UART/USART.
  228. * - DMA is used for receiving and transmitting.
  229. * - Programmable DMA bus priority for each DMA channel.
  230. * - Programmable DMA interrupt priority for each DMA channel.
  231. * - Programmable DMA error hook.
  232. * .
  233. * @ingroup STM32L1xx_DRIVERS
  234. */
  235. /**
  236. * @defgroup STM32L1xx_USB STM32L1xx USB Support
  237. * @details The USB driver supports the STM32L1xx USB peripheral.
  238. *
  239. * @section stm32l1xx_usb_1 Supported HW resources
  240. * The USB driver can support any of the following hardware resources:
  241. * - USB.
  242. * .
  243. * @section stm32l1xx_usb_2 STM32L1xx USB driver implementation features
  244. * - Clock stop for reduced power usage when the driver is in stop state.
  245. * - Programmable interrupt priority levels.
  246. * - Each endpoint programmable in Control, Bulk and Interrupt modes.
  247. * .
  248. * @ingroup STM32L1xx_DRIVERS
  249. */
  250. /**
  251. * @defgroup STM32L1xx_PLATFORM_DRIVERS STM32L1xx Platform Drivers
  252. * @details Platform support drivers. Platform drivers do not implement HAL
  253. * standard driver templates, their role is to support platform
  254. * specific functionalities.
  255. *
  256. * @ingroup STM32L1xx_DRIVERS
  257. */
  258. /**
  259. * @defgroup STM32L1xx_DMA STM32L1xx DMA Support
  260. * @details This DMA helper driver is used by the other drivers in order to
  261. * access the shared DMA resources in a consistent way.
  262. *
  263. * @section stm32l1xx_dma_1 Supported HW resources
  264. * The DMA driver can support any of the following hardware resources:
  265. * - DMA1.
  266. * .
  267. * @section stm32l1xx_dma_2 STM32L1xx DMA driver implementation features
  268. * - Exports helper functions/macros to the other drivers that share the
  269. * DMA resource.
  270. * - Automatic DMA clock stop when not in use by any driver.
  271. * - DMA streams and interrupt vectors sharing among multiple drivers.
  272. * .
  273. * @ingroup STM32L1xx_PLATFORM_DRIVERS
  274. */
  275. /**
  276. * @defgroup STM32L1xx_ISR STM32L1xx ISR Support
  277. * @details This ISR helper driver is used by the other drivers in order to
  278. * map ISR names to physical vector names.
  279. *
  280. * @ingroup STM32L1xx_PLATFORM_DRIVERS
  281. */
  282. /**
  283. * @defgroup STM32L1xx_RCC STM32L1xx RCC Support
  284. * @details This RCC helper driver is used by the other drivers in order to
  285. * access the shared RCC resources in a consistent way.
  286. *
  287. * @section stm32f1xx_rcc_1 Supported HW resources
  288. * - RCC.
  289. * .
  290. * @section stm32l1xx_rcc_2 STM32L1xx RCC driver implementation features
  291. * - Peripherals reset.
  292. * - Peripherals clock enable.
  293. * - Peripherals clock disable.
  294. * .
  295. * @ingroup STM32L1xx_PLATFORM_DRIVERS
  296. */