From 96f2358caadfd55d6fd3b888ef5d21f22fc2439c Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Apr 2024 22:08:08 +0200 Subject: firmware: Add 64 bit MAC to shell prompt This demonstrates that the readout of the 64 bit MAC address from the STM32WL55 microcontroller works and is useful to recognize used devices. --- firmware/src/uid64.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 firmware/src/uid64.h (limited to 'firmware/src/uid64.h') diff --git a/firmware/src/uid64.h b/firmware/src/uid64.h new file mode 100644 index 0000000..cd3fb13 --- /dev/null +++ b/firmware/src/uid64.h @@ -0,0 +1,8 @@ +#include + +/* 2 chars per byte (hex), 1 char per ':' delimiter and one char for \0 */ +#define UID64_STR_LEN (8*2 + 7*1 + 1) + +uint64_t uid64_get(void); +void uid64_to_string(uint64_t, char *str); +bool uid64_available(void); -- cgit v1.2.3-70-g09d2