Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
想写个模拟IIC,但在读SDA并判断ACK时,不知道应该用哪个函数读GPIO值,SDK中只有uint8_t gpio_portX_read(void)这个函数,但没有详细描述
get current value of gpio PORTA. #define I2C_SDA_PIN 7 (gpio_porta_read() & BIT(I2C_SDA_PIN))