Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.
source/borderrouter_tasklet.h@108:0c14bd1d3334, 2019-11-27 (annotated)
- 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?
User | Revision | Line number | New 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 | |
mbed_official | 0:85f4174a8e29 | 6 | #ifndef BORDERROUTER_TASKLET_H |
mbed_official | 0:85f4174a8e29 | 7 | #define BORDERROUTER_TASKLET_H |
mbed_official | 0:85f4174a8e29 | 8 | |
mbed_official | 0:85f4174a8e29 | 9 | #ifdef __cplusplus |
mbed_official | 0:85f4174a8e29 | 10 | extern "C" |
mbed_official | 0:85f4174a8e29 | 11 | { |
mbed_official | 0:85f4174a8e29 | 12 | #endif |
mbed_official | 0:85f4174a8e29 | 13 | |
mbed_official | 0:85f4174a8e29 | 14 | /** |
mbed_official | 0:85f4174a8e29 | 15 | * Initializes the backhaul driver. MUST be implemented by the application. |
mbed_official | 0:85f4174a8e29 | 16 | */ |
mbed_official | 0:85f4174a8e29 | 17 | void backhaul_driver_init(void (*backhaul_driver_status_cb)(uint8_t, int8_t)); |
mbed_official | 0:85f4174a8e29 | 18 | |
mbed_official | 0:85f4174a8e29 | 19 | /** |
mbed_official | 82:3d9e3b7b3dcf | 20 | * Trace application details |
mbed_official | 82:3d9e3b7b3dcf | 21 | */ |
mbed_official | 82:3d9e3b7b3dcf | 22 | void appl_info_trace(void); |
mbed_official | 82:3d9e3b7b3dcf | 23 | |
mbed_official | 82:3d9e3b7b3dcf | 24 | /** |
mbed_official | 0:85f4174a8e29 | 25 | * Initializes the border router module: loads configuration and |
mbed_official | 0:85f4174a8e29 | 26 | * initiates bootstrap for the RF 6LoWPAN and backhaul interfaces. |
mbed_official | 0:85f4174a8e29 | 27 | */ |
mbed_official | 7:571f9a90b972 | 28 | void border_router_tasklet_start(void); |
mbed_official | 0:85f4174a8e29 | 29 | |
mbed_official | 0:85f4174a8e29 | 30 | #ifdef __cplusplus |
mbed_official | 0:85f4174a8e29 | 31 | } |
mbed_official | 0:85f4174a8e29 | 32 | #endif |
mbed_official | 0:85f4174a8e29 | 33 | |
mbed_official | 0:85f4174a8e29 | 34 | #endif /* BORDERROUTER_TASKLET_H */ |