Final updates to GADC recording after fixing bugs in the ChibiOS AT91SAM7X ADC driver
This commit is contained in:
parent
9919aeac89
commit
343ddd7158
3 changed files with 5 additions and 5 deletions
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
/* The extent of scaling for our audio data - fixed scale at the moment */
|
/* The extent of scaling for our audio data - fixed scale at the moment */
|
||||||
#ifndef SCOPE_Y_BITS
|
#ifndef SCOPE_Y_BITS
|
||||||
#define SCOPE_Y_BITS 7 // 7 bits = 0..128
|
#define SCOPE_Y_BITS 7 // 7 bits = 0..128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Trigger methods */
|
/* Trigger methods */
|
||||||
|
|
|
@ -171,7 +171,7 @@ int main(void) {
|
||||||
* Allocate buffers for the high speed GADC device - eg. 4 x 128 byte buffers.
|
* Allocate buffers for the high speed GADC device - eg. 4 x 128 byte buffers.
|
||||||
* You may need to increase this for slower cpu's.
|
* You may need to increase this for slower cpu's.
|
||||||
* You may be able to decrease this for low latency operating systems.
|
* You may be able to decrease this for low latency operating systems.
|
||||||
* 10 x 128 seems to work on the really slow Olimex SAM7EX256 board (display speed limitation)
|
* 4 x 128 seems to work on the really slow Olimex SAM7EX256 board (display speed limitation)
|
||||||
* If your oscilloscope display stops but the low speed reading keep going then it is likely that
|
* If your oscilloscope display stops but the low speed reading keep going then it is likely that
|
||||||
* your high speed timer has stalled due to running out of free buffers. Increase the number
|
* your high speed timer has stalled due to running out of free buffers. Increase the number
|
||||||
* of buffers..
|
* of buffers..
|
||||||
|
@ -179,7 +179,7 @@ int main(void) {
|
||||||
* the low speed items to occur in which case your memory will fill up with low speed requests until
|
* the low speed items to occur in which case your memory will fill up with low speed requests until
|
||||||
* you run out of memory.
|
* you run out of memory.
|
||||||
*/
|
*/
|
||||||
gfxBufferAlloc(10, 128);
|
gfxBufferAlloc(4, 128);
|
||||||
|
|
||||||
/* Set up the scope window in the top right on the screen */
|
/* Set up the scope window in the top right on the screen */
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,11 +59,11 @@ int main(void) {
|
||||||
* Allocate audio buffers - eg. 4 x 128 byte buffers.
|
* Allocate audio buffers - eg. 4 x 128 byte buffers.
|
||||||
* You may need to increase this for slower cpu's.
|
* You may need to increase this for slower cpu's.
|
||||||
* You may be able to decrease this for low latency operating systems.
|
* You may be able to decrease this for low latency operating systems.
|
||||||
* 16 x 256 seems to work on the really slow Olimex SAM7EX256 board (display speed limitation) @8kHz
|
* 8 x 256 seems to work on the really slow Olimex SAM7EX256 board (display speed limitation) @8kHz
|
||||||
* If your oscilloscope display stops then it is likely that your driver has stalled due to running
|
* If your oscilloscope display stops then it is likely that your driver has stalled due to running
|
||||||
* out of free buffers. Increase the number of buffers..
|
* out of free buffers. Increase the number of buffers..
|
||||||
*/
|
*/
|
||||||
gfxBufferAlloc(16, 256);
|
gfxBufferAlloc(8, 256);
|
||||||
|
|
||||||
/* Get the screen dimensions */
|
/* Get the screen dimensions */
|
||||||
swidth = gdispGetWidth();
|
swidth = gdispGetWidth();
|
||||||
|
|
Loading…
Add table
Reference in a new issue