mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 20:29:42 +00:00
Reload period counter on low -> high transition.
This commit is contained in:
parent
887ab705d1
commit
6bc5268cbd
@ -467,6 +467,8 @@ template <> bool Audio::Channel::transit<
|
||||
|
||||
// TODO: include napnav in tests
|
||||
|
||||
period_counter = period; // i.e. percntrld
|
||||
|
||||
if(!dma_enabled) {
|
||||
return true;
|
||||
} else {
|
||||
|
@ -106,7 +106,7 @@ class Audio: public DMADevice<4> {
|
||||
|
||||
// Output state.
|
||||
int8_t output_level = 0;
|
||||
uint8_t output_phase = 0;
|
||||
uint8_t output_phase = 0; // TODO: this should count down, not up.
|
||||
bool output_enabled = false;
|
||||
} channels_[4];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user