Skip to content

Commit

Permalink
change(soc): Add SOC_HP_CPU_HAS_MULTIPLE_CORES
Browse files Browse the repository at this point in the history
This commit adds a the SOC_HP_CPU_HAS_MULTIPLE_CORES convenience macro to
soc_caps.h. This is a convenience boolean cap to represent whether or not the
target has multiple cores, and is intended to be used when writing docs for
multiple targets.
  • Loading branch information
Dazza0 committed Dec 7, 2023
1 parent 8005821 commit a7e2ea7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/soc/esp32/include/soc/Kconfig.soc_caps.in
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ config SOC_CPU_HAS_FPU
bool
default y

config SOC_HP_CPU_HAS_MULTIPLE_CORES
bool
default y

config SOC_CPU_BREAKPOINTS_NUM
int
default 2
Expand Down
1 change: 1 addition & 0 deletions components/soc/esp32/include/soc/soc_caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
#define SOC_CPU_CORES_NUM 2
#define SOC_CPU_INTR_NUM 32
#define SOC_CPU_HAS_FPU 1
#define SOC_HP_CPU_HAS_MULTIPLE_CORES 1 // Convenience boolean macro used to determine if a target has multiple cores.

#define SOC_CPU_BREAKPOINTS_NUM 2
#define SOC_CPU_WATCHPOINTS_NUM 2
Expand Down
4 changes: 4 additions & 0 deletions components/soc/esp32p4/include/soc/Kconfig.soc_caps.in
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ config SOC_CPU_COPROC_NUM
int
default 2

config SOC_HP_CPU_HAS_MULTIPLE_CORES
bool
default y

config SOC_CPU_BREAKPOINTS_NUM
int
default 3
Expand Down
1 change: 1 addition & 0 deletions components/soc/esp32p4/include/soc/soc_caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
#define SOC_CPU_HAS_FPU 1
#define SOC_CPU_HAS_FPU_EXT_ILL_BUG 1 // EXT_ILL CSR doesn't support FLW/FSW
#define SOC_CPU_COPROC_NUM 2
#define SOC_HP_CPU_HAS_MULTIPLE_CORES 1 // Convenience boolean macro used to determine if a target has multiple cores.

#define SOC_CPU_BREAKPOINTS_NUM 3
#define SOC_CPU_WATCHPOINTS_NUM 3
Expand Down
4 changes: 4 additions & 0 deletions components/soc/esp32s3/include/soc/Kconfig.soc_caps.in
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ config SOC_CPU_HAS_FPU
bool
default y

config SOC_HP_CPU_HAS_MULTIPLE_CORES
bool
default y

config SOC_CPU_BREAKPOINTS_NUM
int
default 2
Expand Down
1 change: 1 addition & 0 deletions components/soc/esp32s3/include/soc/soc_caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
#define SOC_CPU_CORES_NUM 2
#define SOC_CPU_INTR_NUM 32
#define SOC_CPU_HAS_FPU 1
#define SOC_HP_CPU_HAS_MULTIPLE_CORES 1 // Convenience boolean macro used to determine if a target has multiple cores.

#define SOC_CPU_BREAKPOINTS_NUM 2
#define SOC_CPU_WATCHPOINTS_NUM 2
Expand Down

0 comments on commit a7e2ea7

Please sign in to comment.