Skip to content

Commit

Permalink
wire up CAN init
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Aug 27, 2023
1 parent 7132751 commit 7ad7f55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion firmware/bootloader/openblt_chibios/openblt_can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "hal.h"

#include "can_hw.h"

extern "C" {
#include "boot.h"
}
Expand All @@ -13,7 +15,10 @@ extern "C" {
****************************************************************************************/
extern "C" void CanInit(void)
{
// TODO
// TODO: init pins?

auto cfg = findCanConfig(B500KBPS);
canStart(&CAND1, cfg);
}


Expand Down
1 change: 1 addition & 0 deletions firmware/bootloader/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 7ad7f55

Please sign in to comment.