From ca7df2e990b7b931e1fed8d874f7fa1526b0d557 Mon Sep 17 00:00:00 2001 From: Blackaddr Audio Date: Sat, 16 Apr 2022 09:45:41 -0400 Subject: [PATCH] Update examples to use 64M by default (#18) --- examples/Delay/AnalogDelayDemo/AnalogDelayDemo.ino | 5 +++-- .../AnalogDelayDemoExpansion/AnalogDelayDemoExpansion.ino | 5 +++-- examples/Delay/ExternalDelayDemo/ExternalDelayDemo.ino | 5 +++-- examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino | 5 +++-- .../SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino | 5 +++-- examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino | 5 +++-- keywords.txt | 5 +++-- 7 files changed, 21 insertions(+), 14 deletions(-) diff --git a/examples/Delay/AnalogDelayDemo/AnalogDelayDemo.ino b/examples/Delay/AnalogDelayDemo/AnalogDelayDemo.ino index f339351..6127f2c 100644 --- a/examples/Delay/AnalogDelayDemo/AnalogDelayDemo.ino +++ b/examples/Delay/AnalogDelayDemo/AnalogDelayDemo.ino @@ -92,8 +92,9 @@ void setup() { //TGA_PRO_REVA(x); #ifdef USE_EXT - SPI_MEM0_4M(); - //SPI_MEM0_1M(); // use this line instead of you have the older 1Mbit memory + SPI_MEM0_64M(); // Optional 64Mbit SPI RAM + //SPI_MEM0_4M(); // Older REVA and REVB boards came with 4M or 1M + //SPI_MEM0_1M(); #endif delay(100); diff --git a/examples/Delay/AnalogDelayDemoExpansion/AnalogDelayDemoExpansion.ino b/examples/Delay/AnalogDelayDemoExpansion/AnalogDelayDemoExpansion.ino index e05f632..b12bb23 100644 --- a/examples/Delay/AnalogDelayDemoExpansion/AnalogDelayDemoExpansion.ino +++ b/examples/Delay/AnalogDelayDemoExpansion/AnalogDelayDemoExpansion.ino @@ -102,8 +102,9 @@ void setup() { //TGA_PRO_REVA(x); #ifdef USE_EXT - SPI_MEM0_4M(); - //SPI_MEM0_1M(); // use this line instead of you have the older 1Mbit memory + SPI_MEM0_64M(); // Optional 64Mbit SPI RAM + //SPI_MEM0_4M(); // Older REVB and REVA boards offered 1M or 4M + //SPI_MEM0_1M(); #endif delay(100); // wait a bit for serial to be available diff --git a/examples/Delay/ExternalDelayDemo/ExternalDelayDemo.ino b/examples/Delay/ExternalDelayDemo/ExternalDelayDemo.ino index 093fb78..9640ba6 100644 --- a/examples/Delay/ExternalDelayDemo/ExternalDelayDemo.ino +++ b/examples/Delay/ExternalDelayDemo/ExternalDelayDemo.ino @@ -53,8 +53,9 @@ void setup() { //TGA_PRO_REVB(x); //TGA_PRO_REVA(x); - SPI_MEM0_4M(); - //SPI_MEM0_1M(); // use this line instead of you have the older 1Mbit memory + SPI_MEM0_64M(); // Optional 64Mbit SPI RAM + //SPI_MEM0_4M(); // Older REVB / REVA boards came with 4M or 1M + //SPI_MEM0_1M(); Serial.begin(57600); delay(200); diff --git a/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino b/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino index 1251fdd..c025600 100644 --- a/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino +++ b/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino @@ -100,8 +100,9 @@ void setup() { //TGA_PRO_REVB(x); //TGA_PRO_REVA(x); - SPI_MEM0_4M(); - //SPI_MEM0_1M(); // use this line instead of you have the older 1Mbit memory + SPI_MEM0_64M(); // Optional 64Mbit SPI RAM + //SPI_MEM0_4M(); // Older REVB / REVA boards offered 1M or 4M + //SPI_MEM0_1M(); delay(100); Serial.begin(57600); // Start the serial port diff --git a/examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino b/examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino index 3ae018f..0cc2dcd 100644 --- a/examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino +++ b/examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino @@ -110,8 +110,9 @@ void setup() { //TGA_PRO_REVB(x); //TGA_PRO_REVA(x); - SPI_MEM0_4M(); - //SPI_MEM0_1M(); // use this line instead of you have the older 1Mbit memory + SPI_MEM0_64M(); // Optional 64Mbit SPI RAM + //SPI_MEM0_4M(); // Older REVB / REVA boards offered 1M or 4M + //SPI_MEM0_1M(); delay(100); delay(100); // wait a bit for serial to be available diff --git a/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino b/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino index 6282873..930ae28 100644 --- a/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino +++ b/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino @@ -113,8 +113,9 @@ void setup() { #endif #if defined(RUN_MEMO_TEST) - SPI_MEM0_4M(); // Declare the correct memory size - // SPI_MEM0_1M(); // older boards only had 1M memories + SPI_MEM0_64M(); // declare the 64Mbit optional PSI memory + //SPI_MEM0_4M(); // REVB and REVA came with 4M or 1M + // SPI_MEM0_1M(); spiMem0.begin(); delay(10); if (spiTest(&spiMem0, 0)) { Serial.println("SPI0 testing PASSED!");} #endif diff --git a/keywords.txt b/keywords.txt index 303d8a6..5194100 100644 --- a/keywords.txt +++ b/keywords.txt @@ -15,10 +15,11 @@ BAAudioEffectDelayExternal KEYWORD1 ####################################### # Methods and Functions (KEYWORD2) ####################################### - +TGA_PRO_MKII_REV1 KEYWORD2 TGA_PRO_REVA KEYWORD2 TGA_PRO_REVB KEYWORD2 TGA_PRO_EXPAND_REV2 KEYWORD2 +SPI_MEM0_64M KEYWORD2 SPI_MEM0_1M KEYWORD2 SPI_MEM0_4M KEYWORD2 SPI_MEM1_1M KEYWORD2 @@ -31,4 +32,4 @@ BAHardwareConfig KEYWORD1 ####################################### # Constants (LITERAL1) -####################################### \ No newline at end of file +#######################################