MCU_CAN.h 421 B

1234567891011121314151617181920
  1. #ifndef MCU_CAN_H_
  2. #define MCU_CAN_H_
  3. #include <stdint.h>
  4. #include "stm32f4xx_board.h"
  5. #define APP_START_ADDRESS ADDR_FLASH_SECTOR_3
  6. #define APP_STOP_ADDRESS ADDR_FLASH_SECTOR_7
  7. typedef struct
  8. {
  9. uint32_t id;
  10. uint8_t buf[8];
  11. uint8_t buf_len;
  12. } can_t;
  13. extern void can_tx_isr_i(uint8_t p);
  14. extern void can_rx_isr_i(uint8_t p, uint32_t msgId, uint8_t * data, uint8_t len);
  15. #endif /* MCU_CAN_H_ */