Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/boards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
board: [stm32wb55xx_nucleo, stm32wba55cg_nucleo, pic32cz_curiosity_ultra, stm32h563zi_nucleo, stm32f411_blackpill, stm32c031_nucleo, stm32f091rc_nucleo, stm32f302r8_nucleo]
board: [stm32wb55xx_nucleo, stm32wba55cg_nucleo, pic32cz_curiosity_ultra, stm32h563zi_nucleo, stm32f411_blackpill, stm32c031_nucleo, stm32f091rc_nucleo, stm32f302r8_nucleo, stm32l152re_nucleo]
extra_cflags: ["", "-DWHAL_CFG_NO_TIMEOUT"]
include:
- board: stm32wb55xx_nucleo
Expand Down
1 change: 1 addition & 0 deletions boards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ build configuration.
| WeAct BlackPill STM32F411 | STM32F4 | Cortex-M4 | `stm32f411_blackpill/` |
| ST NUCLEO-H563ZI | STM32H5 | Cortex-M33 | `stm32h563zi_nucleo/` |
| ST NUCLEO-WB55RG | STM32WB | Cortex-M4 | `stm32wb55xx_nucleo/` |
| ST NUCLEO-L152RE | STM32L1 | Cortex-M3 | `stm32l152re_nucleo/` |
| ST NUCLEO-WBA55CG | STM32WBA | Cortex-M33 | `stm32wba55cg_nucleo/` |

## Board Directory Contents
Expand Down
2 changes: 0 additions & 2 deletions boards/stm32c031_nucleo/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ enum {
};

#define BOARD_LED_PIN 0
#define BOARD_LED_PORT_OFFSET 0x000 /* GPIOA */
#define BOARD_LED_PIN_NUM 5

#define BOARD_FLASH_START_ADDR 0x08000000
#define BOARD_FLASH_SIZE 0x8000
Expand Down
2 changes: 0 additions & 2 deletions boards/stm32f091rc_nucleo/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ enum {
};

#define BOARD_LED_PIN 0
#define BOARD_LED_PORT_OFFSET 0x000 /* GPIOA */
#define BOARD_LED_PIN_NUM 5

#define BOARD_FLASH_START_ADDR 0x08000000
#define BOARD_FLASH_SIZE 0x40000
Expand Down
2 changes: 0 additions & 2 deletions boards/stm32f302r8_nucleo/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ enum {
};

#define BOARD_LED_PIN 0
#define BOARD_LED_PORT_OFFSET 0x400 /* GPIOB */
#define BOARD_LED_PIN_NUM 13

#define BOARD_FLASH_START_ADDR 0x08000000
#define BOARD_FLASH_SIZE 0x10000
Expand Down
43 changes: 43 additions & 0 deletions boards/stm32l152re_nucleo/Makefile.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
_BOARD_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))

PLATFORM = stm32l1
TESTS ?= clock gpio timer flash uart spi i2c

GCC = $(GCC_PATH)arm-none-eabi-gcc
LD = $(GCC_PATH)arm-none-eabi-gcc
OBJCOPY = $(GCC_PATH)arm-none-eabi-objcopy

CFLAGS += -Wall -Werror $(INCLUDE) -g3 \
-ffreestanding -nostdlib \
-mcpu=cortex-m3 -mthumb \
-DPLATFORM_STM32L1 -MMD -MP \
-DWHAL_CFG_GPIO_API_MAPPING_STM32L1 \
-DWHAL_CFG_CLOCK_API_MAPPING_STM32L1 \
-DWHAL_CFG_UART_API_MAPPING_STM32L1 \
-DWHAL_CFG_SPI_API_MAPPING_STM32L1 \
-DWHAL_CFG_I2C_API_MAPPING_STM32L1 \
$(if $(filter iwdg,$(WATCHDOG)),-DBOARD_WATCHDOG_IWDG) \
$(if $(filter wwdg,$(WATCHDOG)),-DBOARD_WATCHDOG_WWDG)
LDFLAGS = -mcpu=cortex-m3 -mthumb \
-ffreestanding -nostartfiles -Wl,--omagic -static

LINKER_SCRIPT ?= $(_BOARD_DIR)/linker.ld

INCLUDE += -I$(_BOARD_DIR) -I$(WHAL_DIR)/boards/peripheral

BOARD_SOURCE = $(_BOARD_DIR)/ivt.c
BOARD_SOURCE += $(_BOARD_DIR)/board.c
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/timer.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/supply.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/flash.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/rng.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/crypto.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/sensor.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/block.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/watchdog.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/stm32l1_*.c)
BOARD_SOURCE += $(wildcard $(WHAL_DIR)/src/*/systick.c)

# Peripheral devices
include $(WHAL_DIR)/boards/peripheral/Makefile.inc
Loading
Loading