~ruther/qmk_firmware

73c4ca175bfdca9bdee31a789380991903efd617 — QMK Bot 1 year, 8 months ago 569b0c7 + 092ef66
Merge remote-tracking branch 'origin/master' into develop
M platforms/chibios/chibios_config.h => platforms/chibios/chibios_config.h +5 -0
@@ 108,6 108,11 @@
#    if defined(STM32F1XX) || defined(STM32F2XX) || defined(STM32F4XX) || defined(STM32L1XX)
#        define USE_I2CV1
#    endif

#    if defined(STM32G0XX) || defined(STM32G4XX) || defined(STM32L5XX) || defined(STM32H7XX)
#        define USE_USARTV3
#    endif

#endif

// GD32 compatibility

M platforms/chibios/drivers/uart_sio.c => platforms/chibios/drivers/uart_sio.c +1 -1
@@ 16,7 16,7 @@ static SIOConfig sioConfig = {
#else
static SIOConfig sioConfig = {
    .baud  = SIO_DEFAULT_BITRATE,
#    if defined(MCU_STM32) && defined(CHIBIOS_HAL_USARTv3)
#    if defined(MCU_STM32) && defined(USE_USARTV3)
    .presc = USART_PRESC1,
#    endif
    .cr1   = UART_CR1,

M platforms/chibios/platform.mk => platforms/chibios/platform.mk +0 -11
@@ 330,17 330,6 @@ ifeq ($(strip $(USE_CHIBIOS_CONTRIB)),yes)
endif

#
# Extract supported HAL drivers
##############################################################################

define add_lld_driver_define
    $(eval driver := $(word 2,$(subst /LLD/, ,$(1))))
    $(eval OPT_DEFS += -DCHIBIOS_HAL_$(driver))
endef

$(foreach dir,$(EXTRAINCDIRS),$(if $(findstring /LLD/,$(dir)),$(call add_lld_driver_define,$(dir))))

#
# Project, sources and paths
##############################################################################