@@ -21,24 +21,25 @@ typedef struct MemfaultDeviceInfo {
2121 //! Regular expression defining valid device serials: ^[-a-zA-Z0-9_]+$
2222 const char * device_serial ;
2323
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
2828 const char * software_type ;
2929
3030 //! Version of the currently running software.
3131 //! We recommend using Semantic Version V2 strings.
3232 const char * software_version ;
3333
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_\.\+]+$
3636 const char * hardware_version ;
3737} sMemfaultDeviceInfo ;
3838
3939//! Invoked by memfault library to query the device information
4040//!
4141//! 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
4243void memfault_platform_get_device_info (sMemfaultDeviceInfo * info );
4344
4445//! Allows caller to get a pointer to a unique version string
@@ -52,7 +53,7 @@ void memfault_platform_get_device_info(sMemfaultDeviceInfo *info);
5253//! @return System version with suffix or null on error. For example,
5354//! if the input version is "1.0.0" and the build id is "123456....", the string
5455//! 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 );
5657
5758//! Convenience function to get a pointer to a previously created version string.
5859const char * memfault_get_unique_version_string (void );
0 commit comments