| 1234567891011121314151617181920 |
- #ifndef MCU_CAN_H_
- #define MCU_CAN_H_
- #include <stdint.h>
- #include "stm32f4xx_board.h"
- #define APP_START_ADDRESS ADDR_FLASH_SECTOR_3
- #define APP_STOP_ADDRESS ADDR_FLASH_SECTOR_7
- typedef struct
- {
- uint32_t id;
- uint8_t buf[8];
- uint8_t buf_len;
- } can_t;
- extern void can_tx_isr_i(uint8_t p);
- extern void can_rx_isr_i(uint8_t p, uint32_t msgId, uint8_t * data, uint8_t len);
- #endif /* MCU_CAN_H_ */
|