fix: modify access parameters in timer.rs
This commit is contained in:
		@@ -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 {}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user