changed AMS_CAN.h -> can.h
This commit is contained in:
		@ -1,29 +0,0 @@
 | 
			
		||||
/*
 | 
			
		||||
 * AMS_CAN.h
 | 
			
		||||
 *
 | 
			
		||||
 *  Created on: Mar 19, 2022
 | 
			
		||||
 *      Author: jasper
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef INC_AMS_CAN_H_
 | 
			
		||||
#define INC_AMS_CAN_H_
 | 
			
		||||
 | 
			
		||||
#include "main.h"
 | 
			
		||||
 | 
			
		||||
#include "stm32f3xx_hal.h"
 | 
			
		||||
#include "stm32f3xx_hal_can.h"
 | 
			
		||||
#include "stm32f3xx_hal_def.h"
 | 
			
		||||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
void ams_can_init(CAN_HandleTypeDef* hcan);
 | 
			
		||||
 | 
			
		||||
void ams_can_handle_ams_msg(CAN_RxHeaderTypeDef* header, uint8_t* data);
 | 
			
		||||
 | 
			
		||||
void ams_can_send_status();
 | 
			
		||||
 | 
			
		||||
HAL_StatusTypeDef ams_can_wait_for_free_mailboxes(CAN_HandleTypeDef* handle,
 | 
			
		||||
                                                  int num_mailboxes,
 | 
			
		||||
                                                  uint32_t timeout);
 | 
			
		||||
 | 
			
		||||
#endif /* INC_AMS_CAN_H_ */
 | 
			
		||||
@ -11,7 +11,7 @@
 | 
			
		||||
#include "ADBMS_Abstraction.h"
 | 
			
		||||
#include "ADBMS_CMD_MAKROS.h"
 | 
			
		||||
#include "ADBMS_LL_Driver.h"
 | 
			
		||||
#include "AMS_CAN.h"
 | 
			
		||||
#include "can.h"
 | 
			
		||||
 | 
			
		||||
typedef enum {
 | 
			
		||||
  AMSDEACTIVE,
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
#ifndef INC_TMP1075_H_
 | 
			
		||||
#define INC_TMP1075_H_
 | 
			
		||||
 | 
			
		||||
#include "AMS_CAN.h"
 | 
			
		||||
#include "can.h"
 | 
			
		||||
#include "common_defs.h"
 | 
			
		||||
#include "stm32f3xx_hal.h"
 | 
			
		||||
#include "stm32f3xx_hal_def.h"
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										16
									
								
								Core/Inc/can.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Core/Inc/can.h
									
									
									
									
									
										Normal 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);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user