Implement rudimentary CAN communication
This commit is contained in:
		@ -55,6 +55,7 @@ void SVC_Handler(void);
 | 
			
		||||
void DebugMon_Handler(void);
 | 
			
		||||
void PendSV_Handler(void);
 | 
			
		||||
void SysTick_Handler(void);
 | 
			
		||||
void FDCAN1_IT0_IRQHandler(void);
 | 
			
		||||
void I2C2_EV_IRQHandler(void);
 | 
			
		||||
void EXTI15_10_IRQHandler(void);
 | 
			
		||||
/* USER CODE BEGIN EFP */
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										15
									
								
								Core/Inc/vehicle.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Core/Inc/vehicle.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
			
		||||
#ifndef __VEHICLE_H
 | 
			
		||||
#define __VEHICLE_H
 | 
			
		||||
 | 
			
		||||
#include "state.h"
 | 
			
		||||
#include "stm32g4xx_hal.h"
 | 
			
		||||
#include "stm32g4xx_hal_fdcan.h"
 | 
			
		||||
 | 
			
		||||
#define CAN_ID_MISSION_SELECT 0x400
 | 
			
		||||
#define CAN_ID_AS_MISSION_FB 0x410
 | 
			
		||||
 | 
			
		||||
void vehicle_init(FDCAN_HandleTypeDef *handle);
 | 
			
		||||
 | 
			
		||||
void vehicle_send_mission_select(Mission mission);
 | 
			
		||||
 | 
			
		||||
#endif // __VEHICLE_H
 | 
			
		||||
		Reference in New Issue
	
	Block a user