Skip to content

Commit

Permalink
use MCU_NAME for display
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Sep 12, 2023
1 parent 3c80b2b commit f7c7838
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boards/AT32F435RM.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"build": {
"core": "ArteryTek AT32",
"cpu": "cortex-m4",
"extra_flags": "-DAT32F4xx -DAT32F435 -DAT32F4 -DAT32 -DMCU_NAME=at32f435",
"extra_flags": "-DAT32F4xx -DAT32F435 -DAT32F4 -DAT32 -DMCU_NAME=at32f435m",
"f_cpu": "288000000L",
"mcu": "at32f435",
"product_line": "AT32F435xM",
Expand Down
2 changes: 1 addition & 1 deletion script/pre_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
BUILD_UNFLAGS=["-Og", "-Os", "-DDEBUG"],
ASFLAGS=system_flags + common_flags,
CCFLAGS=system_flags + common_flags,
CPPDEFINES=[("TARGET_MCU", env["BOARD_MCU"]), ("GIT_VERSION", git_version)],
CPPDEFINES=[("GIT_VERSION", git_version)],
LINKFLAGS=system_flags + common_flags,
)

Expand Down
2 changes: 1 addition & 1 deletion src/core/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ target_t target = {
#define MACRO_STR(name) _MACRO_STR(name)

target_info_t target_info = {
.mcu = MACRO_STR(TARGET_MCU),
.mcu = MACRO_STR(MCU_NAME),
.git_version = MACRO_STR(GIT_VERSION),
.quic_protocol_version = QUIC_PROTOCOL_VERSION,

Expand Down

0 comments on commit f7c7838

Please sign in to comment.