Updates some test files

pull/17/head
Blackaddr 2 years ago
parent 819420664d
commit 813feb55b7
  1. 9
      examples/Tests/DMA_MEM0_test/DMA_MEM0_test.ino
  2. 6
      examples/Tests/DMA_MEM1_test/DMA_MEM1_test.ino
  3. 2
      examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino

@ -28,7 +28,7 @@ using namespace BALibrary;
#define SPI_ADDR_1_SHIFT 8
#define SPI_ADDR_0_MASK 0x0000FF
SPISettings memSettings(20000000, MSBFIRST, SPI_MODE0);
const int cs0pin = 15;
const int cs0pin = SPI0_CS_PIN;
BAGpio gpio; // access to User LED
BASpiMemoryDMA spiMem0(SpiDeviceId::SPI_DEVICE0);
@ -56,10 +56,15 @@ bool compareBuffers16(uint16_t *a, uint16_t *b, size_t numWords)
}
size_t SPI_MAX_ADDR;
;
void setup() {
TGA_PRO_MKII_REV1(); // Declare the version of the TGA Pro you are using.
//TGA_PRO_REVB(x);
//TGA_PRO_REVA(x);
gpio.begin();
Serial.begin(57600);
while (!Serial) { yield(); }
delay(5);

@ -58,6 +58,12 @@ size_t SPI_MAX_ADDR = 0;
void setup() {
TGA_PRO_MKII_REV1(); // Declare the version of the TGA Pro you are using.
//TGA_PRO_REVB(x);
//TGA_PRO_REVA(x);
gpio.begin();
Serial.begin(57600);
while (!Serial) { yield(); }
delay(5);

@ -90,6 +90,8 @@ void setup() {
//TGA_PRO_REVB(x);
//TGA_PRO_REVA(x);
gpio.begin();
Serial.begin(57600);
//while (!Serial) { yield(); }
delay(500);

Loading…
Cancel
Save