mirror of https://github.com/FOME-Tech/fome-fw.git
wire up CAN init
This commit is contained in:
parent
71327511e0
commit
7ad7f55eb8
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue