Skip to main content

MASTER_HZ

Constant MASTER_HZ 

Source
pub const MASTER_HZ: u64 = 187_500_000;
Expand description

The canonical master clock (MASTER_HZ, ADR 0006), duplicated here because the chip-crate graph forbids rustyn64-audio depending on rustyn64-core.

The DAC period (master ticks per output sample) is MASTER_HZ / sample_rate. A cross-crate test in rustyn64-core asserts this equals the scheduler’s MASTER_HZ, so the two cannot drift.