Skip to content

Commit 00ff70f

Browse files
author
Memfault Inc
committed
Memfault Firmware SDK 1.11.5 (Build 10200)
1 parent 0fbb820 commit 00ff70f

File tree

491 files changed

+1665
-1072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

491 files changed

+1665
-1072
lines changed

CHANGELOG.md

Lines changed: 396 additions & 300 deletions
Large diffs are not rendered by default.
File renamed without changes.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,6 @@ the top for build & test coverage status of the `master` branch.
166166
## License
167167
168168
Unless specifically indicated otherwise in a file, all memfault-firmware-sdk
169-
files are all licensed under the [Memfault License](/License.txt). (A few files
170-
in the [examples](/examples) and [ports](/ports) directory are licensed
171-
differently based on vendor requirements.)
169+
files are all licensed under the [Memfault License](/LICENSE). (A few files in
170+
the [examples](/examples) and [ports](/ports) directory are licensed differently
171+
based on vendor requirements.)

VERSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
BUILD ID: local
2-
GIT COMMIT: a3e5d59615c
3-
VERSION: 1.11.4
1+
BUILD ID: 10200
2+
GIT COMMIT: 432492ab6b
3+
VERSION: 1.11.5

components/core/src/arch_arm_cortex_m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! @file
22
//!
33
//! Copyright (c) Memfault, Inc.
4-
//! See License.txt for details
4+
//! See LICENSE for details
55

66
#include <stdint.h>
77

components/core/src/memfault_batched_events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! @file
22
//!
33
//! Copyright (c) Memfault, Inc.
4-
//! See License.txt for details
4+
//! See LICENSE for details
55
//!
66

77
#include <string.h>

components/core/src/memfault_build_id.c

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! @file
22
//!
33
//! Copyright (c) Memfault, Inc.
4-
//! See License.txt for details
4+
//! See LICENSE for details
55
//!
66
//! @brief
77
//! See header for more details
@@ -13,6 +13,37 @@
1313
#include "memfault/core/build_info.h"
1414
#include "memfault_build_id_private.h"
1515

16+
// OS version information
17+
#if defined(MEMFAULT_OS_VERSION_NAME) ^ defined(MEMFAULT_OS_VERSION_STRING)
18+
#error "MEMFAULT_OS_VERSION_NAME and MEMFAULT_OS_VERSION_STRING must be both defined or undefined"
19+
#elif !(defined(MEMFAULT_OS_VERSION_NAME) && defined(MEMFAULT_OS_VERSION_STRING))
20+
#if defined(__ZEPHYR__)
21+
// Either Zephyr or NCS. We can then rely on the GNU __has_include extension to
22+
// be available.
23+
#if __has_include("ncs_version.h")
24+
#include "ncs_version.h"
25+
#define MEMFAULT_OS_VERSION_NAME "ncs"
26+
#define MEMFAULT_OS_VERSION_STRING NCS_VERSION_STRING
27+
#else
28+
// This is Zephyr's version.h file, since Memfault's is namespaced as
29+
// "memfault/version.h".
30+
#include <version.h>
31+
#define MEMFAULT_OS_VERSION_NAME "zephyr"
32+
#define MEMFAULT_OS_VERSION_STRING KERNEL_VERSION_STRING
33+
#endif /* __has_include("ncs_version.h") */
34+
35+
#elif defined(ESP_PLATFORM)
36+
// ESP-IDF, use the command-line defined IDF_VER string
37+
#define MEMFAULT_OS_VERSION_NAME "esp-idf"
38+
#define MEMFAULT_OS_VERSION_STRING IDF_VER
39+
#else
40+
// No OS version information available
41+
#define MEMFAULT_OS_VERSION_NAME ""
42+
#define MEMFAULT_OS_VERSION_STRING ""
43+
#endif /* defined(__ZEPHYR__) */
44+
#endif /* defined(MEMFAULT_OS_VERSION_NAME) ^ defined(MEMFAULT_OS_VERSION_STRING) \
45+
*/
46+
1647
#if MEMFAULT_USE_GNU_BUILD_ID
1748

1849
// Note: This variable is emitted by the linker script
@@ -24,6 +55,10 @@ MEMFAULT_BUILD_ID_QUALIFIER sMemfaultBuildIdStorage g_memfault_build_id = {
2455
.short_len = MEMFAULT_EVENT_INCLUDED_BUILD_ID_SIZE_BYTES,
2556
.storage = MEMFAULT_GNU_BUILD_ID_SYMBOL,
2657
.sdk_version = MEMFAULT_SDK_VERSION,
58+
.os_version = {
59+
.name = MEMFAULT_OS_VERSION_NAME,
60+
.version = MEMFAULT_OS_VERSION_STRING,
61+
},
2762
};
2863
#else
2964

@@ -38,5 +73,9 @@ MEMFAULT_BUILD_ID_QUALIFIER sMemfaultBuildIdStorage g_memfault_build_id = {
3873
.short_len = MEMFAULT_EVENT_INCLUDED_BUILD_ID_SIZE_BYTES,
3974
.storage = g_memfault_sdk_derived_build_id,
4075
.sdk_version = MEMFAULT_SDK_VERSION,
76+
.os_version = {
77+
.name = MEMFAULT_OS_VERSION_NAME,
78+
.version = MEMFAULT_OS_VERSION_STRING,
79+
},
4180
};
4281
#endif

components/core/src/memfault_build_id_private.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! @file
44
//!
55
//! Copyright (c) Memfault, Inc.
6-
//! See License.txt for details
6+
//! See LICENSE for details
77
//!
88
//! @brief
99
//! Internal file that should never be included by a consumer of the SDK. See
@@ -33,6 +33,11 @@ typedef enum {
3333
kMemfaultBuildIdType_MemfaultBuildIdSha1 = 3,
3434
} eMemfaultBuildIdType;
3535

36+
typedef struct {
37+
const char *name;
38+
const char *version;
39+
} sMfltOsVersion;
40+
3641
typedef struct {
3742
uint8_t type; // eMemfaultBuildIdType
3843
uint8_t len;
@@ -41,6 +46,7 @@ typedef struct {
4146
uint8_t rsvd;
4247
const void *storage;
4348
const sMfltSdkVersion sdk_version;
49+
const sMfltOsVersion os_version;
4450
} sMemfaultBuildIdStorage;
4551

4652
MEMFAULT_STATIC_ASSERT(((offsetof(sMemfaultBuildIdStorage, type) == 0) &&

components/core/src/memfault_compact_log_serializer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! @file
22
//!
33
//! Copyright (c) Memfault, Inc.
4-
//! See License.txt for details
4+
//! See LICENSE for details
55

66
#include <stdarg.h>
77
#include <stdio.h>

components/core/src/memfault_core_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! @file
22
//!
33
//! Copyright (c) Memfault, Inc.
4-
//! See License.txt for details
4+
//! See LICENSE for details
55
//!
66
//! @brief
77

0 commit comments

Comments
 (0)