Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frozen/Adafruit_CircuitPython_HID
2 changes: 1 addition & 1 deletion frozen/Adafruit_CircuitPython_SD
2 changes: 1 addition & 1 deletion frozen/Adafruit_CircuitPython_asyncio
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
#define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO5, .rx = &pin_GPIO16}}

#define DOUBLE_TAP_PIN (&pin_GPIO10)

// Reduce wifi.radio.tx_power due to the antenna design of this board
#define CIRCUITPY_WIFI_DEFAULT_TX_POWER (15)
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
#define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO5, .rx = &pin_GPIO16}}

#define DOUBLE_TAP_PIN (&pin_GPIO10)

// Reduce wifi.radio.tx_power due to the antenna design of this board
#define CIRCUITPY_WIFI_DEFAULT_TX_POWER (15)
7 changes: 4 additions & 3 deletions ports/stm/common-hal/busio/SPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
const mcu_pin_obj_t *sck, const mcu_pin_obj_t *mosi,
const mcu_pin_obj_t *miso, bool half_duplex) {

// Ensure the object starts in its deinit state before check_pins sets
// self->sck, self->mosi, and self->miso.
common_hal_busio_spi_mark_deinit(self);

int periph_index = check_pins(self, sck, mosi, miso);
SPI_TypeDef *SPIx = mcu_spi_banks[periph_index - 1];

// Ensure the object starts in its deinit state.
common_hal_busio_spi_mark_deinit(self);

// Start GPIO for each pin
GPIO_InitTypeDef GPIO_InitStruct = {0};
GPIO_InitStruct.Pin = pin_mask(sck->number);
Expand Down
Loading