Turn on onboard led on power on
(causes the synth to work for some reason)
This commit is contained in:
@@ -58,6 +58,8 @@ target_include_directories(sint-gauntlet PRIVATE
|
|||||||
|
|
||||||
# Add any user requested libraries
|
# Add any user requested libraries
|
||||||
target_link_libraries(sint-gauntlet
|
target_link_libraries(sint-gauntlet
|
||||||
|
pico_stdlib
|
||||||
|
pico_cyw43_arch_none
|
||||||
hardware_pio
|
hardware_pio
|
||||||
hardware_interp
|
hardware_interp
|
||||||
hardware_timer
|
hardware_timer
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
#include <hardware/sync.h>
|
#include "pico/cyw43_arch.h"
|
||||||
|
#include <arm_acle.h>
|
||||||
#include <hardware/irq.h>
|
#include <hardware/irq.h>
|
||||||
|
#include <hardware/sync.h>
|
||||||
#include <pico/stdio.h>
|
#include <pico/stdio.h>
|
||||||
#include <pico/time.h>
|
#include <pico/time.h>
|
||||||
#include <stdnoreturn.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdnoreturn.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "hardware/gpio.h"
|
#include "hardware/gpio.h"
|
||||||
#include "hardware/pwm.h"
|
#include "hardware/pwm.h"
|
||||||
@@ -113,12 +115,16 @@ noreturn void core0_loop(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
stdio_init_all();
|
stdio_init_all();
|
||||||
|
if (cyw43_arch_init())
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1); // sign of life
|
||||||
|
|
||||||
core1_init();
|
core1_init();
|
||||||
core0_init();
|
core0_init();
|
||||||
|
|
||||||
multicore_launch_core1(core1_loop);
|
multicore_launch_core1(core1_loop);
|
||||||
core0_loop();
|
core0_loop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user