Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
5e247a51
Commit
5e247a51
authored
Apr 17, 2016
by
Damien George
Browse files
stmhal: Fix machine.unique_id() function to work for all MCUs.
parent
31f5dc06
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/modmachine.c
View file @
5e247a51
...
...
@@ -115,7 +115,7 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(machine_info_obj, 0, 1, machine_info);
// Returns a string of 12 bytes (96 bits), which is the unique ID for the MCU.
STATIC
mp_obj_t
machine_unique_id
(
void
)
{
byte
*
id
=
(
byte
*
)
0x1fff7a10
;
byte
*
id
=
(
byte
*
)
MP_HAL_UNIQUE_ID_ADDRESS
;
return
mp_obj_new_bytes
(
id
,
12
);
}
MP_DEFINE_CONST_FUN_OBJ_0
(
machine_unique_id_obj
,
machine_unique_id
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment