diff --git a/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h b/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h index 850793a0f..ad14e43b0 100644 --- a/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h +++ b/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h @@ -44,7 +44,7 @@ /** * @brief Number of bits in priority masks. */ -#define CORTEX_PRIORITY_BITS 4 +#define CORTEX_PRIORITY_BITS 2 /** * @brief Number of interrupt vectors. diff --git a/os/hal/boards/ST_NUCLEO_L053R8/board.mk b/os/hal/boards/ST_NUCLEO_L053R8/board.mk index 124a7d13f..6cb56c1de 100644 --- a/os/hal/boards/ST_NUCLEO_L053R8/board.mk +++ b/os/hal/boards/ST_NUCLEO_L053R8/board.mk @@ -1,5 +1,5 @@ # List of all the board related files. -BOARDSRC = ${CHIBIOS}/os/hal/boards/ST_NUCLEO_L152RE/board.c +BOARDSRC = ${CHIBIOS}/os/hal/boards/ST_NUCLEO_L053R8/board.c # Required include directories -BOARDINC = ${CHIBIOS}/os/hal/boards/ST_NUCLEO_L152RE +BOARDINC = ${CHIBIOS}/os/hal/boards/ST_NUCLEO_L053R8 diff --git a/os/hal/ports/STM32/STM32L0xx/platform.mk b/os/hal/ports/STM32/STM32L0xx/platform.mk index 0e24b00e9..2f99f0e01 100644 --- a/os/hal/ports/STM32/STM32L0xx/platform.mk +++ b/os/hal/ports/STM32/STM32L0xx/platform.mk @@ -3,10 +3,10 @@ ifeq ($(USE_SMART_BUILD),yes) HALCONF := $(strip $(shell cat halconf.h | egrep -e "define")) PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \ - $(CHIBIOS)/os/hal/ports/STM32/STM32L0xx/stm32_dma.c \ $(CHIBIOS)/os/hal/ports/STM32/STM32L0xx/hal_lld.c \ $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/st_lld.c ifneq ($(findstring HAL_USE_ADC TRUE,$(HALCONF)),) + $(CHIBIOS)/os/hal/ports/STM32/STM32L0xx/stm32_dma.c \ PLATFORMSRC += $(CHIBIOS)/os/hal/ports/STM32/STM32L0xx/adc_lld.c endif ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),)