diff include/PRU.h @ 81:92145ba7aabf

Updated PRU code to allow pinModeFrame() and [untested] digitalWriteFrame() and analogWriteFrame() to be called from setup(). Updated basic_blink example accordingly.
author andrewm
date Fri, 17 Jul 2015 22:16:53 +0100
parents 579c86316008
children 3068421c0737 c55c6f6c233c
line wrap: on
line diff
--- a/include/PRU.h	Fri Jul 17 21:39:51 2015 +0100
+++ b/include/PRU.h	Fri Jul 17 22:16:53 2015 +0100
@@ -72,6 +72,9 @@
 	int16_t *pru_buffer_audio_dac;
 	int16_t *pru_buffer_audio_adc;
 
+	float *last_analog_out_frame;
+	uint32_t *digital_buffer0, *digital_buffer1, *last_digital_buffer;
+
 	int xenomai_gpio_fd;	// File descriptor for /dev/mem for fast GPIO
 	uint32_t *xenomai_gpio;	// Pointer to GPIO registers
 };