Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Clock_Configuration
[LPTIM Exported Functions]
Functions | |
| __STATIC_INLINE void | LL_LPTIM_SetClockSource (LPTIM_TypeDef *LPTIMx, uint32_t ClockSource) |
| Set the source of the clock used by the LPTIM instance. | |
| __STATIC_INLINE uint32_t | LL_LPTIM_GetClockSource (LPTIM_TypeDef *LPTIMx) |
| Get actual LPTIM instance clock source. | |
| __STATIC_INLINE void | LL_LPTIM_ConfigClock (LPTIM_TypeDef *LPTIMx, uint32_t ClockFilter, uint32_t ClockPolarity) |
| Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source. | |
| __STATIC_INLINE uint32_t | LL_LPTIM_GetClockPolarity (LPTIM_TypeDef *LPTIMx) |
| Get actual clock polarity CFGR CKPOL LL_LPTIM_GetClockPolarity. | |
| __STATIC_INLINE uint32_t | LL_LPTIM_GetClockFilter (LPTIM_TypeDef *LPTIMx) |
| Get actual clock digital filter CFGR CKFLT LL_LPTIM_GetClockFilter. | |
Function Documentation
| __STATIC_INLINE void LL_LPTIM_ConfigClock | ( | LPTIM_TypeDef * | LPTIMx, |
| uint32_t | ClockFilter, | ||
| uint32_t | ClockPolarity | ||
| ) |
Configure the active edge or edges used by the counter when the LPTIM is clocked by an external clock source.
- Note:
- This function must be called when the LPTIM instance is disabled.
- When both external clock signal edges are considered active ones, the LPTIM must also be clocked by an internal clock source with a frequency equal to at least four times the external clock frequency.
-
An internal clock source must be present when a digital filter is required for external clock. CFGR CKFLT LL_LPTIM_ConfigClock
CFGR CKPOL LL_LPTIM_ConfigClock
- Parameters:
-
LPTIMx Low-Power Timer instance ClockFilter This parameter can be one of the following values: - LL_LPTIM_CLK_FILTER_NONE
- LL_LPTIM_CLK_FILTER_2
- LL_LPTIM_CLK_FILTER_4
- LL_LPTIM_CLK_FILTER_8
ClockPolarity This parameter can be one of the following values: - LL_LPTIM_CLK_POLARITY_RISING
- LL_LPTIM_CLK_POLARITY_FALLING
- LL_LPTIM_CLK_POLARITY_RISING_FALLING
- Return values:
-
None
Definition at line 801 of file stm32l4xx_ll_lptim.h.
| __STATIC_INLINE uint32_t LL_LPTIM_GetClockFilter | ( | LPTIM_TypeDef * | LPTIMx ) |
Get actual clock digital filter CFGR CKFLT LL_LPTIM_GetClockFilter.
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
Returned value can be one of the following values: - LL_LPTIM_CLK_FILTER_NONE
- LL_LPTIM_CLK_FILTER_2
- LL_LPTIM_CLK_FILTER_4
- LL_LPTIM_CLK_FILTER_8
Definition at line 830 of file stm32l4xx_ll_lptim.h.
| __STATIC_INLINE uint32_t LL_LPTIM_GetClockPolarity | ( | LPTIM_TypeDef * | LPTIMx ) |
Get actual clock polarity CFGR CKPOL LL_LPTIM_GetClockPolarity.
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
Returned value can be one of the following values: - LL_LPTIM_CLK_POLARITY_RISING
- LL_LPTIM_CLK_POLARITY_FALLING
- LL_LPTIM_CLK_POLARITY_RISING_FALLING
Definition at line 815 of file stm32l4xx_ll_lptim.h.
| __STATIC_INLINE uint32_t LL_LPTIM_GetClockSource | ( | LPTIM_TypeDef * | LPTIMx ) |
Get actual LPTIM instance clock source.
CFGR CKSEL LL_LPTIM_GetClockSource
- Parameters:
-
LPTIMx Low-Power Timer instance
- Return values:
-
Returned value can be one of the following values: - LL_LPTIM_CLK_SOURCE_INTERNAL
- LL_LPTIM_CLK_SOURCE_EXTERNAL
Definition at line 774 of file stm32l4xx_ll_lptim.h.
| __STATIC_INLINE void LL_LPTIM_SetClockSource | ( | LPTIM_TypeDef * | LPTIMx, |
| uint32_t | ClockSource | ||
| ) |
Set the source of the clock used by the LPTIM instance.
- Note:
- This function must be called when the LPTIM instance is disabled. CFGR CKSEL LL_LPTIM_SetClockSource
- Parameters:
-
LPTIMx Low-Power Timer instance ClockSource This parameter can be one of the following values: - LL_LPTIM_CLK_SOURCE_INTERNAL
- LL_LPTIM_CLK_SOURCE_EXTERNAL
- Return values:
-
None
Definition at line 761 of file stm32l4xx_ll_lptim.h.
Generated on Tue Jul 12 2022 11:35:23 by
1.7.2
