Mercurial > hg > beaglert
diff projects/d-box/render.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 | 4f8db16f17b5 |
children |
line wrap: on
line diff
--- a/projects/d-box/render.cpp Mon Jun 15 18:16:00 2015 +0100 +++ b/projects/d-box/render.cpp Wed Jul 15 12:10:51 2015 +0100 @@ -5,8 +5,9 @@ * Author: Victor Zappi */ -#include "../../include/BeagleRT.h" -#include "../../include/PRU.h" +#include <BeagleRT.h> +#include <PRU.h> + #include "StatusLED.h" #include "config.h" #include "OscillatorBank.h" @@ -152,7 +153,7 @@ uint16_t *matrixIn, uint16_t *matrixOut); #endif -bool initialise_render(BeagleRTContext *context, void *userData) { +bool setup(BeagleRTContext *context, void *userData) { int oscBankHopSize = *(int *)userData; if(context->analogChannels != 8) { @@ -730,7 +731,7 @@ } // Clean up at the end of render -void cleanup_render(BeagleRTContext *context, void *userData) +void cleanup(BeagleRTContext *context, void *userData) { free(gOscillatorBuffer1); free(gOscillatorBuffer2);