Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.

Committer:
mbed_official
Date:
Wed Nov 27 10:02:22 2019 +0000
Revision:
108:0c14bd1d3334
Parent:
24:e59769612cb2
Fix conflicting declarations of main() (#197)

Update the main() to be compatible with the declaration from
platform/mbed_toolchain.h that adds the MBED_USED attribute.
Without the attribute the main() symbol is not emitted with the
GCC toolchain using "-Wl,--wrap,main" and "-flto" flags.
.
Commit copied from https://github.com/ARMmbed/nanostack-border-router

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:85f4174a8e29 1 /*
mbed_official 0:85f4174a8e29 2 * Copyright (c) 2017 ARM Limited. All rights reserved.
mbed_official 0:85f4174a8e29 3 */
mbed_official 0:85f4174a8e29 4
mbed_official 0:85f4174a8e29 5 #ifndef _THREAD_BBR_EXT_
mbed_official 0:85f4174a8e29 6 #define _THREAD_BBR_EXT_
mbed_official 0:85f4174a8e29 7
mbed_official 0:85f4174a8e29 8 #ifdef __cplusplus
mbed_official 0:85f4174a8e29 9 extern "C" {
mbed_official 0:85f4174a8e29 10 #endif
mbed_official 0:85f4174a8e29 11
mbed_official 0:85f4174a8e29 12 #if MBED_CONF_APP_THREAD_BBR_EXTENSION == 1
mbed_official 0:85f4174a8e29 13
mbed_official 0:85f4174a8e29 14 #include "../../thread_bbr_extension/thread_bbr_extension.h"
mbed_official 0:85f4174a8e29 15
mbed_official 0:85f4174a8e29 16 #else
mbed_official 0:85f4174a8e29 17
mbed_official 0:85f4174a8e29 18 #define thread_bbr_extension_mesh_interface_updated_ntf(thread_interface_id);
mbed_official 0:85f4174a8e29 19 #define thread_bbr_extension_bb_interface_updated_ntf(bb_interface_id);
mbed_official 0:85f4174a8e29 20 #define thread_bbr_extension_start(thread_interface_id, bb_interface_id);
mbed_official 0:85f4174a8e29 21
mbed_official 0:85f4174a8e29 22 #endif // MBED_CONF_APP_THREAD_BBR_EXTENSION
mbed_official 0:85f4174a8e29 23
mbed_official 0:85f4174a8e29 24 #ifdef __cplusplus
mbed_official 0:85f4174a8e29 25 }
mbed_official 0:85f4174a8e29 26 #endif
mbed_official 0:85f4174a8e29 27 #endif /* _THREAD_BBR_EXT_ */
mbed_official 0:85f4174a8e29 28