We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6206fa9 commit 6afe23dCopy full SHA for 6afe23d
ports/nrf/common-hal/rtc/RTC.c
@@ -42,7 +42,6 @@
42
#define RTC_CLOCK_HZ (8)
43
44
volatile static uint32_t rtc_offset = 0;
45
-int8_t rtc_calibration = 0;
46
47
const nrfx_rtc_t rtc_instance = NRFX_RTC_INSTANCE(0);
48
@@ -80,14 +79,3 @@ void common_hal_rtc_set_time(timeutils_struct_time_t *tm) {
80
79
);
81
nrfx_rtc_counter_clear(&rtc_instance);
82
}
83
-
84
-// A positive value speeds up the clock by removing clock cycles.
85
-int common_hal_rtc_get_calibration(void) {
86
- return rtc_calibration;
87
-}
88
89
-void common_hal_rtc_set_calibration(int calibration) {
90
- if (calibration > 127 || calibration < -127)
91
- mp_raise_ValueError(translate("calibration value out of range +/-127"));
92
- rtc_calibration = calibration;
93
0 commit comments