PER Firmware
Loading...
Searching...
No Matches
config.h
1#ifndef CONFIG_H
2#define CONFIG_H
10// ! IS_FRONT_DRIVELINE and IS_REAR_DRIVELINE is defined by the CMake, do not define it manually here
11
12// Check to prevent both being defined at the same time
13#if defined(IS_FRONT_DRIVELINE) && defined(IS_REAR_DRIVELINE)
14#error "IS_FRONT_DRIVELINE and IS_REAR_DRIVELINE cannot both be defined"
15#endif
16
17// Check to prevent neither being defined
18#if !defined(IS_FRONT_DRIVELINE) && !defined(IS_REAR_DRIVELINE)
19#error "Either IS_FRONT_DRIVELINE or IS_REAR_DRIVELINE must be defined"
20#endif
21
22#ifdef IS_FRONT_DRIVELINE
23#define SEND_SHOCKPOTS CAN_SEND_front_shockpots
24#define SEND_OIL_TEMPS CAN_SEND_front_oil_temps
25#define SEND_INIT CAN_SEND_front_driveline_init
26#endif
27
28#ifdef IS_REAR_DRIVELINE
29#define SEND_SHOCKPOTS CAN_SEND_rear_shockpots
30#define SEND_OIL_TEMPS CAN_SEND_rear_oil_temps
31#define SEND_INIT CAN_SEND_rear_driveline_init
32#endif
33
34#endif // CONFIG_H