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:
82:3d9e3b7b3dcf
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) 2016 ARM Limited. All rights reserved.
mbed_official 0:85f4174a8e29 3 */
mbed_official 0:85f4174a8e29 4
mbed_official 0:85f4174a8e29 5 #ifndef thread_br_conn_handler_H_
mbed_official 0:85f4174a8e29 6 #define thread_br_conn_handler_H_
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 #include "ns_types.h"
mbed_official 0:85f4174a8e29 13
mbed_official 0:85f4174a8e29 14 void thread_br_conn_handler_init(void);
mbed_official 0:85f4174a8e29 15 void thread_br_conn_handler_thread_connection_update(bool status);
mbed_official 0:85f4174a8e29 16 void thread_br_conn_handler_ethernet_connection_update(bool status);
mbed_official 0:85f4174a8e29 17
mbed_official 0:85f4174a8e29 18 // Tells that ethernet connection is ready and the prefix can be read and set.
mbed_official 0:85f4174a8e29 19 void thread_br_conn_handler_eth_ready(void);
mbed_official 0:85f4174a8e29 20 // Setters
mbed_official 0:85f4174a8e29 21 void thread_br_conn_handler_thread_interface_id_set(int8_t interfaceId);
mbed_official 0:85f4174a8e29 22 void thread_br_conn_handler_eth_interface_id_set(int8_t interfaceId);
mbed_official 0:85f4174a8e29 23
mbed_official 82:3d9e3b7b3dcf 24 // Getters thread_br_conn_handler
mbed_official 0:85f4174a8e29 25 bool thread_br_conn_handler_eth_connection_status_get(void);
mbed_official 0:85f4174a8e29 26 bool thread_br_conn_handler_thread_connection_status_get(void);
mbed_official 0:85f4174a8e29 27 int8_t thread_br_conn_handler_thread_interface_id_get(void);
mbed_official 0:85f4174a8e29 28 int8_t thread_br_conn_handler_eth_interface_id_get(void);
mbed_official 0:85f4174a8e29 29
mbed_official 0:85f4174a8e29 30
mbed_official 0:85f4174a8e29 31 #ifdef __cplusplus
mbed_official 0:85f4174a8e29 32 }
mbed_official 0:85f4174a8e29 33 #endif
mbed_official 0:85f4174a8e29 34 #endif /* thread_br_conn_handler_H_ */
mbed_official 0:85f4174a8e29 35