Skip to content

Commit 4c21ba5

Browse files
James MunnsYatekii
authored andcommitted
Help the type checker out
1 parent 1be37e7 commit 4c21ba5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nrf52-hal-common/src/clocks.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct Clocks<H, L, LSTAT> {
3333
periph: CLOCK,
3434
}
3535

36-
impl<H, L, LSTAT> Clocks<H, L, LSTAT> {
36+
impl Clocks<Internal, Internal, LfOscStopped> {
3737
pub fn new(clock: CLOCK) -> Clocks<Internal, Internal, LfOscStopped> {
3838
Clocks {
3939
hfclk: Internal,
@@ -42,6 +42,9 @@ impl<H, L, LSTAT> Clocks<H, L, LSTAT> {
4242
periph: clock,
4343
}
4444
}
45+
}
46+
47+
impl<H, L, LSTAT> Clocks<H, L, LSTAT> {
4548
/// Use an external oscillator as the high frequency clock source
4649
pub fn enable_ext_hfosc(self) -> Clocks<ExternalOscillator, L, LSTAT> {
4750
self.periph.tasks_hfclkstart.write(|w| unsafe { w.bits(1) });

0 commit comments

Comments
 (0)