Mercurial > hg > beaglert
comparison include/PRU.h @ 15:901d205d1a3c
Updated to latest PRU library; external PRU file no longer needed. Also catch SIGTERM as well as SIGINT to clean up gracefully.
author | andrewm |
---|---|
date | Sat, 07 Feb 2015 16:41:56 +0000 |
parents | a6beeba3a648 |
children | 670be80463a3 |
comparison
equal
deleted
inserted
replaced
14:06f93bef7dd2 | 15:901d205d1a3c |
---|---|
34 | 34 |
35 // Initialise and open the PRU | 35 // Initialise and open the PRU |
36 int initialise(int pru_num, int frames_per_buffer, int spi_channels, | 36 int initialise(int pru_num, int frames_per_buffer, int spi_channels, |
37 bool xenomai_test_pin = false); | 37 bool xenomai_test_pin = false); |
38 | 38 |
39 // Run the code image in the specified file | 39 // Run the code image in pru_rtaudio_bin.h |
40 int start(char * const filename); | 40 int start(); |
41 | 41 |
42 // Loop: read and write data from the PRU | 42 // Loop: read and write data from the PRU |
43 void loop(); | 43 void loop(); |
44 | 44 |
45 // Wait for an interrupt from the PRU indicate it is finished | 45 // Wait for an interrupt from the PRU indicate it is finished |