wire up CAN init

This commit is contained in:
Matthew Kennedy 2023-08-27 10:49:33 -07:00
parent 71327511e0
commit 7ad7f55eb8
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,8 @@
#include "hal.h"
#include "can_hw.h"
extern "C" {
#include "boot.h"
}
@ -13,7 +15,10 @@ extern "C" {
****************************************************************************************/
extern "C" void CanInit(void)
{
// TODO
// TODO: init pins?
auto cfg = findCanConfig(B500KBPS);
canStart(&CAND1, cfg);
}

View File

@ -183,6 +183,7 @@ CPPSRC = $(ALLCPPSRC) \
$(HW_LAYER_EMS_CPP) \
$(BOARDCPPSRC) \
$(PROJECT_DIR)/util/efilib.cpp \
$(PROJECT_DIR)/hw_layer/drivers/can/can_config.cpp \
$(PROJECT_DIR)/hw_layer/pin_repository.cpp \
$(RUSEFI_LIB_CPP) \
$(PROJECT_DIR)/bootloader/openblt_chibios/openblt_can.cpp \