Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.
drivers/eth_driver.h@108:0c14bd1d3334, 2019-11-27 (annotated)
- Committer:
- mbed_official
- Date:
- Wed Nov 27 10:02:22 2019 +0000
- Revision:
- 108:0c14bd1d3334
- Parent:
- 0:85f4174a8e29
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 | #ifndef ETH_DRIVER_H |
mbed_official | 0:85f4174a8e29 | 2 | #define ETH_DRIVER_H |
mbed_official | 0:85f4174a8e29 | 3 | |
mbed_official | 0:85f4174a8e29 | 4 | /** |
mbed_official | 0:85f4174a8e29 | 5 | * Initialize Ethernet PHY driver and register itself to MAC. |
mbed_official | 0:85f4174a8e29 | 6 | * |
mbed_official | 0:85f4174a8e29 | 7 | * Must follow C calling conventions. |
mbed_official | 0:85f4174a8e29 | 8 | * |
mbed_official | 0:85f4174a8e29 | 9 | * \param mac_ptr Pointer to EIU-48 address |
mbed_official | 0:85f4174a8e29 | 10 | * \param app_ipv6_init_cb Callback to receive link status and interface id |
mbed_official | 0:85f4174a8e29 | 11 | */ |
mbed_official | 0:85f4174a8e29 | 12 | |
mbed_official | 0:85f4174a8e29 | 13 | |
mbed_official | 0:85f4174a8e29 | 14 | extern "C" void arm_eth_phy_device_register(uint8_t *mac_ptr, void (*app_ipv6_init_cb)(uint8_t, int8_t)); |
mbed_official | 0:85f4174a8e29 | 15 | |
mbed_official | 0:85f4174a8e29 | 16 | #endif |