steering-wheel/Core/Inc/vehicle.h
Jasper v. Blanckenburg 2347b738c5 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.
2023-05-23 02:20:00 +02:00

31 lines
499 B
C

#ifndef __INC_VEHICLE_H
#define __INC_VEHICLE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "params.h"
#include "stw_defines.h"
void vehicle_select_mission(Mission mission);
void vehicle_broadcast_param(ParamType param, int32_t value);
#ifndef SIMULATOR
#include "tx_port.h"
#include "stm32h7xx_hal.h"
void vehicle_thread_entry(ULONG hfdcan_addr);
void vehicle_broadcast_buttons(GPIO_PinState *button_states);
#endif // SIMULATOR
#ifdef __cplusplus
}
#endif
#endif // __INC_VEHICLE_H