File tree Expand file tree Collapse file tree 10 files changed +20
-26
lines changed Expand file tree Collapse file tree 10 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ static const qstr os_uname_info_fields[] = {
19
19
MP_QSTR_sysname , MP_QSTR_nodename ,
20
20
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
21
21
};
22
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , " max32 " );
23
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , " max32 " );
22
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
23
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
24
24
25
25
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
26
26
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
Original file line number Diff line number Diff line change @@ -20,14 +20,8 @@ static const qstr os_uname_info_fields[] = {
20
20
MP_QSTR_sysname , MP_QSTR_nodename ,
21
21
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
22
22
};
23
- #ifdef SAMD21
24
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , "samd21 ");
25
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , "samd21 ");
26
- #endif
27
- #ifdef SAM_D5X_E5X
28
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , "samd51 ");
29
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , "samd51 ");
30
- #endif
23
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
24
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
31
25
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
32
26
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
33
27
static const MP_DEFINE_STR_OBJ (os_uname_info_machine_obj , MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME );
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ static const qstr os_uname_info_fields[] = {
15
15
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
16
16
};
17
17
18
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , " spresense " );
19
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , " spresense " );
18
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
19
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
20
20
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
21
21
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
22
22
static const MP_DEFINE_STR_OBJ (os_uname_info_machine_obj , MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME );
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ static const qstr os_uname_info_fields[] = {
16
16
MP_QSTR_sysname , MP_QSTR_nodename ,
17
17
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
18
18
};
19
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , " litex " );
20
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , " litex " );
19
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
20
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
21
21
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
22
22
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
23
23
static const MP_DEFINE_STR_OBJ (os_uname_info_machine_obj , MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME );
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ static const qstr os_uname_info_fields[] = {
21
21
MP_QSTR_sysname , MP_QSTR_nodename ,
22
22
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
23
23
};
24
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , " mimxrt10xx " );
25
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , " mimxrt10xx " );
24
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
25
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
26
26
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
27
27
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
28
28
static const MP_DEFINE_STR_OBJ (os_uname_info_machine_obj , MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME );
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ static const qstr os_uname_info_fields[] = {
21
21
MP_QSTR_sysname , MP_QSTR_nodename ,
22
22
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
23
23
};
24
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , " nrf52 " );
25
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , " nrf52 " );
24
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
25
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
26
26
27
27
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
28
28
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ static const qstr os_uname_info_fields[] = {
16
16
MP_QSTR_sysname , MP_QSTR_nodename ,
17
17
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
18
18
};
19
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , " renode " );
20
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , " renode " );
19
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
20
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
21
21
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
22
22
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
23
23
static const MP_DEFINE_STR_OBJ (os_uname_info_machine_obj , MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME );
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ static const qstr os_uname_info_fields[] = {
19
19
MP_QSTR_sysname , MP_QSTR_nodename ,
20
20
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
21
21
};
22
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , STM32_SERIES_LOWER ) ;
23
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , STM32_SERIES_LOWER ) ;
22
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
23
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
24
24
25
25
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
26
26
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ static const qstr os_uname_info_fields[] = {
17
17
MP_QSTR_sysname , MP_QSTR_nodename ,
18
18
MP_QSTR_release , MP_QSTR_version , MP_QSTR_machine
19
19
};
20
- static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , " nrf52 " );
21
- static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , " nrf52 " );
20
+ static const MP_DEFINE_STR_OBJ (os_uname_info_sysname_obj , MICROPY_HW_MCU_NAME ) ;
21
+ static const MP_DEFINE_STR_OBJ (os_uname_info_nodename_obj , MICROPY_HW_MCU_NAME ) ;
22
22
23
23
static const MP_DEFINE_STR_OBJ (os_uname_info_release_obj , MICROPY_VERSION_STRING ) ;
24
24
static const MP_DEFINE_STR_OBJ (os_uname_info_version_obj , MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE );
You can’t perform that action at this time.
0 commit comments