28 lines
476 B
C
28 lines
476 B
C
#include "pico/stdlib.h"
|
|
#include "pico/time.h"
|
|
#include "usbd_core.h"
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
/**
|
|
*
|
|
*/
|
|
#include "msc_ram_template.c"
|
|
|
|
int main(void) {
|
|
stdio_init_all();
|
|
printf("CherryUSB device msc ram example\n");
|
|
extern void msc_ram_init(void);
|
|
msc_ram_init();
|
|
|
|
// Wait until configured
|
|
while (!usb_device_is_configured()) {
|
|
tight_loop_contents();
|
|
}
|
|
|
|
// Everything is interrupt driven so just loop here
|
|
while (1) {
|
|
}
|
|
return 0;
|
|
}
|