From 8bf7f603ae8c441c7734c9dcdc5ee2805a620fb4 Mon Sep 17 00:00:00 2001 From: Ahmed BOUDJELIDA Date: Mon, 16 Oct 2023 11:00:28 +0200 Subject: [PATCH] contrib/firmware: remove unnecessary delay commands in the i2c bit-banging implementation Change-Id: I741244be7a1bf186cfcb66a5b93e2a1a2ab0fde5 Signed-off-by: Ahmed BOUDJELIDA Reviewed-on: https://review.openocd.org/c/openocd/+/7809 Tested-by: jenkins Reviewed-by: Antonio Borneo --- contrib/firmware/angie/c/src/usb.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/contrib/firmware/angie/c/src/usb.c b/contrib/firmware/angie/c/src/usb.c index 747fef1246..e284efdf58 100644 --- a/contrib/firmware/angie/c/src/usb.c +++ b/contrib/firmware/angie/c/src/usb.c @@ -773,8 +773,6 @@ void i2c_recieve(void) /* ack: */ uint8_t ack = get_ack(); - delay_us(10); - /* send data */ if (reg_adr_check) { //if there is a byte reg send_byte(reg_adr); @@ -782,8 +780,6 @@ void i2c_recieve(void) ack = get_ack(); } - delay_us(10); - /* repeated start: */ repeated_start(); /* address: */ @@ -791,8 +787,6 @@ void i2c_recieve(void) /* get ack: */ ack = get_ack(); - delay_us(10); - /* receive data */ for (uint8_t i = 0; i < count; i++) { EP8FIFOBUF[i] = receive_byte(); @@ -801,13 +795,9 @@ void i2c_recieve(void) send_ack(); } - delay_ms(1); - /* stop */ stop_cd(); - delay_us(10); - EP8BCH = 0; //EP8 syncdelay(3); EP8BCL = count; //EP8