Commit 4e79ecf Commaremote
committed
1 parent ef880b7 commit 4e79ecf Copy full SHA for 4e79ecf
File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ int controls_allowed = 0;
31
31
#endif
32
32
#include "safety/safety_gm.h"
33
33
#include "safety/safety_ford.h"
34
+ #include "safety/safety_cadillac.h"
34
35
#include "safety/safety_elm327.h"
35
36
36
37
const safety_hooks * current_hooks = & nooutput_hooks ;
@@ -68,6 +69,7 @@ typedef struct {
68
69
#define SAFETY_GM 3
69
70
#define SAFETY_HONDA_BOSCH 4
70
71
#define SAFETY_FORD 5
72
+ #define SAFETY_CADILLAC 6
71
73
#define SAFETY_TOYOTA_IPAS 0x1335
72
74
#define SAFETY_TOYOTA_NOLIMITS 0x1336
73
75
#define SAFETY_ALLOUTPUT 0x1337
@@ -80,6 +82,7 @@ const safety_hook_config safety_hook_registry[] = {
80
82
{SAFETY_TOYOTA , & toyota_hooks },
81
83
{SAFETY_GM , & gm_hooks },
82
84
{SAFETY_FORD , & ford_hooks },
85
+ {SAFETY_CADILLAC , & cadillac_hooks },
83
86
{SAFETY_TOYOTA_NOLIMITS , & toyota_nolimits_hooks },
84
87
#ifdef PANDA
85
88
{SAFETY_TOYOTA_IPAS , & toyota_ipas_hooks },
Original file line number Diff line number Diff line change
1
+ // Placeholder file, actual safety is TODO.
2
+ const safety_hooks cadillac_hooks = {
3
+ .init = alloutput_init ,
4
+ .rx = default_rx_hook ,
5
+ .tx = alloutput_tx_hook ,
6
+ .tx_lin = alloutput_tx_lin_hook ,
7
+ .ignition = alloutput_ign_hook ,
8
+ .fwd = alloutput_fwd_hook ,
9
+ };
10
+
You can’t perform that action at this time.
0 commit comments