Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32L452_Nucleo_ticker
Fork of mbed-dev by
Diff: platform/mbed_toolchain.h
- Revision:
- 170:19eb464bc2be
- Parent:
- 169:e3b6fe271b81
- Child:
- 176:447f873cad2f
diff -r e3b6fe271b81 -r 19eb464bc2be platform/mbed_toolchain.h --- a/platform/mbed_toolchain.h Wed Jul 19 17:31:21 2017 +0100 +++ b/platform/mbed_toolchain.h Thu Aug 03 13:13:39 2017 +0100 @@ -94,9 +94,15 @@ /** MBED_WEAK * Mark a function as being weak. + * + * @note + * Functions should only be marked as weak in the source file. The header file + * should contain a regular function declaration to insure the function is emitted. + * A function marked weak will not be emitted if an alternative non-weak + * implementation is defined. * * @note - * weak functions are not friendly to making code re-usable, as they can only + * Weak functions are not friendly to making code re-usable, as they can only * be overridden once (and if they are multiply overridden the linker will emit * no warning). You should not normally use weak symbols as part of the API to * re-usable modules.