AudioDriver works, now working on HAL
This commit is contained in:
parent
44063d2eb0
commit
a325bda594
4 changed files with 40 additions and 2 deletions
6
AppDefs.hpp
Normal file
6
AppDefs.hpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef __APP_DEFS_HPP__
|
||||
#define __APP_DEFS_HPP__
|
||||
|
||||
|
||||
|
||||
#endif // __APP_DEFS_HPP__
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
#include "src/memllib/audio/AudioDriver.hpp"
|
||||
|
||||
volatile bool core1_ready = false;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
Serial.println("Core 0: Waiting for Core 1 setup...");
|
||||
while (!core1_ready) {
|
||||
delay(1);
|
||||
}
|
||||
Serial.println("Core 0: Starting main loop");
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void setup1()
|
||||
{
|
||||
Serial.println("Core 1: Starting setup");
|
||||
AudioDriver_Output::Setup();
|
||||
AudioDriver_Output::SetCallback(AudioDriver_Output::silence_);
|
||||
core1_ready = true;
|
||||
Serial.println("Core 1: Setup complete");
|
||||
}
|
||||
|
||||
void loop1()
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit d48ec7d257ec502a0b9de2d83872cd53f53b39c6
|
||||
Subproject commit f5be91ca5e30fd020236ee07e1078e994d89251c
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 09d49e9077c9e326deece167211bf54141d0655b
|
||||
Subproject commit 1a0ffa0e13dca160fe0b7c9e90ee56346181e28b
|
||||
Loading…
Reference in a new issue