diff include/PRU.h @ 41:4255ecbb9bec ultra-staging

Timers to measure performances, ultra experimental
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 19 May 2015 16:41:07 +0100
parents c98863e63174
children 3068421c0737
line wrap: on
line diff
--- a/include/PRU.h	Wed May 13 12:23:37 2015 +0100
+++ b/include/PRU.h	Tue May 19 16:41:07 2015 +0100
@@ -9,7 +9,8 @@
 #define PRU_H_
 
 #include <stdint.h>
-
+#include "../include/RTAudio.h"	// to schedule lower prio parallel process
+#include "../include/intervals.h"
 class PRU
 {
 private:
@@ -51,6 +52,9 @@
 	// For debugging:
 	void setGPIOTestPin();
 	void clearGPIOTestPin();
+	Interval renderTimer;
+	Interval sleepTimer;
+	AuxiliaryTask printIntervalsTask;
 
 private:
 	int pru_number;		// Which PRU we use
@@ -74,6 +78,7 @@
 
 	int xenomai_gpio_fd;	// File descriptor for /dev/mem for fast GPIO
 	uint32_t *xenomai_gpio;	// Pointer to GPIO registers
+
 };