steering-wheel/Core/Inc/vehicle.h

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