Skip to content

Commit 3e90ddc

Browse files
authored
Merge pull request #11 from bitcraze/evoggy/fix-spi-stops-working
Improve SPI stability
2 parents 1cf0ce4 + 1f3ca89 commit 3e90ddc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

main/spi_transport.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ static IRAM_ATTR void spi_post_setup(struct spi_slave_transaction_t * _transacti
8383
gpio_set_level(ESP_RTT_GPIO, 1);
8484
}
8585

86-
static IRAM_ATTR void spi_transaction_started_handler(void * _param) {
87-
gpio_set_level(ESP_RTT_GPIO, 0);
88-
}
89-
9086
static IRAM_ATTR void spi_post_transfer(struct spi_slave_transaction_t * _transaction) {
9187
gpio_set_level(ESP_RTT_GPIO, 0);
9288
}
@@ -164,13 +160,10 @@ void spi_transport_init() {
164160
gpio_intr_enable(GAP_RTT_GPIO);
165161

166162
gpio_config_t spi_cs_int_config = {
167-
.intr_type = GPIO_INTR_NEGEDGE,
168163
.mode = GPIO_MODE_INPUT,
169164
.pin_bit_mask = (1ull<<SPI_CS_GPIO)
170165
};
171166
gpio_config(&spi_cs_int_config);
172-
gpio_isr_handler_add(SPI_CS_GPIO, spi_transaction_started_handler, NULL);
173-
gpio_intr_enable(SPI_CS_GPIO);
174167

175168
gpio_config_t esp_rtt_conf = {
176169
.mode = GPIO_MODE_OUTPUT,

0 commit comments

Comments
 (0)