diff options
author | xengineering <me@xengineering.eu> | 2024-04-20 22:08:08 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-04-21 12:26:00 +0200 |
commit | 96f2358caadfd55d6fd3b888ef5d21f22fc2439c (patch) | |
tree | 4d2145c0df358fa917bdec729e905130230bf7f6 /firmware/src/uid64.h | |
parent | 9a713b06c3f776684dd026646c916b6daea7b25b (diff) | |
download | iot-core-96f2358caadfd55d6fd3b888ef5d21f22fc2439c.tar iot-core-96f2358caadfd55d6fd3b888ef5d21f22fc2439c.tar.zst iot-core-96f2358caadfd55d6fd3b888ef5d21f22fc2439c.zip |
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.
Diffstat (limited to 'firmware/src/uid64.h')
-rw-r--r-- | firmware/src/uid64.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <zephyr/devicetree.h> + +/* 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); |