1
0
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:
Thomas Harte 2021-12-02 18:43:02 -05:00
parent 887ab705d1
commit 6bc5268cbd
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -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];