aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-25 18:48:13 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-25 18:48:13 +0000
commit61922d458b3032cca129b795c430eee089864a43 (patch)
treea90de6bab2995213bfcbef1e3daec181fa2ddcb2 /os/hal/platforms/STM32
parent63b9ef1051977ed1272df94915a2fd3fa4318aa0 (diff)
downloadChibiOS-61922d458b3032cca129b795c430eee089864a43.tar.gz
ChibiOS-61922d458b3032cca129b795c430eee089864a43.tar.bz2
ChibiOS-61922d458b3032cca129b795c430eee089864a43.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2291 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32')
-rw-r--r--os/hal/platforms/STM32/adc_lld.c2
-rw-r--r--os/hal/platforms/STM32/adc_lld.h2
-rw-r--r--os/hal/platforms/STM32/can_lld.c2
-rw-r--r--os/hal/platforms/STM32/can_lld.h2
-rw-r--r--os/hal/platforms/STM32/hal_lld.c2
-rw-r--r--os/hal/platforms/STM32/hal_lld.h2
-rw-r--r--os/hal/platforms/STM32/hal_lld_f103.h7
-rw-r--r--os/hal/platforms/STM32/hal_lld_f105_f107.h7
-rw-r--r--os/hal/platforms/STM32/pal_lld.c2
-rw-r--r--os/hal/platforms/STM32/pal_lld.h2
-rw-r--r--os/hal/platforms/STM32/platform.dox202
-rw-r--r--os/hal/platforms/STM32/pwm_lld.c2
-rw-r--r--os/hal/platforms/STM32/pwm_lld.h10
-rw-r--r--os/hal/platforms/STM32/serial_lld.c2
-rw-r--r--os/hal/platforms/STM32/serial_lld.h2
-rw-r--r--os/hal/platforms/STM32/spi_lld.c2
-rw-r--r--os/hal/platforms/STM32/spi_lld.h2
-rw-r--r--os/hal/platforms/STM32/uart_lld.c2
-rw-r--r--os/hal/platforms/STM32/uart_lld.h2
19 files changed, 128 insertions, 128 deletions
diff --git a/os/hal/platforms/STM32/adc_lld.c b/os/hal/platforms/STM32/adc_lld.c
index 9df5bb5e1..b1257c194 100644
--- a/os/hal/platforms/STM32/adc_lld.c
+++ b/os/hal/platforms/STM32/adc_lld.c
@@ -21,7 +21,7 @@
* @file STM32/adc_lld.c
* @brief STM32 ADC subsystem low level driver source.
*
- * @addtogroup STM32_ADC
+ * @addtogroup ADC
* @{
*/
diff --git a/os/hal/platforms/STM32/adc_lld.h b/os/hal/platforms/STM32/adc_lld.h
index b1b1a7840..cb425f326 100644
--- a/os/hal/platforms/STM32/adc_lld.h
+++ b/os/hal/platforms/STM32/adc_lld.h
@@ -21,7 +21,7 @@
* @file STM32/adc_lld.h
* @brief STM32 ADC subsystem low level driver header.
*
- * @addtogroup STM32_ADC
+ * @addtogroup ADC
* @{
*/
diff --git a/os/hal/platforms/STM32/can_lld.c b/os/hal/platforms/STM32/can_lld.c
index d8e12af9e..4a00aa9e7 100644
--- a/os/hal/platforms/STM32/can_lld.c
+++ b/os/hal/platforms/STM32/can_lld.c
@@ -21,7 +21,7 @@
* @file STM32/can_lld.c
* @brief STM32 CAN subsystem low level driver source.
*
- * @addtogroup STM32_CAN
+ * @addtogroup CAN
* @{
*/
diff --git a/os/hal/platforms/STM32/can_lld.h b/os/hal/platforms/STM32/can_lld.h
index 3a314e424..6d4067d9a 100644
--- a/os/hal/platforms/STM32/can_lld.h
+++ b/os/hal/platforms/STM32/can_lld.h
@@ -21,7 +21,7 @@
* @file STM32/can_lld.h
* @brief STM32 CAN subsystem low level driver header.
*
- * @addtogroup STM32_CAN
+ * @addtogroup CAN
* @{
*/
diff --git a/os/hal/platforms/STM32/hal_lld.c b/os/hal/platforms/STM32/hal_lld.c
index 1b8fc8009..58efada69 100644
--- a/os/hal/platforms/STM32/hal_lld.c
+++ b/os/hal/platforms/STM32/hal_lld.c
@@ -21,7 +21,7 @@
* @file STM32/hal_lld.c
* @brief STM32 HAL subsystem low level driver source.
*
- * @addtogroup STM32_HAL
+ * @addtogroup HAL
* @{
*/
diff --git a/os/hal/platforms/STM32/hal_lld.h b/os/hal/platforms/STM32/hal_lld.h
index 2ee5b53db..678af363b 100644
--- a/os/hal/platforms/STM32/hal_lld.h
+++ b/os/hal/platforms/STM32/hal_lld.h
@@ -21,7 +21,7 @@
* @file STM32/hal_lld.h
* @brief STM32 HAL subsystem low level driver header.
*
- * @addtogroup STM32_HAL
+ * @addtogroup HAL
* @{
*/
diff --git a/os/hal/platforms/STM32/hal_lld_f103.h b/os/hal/platforms/STM32/hal_lld_f103.h
index f1d0a0eb7..a459badf0 100644
--- a/os/hal/platforms/STM32/hal_lld_f103.h
+++ b/os/hal/platforms/STM32/hal_lld_f103.h
@@ -18,6 +18,13 @@
*/
/**
+ * @defgroup STM32F103_HAL STM32F103 HAL Support
+ * @brief HAL support for STM32 LD, MD and HD families.
+ *
+ * @ingroup HAL
+ */
+
+/**
* @file STM32/hal_lld_f103.h
* @brief STM32F103 HAL subsystem low level driver header.
*
diff --git a/os/hal/platforms/STM32/hal_lld_f105_f107.h b/os/hal/platforms/STM32/hal_lld_f105_f107.h
index 6e3505d21..7ffe895b3 100644
--- a/os/hal/platforms/STM32/hal_lld_f105_f107.h
+++ b/os/hal/platforms/STM32/hal_lld_f105_f107.h
@@ -18,6 +18,13 @@
*/
/**
+ * @defgroup STM32F10X_CL_HAL STM32F105/F107 HAL Support
+ * @brief HAL support for STM32 CL (Connectivity Line) family.
+ *
+ * @ingroup HAL
+ */
+
+/**
* @file STM32/hal_lld_f105_f107.h
* @brief STM32F10x Connectivity Line HAL subsystem low level driver header.
*
diff --git a/os/hal/platforms/STM32/pal_lld.c b/os/hal/platforms/STM32/pal_lld.c
index f16b3abd0..49bfadf14 100644
--- a/os/hal/platforms/STM32/pal_lld.c
+++ b/os/hal/platforms/STM32/pal_lld.c
@@ -21,7 +21,7 @@
* @file STM32/pal_lld.c
* @brief STM32 GPIO low level driver code.
*
- * @addtogroup STM32_PAL
+ * @addtogroup PAL
* @{
*/
diff --git a/os/hal/platforms/STM32/pal_lld.h b/os/hal/platforms/STM32/pal_lld.h
index 82afc2b2f..31364cae8 100644
--- a/os/hal/platforms/STM32/pal_lld.h
+++ b/os/hal/platforms/STM32/pal_lld.h
@@ -21,7 +21,7 @@
* @file STM32/pal_lld.h
* @brief STM32 GPIO low level driver header.
*
- * @addtogroup STM32_PAL
+ * @addtogroup PAL
* @{
*/
diff --git a/os/hal/platforms/STM32/platform.dox b/os/hal/platforms/STM32/platform.dox
index f22535ab0..fa4c700c1 100644
--- a/os/hal/platforms/STM32/platform.dox
+++ b/os/hal/platforms/STM32/platform.dox
@@ -25,9 +25,44 @@
*/
/**
- * @defgroup STM32_HAL STM32 HAL Support
- * @brief HAL support.
- * @details The STM32 HAL support is responsible for system initialization.
+ * @defgroup STM32_ADC STM32 ADC Support
+ * @brief ADC peripheral support.
+ * @details The ADC driver supports the STM32 ADCs using DMA channels for
+ * improved performance.
+ *
+ * @section stm32_adc_1 Supported HW resources
+ * - ADC1.
+ * .
+ * @section stm32_adc_2 STM32 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.
+ * - Programmable DMA error hook for each DMA channel.
+ * .
+ * @ingroup STM32
+ */
+
+/**
+ * @defgroup STM32_CAN STM32 CAN Support
+ * @brief CAN peripheral support.
+ *
+ * @section stm32_can_1 Supported HW resources
+ * - bxCAN1.
+ * .
+ * @section stm32_can_2 STM32 CAN driver implementation features
+ * - Clock stop for reduced power usage when the driver is in stop state.
+ * - Support for bxCAN sleep mode.
+ * - Programmable bxCAN interrupts priority level.
+ * .
+ * @ingroup STM32
+ */
+
+/**
+ * @defgroup STM32_HAL STM32 Clock Support
+ * @brief Clock support.
+ * @details The STM32 Clock support is responsible for system initialization.
*
* @section stm32_hal_1 Supported HW resources
* - PLL1.
@@ -49,17 +84,20 @@
*/
/**
- * @defgroup STM32F103_HAL STM32F103 HAL Support
- * @brief HAL support for STM32 LD, MD and HD families.
- *
- * @ingroup STM32_HAL
- */
-
-/**
- * @defgroup STM32F10X_CL_HAL STM32F105/F107 HAL Support
- * @brief HAL support for STM32 CL (Connectivity Line) family.
+ * @defgroup STM32_DMA STM32 DMA Support
+ * @brief DMA helper driver.
*
- * @ingroup STM32_HAL
+ * @section stm32_dma_1 Supported HW resources
+ * The DMA driver can support any of the following hardware resources:
+ * - DMA1.
+ * - DMA2.
+ * .
+ * @section stm32_dma_2 STM32 DMA driver implementation features
+ * - Automatic DMA clock stop when not in use by other drivers.
+ * - Exports helper functions/macros to the other drivers that share the
+ * DMA resource.
+ * .
+ * @ingroup STM32
*/
/**
@@ -113,6 +151,49 @@
*/
/**
+ * @defgroup STM32_PWM STM32 PWM Support
+ * @brief TIMx peripherals as PWM generators support.
+ *
+ * @section stm32_pwm_1 Supported HW resources
+ * - TIM1.
+ * - TIM2.
+ * - TIM3.
+ * - TIM4.
+ * .
+ * @section stm32_pwm_2 STM32 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 STM32
+ */
+
+/**
+ * @defgroup STM32_SPI STM32 SPI Support
+ * @brief SPI peripherals support.
+ * @details The SPI driver supports the STM32 SPIs using DMA channels for
+ * improved performance.
+ *
+ * @section stm32_spi_1 Supported HW resources
+ * - SPI1.
+ * - SPI2.
+ * - SPI3.
+ * .
+ * @section stm32_spi_2 STM32 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 for each DMA channel.
+ * .
+ * @ingroup STM32
+ */
+
+/**
* @defgroup STM32_SERIAL STM32 USART Support (buffered)
* @brief UART/USART peripherals support.
*
@@ -156,98 +237,3 @@
* .
* @ingroup STM32
*/
-
-/**
- * @defgroup STM32_DMA STM32 DMA Support
- * @brief DMA helper driver.
- *
- * @section stm32_dma_1 Supported HW resources
- * The DMA driver can support any of the following hardware resources:
- * - DMA1.
- * - DMA2.
- * .
- * @section stm32_dma_2 STM32 DMA driver implementation features
- * - Automatic DMA clock stop when not in use by other drivers.
- * - Exports helper functions/macros to the other drivers that share the
- * DMA resource.
- * .
- * @ingroup STM32
- */
-
-/**
- * @defgroup STM32_ADC STM32 ADC Support
- * @brief ADC peripherals support.
- * @details The ADC driver supports the STM32 ADCs using DMA channels for
- * improved performance.
- *
- * @section stm32_adc_1 Supported HW resources
- * - ADC1.
- * .
- * @section stm32_adc_2 STM32 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.
- * - Programmable DMA error hook for each DMA channel.
- * .
- * @ingroup STM32
- */
-
-/**
- * @defgroup STM32_CAN STM32 CAN Support
- * @brief CAN peripheral support.
- *
- * @section stm32_can_1 Supported HW resources
- * - bxCAN1.
- * .
- * @section stm32_can_2 STM32 CAN driver implementation features
- * - Clock stop for reduced power usage when the driver is in stop state.
- * - Support for bxCAN sleep mode.
- * - Programmable bxCAN interrupts priority level.
- * .
- * @ingroup STM32
- */
-
-/**
- * @defgroup STM32_PWM STM32 PWM Support
- * @brief TIMx peripherals as PWM generators support.
- *
- * @section stm32_pwm_1 Supported HW resources
- * - TIM1.
- * - TIM2.
- * - TIM3.
- * - TIM4.
- * .
- * @section stm32_pwm_2 STM32 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 STM32
- */
-
-/**
- * @defgroup STM32_SPI STM32 SPI Support
- * @brief SPI peripherals support.
- * @details The SPI driver supports the STM32 SPIs using DMA channels for
- * improved performance.
- *
- * @section stm32_spi_1 Supported HW resources
- * - SPI1.
- * - SPI2.
- * - SPI3.
- * .
- * @section stm32_spi_2 STM32 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 for each DMA channel.
- * .
- * @ingroup STM32
- */
diff --git a/os/hal/platforms/STM32/pwm_lld.c b/os/hal/platforms/STM32/pwm_lld.c
index 6355c0d34..20ab05211 100644
--- a/os/hal/platforms/STM32/pwm_lld.c
+++ b/os/hal/platforms/STM32/pwm_lld.c
@@ -21,7 +21,7 @@
* @file STM32/pwm_lld.c
* @brief STM32 PWM subsystem low level driver header.
*
- * @addtogroup STM32_PWM
+ * @addtogroup PWM
* @{
*/
diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h
index 761c3af39..f512f08d6 100644
--- a/os/hal/platforms/STM32/pwm_lld.h
+++ b/os/hal/platforms/STM32/pwm_lld.h
@@ -21,7 +21,7 @@
* @file STM32/pwm_lld.h
* @brief STM32 PWM subsystem low level driver header.
*
- * @addtogroup STM32_PWM
+ * @addtogroup PWM
* @{
*/
@@ -269,8 +269,8 @@ struct PWMDriver {
*
* @api
*/
-#define PWM_DEGREES_TO_WIDTH(pwpm, degrees) \
- ((uint16_t)(((((uint32_t)(pwpm)->pd_config->pc_arr + 1UL) * \
+#define PWM_DEGREES_TO_WIDTH(pwmp, degrees) \
+ ((uint16_t)(((((uint32_t)(pwmp)->pd_config->pc_arr + 1UL) * \
(uint32_t)(degrees)) / 36000UL) - 1UL))
/**
@@ -286,8 +286,8 @@ struct PWMDriver {
*
* @api
*/
-#define PWM_PERCENTAGE_TO_WIDTH(pwpm, percentage) \
- ((uint16_t)(((((uint32_t)(pwpm)->pd_config->pc_arr + 1UL) * \
+#define PWM_PERCENTAGE_TO_WIDTH(pwmp, percentage) \
+ ((uint16_t)(((((uint32_t)(pwmp)->pd_config->pc_arr + 1UL) * \
(uint32_t)(percentage)) / 10000UL) - 1UL))
/*===========================================================================*/
diff --git a/os/hal/platforms/STM32/serial_lld.c b/os/hal/platforms/STM32/serial_lld.c
index ebae98f97..71fd20372 100644
--- a/os/hal/platforms/STM32/serial_lld.c
+++ b/os/hal/platforms/STM32/serial_lld.c
@@ -21,7 +21,7 @@
* @file STM32/serial_lld.c
* @brief STM32 low level serial driver code.
*
- * @addtogroup STM32_SERIAL
+ * @addtogroup SERIAL
* @{
*/
diff --git a/os/hal/platforms/STM32/serial_lld.h b/os/hal/platforms/STM32/serial_lld.h
index 128920860..ef9e4598a 100644
--- a/os/hal/platforms/STM32/serial_lld.h
+++ b/os/hal/platforms/STM32/serial_lld.h
@@ -21,7 +21,7 @@
* @file STM32/serial_lld.h
* @brief STM32 low level serial driver header.
*
- * @addtogroup STM32_SERIAL
+ * @addtogroup SERIAL
* @{
*/
diff --git a/os/hal/platforms/STM32/spi_lld.c b/os/hal/platforms/STM32/spi_lld.c
index 87dff24d9..be0a117e3 100644
--- a/os/hal/platforms/STM32/spi_lld.c
+++ b/os/hal/platforms/STM32/spi_lld.c
@@ -21,7 +21,7 @@
* @file STM32/spi_lld.c
* @brief STM32 SPI subsystem low level driver source.
*
- * @addtogroup STM32_SPI
+ * @addtogroup SPI
* @{
*/
diff --git a/os/hal/platforms/STM32/spi_lld.h b/os/hal/platforms/STM32/spi_lld.h
index e08a1bb64..effe0337c 100644
--- a/os/hal/platforms/STM32/spi_lld.h
+++ b/os/hal/platforms/STM32/spi_lld.h
@@ -21,7 +21,7 @@
* @file STM32/spi_lld.h
* @brief STM32 SPI subsystem low level driver header.
*
- * @addtogroup STM32_SPI
+ * @addtogroup SPI
* @{
*/
diff --git a/os/hal/platforms/STM32/uart_lld.c b/os/hal/platforms/STM32/uart_lld.c
index 0d9c533f1..b08c0015d 100644
--- a/os/hal/platforms/STM32/uart_lld.c
+++ b/os/hal/platforms/STM32/uart_lld.c
@@ -21,7 +21,7 @@
* @file STM32/uart_lld.c
* @brief STM32 low level UART driver code.
*
- * @addtogroup STM32_UART
+ * @addtogroup UART
* @{
*/
diff --git a/os/hal/platforms/STM32/uart_lld.h b/os/hal/platforms/STM32/uart_lld.h
index 7af1cc32c..e18a21b97 100644
--- a/os/hal/platforms/STM32/uart_lld.h
+++ b/os/hal/platforms/STM32/uart_lld.h
@@ -21,7 +21,7 @@
* @file STM32/uart_lld.h
* @brief STM32 low level UART driver header.
*
- * @addtogroup STM32_UART
+ * @addtogroup UART
* @{
*/