blob: c780ebc245f38636795d3cecadbfbd38467bc24d (
plain)
1
2
3
4
|
// The value we send to the PIT is the value to divide it's input clock
// (1193180 Hz) by, to get our required frequency. Important to note is
// that the divisor must be small enough to fit into 16-bits.
uint32_t divisor = 1193180 / frequency;
|