相关代码 |
|
#include "Core A.h" void main(void) { t_I2C_Message I2C_Message; I2C_SM_Clock_Init(); Init_Interrupts(); I2C_Message.Dev_Addr = 0x88; // (bit 0 of Dev_Addr is R/W indicator; see spec) I2C_Message.Reg_Addr = 0x00; I2C_Message.Data = 0x06; I2C_Setup(&I2C_Message); I2C_SM_Clock_Enable(); // Timer ISR contains code to advance I2C state machine while(1); }
相关资源 |
|