code clean up and added comments
This commit is contained in:
@@ -9,17 +9,22 @@
|
||||
|
||||
int main() {
|
||||
stdio_init_all();
|
||||
|
||||
|
||||
// setup multicore processes
|
||||
multicore_reset_core1();
|
||||
multicore_launch_core1(core1_main);
|
||||
|
||||
// allow core 1 to pause core 0
|
||||
// this is needed to allow saving network config to flash
|
||||
multicore_lockout_victim_init();
|
||||
|
||||
// run USB HID device on core 0
|
||||
run_hid_device();
|
||||
}
|
||||
|
||||
|
||||
void core1_main() {
|
||||
// run HTTP services on core 1
|
||||
run_http_server();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user