comparison include/PRU.h @ 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
8 #ifndef PRU_H_ 8 #ifndef PRU_H_
9 #define PRU_H_ 9 #define PRU_H_
10 10
11 #include <stdint.h> 11 #include <stdint.h>
12 #include <native/intr.h> 12 #include <native/intr.h>
13 #include "../include/BeagleRT.h" 13 #include "../include/Bela.h"
14 14
15 class PRU 15 class PRU
16 { 16 {
17 private: 17 private:
18 static const unsigned int kPruGPIODACSyncPin; 18 static const unsigned int kPruGPIODACSyncPin;
21 static const unsigned int kPruGPIOTestPin2; 21 static const unsigned int kPruGPIOTestPin2;
22 static const unsigned int kPruGPIOTestPin3; 22 static const unsigned int kPruGPIOTestPin3;
23 23
24 public: 24 public:
25 // Constructor 25 // Constructor
26 PRU(BeagleRTContext *input_context); 26 PRU(BelaContext *input_context);
27 27
28 // Destructor 28 // Destructor
29 ~PRU(); 29 ~PRU();
30 30
31 // Prepare the GPIO pins needed for the PRU 31 // Prepare the GPIO pins needed for the PRU
54 // For debugging: 54 // For debugging:
55 void setGPIOTestPin(); 55 void setGPIOTestPin();
56 void clearGPIOTestPin(); 56 void clearGPIOTestPin();
57 57
58 private: 58 private:
59 BeagleRTContext *context; // Overall settings 59 BelaContext *context; // Overall settings
60 60
61 int pru_number; // Which PRU we use 61 int pru_number; // Which PRU we use
62 bool running; // Whether the PRU is running 62 bool running; // Whether the PRU is running
63 bool analog_enabled; // Whether SPI ADC and DAC are used 63 bool analog_enabled; // Whether SPI ADC and DAC are used
64 bool digital_enabled; // Whether digital is used 64 bool digital_enabled; // Whether digital is used