[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:
Man, Jianting (Meco)
2022-12-11 13:12:03 -05:00
committed by GitHub
parent a4b8762d85
commit 99bdf978d7
178 changed files with 472 additions and 462 deletions
+1 -1
View File
@@ -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_, \
+2 -2
View File
@@ -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.");
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
{
}
+1 -1
View File
@@ -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