Update sample projects to cmake

This commit is contained in:
Wayne Venables
2023-02-25 23:56:46 -08:00
parent 4fc98f818b
commit c3581b1703
315 changed files with 1104 additions and 1547 deletions

View File

@@ -7,6 +7,7 @@
#include "pico/stdlib.h"
#include "pico/printf.h"
#include "pico/multicore.h"
#include "picovga.h"
#include "vga.pio.h"
@@ -1057,6 +1058,17 @@ void VgaCore()
}
}
/**
* @brief Starts the VGA core on core1
*/
void StartVgaCore()
{
// stop VGA core
multicore_reset_core1();
// run VGA core
multicore_launch_core1(VgaCore);
}
// request to initialize VGA videomode, NULL=only stop driver (wait to initialization completes)
void VgaInitReq(const sVmode* vmode)
{