add individual LED configuration over USB ethernet

This commit is contained in:
2025-08-27 15:01:11 -04:00
parent c6ac21a15b
commit 26d89c5492
21 changed files with 3135 additions and 128 deletions
+9 -1
View File
@@ -4,6 +4,7 @@
#include <string.h>
#include "pico/stdlib.h"
#include "pico/multicore.h"
#include "pio_usb.h"
#include "tusb.h"
@@ -50,8 +51,15 @@ static void usb_host_init(void) {
}
void usb_host_main(void) {
// allow other core to pause host process - required for saving to flash
multicore_lockout_victim_init();
usb_host_init();
if (load_rgb_config()) {
tud_cdc_write_str("found previous RGB configuration\n");
}
while (true) {
switch ( host_state ) {
case HOST_MOUNTED:
@@ -242,7 +250,7 @@ static void report_desc_init(struct report_desc *descriptor) {
descriptor->next = NULL;
}
// free memory and teardown usb->bt report ID mappings for report descriptor struct
// free memory for report descriptor struct
static void report_desc_free(struct report_desc *descriptor) {
if (descriptor != NULL) {
if (descriptors == descriptor) {