mirror of https://github.com/ARMmbed/mbed-os.git
Originally the ethernet ISR would be linked in to all mbed-os based firmware because it was named ENET_IRQHandler() so that it would be automatically placed in the FLASH image's interrupt vector table. This meant that programs which made no use of the lwIP stack still pulled in this ISR. This commit changes the name of the routine so that the ISR isn't automatically placed in the interrupt vector table at link time but is instead dynamically placed in the interrupt vector table at runtime when the lwIP stack is initialized. Now the ethernet ISR is only linked in when it is actually needed. Example arm-none-eabi-size output for a simple LED blinking program showing the before and after size results: text data bss dec hex filename 13208 148 7784 21140 5294 LPC1768/HelloWorld.elf text data bss dec hex filename 12700 148 7468 20316 4f5c LPC1768/HelloWorld.elf |
||
---|---|---|
.. | ||
FEATURE_BLE | ||
FEATURE_COMMON_PAL | ||
FEATURE_LWIP | ||
FEATURE_UVISOR | ||
TESTS/filesystem | ||
filesystem | ||
frameworks | ||
mbedtls | ||
nanostack | ||
netsocket | ||
storage/FEATURE_STORAGE | ||
unsupported |