STM32F103单片机CAN总线通信实验DEMO测试软件例程源码程序
int main (void){//主程序
u8 buff[8];
u8 x;
delay_ms(100); //上电时等待其他器件就绪
RCC_Configuration(); //系统时钟初始化
TOUCH_KEY_Init();//触摸按键初始化
RELAY_Init();//继电器初始化
CAN1_Configuration(); //CAN总线初始化 返回0表示成功
I2C_Configuration();//I2C初始化
OLED0561_Init(); //OLED初始化
OLED_DISPLAY_8x16_BUFFER(0," YoungTalk "); //显示字符串
OLED_DISPLAY_8x16_BUFFER(2," CAN TEST "); //显示字符串
OLED_DISPLAY_8x16_BUFFER(6,"TX: RX: "); //显示字符串
while(1){
if(!GPIO_ReadInputDataBit(TOU