Skip to content

Commit 5a5570c

Browse files
committed
pre-commit run -all updates
1 parent 2bbdbf0 commit 5a5570c

File tree

6 files changed

+12
-17
lines changed

6 files changed

+12
-17
lines changed

ports/raspberrypi/boards/olimex_rp2350pc/board.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ bool board_reset_pin_number(uint8_t pin_number) {
4040
}
4141

4242
void board_init(void) {
43-
common_hal_usb_host_port_construct(0,0);
43+
common_hal_usb_host_port_construct(0, 0);
4444
picodvi_autoconstruct();
4545
}
46-
47-

ports/raspberrypi/boards/olimex_rp2350pc/mpconfigboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,3 @@
4444
#define CIRCUITPY_DEBUG_TINYUSB 1
4545

4646
// #define CIRCUITPY_SAVES_PARTITION_SIZE (2 * 1024 * 1024)
47-
48-
49-

ports/raspberrypi/boards/olimex_rp2350pc/mpconfigboard.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ CHIP_FAMILY = rp2
1212
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ, P25Q16H"
1313

1414
CIRCUITPY_USB_DEVICE=0
15-
CIRCUITPY_USB_MIDI=0
1615
CIRCUITPY_USB_IDENTIFICATION = 0
17-
CIRCUITPY_USB_CDC = 0
18-
CIRCUITPY_USB_HID = 0
19-
CIRCUITPY_USB_MSC = 0
2016
CIRCUITPY_USB_VIDEO=0
17+
#CIRCUITPY_USB_MIDI=0
18+
#CIRCUITPY_USB_CDC = 0
19+
#CIRCUITPY_USB_HID = 0
20+
#CIRCUITPY_USB_MSC = 0
2121

2222
CIRCUITPY_USB_HOST=1
23-
CIRCUITPY_TINYUSB_HOST=1
24-
CIRCUITPY_USB_HOST_INSTANCE = 0
23+
#CIRCUITPY_TINYUSB_HOST=1
24+
#CIRCUITPY_USB_HOST_INSTANCE = 0
2525

2626
CIRCUITPY_BUILD_EXTENSIONS = uf2
2727
UF2_BOOTLOADER = 1

ports/raspberrypi/boards/olimex_rp2350pc/pins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
1818
{ MP_OBJ_NEW_QSTR(MP_QSTR_D43), MP_ROM_PTR(&pin_GPIO43) }, // 8
1919
{ MP_OBJ_NEW_QSTR(MP_QSTR_D44), MP_ROM_PTR(&pin_GPIO44) }, // 7
2020
{ MP_OBJ_NEW_QSTR(MP_QSTR_D45), MP_ROM_PTR(&pin_GPIO45) }, // 10
21-
21+
2222
// { MP_OBJ_NEW_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO32) },
2323
{ MP_OBJ_NEW_QSTR(MP_QSTR_SDA0), MP_ROM_PTR(&pin_GPIO36) },
2424
{ MP_OBJ_NEW_QSTR(MP_QSTR_D36), MP_ROM_PTR(&pin_GPIO36) },

ports/raspberrypi/common-hal/usb_host/Port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ usb_host_port_obj_t *common_hal_usb_host_port_construct(const mcu_pin_obj_t *dp,
183183
};
184184
tusb_init(0, &host_init);
185185

186-
//tuh_init(0);
186+
// tuh_init(0);
187+
#endif
187188
#endif
188-
#endif
189189

190190
return self;
191191
}

ports/raspberrypi/supervisor/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void port_idle_until_interrupt(void) {
560560
#endif
561561
#if CIRCUITPY_USB_DEVICE
562562
if (!background_callback_pending() && !tud_task_event_ready() && !_woken_up) {
563-
#endif
563+
#endif
564564
#endif
565565
__DSB();
566566
__WFI();
@@ -584,7 +584,7 @@ void port_idle_until_interrupt(void) {
584584
#endif
585585
#if CIRCUITPY_USB_DEVICE
586586
if (!background_callback_pending() && !tud_task_event_ready() && !_woken_up) {
587-
#endif
587+
#endif
588588
#endif
589589
__DSB();
590590
__WFI();

0 commit comments

Comments
 (0)