|
|
@ -19,7 +19,7 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_DRIVERS STM32F1xx Drivers
|
|
|
|
* @defgroup STM32_DRIVERS STM32F1xx Drivers
|
|
|
|
* @details This section describes all the supported drivers on the STM32F1xx
|
|
|
|
* @details This section describes all the supported drivers on the STM32F1xx
|
|
|
|
* platform and the implementation details of the single drivers.
|
|
|
|
* platform and the implementation details of the single drivers.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_HAL STM32F1xx Initialization Support
|
|
|
|
* @defgroup STM32_HAL STM32F1xx Initialization Support
|
|
|
|
* @details The STM32F1xx HAL support is responsible for system initialization.
|
|
|
|
* @details The STM32F1xx HAL support is responsible for system initialization.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_hal_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_hal_1 Supported HW resources
|
|
|
@ -44,11 +44,11 @@
|
|
|
|
* - SYSTICK initialization based on current clock and kernel required rate.
|
|
|
|
* - SYSTICK initialization based on current clock and kernel required rate.
|
|
|
|
* - DMA support initialization.
|
|
|
|
* - DMA support initialization.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_ADC STM32F1xx ADC Support
|
|
|
|
* @defgroup STM32_ADC STM32F1xx ADC Support
|
|
|
|
* @details The STM32F1xx ADC driver supports the ADC peripherals using DMA
|
|
|
|
* @details The STM32F1xx ADC driver supports the ADC peripherals using DMA
|
|
|
|
* channels for maximum performance.
|
|
|
|
* channels for maximum performance.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -64,11 +64,11 @@
|
|
|
|
* - Programmable DMA interrupt priority for each DMA channel.
|
|
|
|
* - Programmable DMA interrupt priority for each DMA channel.
|
|
|
|
* - DMA errors detection.
|
|
|
|
* - DMA errors detection.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_CAN STM32F1xx CAN Support
|
|
|
|
* @defgroup STM32_CAN STM32F1xx CAN Support
|
|
|
|
* @details The STM32F1xx CAN driver uses the CAN peripherals.
|
|
|
|
* @details The STM32F1xx CAN driver uses the CAN peripherals.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_can_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_can_1 Supported HW resources
|
|
|
@ -79,11 +79,11 @@
|
|
|
|
* - Support for bxCAN sleep mode.
|
|
|
|
* - Support for bxCAN sleep mode.
|
|
|
|
* - Programmable bxCAN interrupts priority level.
|
|
|
|
* - Programmable bxCAN interrupts priority level.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_DMA STM32F1xx DMA Support
|
|
|
|
* @defgroup STM32_DMA STM32F1xx DMA Support
|
|
|
|
* @details This DMA helper driver is used by the other drivers in order to
|
|
|
|
* @details This DMA helper driver is used by the other drivers in order to
|
|
|
|
* access the shared DMA resources in a consistent way.
|
|
|
|
* access the shared DMA resources in a consistent way.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -98,11 +98,11 @@
|
|
|
|
* - Automatic DMA clock stop when not in use by any driver.
|
|
|
|
* - Automatic DMA clock stop when not in use by any driver.
|
|
|
|
* - DMA streams and interrupt vectors sharing among multiple drivers.
|
|
|
|
* - DMA streams and interrupt vectors sharing among multiple drivers.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_EXT STM32F1xx EXT Support
|
|
|
|
* @defgroup STM32_EXT STM32F1xx EXT Support
|
|
|
|
* @details The STM32F1xx EXT driver uses the EXTI peripheral.
|
|
|
|
* @details The STM32F1xx EXT driver uses the EXTI peripheral.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_ext_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_ext_1 Supported HW resources
|
|
|
@ -113,11 +113,11 @@
|
|
|
|
* - Programmable EXTI interrupts priority level.
|
|
|
|
* - Programmable EXTI interrupts priority level.
|
|
|
|
* - Capability to work as event sources (WFE) rather than interrupt sources.
|
|
|
|
* - Capability to work as event sources (WFE) rather than interrupt sources.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_GPT STM32F1xx GPT Support
|
|
|
|
* @defgroup STM32_GPT STM32F1xx GPT Support
|
|
|
|
* @details The STM32F1xx GPT driver uses the TIMx peripherals.
|
|
|
|
* @details The STM32F1xx GPT driver uses the TIMx peripherals.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_gpt_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_gpt_1 Supported HW resources
|
|
|
@ -132,11 +132,27 @@
|
|
|
|
* peripherals are left in low power mode.
|
|
|
|
* peripherals are left in low power mode.
|
|
|
|
* - Programmable TIMx interrupts priority level.
|
|
|
|
* - Programmable TIMx interrupts priority level.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_ICU STM32F1xx ICU Support
|
|
|
|
* @defgroup STM32_I2C STM32F1xx I2C Support
|
|
|
|
|
|
|
|
* @details The STM32F1xx I2C driver uses the I2Cx peripherals.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @section stm32f1xx_i2c_1 Supported HW resources
|
|
|
|
|
|
|
|
* - I2C1.
|
|
|
|
|
|
|
|
* - I2C2.
|
|
|
|
|
|
|
|
* .
|
|
|
|
|
|
|
|
* @section stm32f1xx_i2c_2 STM32F1xx I2C driver implementation features
|
|
|
|
|
|
|
|
* - Each I2C port can be independently enabled and programmed. Unused
|
|
|
|
|
|
|
|
* peripherals are left in low power mode.
|
|
|
|
|
|
|
|
* - Programmable I2Cx interrupts priority level.
|
|
|
|
|
|
|
|
* .
|
|
|
|
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @defgroup STM32_ICU STM32F1xx ICU Support
|
|
|
|
* @details The STM32F1xx ICU driver uses the TIMx peripherals.
|
|
|
|
* @details The STM32F1xx ICU driver uses the TIMx peripherals.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_icu_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_icu_1 Supported HW resources
|
|
|
@ -151,11 +167,21 @@
|
|
|
|
* peripherals are left in low power mode.
|
|
|
|
* peripherals are left in low power mode.
|
|
|
|
* - Programmable TIMx interrupts priority level.
|
|
|
|
* - Programmable TIMx interrupts priority level.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_PAL STM32F1xx PAL Support
|
|
|
|
* @defgroup STM32_MAC STM32 MAC Support
|
|
|
|
|
|
|
|
* @details The STM32 MAC driver supports the ETH peripheral.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @section at91sam7_mac_1 Supported HW resources
|
|
|
|
|
|
|
|
* - ETH.
|
|
|
|
|
|
|
|
* .
|
|
|
|
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @defgroup STM32_PAL STM32F1xx PAL Support
|
|
|
|
* @details The STM32F1xx PAL driver uses the GPIO peripherals.
|
|
|
|
* @details The STM32F1xx PAL driver uses the GPIO peripherals.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_pal_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_pal_1 Supported HW resources
|
|
|
@ -187,8 +213,8 @@
|
|
|
|
* - @p PAL_MODE_INPUT_ANALOG.
|
|
|
|
* - @p PAL_MODE_INPUT_ANALOG.
|
|
|
|
* - @p PAL_MODE_OUTPUT_PUSHPULL.
|
|
|
|
* - @p PAL_MODE_OUTPUT_PUSHPULL.
|
|
|
|
* - @p PAL_MODE_OUTPUT_OPENDRAIN.
|
|
|
|
* - @p PAL_MODE_OUTPUT_OPENDRAIN.
|
|
|
|
* - @p PAL_MODE_STM32F1xx_ALTERNATE_PUSHPULL (non standard).
|
|
|
|
* - @p PAL_MODE_STM32_ALTERNATE_PUSHPULL (non standard).
|
|
|
|
* - @p PAL_MODE_STM32F1xx_ALTERNATE_OPENDRAIN (non standard).
|
|
|
|
* - @p PAL_MODE_STM32_ALTERNATE_OPENDRAIN (non standard).
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* Any attempt to setup an invalid mode is ignored.
|
|
|
|
* Any attempt to setup an invalid mode is ignored.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -201,11 +227,11 @@
|
|
|
|
* resistor can change the resistor setting because the output latch is
|
|
|
|
* resistor can change the resistor setting because the output latch is
|
|
|
|
* used for resistor selection.
|
|
|
|
* used for resistor selection.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_PWM STM32F1xx PWM Support
|
|
|
|
* @defgroup STM32_PWM STM32F1xx PWM Support
|
|
|
|
* @details The STM32F1xx PWM driver uses the TIMx peripherals.
|
|
|
|
* @details The STM32F1xx PWM driver uses the TIMx peripherals.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_pwm_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_pwm_1 Supported HW resources
|
|
|
@ -221,11 +247,37 @@
|
|
|
|
* - Four independent PWM channels per timer.
|
|
|
|
* - Four independent PWM channels per timer.
|
|
|
|
* - Programmable TIMx interrupts priority level.
|
|
|
|
* - Programmable TIMx interrupts priority level.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_SDC STM32F1xx SDC Support
|
|
|
|
* @defgroup STM32_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.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @section stm32f1xx_rcc_1 Supported HW resources
|
|
|
|
|
|
|
|
* - RCC.
|
|
|
|
|
|
|
|
* .
|
|
|
|
|
|
|
|
* @section stm32f1xx_rcc_2 STM32F1xx RCC driver implementation features
|
|
|
|
|
|
|
|
* - Peripherals reset.
|
|
|
|
|
|
|
|
* - Peripherals clock enable.
|
|
|
|
|
|
|
|
* - Periplerals clock disable.
|
|
|
|
|
|
|
|
* .
|
|
|
|
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @defgroup STM32_RTC STM32F1xx RTC Support
|
|
|
|
|
|
|
|
* @details The STM32F1xx RTC driver uses the RTC peripheral.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @section stm32f1xx_rtc_1 Supported HW resources
|
|
|
|
|
|
|
|
* - RTC.
|
|
|
|
|
|
|
|
* .
|
|
|
|
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @defgroup STM32_SDC STM32F1xx SDC Support
|
|
|
|
* @details The STM32F1xx SDC driver uses the SDIO peripheral.
|
|
|
|
* @details The STM32F1xx SDC driver uses the SDIO peripheral.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_sdc_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_sdc_1 Supported HW resources
|
|
|
@ -238,11 +290,11 @@
|
|
|
|
* - DMA is used for receiving and transmitting.
|
|
|
|
* - DMA is used for receiving and transmitting.
|
|
|
|
* - Programmable DMA bus priority for each DMA channel.
|
|
|
|
* - Programmable DMA bus priority for each DMA channel.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_SERIAL STM32F1xx Serial Support
|
|
|
|
* @defgroup STM32_SERIAL STM32F1xx Serial Support
|
|
|
|
* @details The STM32F1xx Serial driver uses the USART/UART peripherals in a
|
|
|
|
* @details The STM32F1xx Serial driver uses the USART/UART peripherals in a
|
|
|
|
* buffered, interrupt driven, implementation.
|
|
|
|
* buffered, interrupt driven, implementation.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -261,11 +313,11 @@
|
|
|
|
* - Fully interrupt driven.
|
|
|
|
* - Fully interrupt driven.
|
|
|
|
* - Programmable priority levels for each UART/USART.
|
|
|
|
* - Programmable priority levels for each UART/USART.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_SPI STM32F1xx SPI Support
|
|
|
|
* @defgroup STM32_SPI STM32F1xx SPI Support
|
|
|
|
* @details The SPI driver supports the STM32F1xx SPI peripherals using DMA
|
|
|
|
* @details The SPI driver supports the STM32F1xx SPI peripherals using DMA
|
|
|
|
* channels for maximum performance.
|
|
|
|
* channels for maximum performance.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -286,11 +338,11 @@
|
|
|
|
* - Programmable DMA interrupt priority for each DMA channel.
|
|
|
|
* - Programmable DMA interrupt priority for each DMA channel.
|
|
|
|
* - Programmable DMA error hook.
|
|
|
|
* - Programmable DMA error hook.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_UART STM32F1xx UART Support
|
|
|
|
* @defgroup STM32_UART STM32F1xx UART Support
|
|
|
|
* @details The UART driver supports the STM32F1xx USART peripherals using DMA
|
|
|
|
* @details The UART driver supports the STM32F1xx USART peripherals using DMA
|
|
|
|
* channels for maximum performance.
|
|
|
|
* channels for maximum performance.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -313,11 +365,11 @@
|
|
|
|
* - Programmable DMA interrupt priority for each DMA channel.
|
|
|
|
* - Programmable DMA interrupt priority for each DMA channel.
|
|
|
|
* - Programmable DMA error hook.
|
|
|
|
* - Programmable DMA error hook.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @defgroup STM32F1xx_USB STM32F1xx USB Support
|
|
|
|
* @defgroup STM32_USB STM32F1xx USB Support
|
|
|
|
* @details The USB driver supports the STM32F1xx USB peripheral.
|
|
|
|
* @details The USB driver supports the STM32F1xx USB peripheral.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @section stm32f1xx_usb_1 Supported HW resources
|
|
|
|
* @section stm32f1xx_usb_1 Supported HW resources
|
|
|
@ -329,5 +381,5 @@
|
|
|
|
* - Programmable interrupt priority levels.
|
|
|
|
* - Programmable interrupt priority levels.
|
|
|
|
* - Each endpoint programmable in Control, Bulk and Interrupt modes.
|
|
|
|
* - Each endpoint programmable in Control, Bulk and Interrupt modes.
|
|
|
|
* .
|
|
|
|
* .
|
|
|
|
* @ingroup STM32F1xx_DRIVERS
|
|
|
|
* @ingroup STM32_DRIVERS
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|