Fix parameter name and remove unnecessary function

This commit is contained in:
RetiredWizard 2023-01-21 22:57:52 -05:00
parent 3361ec390d
commit 4f830f1bbb
2 changed files with 3 additions and 8 deletions

View File

@ -32,13 +32,9 @@
#include "shared/timeutils/timeutils.h"
#include "shared-bindings/rtc/__init__.h"
#include "shared-bindings/rtc/RTC.h"
#include "common-hal/rtc/RTC.h"
#include "supervisor/port.h"
#include "supervisor/shared/translate/translate.h"
void rtc_init(void) {
}
// This is the time in seconds since 2000 that the RTC was started.
// TODO: Change the offset to ticks so that it can be a subsecond adjustment.
static uint32_t rtc_offset = 0;

View File

@ -25,10 +25,9 @@
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H
#define MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H
#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H
#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H
extern void rtc_init(void);
extern void rtc_reset(void);
#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H
#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H