Skip to content

Commit 0fc20f2

Browse files
keith-packardduynguyenxa
authored andcommitted
subsys/mgmt: Declare PROCESSOR_NAME for RX targets
Map the current set of RX CPU variants into descriptive names Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 4175ed2 commit 0fc20f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

subsys/mgmt/mcumgr/grp/os_mgmt/include/os_mgmt_processor.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ extern "C" {
152152
#endif
153153
#elif defined(CONFIG_RISCV)
154154
#define PROCESSOR_NAME "riscv"
155+
#elif defined(CONFIG_RX)
156+
#if defined(CONFIG_CPU_RXV1)
157+
#define PROCESSOR_NAME "rxv1"
158+
#elif defined(CONFIG_CPU_RXV2)
159+
#define PROCESSOR_NAME "rxv2"
160+
#elif defined(CONFIG_CPU_RXV3)
161+
#define PROCESSOR_NAME "rxv3"
162+
#else
163+
#define PROCESSOR_NAME "rx"
164+
#endif
155165
#elif defined(CONFIG_XTENSA)
156166
#define PROCESSOR_NAME "xtensa"
157167
#elif defined(CONFIG_SPARC)

0 commit comments

Comments
 (0)