riscv-mcu / GD32VF103_Firmware_Library

Original GD32VF103 Firmware Library
128 stars 37 forks source link

ADDSEND bit not be set, when check I2C_FLAG_ADDSEND status #13

Open gukingZ opened 2 years ago

gukingZ commented 2 years ago
In the Master_tansmitter_slave recever demo, after send slave address to I2C bus
     while(!i2c_flag_get(I2C0, I2C_FLAG_ADDSEND));
The regsiter always return vlaue 0.
How to do about this?