Skip to content

Commit 4e79ecf

Browse files
author
Commaremote
committed
Cadillac: added safety file placeholder
1 parent ef880b7 commit 4e79ecf

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

board/safety.h

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ int controls_allowed = 0;
3131
#endif
3232
#include "safety/safety_gm.h"
3333
#include "safety/safety_ford.h"
34+
#include "safety/safety_cadillac.h"
3435
#include "safety/safety_elm327.h"
3536

3637
const safety_hooks *current_hooks = &nooutput_hooks;
@@ -68,6 +69,7 @@ typedef struct {
6869
#define SAFETY_GM 3
6970
#define SAFETY_HONDA_BOSCH 4
7071
#define SAFETY_FORD 5
72+
#define SAFETY_CADILLAC 6
7173
#define SAFETY_TOYOTA_IPAS 0x1335
7274
#define SAFETY_TOYOTA_NOLIMITS 0x1336
7375
#define SAFETY_ALLOUTPUT 0x1337
@@ -80,6 +82,7 @@ const safety_hook_config safety_hook_registry[] = {
8082
{SAFETY_TOYOTA, &toyota_hooks},
8183
{SAFETY_GM, &gm_hooks},
8284
{SAFETY_FORD, &ford_hooks},
85+
{SAFETY_CADILLAC, &cadillac_hooks},
8386
{SAFETY_TOYOTA_NOLIMITS, &toyota_nolimits_hooks},
8487
#ifdef PANDA
8588
{SAFETY_TOYOTA_IPAS, &toyota_ipas_hooks},

board/safety/safety_cadillac.h

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+

0 commit comments

Comments
 (0)