Mercurial > hg > beaglert
diff core/PRU.cpp @ 52:a6d223473ea2 newapi
Updated examples for new API. tank_wars not yet updated; audio_in_FFT and oscillator_bank not working properly yet.
author | andrewm |
---|---|
date | Sun, 31 May 2015 02:13:39 -0500 |
parents | be427da6fb9c |
children | 3c3a1357657d |
line wrap: on
line diff
--- a/core/PRU.cpp Sat May 30 13:25:51 2015 -0500 +++ b/core/PRU.cpp Sun May 31 02:13:39 2015 -0500 @@ -616,6 +616,9 @@ pru_buffer_audio_dac[n + pru_audio_offset] = (int16_t)out; } + // Increment total number of samples that have elapsed + context->audioSampleCount += context->audioFrames; + if(xenomai_gpio != 0) { // Set the test pin high xenomai_gpio[GPIO_CLEARDATAOUT] = TEST_PIN_MASK;