Skip to content

Commit 4f830f1

Browse files
committed
Fix parameter name and remove unnecessary function
1 parent 3361ec3 commit 4f830f1

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

ports/broadcom/common-hal/rtc/RTC.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,9 @@
3232
#include "shared/timeutils/timeutils.h"
3333
#include "shared-bindings/rtc/__init__.h"
3434
#include "shared-bindings/rtc/RTC.h"
35-
#include "common-hal/rtc/RTC.h"
3635
#include "supervisor/port.h"
3736
#include "supervisor/shared/translate/translate.h"
3837

39-
void rtc_init(void) {
40-
}
41-
4238
// This is the time in seconds since 2000 that the RTC was started.
4339
// TODO: Change the offset to ticks so that it can be a subsecond adjustment.
4440
static uint32_t rtc_offset = 0;

ports/broadcom/common-hal/rtc/RTC.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
* THE SOFTWARE.
2626
*/
2727

28-
#ifndef MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H
29-
#define MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H
28+
#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H
29+
#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H
3030

31-
extern void rtc_init(void);
3231
extern void rtc_reset(void);
3332

34-
#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H
33+
#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H

0 commit comments

Comments
 (0)