Skip to content

Commit 894eca5

Browse files
ioannisggalak
authored andcommitted
soc: arm: rename CPU_HAS_SYSTICK to CPU_CORTEX_M_HAS_SYSTICK
This commit renames the symbol CPU_HAS_SYSTICK to CPU_CORTEX_M_HAS_SYSTICK, to look similar to all other CPU_CORTEX_M_HAS_ options, and moves the K-config symbol definition from arm/core/Kconfig to arm/core/cortex_m/Kconfig. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent ccf90fd commit 894eca5

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

arch/arm/core/Kconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ config CPU_CORTEX_M
2828
help
2929
This option signifies the use of a CPU of the Cortex-M family.
3030

31-
config CPU_HAS_SYSTICK
32-
bool
33-
# Omit prompt to signify "hidden" option
34-
help
35-
This option is enabled when the CPU has systick timer implemented.
36-
3731
config BUILTIN_STACK_GUARD
3832
bool "Thread Stack Guards based on built-in ARM stack limit checking"
3933
depends on CPU_CORTEX_M_HAS_SPLIM

arch/arm/core/cortex_m/Kconfig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ config ISA_THUMB2
103103
technology is featured in the processor, and in all ARMv7
104104
architecture-based processors.
105105

106+
config CPU_CORTEX_M_HAS_SYSTICK
107+
bool
108+
# Omit prompt to signify "hidden" option
109+
help
110+
This option is enabled when the CPU implements the SysTick timer.
111+
106112
config CPU_CORTEX_M_HAS_BASEPRI
107113
bool
108114
# Omit prompt to signify "hidden" option
@@ -207,7 +213,7 @@ config ARMV7_M_ARMV8_M_MAINLINE
207213
select CPU_CORTEX_M_HAS_BASEPRI
208214
select CPU_CORTEX_M_HAS_VTOR
209215
select CPU_CORTEX_M_HAS_PROGRAMMABLE_FAULT_PRIOS
210-
select CPU_HAS_SYSTICK
216+
select CPU_CORTEX_M_HAS_SYSTICK
211217
help
212218
This option signifies the use of an ARMv7-M processor
213219
implementation, or the use of a backwards-compatible

drivers/timer/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ config ARCV2_TIMER_IRQ_PRIORITY
9292
config CORTEX_M_SYSTICK
9393
bool "Cortex-M SYSTICK timer"
9494
default y
95-
depends on CPU_HAS_SYSTICK
95+
depends on CPU_CORTEX_M_HAS_SYSTICK
9696
select TICKLESS_CAPABLE
9797
help
9898
This module implements a kernel device driver for the Cortex-M processor

soc/arm/atmel_sam0/samd20/Kconfig.series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config SOC_SERIES_SAMD20
77
bool "Atmel SAMD20 MCU"
88
select CPU_CORTEX_M0PLUS
99
select SOC_FAMILY_SAM0
10-
select CPU_HAS_SYSTICK
10+
select CPU_CORTEX_M_HAS_SYSTICK
1111
select CPU_CORTEX_M_HAS_VTOR
1212
select ASF
1313
help

soc/arm/atmel_sam0/samd21/Kconfig.series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config SOC_SERIES_SAMD21
77
bool "Atmel SAMD21 MCU"
88
select CPU_CORTEX_M0PLUS
99
select SOC_FAMILY_SAM0
10-
select CPU_HAS_SYSTICK
10+
select CPU_CORTEX_M_HAS_SYSTICK
1111
select CPU_CORTEX_M_HAS_VTOR
1212
select ASF
1313
help

soc/arm/cypress/psoc6/Kconfig.series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
config SOC_SERIES_PSOC62
99
bool "Cypress PSoC6 series MCU"
1010
select SOC_FAMILY_PSOC6
11-
select CPU_HAS_SYSTICK
11+
select CPU_CORTEX_M_HAS_SYSTICK
1212
select HAS_CYPRESS_DRIVERS
1313
select SOC_NOINIT_LD
1414
select SOC_RWDATA_LD

soc/arm/nxp_kinetis/kl2x/Kconfig.series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ config SOC_SERIES_KINETIS_KL2X
99
bool "Kinetis KL2x Series MCU"
1010
select CPU_CORTEX_M0PLUS
1111
select SOC_FAMILY_KINETIS
12-
select CPU_HAS_SYSTICK
12+
select CPU_CORTEX_M_HAS_SYSTICK
1313
select CLOCK_CONTROL
1414
help
1515
Enable support for Kinetis KL2x MCU series

soc/arm/nxp_kinetis/kwx/Kconfig.series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
config SOC_SERIES_KINETIS_KWX
99
bool "Kinetis KWx Series MCU"
1010
select SOC_FAMILY_KINETIS
11-
select CPU_HAS_SYSTICK
11+
select CPU_CORTEX_M_HAS_SYSTICK
1212
select CLOCK_CONTROL
1313
help
1414
Enable support for Kinetis KWx MCU series

soc/arm/nxp_lpc/lpc54xxx/Kconfig.series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ config SOC_SERIES_LPC54XXX
99
bool "LPC LPC54xxx Series MCU"
1010
select HAS_MCUX
1111
select SOC_FAMILY_LPC
12-
select CPU_HAS_SYSTICK
12+
select CPU_CORTEX_M_HAS_SYSTICK
1313
help
1414
Enable support for LPC LPC54XXX MCU series

soc/arm/silabs_exx32/efm32hg/Kconfig.series

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ config SOC_SERIES_EFM32HG
99
bool "EFM32HG Series MCU"
1010
select CPU_CORTEX_M0PLUS
1111
select SOC_FAMILY_EXX32
12-
select CPU_HAS_SYSTICK
12+
select CPU_CORTEX_M_HAS_SYSTICK
1313
select HAS_SILABS_GECKO
1414
select SOC_GECKO_CMU
1515
select SOC_GECKO_GPIO

0 commit comments

Comments
 (0)