mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
Add WEAK definition;
This commit is contained in:
+1
-13
@@ -1081,19 +1081,7 @@ rt_device_t rt_console_set_device(const char *name)
|
||||
RTM_EXPORT(rt_console_set_device);
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) || defined(__ADSPBLACKFIN__)
|
||||
void rt_hw_console_output(const char *str) __attribute__((weak));
|
||||
void rt_hw_console_output(const char *str)
|
||||
#elif defined(__CC_ARM)
|
||||
__weak void rt_hw_console_output(const char *str)
|
||||
#elif defined(__IAR_SYSTEMS_ICC__)
|
||||
#if __VER__ > 540
|
||||
__weak
|
||||
#endif
|
||||
void rt_hw_console_output(const char *str)
|
||||
#else
|
||||
void rt_hw_console_output(const char *str)
|
||||
#endif
|
||||
WEAK void rt_hw_console_output(const char *str)
|
||||
{
|
||||
/* empty console output */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user