diff options
| author | xoviat <[email protected]> | 2023-08-22 16:58:19 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-08-22 16:58:19 -0500 |
| commit | 9e3266b74554ea397bdd963ff12a26aa51e77b63 (patch) | |
| tree | e63648d817378ef9271f22bf95063aa63fd48432 | |
| parent | 8878ce046c2665eb641f33bc484ca68083d7d353 (diff) | |
rtc: make fns private
| -rw-r--r-- | embassy-stm32/src/rtc/v2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs index e9b83123c..4a166e195 100644 --- a/embassy-stm32/src/rtc/v2.rs +++ b/embassy-stm32/src/rtc/v2.rs | |||
| @@ -160,7 +160,7 @@ impl super::Rtc { | |||
| 160 | /// | 160 | /// |
| 161 | /// note: this api is exposed for testing purposes until low power is implemented. | 161 | /// note: this api is exposed for testing purposes until low power is implemented. |
| 162 | /// it is not intended to be public | 162 | /// it is not intended to be public |
| 163 | pub fn start_wakeup_alarm(requested_duration: embassy_time::Duration) -> RtcInstant { | 163 | pub(crate) fn start_wakeup_alarm(requested_duration: embassy_time::Duration) -> RtcInstant { |
| 164 | use embassy_time::{Duration, TICK_HZ}; | 164 | use embassy_time::{Duration, TICK_HZ}; |
| 165 | 165 | ||
| 166 | use crate::interrupt::typelevel::Interrupt; | 166 | use crate::interrupt::typelevel::Interrupt; |
| @@ -215,7 +215,7 @@ impl super::Rtc { | |||
| 215 | /// | 215 | /// |
| 216 | /// note: this api is exposed for testing purposes until low power is implemented. | 216 | /// note: this api is exposed for testing purposes until low power is implemented. |
| 217 | /// it is not intended to be public | 217 | /// it is not intended to be public |
| 218 | pub fn stop_wakeup_alarm() -> RtcInstant { | 218 | pub(crate) fn stop_wakeup_alarm() -> RtcInstant { |
| 219 | use crate::interrupt::typelevel::Interrupt; | 219 | use crate::interrupt::typelevel::Interrupt; |
| 220 | 220 | ||
| 221 | crate::interrupt::typelevel::RTC_WKUP::disable(); | 221 | crate::interrupt::typelevel::RTC_WKUP::disable(); |
