Mercurial > hg > beaglert
diff core/PRU.cpp @ 56:3c3a1357657d newapi
Further API update to name three primary functions setup(), render() and cleanup(). Changed include paths so now can #include <BeagleRT.h>. Removed stale pru_rtaudio.bin file as this is now done as pru_rtaudio_bin.h. Updated examples to new API and fixed minor compiler warnings along the way. Network example needs further attention to compile.
author | andrewm |
---|---|
date | Wed, 15 Jul 2015 12:10:51 +0100 |
parents | a6d223473ea2 |
children | 92145ba7aabf |
line wrap: on
line diff
--- a/core/PRU.cpp Mon Jun 15 18:16:00 2015 +0100 +++ b/core/PRU.cpp Wed Jul 15 12:10:51 2015 +0100 @@ -430,7 +430,6 @@ float *lastAnalogOutFrame; uint32_t *digitalBuffer0, *digitalBuffer1, *lastDigitalBuffer; uint32_t pru_audio_offset, pru_spi_offset; - int result; // Allocate audio buffers context->audioIn = (float *)malloc(2 * context->audioFrames * sizeof(float)); @@ -474,7 +473,9 @@ // uint32_t testCount = 0; // RTIME startTime = rt_timer_read(); -#ifndef BEAGLERT_USE_XENOMAI_INTERRUPTS +#ifdef BEAGLERT_USE_XENOMAI_INTERRUPTS + int result; +#else // Which buffer the PRU was last processing uint32_t lastPRUBuffer = 0; #endif