fix: modify access parameters in timer.rs

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-03-15 22:48:15 -05:00
parent f17bb032cc
commit d0410c4dfd
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ impl Default for Timer {
} }
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
enum TimerSpeed { pub enum TimerSpeed {
Freq4096Hz = 0, Freq4096Hz = 0,
Freq262144Hz = 1, Freq262144Hz = 1,
Freq65536Hz = 2, Freq65536Hz = 2,
@ -50,8 +50,8 @@ impl From<TimerSpeed> for u8 {
bitfield! { bitfield! {
pub struct TimerControl(u8); pub struct TimerControl(u8);
impl Debug; impl Debug;
enabled, set_enabled: 2; pub enabled, set_enabled: 2;
from into TimerSpeed, speed, set_speed: 1, 0; pub from into TimerSpeed, speed, set_speed: 1, 0;
} }
impl Copy for TimerControl {} impl Copy for TimerControl {}