changed AMS_CAN.h -> can.h

This commit is contained in:
Hamza
2024-05-24 15:21:29 +02:00
parent 6f26e46e51
commit 30b3aa4dd1
8 changed files with 49 additions and 108 deletions

16
Core/Inc/can.h Normal file
View File

@ -0,0 +1,16 @@
#include "stm32f3xx_hal.h"
#include "stm32f3xx_hal_can.h"
#include "stm32f3xx_hal_def.h"
#include "state_machine.h"
#include <stdint.h>
#define CAN_ID_IN 0x501
#define CAN_ID_OUT 0x502
void can_init(CAN_HandleTypeDef* hcan);
void can_handle_send_status();
void can_handle_recieve_command(CAN_RxHeaderTypeDef* header, uint8_t* data);