Mercurial > hg > beaglert
diff include/PRU.h @ 12:a6beeba3a648
Initial support for higher matrix sample rates by reducing the number of channels. Input not tested yet, and not all examples updated to new format.
author | andrewm |
---|---|
date | Thu, 22 Jan 2015 19:00:22 +0000 |
parents | 8a575ba3ab52 |
children | 901d205d1a3c |
line wrap: on
line diff
--- a/include/PRU.h Thu Nov 13 16:02:59 2014 +0100 +++ b/include/PRU.h Thu Jan 22 19:00:22 2015 +0000 @@ -33,7 +33,8 @@ void cleanupGPIO(); // Initialise and open the PRU - int initialise(int pru_num, int frames_per_buffer, bool xenomai_test_pin = false); + int initialise(int pru_num, int frames_per_buffer, int spi_channels, + bool xenomai_test_pin = false); // Run the code image in the specified file int start(char * const filename); @@ -58,6 +59,7 @@ bool gpio_enabled; // Whether GPIO has been prepared bool led_enabled; // Whether a user LED is enabled bool gpio_test_pin_enabled; // Whether the test pin was also enabled + int spi_num_channels; // How many channels to use for SPI ADC/DAC volatile uint32_t *pru_buffer_comm; uint16_t *pru_buffer_spi_dac;