From d0410c4dfd78e86d98531d35eca7a00daad4bb05 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 15 Mar 2021 22:48:15 -0500 Subject: [PATCH] fix: modify access parameters in timer.rs --- src/timer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/timer.rs b/src/timer.rs index bda3ae1..a1838bd 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -22,7 +22,7 @@ impl Default for Timer { } #[derive(Debug, Clone, Copy)] -enum TimerSpeed { +pub enum TimerSpeed { Freq4096Hz = 0, Freq262144Hz = 1, Freq65536Hz = 2, @@ -50,8 +50,8 @@ impl From for u8 { bitfield! { pub struct TimerControl(u8); impl Debug; - enabled, set_enabled: 2; - from into TimerSpeed, speed, set_speed: 1, 0; + pub enabled, set_enabled: 2; + pub from into TimerSpeed, speed, set_speed: 1, 0; } impl Copy for TimerControl {}