diff examples/basic_pulseIn/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/basic_pulseIn/render.cpp	Fri May 27 13:58:20 2016 +0100
+++ b/examples/basic_pulseIn/render.cpp	Fri May 27 14:34:41 2016 +0100
@@ -5,7 +5,7 @@
  *      Author: parallels
  */
 
-#include <BeagleRT.h>
+#include <Bela.h>
 #include <PulseIn.h>
 #include <Utilities.h>
 #include <stdlib.h>
@@ -26,7 +26,7 @@
 int gPulseLength = 1234;
 int gSamplesBetweenPulses = 10000;
 
-bool setup(BeagleRTContext *context, void *userData)
+bool setup(BelaContext *context, void *userData)
 {
 	pinModeFrame(context, 0, gDigitalOutPin, OUTPUT);
 	pulseIn.init(context, gPulseInPin, 1); //third parameter is direction
@@ -38,7 +38,7 @@
 // ADCs and DACs (if available). If only audio is available, numMatrixFrames
 // will be 0.
 
-void render(BeagleRTContext *context, void *userData)
+void render(BelaContext *context, void *userData)
 {
 	static bool pulseOut = 0;
 	static int count = 0;
@@ -67,7 +67,7 @@
 // cleanup() is called once at the end, after the audio has stopped.
 // Release any resources that were allocated in setup().
 
-void cleanup(BeagleRTContext *context, void *userData)
+void cleanup(BelaContext *context, void *userData)
 {
 
 }