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: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Digital Calibration configuration functions
[RTC_Private_Functions]
Digital Calibration configuration functions. More...
Functions | |
void | RTC_CalibOutputCmd (FunctionalState NewState) |
Enables or disables the RTC clock to be output through the relative pin. | |
void | RTC_CalibOutputConfig (uint32_t RTC_CalibOutput) |
Configures the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz). | |
ErrorStatus | RTC_SmoothCalibConfig (uint32_t RTC_SmoothCalibPeriod, uint32_t RTC_SmoothCalibPlusPulses, uint32_t RTC_SmouthCalibMinusPulsesValue) |
Configures the Smooth Calibration Settings. |
Detailed Description
Digital Calibration configuration functions.
=============================================================================== ##### Digital Calibration configuration functions ##### ===============================================================================
Function Documentation
void RTC_CalibOutputCmd | ( | FunctionalState | NewState ) |
Enables or disables the RTC clock to be output through the relative pin.
- Parameters:
-
NewState,: new state of the digital calibration Output. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 1699 of file stm32f30x_rtc.c.
void RTC_CalibOutputConfig | ( | uint32_t | RTC_CalibOutput ) |
Configures the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz).
- Parameters:
-
RTC_CalibOutput : Select the Calibration output Selection . This parameter can be one of the following values: - RTC_CalibOutput_512Hz: A signal has a regular waveform at 512Hz.
- RTC_CalibOutput_1Hz : A signal has a regular waveform at 1Hz.
- Return values:
-
None
Definition at line 1731 of file stm32f30x_rtc.c.
ErrorStatus RTC_SmoothCalibConfig | ( | uint32_t | RTC_SmoothCalibPeriod, |
uint32_t | RTC_SmoothCalibPlusPulses, | ||
uint32_t | RTC_SmouthCalibMinusPulsesValue | ||
) |
Configures the Smooth Calibration Settings.
- Parameters:
-
RTC_SmoothCalibPeriod : Select the Smooth Calibration Period. This parameter can be can be one of the following values: - RTC_SmoothCalibPeriod_32sec : The smooth calibration periode is 32s.
- RTC_SmoothCalibPeriod_16sec : The smooth calibration periode is 16s.
- RTC_SmoothCalibPeriod_8sec : The smooth calibration periode is 8s.
RTC_SmoothCalibPlusPulses : Select to Set or reset the CALP bit. This parameter can be one of the following values: - RTC_SmoothCalibPlusPulses_Set : Add one RTCCLK puls every 2**11 pulses.
- RTC_SmoothCalibPlusPulses_Reset: No RTCCLK pulses are added.
RTC_SmouthCalibMinusPulsesValue,: Select the value of CALM[8:0] bits. This parameter can be one any value from 0 to 0x000001FF.
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: RTC Calib registers are configured
- ERROR: RTC Calib registers are not configured
Definition at line 1767 of file stm32f30x_rtc.c.
Generated on Tue Jul 12 2022 17:34:46 by
