mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 14:17:51 -04:00
[sw/bootloaer/twi_flash] removed delay before repeated start
This commit is contained in:
parent
b074c4affa
commit
6d310264cf
1 changed files with 0 additions and 6 deletions
|
@ -73,12 +73,6 @@ int twi_flash_read_word(uint32_t addr, uint32_t* rdata) {
|
|||
#error "Invalid TWI_FLASH_ADDR_BYTES configuration!"
|
||||
#endif
|
||||
|
||||
// delay repeated-start with bus released
|
||||
uint32_t ctrl = NEORV32_TWI->CTRL;
|
||||
NEORV32_TWI->CTRL = 0; // disable TWI
|
||||
for(int i = 0; i < 5; i++) asm volatile("nop"); // delay
|
||||
NEORV32_TWI->CTRL = ctrl; // enable TWI
|
||||
|
||||
// repeated-start condition
|
||||
neorv32_twi_generate_start();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue