File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
TESTS/mbed_platform/stats_sys Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ void test_sys_info()
32
32
mbed_stats_sys_t stats;
33
33
mbed_stats_sys_get (&stats);
34
34
35
+ TEST_ASSERT_NOT_EQUAL (0 , stats.os_version );
35
36
#if defined(__CORTEX_M)
36
37
TEST_ASSERT_NOT_EQUAL (0 , stats.cpu_id );
37
38
#endif
Original file line number Diff line number Diff line change 1
1
#include "mbed_assert.h"
2
2
#include "mbed_stats.h"
3
3
#include "mbed_power_mgmt.h"
4
+ #include "mbed_version.h"
4
5
#include <string.h>
5
6
#include <stdlib.h>
6
7
@@ -123,6 +124,7 @@ void mbed_stats_sys_get(mbed_stats_sys_t *stats)
123
124
memset (stats , 0 , sizeof (mbed_stats_sys_t ));
124
125
125
126
#if defined(MBED_SYS_STATS_ENABLED )
127
+ stats -> os_version = MBED_VERSION ;
126
128
#if defined(__CORTEX_M )
127
129
stats -> cpu_id = SCB -> CPUID ;
128
130
#endif
Original file line number Diff line number Diff line change 6
6
* @{
7
7
*/
8
8
/* mbed Microcontroller Library
9
- * Copyright (c) 2016-2016 ARM Limited
9
+ * Copyright (c) 2016-2018 ARM Limited
10
10
*
11
11
* Licensed under the Apache License, Version 2.0 (the "License");
12
12
* you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments