add individual LED configuration over USB ethernet
This commit is contained in:
+9
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user