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()
3232 mbed_stats_sys_t stats;
3333 mbed_stats_sys_get (&stats);
3434
35+ TEST_ASSERT_NOT_EQUAL (0 , stats.os_version );
3536#if defined(__CORTEX_M)
3637 TEST_ASSERT_NOT_EQUAL (0 , stats.cpu_id );
3738#endif
Original file line number Diff line number Diff line change 11#include "mbed_assert.h"
22#include "mbed_stats.h"
33#include "mbed_power_mgmt.h"
4+ #include "mbed_version.h"
45#include <string.h>
56#include <stdlib.h>
67
@@ -123,6 +124,7 @@ void mbed_stats_sys_get(mbed_stats_sys_t *stats)
123124 memset (stats , 0 , sizeof (mbed_stats_sys_t ));
124125
125126#if defined(MBED_SYS_STATS_ENABLED )
127+ stats -> os_version = MBED_VERSION ;
126128#if defined(__CORTEX_M )
127129 stats -> cpu_id = SCB -> CPUID ;
128130#endif
Original file line number Diff line number Diff line change 66 * @{
77 */
88/* mbed Microcontroller Library
9- * Copyright (c) 2016-2016 ARM Limited
9+ * Copyright (c) 2016-2018 ARM Limited
1010 *
1111 * Licensed under the Apache License, Version 2.0 (the "License");
1212 * you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments