#ifndef __DRV_CAN_H #define __DRV_CAN_H #include "stm32f4xx.h" #define __CAN_BAUD_250K typedef void (*pcan_tx) (void); typedef void (*pcan_rx) (CanRxMsg); void drv_can_init(); // CAN初始化 uint8_t drv_can_msg_tx (uint32_t id, uint8_t id_type, uint8_t *p_data, uint8_t len); void drv_can_rx_back_init (pcan_rx p_fun); void drv_can_tx_back_init (pcan_tx p_fun); #endif