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: */
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