forked from haunma/seiscape
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Acquire blocks of SAMPLES_PER_BLOCK forever, in circular buffer
- Loading branch information
Showing
3 changed files
with
58 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Common definitions for the seiscape host- and PRU-side code | ||
|
||
#define SAMPLES_PER_BLOCK 600 | ||
#define BLOCKS_IN_BUFFER 3 | ||
|
||
// These are pointers into the 8-kB PRU data RAM: | ||
#define BUFFER_PTR_SAVE 255 // Where to store dataram ptr for host | ||
#define BUFFER_START 256 | ||
#define BUFFER_END BUFFER_START + 4*SAMPLES_PER_BLOCK*BLOCKS_IN_BUFFER | ||
|