comparison core/PRU.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 c55c6f6c233c
children 421a69d42943
comparison
equal deleted inserted replaced
300:dbeed520b014 301:e4392164b458
16 #include "../include/PRU.h" 16 #include "../include/PRU.h"
17 #include "../include/prussdrv.h" 17 #include "../include/prussdrv.h"
18 #include "../include/pruss_intc_mapping.h" 18 #include "../include/pruss_intc_mapping.h"
19 #include "../include/digital_gpio_mapping.h" 19 #include "../include/digital_gpio_mapping.h"
20 #include "../include/GPIOcontrol.h" 20 #include "../include/GPIOcontrol.h"
21 #include "../include/BeagleRT.h" 21 #include "../include/Bela.h"
22 #include "../include/pru_rtaudio_bin.h" 22 #include "../include/pru_rtaudio_bin.h"
23 23
24 #include <iostream> 24 #include <iostream>
25 #include <stdlib.h> 25 #include <stdlib.h>
26 #include <cstdio> 26 #include <cstdio>
108 108
109 extern int gShouldStop; 109 extern int gShouldStop;
110 extern int gRTAudioVerbose; 110 extern int gRTAudioVerbose;
111 111
112 // Constructor: specify a PRU number (0 or 1) 112 // Constructor: specify a PRU number (0 or 1)
113 PRU::PRU(BeagleRTContext *input_context) 113 PRU::PRU(BelaContext *input_context)
114 : context(input_context), pru_number(0), running(false), analog_enabled(false), 114 : context(input_context), pru_number(0), running(false), analog_enabled(false),
115 digital_enabled(false), gpio_enabled(false), led_enabled(false), 115 digital_enabled(false), gpio_enabled(false), led_enabled(false),
116 gpio_test_pin_enabled(false), 116 gpio_test_pin_enabled(false),
117 pru_buffer_comm(0), pru_buffer_spi_dac(0), pru_buffer_spi_adc(0), 117 pru_buffer_comm(0), pru_buffer_spi_dac(0), pru_buffer_spi_adc(0),
118 pru_buffer_digital(0), pru_buffer_audio_dac(0), pru_buffer_audio_adc(0), 118 pru_buffer_digital(0), pru_buffer_audio_dac(0), pru_buffer_audio_adc(0),
660 if(xenomai_gpio != 0) { 660 if(xenomai_gpio != 0) {
661 // Set the test pin high 661 // Set the test pin high
662 xenomai_gpio[GPIO_CLEARDATAOUT] = TEST_PIN_MASK; 662 xenomai_gpio[GPIO_CLEARDATAOUT] = TEST_PIN_MASK;
663 } 663 }
664 664
665 BeagleRT_autoScheduleAuxiliaryTasks(); 665 Bela_autoScheduleAuxiliaryTasks();
666 666
667 // FIXME: TESTING!! 667 // FIXME: TESTING!!
668 // if(testCount > 100000) 668 // if(testCount > 100000)
669 // break; 669 // break;
670 } 670 }