diff examples/gpioAnalogLoopbackTest/render.cpp @ 301:e4392164b458 prerelease

RENAMED BeagleRT to Bela AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, scripts probably not working
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 14:34:41 +0100
parents dbeed520b014
children 1feb9c23ac57
line wrap: on
line diff
--- a/examples/gpioAnalogLoopbackTest/render.cpp	Fri May 27 13:58:20 2016 +0100
+++ b/examples/gpioAnalogLoopbackTest/render.cpp	Fri May 27 14:34:41 2016 +0100
@@ -1,4 +1,4 @@
-#include <BeagleRT.h>
+#include <Bela.h>
 #include <Utilities.h>
 #include <cmath>
 #include <rtdk.h>
@@ -24,7 +24,7 @@
 int gDigitalInDCh = 3;
 int gAnalogOutLoopDelay;
 int gDigitalOutLoopDelay;
-bool setup(BeagleRTContext *context, void *userData)
+bool setup(BelaContext *context, void *userData)
 {
 	rt_printf("For this test you need the following connections:\n"
 			"analog%d out->digital%d in, analog%d out->analog%d in, "
@@ -66,7 +66,7 @@
 const int patternLength = 31;
 static int anaErrorCount = 0;
 static int digErrorCount = 0;
-void render(BeagleRTContext *context, void *userData)
+void render(BelaContext *context, void *userData)
 {
 	static bool writePattern[patternLength] = {
 									0,1,0,1,0,0,1,1,
@@ -196,7 +196,7 @@
 }
 
 
-void cleanup(BeagleRTContext *context, void *userData)
+void cleanup(BelaContext *context, void *userData)
 {
 	if(anaErrorCount == 0 && digErrorCount == 0){
 		rt_printf("Test was succesful with %d analog channels and a buffer size of %d\n", context->analogChannels, context->audioFrames);