pub fn disable_sleep() {
	unsafe {
		if has_colors() {
			let control = 0x900D0008 as *mut u32;
			let load = 0x900D0000 as *mut u32;
			let _value = 0x900D0004 as *mut u32;
			write_volatile(control, 0);
			write_volatile(control, ORIG_CONTROL & 0b01111111);
			write_volatile(load, ORIG_LOAD);
			write_volatile(control, ORIG_CONTROL);
		} else {
			let timer = 0x900D0000 as *mut u32;
			let control = 0x900D0008 as *mut u32;
			let divider = 0x900D0004 as *mut u32;
			write_volatile(control, ORIG_CONTROL);
			write_volatile(divider, ORIG_DIVIDER);
			write_volatile(timer, 32);
		}
	}
}
/// Resets the sleep timer so it may be used normally.
Resets the sleep timer so it may be used normally.
Resets the sleep timer so it may be used normally .
pub fn disable_sleep() {
	unsafe {
		if has_colors() {
			let control = 0x900D0008 as *mut u32;
			let load = 0x900D0000 as *mut u32;
			let _value = 0x900D0004 as *mut u32;
			write_volatile(control, 0);
			write_volatile(control, ORIG_CONTROL & 0b01111111);
			write_volatile(load, ORIG_LOAD);
			write_volatile(control, ORIG_CONTROL);
		} else {
			let timer = 0x900D0000 as *mut u32;
			let control = 0x900D0008 as *mut u32;
			let divider = 0x900D0004 as *mut u32;
			write_volatile(control, ORIG_CONTROL);
			write_volatile(divider, ORIG_DIVIDER);
			write_volatile(timer, 32);
		}
	}
}
pub fn disable_sleep ( ) { unsafe { if has_colors ( ) { let control = 0x900D0008 as * mut u32 ; let load = 0x900D0000 as * mut u32 ; let _value = 0x900D0004 as * mut u32 ; write_volatile ( control , 0 ) ; write_volatile ( control , ORIG_CONTROL & 0b01111111 ) ; write_volatile ( load , ORIG_LOAD ) ; write_volatile ( control , ORIG_CONTROL ) ; } else { let timer = 0x900D0000 as * mut u32 ; let control = 0x900D0008 as * mut u32 ; let divider = 0x900D0004 as * mut u32 ; write_volatile ( control , ORIG_CONTROL ) ; write_volatile ( divider , ORIG_DIVIDER ) ; write_volatile ( timer , 32 ) ; } } }
Resets the sleep timer so it may be used normally.
Resets the sleep timer so it may be used normally .