@@ -167,15 +167,28 @@ void appl_info_trace(void)
167167 tr_info (" Starting NanoStack Border Router..." );
168168 tr_info (" Build date: %s %s" , __DATE__, __TIME__);
169169#ifdef MBED_MAJOR_VERSION
170- tr_info (" Mbed OS version: %d.%d.%d\n " , MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
170+ tr_info (" Mbed OS: %d" , MBED_VERSION);
171+ #endif
172+
173+ #if defined(MBED_SYS_STATS_ENABLED)
174+ mbed_stats_sys_t stats;
175+ mbed_stats_sys_get (&stats);
176+
177+ /* ARM = 1, GCC_ARM = 2, IAR = 3 */
178+ tr_info (" Compiler ID: %d" , stats.compiler_id );
179+ /* Compiler versions:
180+ ARM: PVVbbbb (P = Major; VV = Minor; bbbb = build number)
181+ GCC: VVRRPP (VV = Version; RR = Revision; PP = Patch)
182+ IAR: VRRRPPP (V = Version; RRR = Revision; PPP = Patch)
183+ */
184+ tr_info (" Compiler Version: %d" , stats.compiler_version );
171185#endif
172186}
173187
174188/* *
175189 * \brief The entry point for this application.
176190 * Sets up the application and starts the border router module.
177191 */
178-
179192int main (int argc, char **argv)
180193{
181194 ns_hal_init (app_stack_heap, APP_DEFINED_HEAP_SIZE, app_heap_error_handler, &heap_info);
0 commit comments