Update sample projects to cmake
This commit is contained in:
12
src/vga.cpp
12
src/vga.cpp
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user