你好!我使用的是Tiva C LaunchPad,EK-TM4C123GXL,欲根据Sensor Library中的API通过I2C MASTER DRIVER与MPU6050建立传输读取数据供四轴飞行器用,但是配置I2C时遇到一些问题:
Prior to initializing the I2C master driver, it is the application’s responsibility to perform the following actions
1. Configure the GPIO pins used for the I2C SCL and SDA pins (已配置I2C0 PB2-SCL PB3-SDA)
2. Enable the I2C module
3. Install an interrupt handler for the I2C interrupt that calls the I2CMIntHandler() API (it is recommended to do this at compile time by placing the interrupt handler into the vector table in flash)
其中2、3项具体该如何配置?才能使用I2CMASTER DRIVER以及MPU6050的API?
还有I2CM大多函数参数表第一项的 I2C master driver instance data是代表什么意思?如何理解?
本人是学生,知识肤浅,多多包涵!THANKS!