Skip to content

Commit

Permalink
cpu/cortexm_common: provide periph_systick feature
Browse files Browse the repository at this point in the history
This allow checking if a SysTick timer (provided by all Cortex M MCUs)
is present.
  • Loading branch information
maribu committed May 2, 2024
1 parent a620a3c commit c94360d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpu/cortexm_common/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ ifneq (,$(filter cortexm_fpu,$(FEATURES_USED)))
DEFAULT_MODULE += cortexm_fpu
endif

FEATURES_PROVIDED += periph_systick

# Enable the MPU stack guard if develhelp is enabled
ifeq (1, $(DEVELHELP))
FEATURES_OPTIONAL += cortexm_mpu
Expand Down
2 changes: 2 additions & 0 deletions features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@ groups:
only provided by some STM32 MCUs.)
- name: periph_pio
help: A Programmable IO (PIO) is present. (Currently only RP2040)
- name: periph_systick
help: A SysTick timer is present. (All Cortex M MCUs)

groups:
- title: General-Purpose Input/Output (GPIO)
Expand Down
1 change: 1 addition & 0 deletions makefiles/features_existing.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ FEATURES_EXISTING := \
periph_spi_on_qspi \
periph_spi_reconfigure \
periph_spi_stmod \
periph_systick \
periph_temperature \
periph_timer \
periph_timer_periodic \
Expand Down

0 comments on commit c94360d

Please sign in to comment.