Mercurial > hg > beaglert
comparison core/PRU.cpp @ 274:cf98c06c72fd prerelease
merge
author | Liam Donovan <l.b.donovan@qmul.ac.uk> |
---|---|
date | Tue, 17 May 2016 16:42:02 +0100 |
parents | 8d80eda512cd |
children | c55c6f6c233c |
comparison
equal
deleted
inserted
replaced
273:0ee6eebb567a | 274:cf98c06c72fd |
---|---|
34 #include <native/task.h> | 34 #include <native/task.h> |
35 #include <native/timer.h> | 35 #include <native/timer.h> |
36 #include <rtdk.h> | 36 #include <rtdk.h> |
37 | 37 |
38 using namespace std; | 38 using namespace std; |
39 | |
40 // PRU memory: PRU0 and PRU1 RAM are 8kB (0x2000) long each | |
41 // PRU-SHARED RAM is 12kB (0x3000) long | |
39 | 42 |
40 #define PRU_MEM_MCASP_OFFSET 0x2000 // Offset within PRU-SHARED RAM | 43 #define PRU_MEM_MCASP_OFFSET 0x2000 // Offset within PRU-SHARED RAM |
41 #define PRU_MEM_MCASP_LENGTH 0x1000 // Length of McASP memory, in bytes | 44 #define PRU_MEM_MCASP_LENGTH 0x1000 // Length of McASP memory, in bytes |
42 #define PRU_MEM_DAC_OFFSET 0x0 // Offset within PRU0 RAM | 45 #define PRU_MEM_DAC_OFFSET 0x0 // Offset within PRU0 RAM |
43 #define PRU_MEM_DAC_LENGTH 0x2000 // Length of ADC+DAC memory, in bytes | 46 #define PRU_MEM_DAC_LENGTH 0x2000 // Length of ADC+DAC memory, in bytes |