Make header structure compatible with simulator
Currently, the generated Makefile doesn't successfully compile. But it is possible to run the simulator again by manually editing the Makefile.
This commit is contained in:
		@ -9,7 +9,7 @@
 | 
			
		||||
#include "stm32h7xx_hal_spi.h"
 | 
			
		||||
#include "stm32h7xx_hal_tim.h"
 | 
			
		||||
#include "tx_api.h"
 | 
			
		||||
#include "vehicle.h"
 | 
			
		||||
#include "vehicle_state.h"
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
#define LED_SPEED_MIN 15         // km/h
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,7 @@
 | 
			
		||||
 | 
			
		||||
#include "main.h"
 | 
			
		||||
#include "ui.h"
 | 
			
		||||
#include "vehicle_state.h"
 | 
			
		||||
 | 
			
		||||
#include "can-halal.h"
 | 
			
		||||
 | 
			
		||||
@ -32,8 +33,6 @@
 | 
			
		||||
#define CAN_CS_INTERNAL_TEMP_FACTOR 0.01
 | 
			
		||||
#define CAN_ABX_MISC_DISTANCE_TOTAL_FACTOR 0.01
 | 
			
		||||
 | 
			
		||||
VehicleState vehicle_state = {0};
 | 
			
		||||
 | 
			
		||||
void vehicle_thread_entry(ULONG hfdcan_addr) {
 | 
			
		||||
  memset(&vehicle_state, 0, sizeof(vehicle_state));
 | 
			
		||||
  ftcan_init((void *)hfdcan_addr);
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										3
									
								
								Core/Src/vehicle_state.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								Core/Src/vehicle_state.c
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
#include "vehicle_state.h"
 | 
			
		||||
 | 
			
		||||
VehicleState vehicle_state = {0};
 | 
			
		||||
		Reference in New Issue
	
	Block a user