aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gaudio/oscilloscope/main.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-04-30 13:41:34 +0200
committerJoel Bodenmann <joel@unormal.org>2014-04-30 13:41:34 +0200
commit33c721c009465dd30d4e96e055a051480c567b57 (patch)
tree5a6744a79b7469d80bae474d4314b47d4cd6d44d /demos/modules/gaudio/oscilloscope/main.c
parent58cf2d2b35542166f1a4e50a83bcf28ff33574a5 (diff)
parenta394e2c35dde67241bea69409bcae9f46dcfc089 (diff)
downloaduGFX-33c721c009465dd30d4e96e055a051480c567b57.tar.gz
uGFX-33c721c009465dd30d4e96e055a051480c567b57.tar.bz2
uGFX-33c721c009465dd30d4e96e055a051480c567b57.zip
Merge branch 'master' into freertos
Diffstat (limited to 'demos/modules/gaudio/oscilloscope/main.c')
-rw-r--r--demos/modules/gaudio/oscilloscope/main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/demos/modules/gaudio/oscilloscope/main.c b/demos/modules/gaudio/oscilloscope/main.c
index b44b5a02..3636e8f9 100644
--- a/demos/modules/gaudio/oscilloscope/main.c
+++ b/demos/modules/gaudio/oscilloscope/main.c
@@ -55,10 +55,15 @@ int main(void) {
gfxInit();
- // Allocate audio buffers - 4 x 128 byte buffers.
- // You may need to increase this for slower cpu's.
- // You may be able to decrease this for low latency operating systems.
- gaudioAllocBuffers(4, 128);
+ /**
+ * Allocate audio buffers - eg. 4 x 128 byte buffers.
+ * You may need to increase this for slower cpu's.
+ * You may be able to decrease this for low latency operating systems.
+ * 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
+ * out of free buffers. Increase the number of buffers..
+ */
+ gfxBufferAlloc(8, 256);
/* Get the screen dimensions */
swidth = gdispGetWidth();