File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ void i2cInitFix(i2c_t * i2c){
348
348
{
349
349
log_e ("Busy at initialization!" );
350
350
}
351
+ i2c -> dev -> ctr .trans_start = 1 ;
351
352
uint16_t count = 50000 ;
352
353
while ((!i2c -> dev -> command [2 ].done ) && (-- count > 0 ));
353
354
I2C_MUTEX_UNLOCK ();
@@ -365,13 +366,6 @@ void i2cReset(i2c_t* i2c){
365
366
I2C_MUTEX_UNLOCK ();
366
367
}
367
368
368
- //** 11/2017 Stickbreaker attempt at ISR for I2C hardware
369
- // liberally stolen from ESP_IDF /drivers/i2c.c
370
- esp_err_t i2c_isr_free (intr_handle_t handle ){
371
-
372
- return esp_intr_free (handle );
373
- }
374
-
375
369
/* Stickbreaker ISR mode debug support
376
370
*/
377
371
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
@@ -1163,7 +1157,7 @@ return reason;
1163
1157
1164
1158
i2c_err_t i2cReleaseISR (i2c_t * i2c ){
1165
1159
if (i2c -> intr_handle ){
1166
- esp_err_t error = i2c_isr_free (i2c -> intr_handle );
1160
+ esp_err_t error = esp_intr_free (i2c -> intr_handle );
1167
1161
// log_e("released ISR=%d",error);
1168
1162
i2c -> intr_handle = NULL ;
1169
1163
}
You can’t perform that action at this time.
0 commit comments