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:
2023-05-23 02:19:46 +02:00
parent 6543ac4d95
commit 2347b738c5
19 changed files with 255 additions and 204 deletions

View File

@ -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

View File

@ -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
View File

@ -0,0 +1,3 @@
#include "vehicle_state.h"
VehicleState vehicle_state = {0};