diff options
-rw-r--r-- | os/hal/platforms/STM32F0xx/platform.dox | 296 | ||||
-rw-r--r-- | os/hal/platforms/STM32F0xx/stm32_isr.h | 2 | ||||
-rw-r--r-- | os/hal/platforms/STM32F1xx/platform.dox | 8 | ||||
-rw-r--r-- | os/hal/platforms/STM32F2xx/platform.dox | 8 | ||||
-rw-r--r-- | os/hal/platforms/STM32F2xx/stm32_isr.h | 2 | ||||
-rw-r--r-- | os/hal/platforms/STM32F4xx/platform.dox | 8 | ||||
-rw-r--r-- | os/hal/platforms/STM32F4xx/stm32_isr.h | 2 | ||||
-rw-r--r-- | os/hal/platforms/STM32L1xx/platform.dox | 8 | ||||
-rw-r--r-- | os/hal/platforms/STM32L1xx/stm32_isr.h | 2 |
9 files changed, 332 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32F0xx/platform.dox b/os/hal/platforms/STM32F0xx/platform.dox new file mode 100644 index 000000000..dcbd78040 --- /dev/null +++ b/os/hal/platforms/STM32F0xx/platform.dox @@ -0,0 +1,296 @@ +/*
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011,2012 Giovanni Di Sirio.
+
+ This file is part of ChibiOS/RT.
+
+ ChibiOS/RT is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ ChibiOS/RT is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/**
+ * @defgroup STM32F0xx_DRIVERS STM32F0xx Drivers
+ * @details This section describes all the supported drivers on the STM32F0xx
+ * platform and the implementation details of the single drivers.
+ *
+ * @ingroup platforms
+ */
+
+/**
+ * @defgroup STM32F0xx_HAL STM32F0xx Initialization Support
+ * @details The STM32F0xx HAL support is responsible for system initialization.
+ *
+ * @section stm32f0xx_hal_1 Supported HW resources
+ * - PLL1.
+ * - RCC.
+ * - Flash.
+ * .
+ * @section stm32f0xx_hal_2 STM32F0xx HAL driver implementation features
+ * - PLL startup and stabilization.
+ * - Clock tree initialization.
+ * - Clock source selection.
+ * - Flash wait states initialization based on the selected clock options.
+ * - SYSTICK initialization based on current clock and kernel required rate.
+ * - DMA support initialization.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_ADC STM32F0xx ADC Support
+ * @details The STM32F0xx ADC driver supports the ADC peripherals using DMA
+ * channels for maximum performance.
+ *
+ * @section stm32f0xx_adc_1 Supported HW resources
+ * - ADC1.
+ * - DMA1.
+ * .
+ * @section stm32f0xx_adc_2 STM32F0xx ADC driver implementation features
+ * - Clock stop for reduced power usage when the driver is in stop state.
+ * - Streaming conversion using DMA for maximum performance.
+ * - Programmable ADC interrupt priority level.
+ * - Programmable DMA bus priority for each DMA channel.
+ * - Programmable DMA interrupt priority for each DMA channel.
+ * - DMA errors detection.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_EXT STM32F0xx EXT Support
+ * @details The STM32F0xx EXT driver uses the EXTI peripheral.
+ *
+ * @section stm32f0xx_ext_1 Supported HW resources
+ * - EXTI.
+ * .
+ * @section stm32f0xx_ext_2 STM32F0xx EXT driver implementation features
+ * - Each EXTI channel can be independently enabled and programmed.
+ * - Programmable EXTI interrupts priority level.
+ * - Capability to work as event sources (WFE) rather than interrupt sources.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_GPT STM32F0xx GPT Support
+ * @details The STM32F0xx GPT driver uses the TIMx peripherals.
+ *
+ * @section stm32f0xx_gpt_1 Supported HW resources
+ * - TIM1.
+ * - TIM2.
+ * - TIM3.
+ * .
+ * @section stm32f0xx_gpt_2 STM32F0xx GPT driver implementation features
+ * - Each timer can be independently enabled and programmed. Unused
+ * peripherals are left in low power mode.
+ * - Programmable TIMx interrupts priority level.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_ICU STM32F0xx ICU Support
+ * @details The STM32F0xx ICU driver uses the TIMx peripherals.
+ *
+ * @section stm32f0xx_icu_1 Supported HW resources
+ * - TIM1.
+ * - TIM2.
+ * - TIM3.
+ * .
+ * @section stm32f0xx_icu_2 STM32F0xx ICU driver implementation features
+ * - Each timer can be independently enabled and programmed. Unused
+ * peripherals are left in low power mode.
+ * - Programmable TIMx interrupts priority level.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_PAL STM32F0xx PAL Support
+ * @details The STM32F0xx PAL driver uses the GPIO peripherals.
+ *
+ * @section stm32f0xx_pal_1 Supported HW resources
+ * - GPIOA.
+ * - GPIOB.
+ * - GPIOC.
+ * - GPIOD.
+ * - GPIOF.
+ * .
+ * @section stm32f0xx_pal_2 STM32F0xx PAL driver implementation features
+ * The PAL driver implementation fully supports the following hardware
+ * capabilities:
+ * - 16 bits wide ports.
+ * - Atomic set/reset functions.
+ * - Atomic set+reset function (atomic bus operations).
+ * - Output latched regardless of the pad setting.
+ * - Direct read of input pads regardless of the pad setting.
+ * .
+ * @section stm32f0xx_pal_3 Supported PAL setup modes
+ * The STM32F0xx PAL driver supports the following I/O modes:
+ * - @p PAL_MODE_RESET.
+ * - @p PAL_MODE_UNCONNECTED.
+ * - @p PAL_MODE_INPUT.
+ * - @p PAL_MODE_INPUT_PULLUP.
+ * - @p PAL_MODE_INPUT_PULLDOWN.
+ * - @p PAL_MODE_INPUT_ANALOG.
+ * - @p PAL_MODE_OUTPUT_PUSHPULL.
+ * - @p PAL_MODE_OUTPUT_OPENDRAIN.
+ * - @p PAL_MODE_ALTERNATE (non standard).
+ * .
+ * Any attempt to setup an invalid mode is ignored.
+ *
+ * @section stm32f0xx_pal_4 Suboptimal behavior
+ * The STM32F0xx GPIO is less than optimal in several areas, the limitations
+ * should be taken in account while using the PAL driver:
+ * - Pad/port toggling operations are not atomic.
+ * - Pad/group mode setup is not atomic.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_PWM STM32F0xx PWM Support
+ * @details The STM32F0xx PWM driver uses the TIMx peripherals.
+ *
+ * @section stm32f0xx_pwm_1 Supported HW resources
+ * - TIM1.
+ * - TIM2.
+ * - TIM3.
+ * .
+ * @section stm32f0xx_pwm_2 STM32F0xx PWM driver implementation features
+ * - Each timer can be independently enabled and programmed. Unused
+ * peripherals are left in low power mode.
+ * - Four independent PWM channels per timer.
+ * - Programmable TIMx interrupts priority level.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_SERIAL STM32F0xx Serial Support
+ * @details The STM32F0xx Serial driver uses the USART/UART peripherals in a
+ * buffered, interrupt driven, implementation.
+ *
+ * @section stm32f0xx_serial_1 Supported HW resources
+ * The serial driver can support any of the following hardware resources:
+ * - USART1.
+ * - USART2.
+ * .
+ * @section stm32f0xx_serial_2 STM32F0xx Serial driver implementation features
+ * - Clock stop for reduced power usage when the driver is in stop state.
+ * - Each UART/USART can be independently enabled and programmed. Unused
+ * peripherals are left in low power mode.
+ * - Fully interrupt driven.
+ * - Programmable priority levels for each UART/USART.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_SPI STM32F0xx SPI Support
+ * @details The SPI driver supports the STM32F0xx SPI peripherals using DMA
+ * channels for maximum performance.
+ *
+ * @section stm32f0xx_spi_1 Supported HW resources
+ * - SPI1.
+ * - SPI2.
+ * - DMA1.
+ * .
+ * @section stm32f0xx_spi_2 STM32F0xx SPI driver implementation features
+ * - Clock stop for reduced power usage when the driver is in stop state.
+ * - Each SPI can be independently enabled and programmed. Unused
+ * peripherals are left in low power mode.
+ * - Programmable interrupt priority levels for each SPI.
+ * - DMA is used for receiving and transmitting.
+ * - Programmable DMA bus priority for each DMA channel.
+ * - Programmable DMA interrupt priority for each DMA channel.
+ * - Programmable DMA error hook.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_UART STM32F0xx UART Support
+ * @details The UART driver supports the STM32F0xx USART peripherals using DMA
+ * channels for maximum performance.
+ *
+ * @section stm32f0xx_uart_1 Supported HW resources
+ * The UART driver can support any of the following hardware resources:
+ * - USART1.
+ * - USART2.
+ * - DMA1.
+ * .
+ * @section stm32f0xx_uart_2 STM32F0xx UART driver implementation features
+ * - Clock stop for reduced power usage when the driver is in stop state.
+ * - Each UART/USART can be independently enabled and programmed. Unused
+ * peripherals are left in low power mode.
+ * - Programmable interrupt priority levels for each UART/USART.
+ * - DMA is used for receiving and transmitting.
+ * - Programmable DMA bus priority for each DMA channel.
+ * - Programmable DMA interrupt priority for each DMA channel.
+ * - Programmable DMA error hook.
+ * .
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_PLATFORM_DRIVERS STM32F0xx Platform Drivers
+ * @details Platform support drivers. Platform drivers do not implement HAL
+ * standard driver templates, their role is to support platform
+ * specific functionalities.
+ *
+ * @ingroup STM32F0xx_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_DMA STM32F0xx DMA Support
+ * @details This DMA helper driver is used by the other drivers in order to
+ * access the shared DMA resources in a consistent way.
+ *
+ * @section stm32f0xx_dma_1 Supported HW resources
+ * The DMA driver can support any of the following hardware resources:
+ * - DMA1.
+ * - DMA2 (where present).
+ * .
+ * @section stm32f0xx_dma_2 STM32F0xx DMA driver implementation features
+ * - Exports helper functions/macros to the other drivers that share the
+ * DMA resource.
+ * - Automatic DMA clock stop when not in use by any driver.
+ * - DMA streams and interrupt vectors sharing among multiple drivers.
+ * .
+ * @ingroup STM32F0xx_PLATFORM_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_ISR STM32F0xx ISR Support
+ * @details This ISR helper driver is used by the other drivers in order to
+ * map ISR names to physical vector names.
+ *
+ * @ingroup STM32F0xx_PLATFORM_DRIVERS
+ */
+
+/**
+ * @defgroup STM32F0xx_RCC STM32F0xx RCC Support
+ * @details This RCC helper driver is used by the other drivers in order to
+ * access the shared RCC resources in a consistent way.
+ *
+ * @section stm32f0xx_rcc_1 Supported HW resources
+ * - RCC.
+ * .
+ * @section stm32f0xx_rcc_2 STM32F0xx RCC driver implementation features
+ * - Peripherals reset.
+ * - Peripherals clock enable.
+ * - Peripherals clock disable.
+ * .
+ * @ingroup STM32F0xx_PLATFORM_DRIVERS
+ */
diff --git a/os/hal/platforms/STM32F0xx/stm32_isr.h b/os/hal/platforms/STM32F0xx/stm32_isr.h index 643092844..8d7a2875a 100644 --- a/os/hal/platforms/STM32F0xx/stm32_isr.h +++ b/os/hal/platforms/STM32F0xx/stm32_isr.h @@ -19,7 +19,7 @@ */
/**
- * @file STM3F0xx/stm32_isr.h
+ * @file STM32F0xx/stm32_isr.h
* @brief ISR remapper driver header.
*
* @addtogroup STM32F0xx_ISR
diff --git a/os/hal/platforms/STM32F1xx/platform.dox b/os/hal/platforms/STM32F1xx/platform.dox index 0dc3a988b..0504210f6 100644 --- a/os/hal/platforms/STM32F1xx/platform.dox +++ b/os/hal/platforms/STM32F1xx/platform.dox @@ -378,6 +378,14 @@ */
/**
+ * @defgroup STM32F1xx_ISR STM32F1xx ISR Support
+ * @details This ISR helper driver is used by the other drivers in order to
+ * map ISR names to physical vector names.
+ *
+ * @ingroup STM32F1xx_PLATFORM_DRIVERS
+ */
+
+/**
* @defgroup STM32F1xx_RCC STM32F1xx RCC Support
* @details This RCC helper driver is used by the other drivers in order to
* access the shared RCC resources in a consistent way.
diff --git a/os/hal/platforms/STM32F2xx/platform.dox b/os/hal/platforms/STM32F2xx/platform.dox index 26a1b6dc4..35d865d9f 100644 --- a/os/hal/platforms/STM32F2xx/platform.dox +++ b/os/hal/platforms/STM32F2xx/platform.dox @@ -343,6 +343,14 @@ */
/**
+ * @defgroup STM32F2xx_ISR STM32F1xx ISR Support
+ * @details This ISR helper driver is used by the other drivers in order to
+ * map ISR names to physical vector names.
+ *
+ * @ingroup STM32F2xx_PLATFORM_DRIVERS
+ */
+
+/**
* @defgroup STM32F2xx_RCC STM32F2xx RCC Support
* @details This RCC helper driver is used by the other drivers in order to
* access the shared RCC resources in a consistent way.
diff --git a/os/hal/platforms/STM32F2xx/stm32_isr.h b/os/hal/platforms/STM32F2xx/stm32_isr.h index 560ac50bc..776191137 100644 --- a/os/hal/platforms/STM32F2xx/stm32_isr.h +++ b/os/hal/platforms/STM32F2xx/stm32_isr.h @@ -19,7 +19,7 @@ */
/**
- * @file STM3F2xx/stm32_isr.h
+ * @file STM32F2xx/stm32_isr.h
* @brief ISR remapper driver header.
*
* @addtogroup STM32F2xx_ISR
diff --git a/os/hal/platforms/STM32F4xx/platform.dox b/os/hal/platforms/STM32F4xx/platform.dox index 0f1478812..36711c257 100644 --- a/os/hal/platforms/STM32F4xx/platform.dox +++ b/os/hal/platforms/STM32F4xx/platform.dox @@ -343,6 +343,14 @@ */
/**
+ * @defgroup STM32F1xx_ISR STM32F4xx ISR Support
+ * @details This ISR helper driver is used by the other drivers in order to
+ * map ISR names to physical vector names.
+ *
+ * @ingroup STM32F4xx_PLATFORM_DRIVERS
+ */
+
+/**
* @defgroup STM32F4xx_RCC STM32F4xx RCC Support
* @details This RCC helper driver is used by the other drivers in order to
* access the shared RCC resources in a consistent way.
diff --git a/os/hal/platforms/STM32F4xx/stm32_isr.h b/os/hal/platforms/STM32F4xx/stm32_isr.h index 2128cf668..9a8fa4b25 100644 --- a/os/hal/platforms/STM32F4xx/stm32_isr.h +++ b/os/hal/platforms/STM32F4xx/stm32_isr.h @@ -19,7 +19,7 @@ */
/**
- * @file STM3F4xx/stm32_isr.h
+ * @file STM32F4xx/stm32_isr.h
* @brief ISR remapper driver header.
*
* @addtogroup STM32F4xx_ISR
diff --git a/os/hal/platforms/STM32L1xx/platform.dox b/os/hal/platforms/STM32L1xx/platform.dox index fe845811e..16228f777 100644 --- a/os/hal/platforms/STM32L1xx/platform.dox +++ b/os/hal/platforms/STM32L1xx/platform.dox @@ -295,6 +295,14 @@ */
/**
+ * @defgroup STM32L1xx_ISR STM32F1xx ISR Support
+ * @details This ISR helper driver is used by the other drivers in order to
+ * map ISR names to physical vector names.
+ *
+ * @ingroup STM32L1xx_PLATFORM_DRIVERS
+ */
+
+/**
* @defgroup STM32L1xx_RCC STM32L1xx RCC Support
* @details This RCC helper driver is used by the other drivers in order to
* access the shared RCC resources in a consistent way.
diff --git a/os/hal/platforms/STM32L1xx/stm32_isr.h b/os/hal/platforms/STM32L1xx/stm32_isr.h index 84405e367..bbb45141f 100644 --- a/os/hal/platforms/STM32L1xx/stm32_isr.h +++ b/os/hal/platforms/STM32L1xx/stm32_isr.h @@ -19,7 +19,7 @@ */
/**
- * @file STM3L1xx/stm32_isr.h
+ * @file STM32L1xx/stm32_isr.h
* @brief ISR remapper driver header.
*
* @addtogroup STM32L1xx_ISR
|