@@ -21,24 +21,25 @@ typedef struct MemfaultDeviceInfo {
21
21
//! Regular expression defining valid device serials: ^[-a-zA-Z0-9_]+$
22
22
const char * device_serial ;
23
23
24
- //! The "Software Type" is used to identify the separate pieces of software running on a given device. This can be
25
- //! images running on different MCUs (i.e "main-mcu-app" & "bluetooth-mcu") or different images running on the same
26
- //! MCU (i.e "main-mcu-bootloader" & "main-mcu-app").
27
- //! To learn more, check out the documentation: https://mflt.io/34PyNGQ
24
+ //! The "Software Type" is used to identify the separate pieces of software running on a given
25
+ //! device. This can be images running on different MCUs (i.e "main-mcu-app" & "bluetooth-mcu") or
26
+ //! different images running on the same MCU (i.e "main-mcu-bootloader" & "main-mcu-app"). To
27
+ //! learn more, check out the documentation: https://mflt.io/34PyNGQ
28
28
const char * software_type ;
29
29
30
30
//! Version of the currently running software.
31
31
//! We recommend using Semantic Version V2 strings.
32
32
const char * software_version ;
33
33
34
- //! Hardware version (sometimes also called "board revision") that the software is currently running on.
35
- //! Regular expression defining valid hardware versions: ^[-a-zA-Z0-9_\.\+]+$
34
+ //! Hardware version (sometimes also called "board revision") that the software is currently
35
+ //! running on. Regular expression defining valid hardware versions: ^[-a-zA-Z0-9_\.\+]+$
36
36
const char * hardware_version ;
37
37
} sMemfaultDeviceInfo ;
38
38
39
39
//! Invoked by memfault library to query the device information
40
40
//!
41
41
//! It's expected the strings returned will be valid for the lifetime of the application
42
+ //! @note This function must be safe to call from an interrupt
42
43
void memfault_platform_get_device_info (sMemfaultDeviceInfo * info );
43
44
44
45
//! Allows caller to get a pointer to a unique version string
@@ -52,7 +53,7 @@ void memfault_platform_get_device_info(sMemfaultDeviceInfo *info);
52
53
//! @return System version with suffix or null on error. For example,
53
54
//! if the input version is "1.0.0" and the build id is "123456....", the string
54
55
//! returned will be "1.0.0+123456"
55
- const char * memfault_create_unique_version_string (const char * const version );
56
+ const char * memfault_create_unique_version_string (const char * const version );
56
57
57
58
//! Convenience function to get a pointer to a previously created version string.
58
59
const char * memfault_get_unique_version_string (void );
0 commit comments