more on tinyusb setup
This commit is contained in:
parent
1786aea78e
commit
5c858f78a1
5 changed files with 280 additions and 2 deletions
|
@ -3,7 +3,10 @@
|
|||
#include "pico/multicore.h"
|
||||
#include "pico/stdlib.h"
|
||||
#include "pico/util/queue.h"
|
||||
#include "tusb.h"
|
||||
#include "bsp/board.h"
|
||||
|
||||
#include "tusb_config.h"
|
||||
#include "keyer.h"
|
||||
#include "settings.h"
|
||||
|
||||
|
@ -92,7 +95,9 @@ int main()
|
|||
// https://github.com/raspberrypi/pico-sdk/issues/1152#issuecomment-1418248639
|
||||
|
||||
setup();
|
||||
|
||||
board_init();
|
||||
tud_init(BOARD_TUD_RHPORT);
|
||||
|
||||
printf("Hello from core0!\n");
|
||||
|
||||
Settings settings{read_settings()};
|
||||
|
@ -108,6 +113,7 @@ int main()
|
|||
while (true) {
|
||||
// Currently there's nothing to do on core0
|
||||
sleep_ms(1000);
|
||||
tud_task();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue