chore: rename Cycles newtype to Cycle

This commit is contained in:
2021-03-27 12:10:18 -05:00
parent bce14348f8
commit 2b05571c49
8 changed files with 171 additions and 171 deletions

View File

@@ -1,4 +1,4 @@
use crate::Cycles;
use crate::Cycle;
use bitfield::bitfield;
// const DIVIDER_REGISTER_HZ: u32 = 16384;
@@ -14,7 +14,7 @@ pub struct Timer {
}
impl Timer {
pub fn step(&mut self, cycles: Cycles) {
pub fn step(&mut self, cycles: Cycle) {
use TimerSpeed::*;
for _ in 0..cycles.into() {