kinda usb?

This commit is contained in:
Matthew Kennedy 2023-08-25 22:57:43 -07:00
parent 0944e5c2c8
commit 4b090da610
2 changed files with 6 additions and 6 deletions

View File

@ -14,6 +14,8 @@ endif
# let everyone know that we are compiling bootloader
IS_RE_BOOTLOADER = yes
DDEFS += -DENABLE_AUTO_DETECT_HSE=TRUE -DSTM32_HSECLK=25000000
# disable some modules to shrink bootloader binary
DDEFS += -DEFI_BOOTLOADER
DDEFS += -DHAL_USE_EXT=FALSE -DHAL_USE_ICU=FALSE -DHAL_USE_PWM=FALSE -DHAL_USE_RTC=FALSE -DEF_LUA=FALSE
@ -191,7 +193,6 @@ CPPSRC = $(ALLCPPSRC) \
$(PROJECT_DIR)/controllers/algo/engine_configuration.cpp \
$(PROJECT_DIR)/controllers/persistent_store.cpp \
$(PROJECT_DIR)/hw_layer/io_pins.cpp \
$(PROJECT_DIR)/hw_layer/serial_over_usb/usbcfg.cpp \
$(PROJECT_DIR)/util/efilib.cpp \
$(PROJECT_DIR)/hw_layer/pin_repository.cpp \
$(RUSEFI_LIB_CPP) \

View File

@ -1,6 +1,6 @@
#include "pch.h"
#include "usbconsole.h"
#include "hardware.h"
int main(void) {
@ -11,10 +11,9 @@ int main(void) {
// set base pin configuration based on the board
setDefaultBasePins();
/* at the moment SD card is not needed by bootloader
// set SD card configuration also
setDefaultSdCardParameters();
*/
// Set up USB
usb_serial_start();
while (true) {
chThdSleepMilliseconds(1);