contrib/firmware: remove unnecessary delay commands in the i2c bit-banging implementation

Change-Id: I741244be7a1bf186cfcb66a5b93e2a1a2ab0fde5
Signed-off-by: Ahmed BOUDJELIDA <aboudjelida@nanoxplore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7809
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Ahmed BOUDJELIDA 2023-10-16 11:00:28 +02:00 committed by Antonio Borneo
parent 393da819b1
commit 8bf7f603ae
1 changed files with 0 additions and 10 deletions

View File

@ -773,8 +773,6 @@ void i2c_recieve(void)
/* ack: */ /* ack: */
uint8_t ack = get_ack(); uint8_t ack = get_ack();
delay_us(10);
/* send data */ /* send data */
if (reg_adr_check) { //if there is a byte reg if (reg_adr_check) { //if there is a byte reg
send_byte(reg_adr); send_byte(reg_adr);
@ -782,8 +780,6 @@ void i2c_recieve(void)
ack = get_ack(); ack = get_ack();
} }
delay_us(10);
/* repeated start: */ /* repeated start: */
repeated_start(); repeated_start();
/* address: */ /* address: */
@ -791,8 +787,6 @@ void i2c_recieve(void)
/* get ack: */ /* get ack: */
ack = get_ack(); ack = get_ack();
delay_us(10);
/* receive data */ /* receive data */
for (uint8_t i = 0; i < count; i++) { for (uint8_t i = 0; i < count; i++) {
EP8FIFOBUF[i] = receive_byte(); EP8FIFOBUF[i] = receive_byte();
@ -801,13 +795,9 @@ void i2c_recieve(void)
send_ack(); send_ack();
} }
delay_ms(1);
/* stop */ /* stop */
stop_cd(); stop_cd();
delay_us(10);
EP8BCH = 0; //EP8 EP8BCH = 0; //EP8
syncdelay(3); syncdelay(3);
EP8BCL = count; //EP8 EP8BCL = count; //EP8