Mercurial > hg > beaglert
diff include/PRU.h @ 19:c98863e63174 matrix_gpio
Renamed matrixGpio to digital and matrix to analog
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 30 Apr 2015 16:58:41 +0100 |
parents | 670be80463a3 |
children | 4255ecbb9bec 579c86316008 |
line wrap: on
line diff
--- a/include/PRU.h Thu Apr 30 16:02:47 2015 +0100 +++ b/include/PRU.h Thu Apr 30 16:58:41 2015 +0100 @@ -27,7 +27,7 @@ ~PRU(); // Prepare the GPIO pins needed for the PRU - int prepareGPIO(int use_spi, int use_matrix_gpio, int include_test_pin, int include_led); + int prepareGPIO(int use_spi, int use_digital, int include_test_pin, int include_led); // Clean up the GPIO at the end void cleanupGPIO(); @@ -56,7 +56,7 @@ int pru_number; // Which PRU we use bool running; // Whether the PRU is running bool spi_enabled; // Whether SPI ADC and DAC are used - bool matrix_gpio_enabled; // Whether Matrix GPIO is used + bool digital_enabled; // Whether digital is used 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 @@ -65,11 +65,11 @@ volatile uint32_t *pru_buffer_comm; uint16_t *pru_buffer_spi_dac; uint16_t *pru_buffer_spi_adc; - uint32_t *pru_buffer_matrix_gpio; + uint32_t *pru_buffer_digital; int16_t *pru_buffer_audio_dac; int16_t *pru_buffer_audio_adc; unsigned int spi_buffer_frames; - unsigned int matrix_gpio_buffer_frames; + unsigned int digital_buffer_frames; unsigned int audio_buffer_frames; int xenomai_gpio_fd; // File descriptor for /dev/mem for fast GPIO