mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-28 16:14:20 +08:00
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
This commit is contained in:
@@ -51,7 +51,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define AT_CMD_EXPORT(_name_, _args_expr_, _test_, _query_, _setup_, _exec_) \
|
||||
RT_USED static const struct at_cmd __at_cmd_##_test_##_query_##_setup_##_exec_ RT_SECTION("RtAtCmdTab") = \
|
||||
rt_used static const struct at_cmd __at_cmd_##_test_##_query_##_setup_##_exec_ rt_section("RtAtCmdTab") = \
|
||||
{ \
|
||||
_name_, \
|
||||
_args_expr_, \
|
||||
|
||||
@@ -638,12 +638,12 @@ __exit:
|
||||
}
|
||||
INIT_COMPONENT_EXPORT(at_server_init);
|
||||
|
||||
RT_WEAK void at_port_reset(void)
|
||||
rt_weak void at_port_reset(void)
|
||||
{
|
||||
LOG_E("The reset for AT server is not implement.");
|
||||
}
|
||||
|
||||
RT_WEAK void at_port_factory_reset(void)
|
||||
rt_weak void at_port_factory_reset(void)
|
||||
{
|
||||
LOG_E("The factory reset for AT server is not implement.");
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ const char *at_get_last_cmd(rt_size_t *cmd_size)
|
||||
return send_buf;
|
||||
}
|
||||
|
||||
RT_WEAK rt_size_t at_utils_send(rt_device_t dev,
|
||||
rt_weak rt_size_t at_utils_send(rt_device_t dev,
|
||||
rt_off_t pos,
|
||||
const void *buffer,
|
||||
rt_size_t size)
|
||||
|
||||
@@ -539,7 +539,7 @@ u32_t sys_now(void)
|
||||
return rt_tick_get_millisecond();
|
||||
}
|
||||
|
||||
RT_WEAK void mem_init(void)
|
||||
rt_weak void mem_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ in_addr_t netdev_ipaddr_addr(const char *cp)
|
||||
|
||||
#if NETDEV_IPV6
|
||||
|
||||
RT_WEAK const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
|
||||
rt_weak const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
|
||||
|
||||
/**
|
||||
* Check whether "cp" is a valid ascii representation
|
||||
|
||||
Reference in New Issue
Block a user