LWL/MDK-ARM/user/inc/can1.h
youxianghua faacc7b570 提交
2024-07-10 14:01:39 +08:00

36 lines
609 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __CAN1_H
#define __CAN1_H
#include "stm32f10x.h"
//********************************************************************************
//V1.1修改说明 20150528
//修正了CAN初始化函数的相关注释更正了波特率计算公式
//////////////////////////////////////////////////////////////////////////////////
//CAN接收RX0中断使能
#define CAN_RX0_INT_ENABLE 1 //0,不使能;1,使能.
u8 CAN_Mode_Init(u8 tsjw,u8 tbs2,u8 tbs1,u16 brp,u8 mode);//CAN初始化
u32 Can_Send_Msg(u8* msg,u8 len,u32 appid);
u8 Can_Receive_Msg(u8 *buf); //接收数据
#endif