File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff 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-
9086static 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 ,
You can’t perform that action at this time.
0 commit comments