mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-11 21:08:16 +02:00
Fix usb initialization for emulation.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -305,11 +305,12 @@ int main(void) {
|
|||||||
init_rtc();
|
init_rtc();
|
||||||
|
|
||||||
#ifndef ENABLE_EMULATION
|
#ifndef ENABLE_EMULATION
|
||||||
|
|
||||||
phy_init();
|
phy_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
usb_init();
|
usb_init();
|
||||||
|
|
||||||
|
#ifndef ENABLE_EMULATION
|
||||||
#ifdef ESP_PLATFORM
|
#ifdef ESP_PLATFORM
|
||||||
gpio_pad_select_gpio(BOOT_PIN);
|
gpio_pad_select_gpio(BOOT_PIN);
|
||||||
gpio_set_direction(BOOT_PIN, GPIO_MODE_INPUT);
|
gpio_set_direction(BOOT_PIN, GPIO_MODE_INPUT);
|
||||||
|
|||||||
Reference in New Issue
Block a user