mikroSDK Reference Manual
|
Macros | |
#define | __HAL_RCC_RTC_ENABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = ENABLE) |
Macros to enable or disable the RTC clock. | |
#define | __HAL_RCC_RTC_DISABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = DISABLE) |
#define | __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__) |
Macros to configure the RTC clock (RTCCLK). | |
#define | __HAL_RCC_RTC_CONFIG(__RTCCLKSource__) |
#define | __HAL_RCC_GET_RTC_SOURCE() (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
Macro to get the RTC clock source. | |
#define | __HAL_RCC_GET_RTC_HSE_PRESCALER() (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) |
Get the RTC and HSE clock divider (RTCPRE). | |
#define | __HAL_RCC_BACKUPRESET_FORCE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = ENABLE) |
Macros to force or release the Backup domain reset. | |
#define | __HAL_RCC_BACKUPRESET_RELEASE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = DISABLE) |
#define | __HAL_RCC_RTC_ENABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = ENABLE) |
Macros to enable or disable the RTC clock. | |
#define | __HAL_RCC_RTC_DISABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = DISABLE) |
#define | __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__) |
Macros to configure the RTC clock (RTCCLK). | |
#define | __HAL_RCC_RTC_CONFIG(__RTCCLKSource__) |
#define | __HAL_RCC_GET_RTC_SOURCE() (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
Macro to get the RTC clock source. | |
#define | __HAL_RCC_GET_RTC_HSE_PRESCALER() (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) |
Get the RTC and HSE clock divider (RTCPRE). | |
#define | __HAL_RCC_BACKUPRESET_FORCE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = ENABLE) |
Macros to force or release the Backup domain reset. | |
#define | __HAL_RCC_BACKUPRESET_RELEASE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = DISABLE) |
#define | __HAL_RCC_RTC_ENABLE() (RCC->BDCR |= (RCC_BDCR_RTCEN)) |
Macros to enable or disable the RTC clock. | |
#define | __HAL_RCC_RTC_DISABLE() (RCC->BDCR &= ~(RCC_BDCR_RTCEN)) |
#define | __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__) |
Macros to configure the RTC clock (RTCCLK). | |
#define | __HAL_RCC_RTC_CONFIG(__RTCCLKSource__) |
#define | __HAL_RCC_GET_RTC_SOURCE() (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
Macro to get the RTC clock source. | |
#define | __HAL_RCC_GET_RTC_HSE_PRESCALER() (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) |
Get the RTC and HSE clock divider (RTCPRE). | |
#define | __HAL_RCC_BACKUPRESET_FORCE() (RCC->BDCR |= (RCC_BDCR_BDRST)) |
Macros to force or release the Backup domain reset. | |
#define | __HAL_RCC_BACKUPRESET_RELEASE() (RCC->BDCR &= ~(RCC_BDCR_BDRST)) |
#define __HAL_RCC_BACKUPRESET_FORCE | ( | ) | (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = ENABLE) |
#define __HAL_RCC_BACKUPRESET_FORCE | ( | ) | (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = ENABLE) |
#define __HAL_RCC_BACKUPRESET_FORCE | ( | ) | (RCC->BDCR |= (RCC_BDCR_BDRST)) |
#define __HAL_RCC_GET_RTC_HSE_PRESCALER | ( | ) | (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) |
Returned | value can be one of the following values:
|
Returned | value can be one of the following values:
|
#define __HAL_RCC_GET_RTC_HSE_PRESCALER | ( | ) | (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) |
Returned | value can be one of the following values:
|
Returned | value can be one of the following values:
|
#define __HAL_RCC_GET_RTC_HSE_PRESCALER | ( | ) | (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) |
Returned | value can be one of the following values:
|
#define __HAL_RCC_GET_RTC_SOURCE | ( | ) | (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
The | clock source can be one of the following values:
|
#define __HAL_RCC_GET_RTC_SOURCE | ( | ) | (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
The | clock source can be one of the following values:
|
#define __HAL_RCC_GET_RTC_SOURCE | ( | ) | (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
The | clock source can be one of the following values:
|
#define __HAL_RCC_RTC_CLKPRESCALER | ( | __RTCCLKSource__ | ) |
__RTCCLKSource__ | specifies the RTC clock source. This parameter can be one of the following values:
|
__RTCCLKSource__ | specifies the RTC clock source. This parameter can be one of the following values:
|
__RTCCLKSource__ | specifies the RTC clock source. This parameter can be one of the following values:
|
#define __HAL_RCC_RTC_CLKPRESCALER | ( | __RTCCLKSource__ | ) |
__RTCCLKSource__ | specifies the RTC clock source. This parameter can be one of the following values:
|
__RTCCLKSource__ | specifies the RTC clock source. This parameter can be one of the following values:
|
#define __HAL_RCC_RTC_CLKPRESCALER | ( | __RTCCLKSource__ | ) |
__RTCCLKSource__ | specifies the RTC clock source. This parameter can be one of the following values:
|
#define __HAL_RCC_RTC_CONFIG | ( | __RTCCLKSource__ | ) |
#define __HAL_RCC_RTC_CONFIG | ( | __RTCCLKSource__ | ) |
#define __HAL_RCC_RTC_CONFIG | ( | __RTCCLKSource__ | ) |
#define __HAL_RCC_RTC_ENABLE | ( | ) | (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = ENABLE) |
#define __HAL_RCC_RTC_ENABLE | ( | ) | (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = ENABLE) |
#define __HAL_RCC_RTC_ENABLE | ( | ) | (RCC->BDCR |= (RCC_BDCR_RTCEN)) |