rtc: make fns private
This commit is contained in:
parent
8878ce046c
commit
9e3266b745
@ -160,7 +160,7 @@ impl super::Rtc {
|
|||||||
///
|
///
|
||||||
/// note: this api is exposed for testing purposes until low power is implemented.
|
/// note: this api is exposed for testing purposes until low power is implemented.
|
||||||
/// it is not intended to be public
|
/// it is not intended to be public
|
||||||
pub fn start_wakeup_alarm(requested_duration: embassy_time::Duration) -> RtcInstant {
|
pub(crate) fn start_wakeup_alarm(requested_duration: embassy_time::Duration) -> RtcInstant {
|
||||||
use embassy_time::{Duration, TICK_HZ};
|
use embassy_time::{Duration, TICK_HZ};
|
||||||
|
|
||||||
use crate::interrupt::typelevel::Interrupt;
|
use crate::interrupt::typelevel::Interrupt;
|
||||||
@ -215,7 +215,7 @@ impl super::Rtc {
|
|||||||
///
|
///
|
||||||
/// note: this api is exposed for testing purposes until low power is implemented.
|
/// note: this api is exposed for testing purposes until low power is implemented.
|
||||||
/// it is not intended to be public
|
/// it is not intended to be public
|
||||||
pub fn stop_wakeup_alarm() -> RtcInstant {
|
pub(crate) fn stop_wakeup_alarm() -> RtcInstant {
|
||||||
use crate::interrupt::typelevel::Interrupt;
|
use crate::interrupt::typelevel::Interrupt;
|
||||||
|
|
||||||
crate::interrupt::typelevel::RTC_WKUP::disable();
|
crate::interrupt::typelevel::RTC_WKUP::disable();
|
||||||
|
Loading…
Reference in New Issue
Block a user