You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
807 B
32 lines
807 B
11 months ago
|
#include "fake_stm.h"
|
||
|
#include "config.h"
|
||
|
#include "can_definitions.h"
|
||
|
|
||
|
bool can_init(uint8_t can_number) { return true; }
|
||
|
void process_can(uint8_t can_number) { }
|
||
|
//int safety_tx_hook(CANPacket_t *to_send) { return 1; }
|
||
|
|
||
|
typedef struct harness_configuration harness_configuration;
|
||
|
void refresh_can_tx_slots_available(void);
|
||
|
void can_tx_comms_resume_usb(void) { };
|
||
|
void can_tx_comms_resume_spi(void) { };
|
||
|
|
||
|
#include "health.h"
|
||
|
#include "faults.h"
|
||
|
#include "libc.h"
|
||
|
#include "boards/board_declarations.h"
|
||
|
#include "safety.h"
|
||
|
#include "main_declarations.h"
|
||
|
#include "drivers/can_common.h"
|
||
|
|
||
|
can_ring *rx_q = &can_rx_q;
|
||
|
can_ring *tx1_q = &can_tx1_q;
|
||
|
can_ring *tx2_q = &can_tx2_q;
|
||
|
can_ring *tx3_q = &can_tx3_q;
|
||
|
|
||
|
#include "comms_definitions.h"
|
||
|
#include "can_comms.h"
|
||
|
|
||
|
// libpanda stuff
|
||
|
#include "safety_helpers.h"
|