diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2020-11-25 15:15:49 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-12-07 16:39:18 +1100 |
commit | 849748873cd838be0d91555b47f1447f4476175a (patch) | |
tree | a37d1227a544976c0b1f8f5cc82dcd5504c7ab86 | |
parent | c8b055717805500494a14870a4200bbc933fe337 (diff) |
stm32/modmachine: Add device and revision ids to machine.info().
-rw-r--r-- | ports/stm32/modmachine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/stm32/modmachine.c b/ports/stm32/modmachine.c index 9fa00a915..c5f49b6ef 100644 --- a/ports/stm32/modmachine.c +++ b/ports/stm32/modmachine.c @@ -155,6 +155,8 @@ STATIC mp_obj_t machine_info(size_t n_args, const mp_obj_t *args) { printf("ID=%02x%02x%02x%02x:%02x%02x%02x%02x:%02x%02x%02x%02x\n", id[0], id[1], id[2], id[3], id[4], id[5], id[6], id[7], id[8], id[9], id[10], id[11]); } + printf("DEVID=0x%04x\nREVID=0x%04x\n", (unsigned int)HAL_GetDEVID(), (unsigned int)HAL_GetREVID()); + // get and print clock speeds // SYSCLK=168MHz, HCLK=168MHz, PCLK1=42MHz, PCLK2=84MHz { |