summaryrefslogtreecommitdiff
path: root/ports/stm32/rtc.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-03-09 11:08:01 +1100
committerDamien George <damien@micropython.org>2023-03-09 12:47:45 +1100
commitb9dad0add22a262c83cbf114e746ccb5306c7356 (patch)
treed6fab5e58fd767e16bce5fd829d23009430e184e /ports/stm32/rtc.c
parent7c1584aef10f80aabfeba242892ec5f85c57bead (diff)
stm32: Remove commented-out printf's and debugging code.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/stm32/rtc.c')
-rw-r--r--ports/stm32/rtc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ports/stm32/rtc.c b/ports/stm32/rtc.c
index 874e427cf..92f64626a 100644
--- a/ports/stm32/rtc.c
+++ b/ports/stm32/rtc.c
@@ -24,8 +24,6 @@
* THE SOFTWARE.
*/
-#include <stdio.h>
-
#include "py/runtime.h"
#include "shared/timeutils/timeutils.h"
#include "extint.h"
@@ -771,8 +769,6 @@ mp_obj_t pyb_rtc_wakeup(size_t n_args, const mp_obj_t *args) {
NVIC_SetPriority(RTC_WKUP_IRQn, IRQ_PRI_RTC_WKUP);
HAL_NVIC_EnableIRQ(RTC_WKUP_IRQn);
-
- // printf("wut=%d wucksel=%d\n", wut, wucksel);
} else {
// clear WUTIE to disable interrupts
RTC->CR &= ~RTC_CR_WUTIE;
@@ -833,7 +829,6 @@ mp_obj_t pyb_rtc_calibration(size_t n_args, const mp_obj_t *args) {
HAL_RTCEx_SetSmoothCalib(&RTCHandle, RTC_SMOOTHCALIB_PERIOD_32SEC, cal_p, cal_m);
return mp_const_none;
} else {
- // printf("CALR = 0x%x\n", (mp_uint_t) RTCHandle.Instance->CALR); // DEBUG
// Test if CALP bit is set in CALR:
if (RTCHandle.Instance->CALR & 0x8000) {
cal = 512 - (RTCHandle.Instance->CALR & 0x1ff);