Skip to content

Commit 94bc51a

Browse files
committed
Enable USB host power and PSRAM
1 parent b82d579 commit 94bc51a

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

ports/raspberrypi/boards/adafruit_fruit_jam/board.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
#if defined(DEFAULT_USB_HOST_5V_POWER)
1616
bool board_reset_pin_number(uint8_t pin_number) {
17-
// if (pin_number == DEFAULT_USB_HOST_5V_POWER->number) {
18-
// // doing this (rather than gpio_init) in this specific order ensures no
19-
// // glitch if pin was already configured as a high output. gpio_init() temporarily
20-
// // configures the pin as an input, so the power enable value would potentially
21-
// // glitch.
22-
// gpio_put(pin_number, 1);
23-
// gpio_set_dir(pin_number, GPIO_OUT);
24-
// gpio_set_function(pin_number, GPIO_FUNC_SIO);
17+
if (pin_number == DEFAULT_USB_HOST_5V_POWER->number) {
18+
// doing this (rather than gpio_init) in this specific order ensures no
19+
// glitch if pin was already configured as a high output. gpio_init() temporarily
20+
// configures the pin as an input, so the power enable value would potentially
21+
// glitch.
22+
gpio_put(pin_number, 1);
23+
gpio_set_dir(pin_number, GPIO_OUT);
24+
gpio_set_function(pin_number, GPIO_FUNC_SIO);
2525

26-
// return true;
27-
// }
26+
return true;
27+
}
2828
return false;
2929
}
3030
#endif

ports/raspberrypi/boards/adafruit_fruit_jam/mpconfigboard.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define MICROPY_HW_MCU_NAME "rp2350b"
99

1010
#define MICROPY_HW_NEOPIXEL (&pin_GPIO32)
11-
// #define MICROPY_HW_NEOPIXEL_COUNT (5)
11+
#define MICROPY_HW_NEOPIXEL_COUNT (5)
1212

1313
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO21)
1414
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO20)
@@ -20,4 +20,5 @@
2020
#define DEFAULT_USB_HOST_DATA_PLUS (&pin_GPIO1)
2121
#define DEFAULT_USB_HOST_DATA_MINUS (&pin_GPIO2)
2222
#define DEFAULT_USB_HOST_5V_POWER (&pin_GPIO11)
23-
// #define CIRCUITPY_PSRAM_CHIP_SELECT (&pin_GPIO47)
23+
24+
#define CIRCUITPY_PSRAM_CHIP_SELECT (&pin_GPIO47)

0 commit comments

Comments
 (0)