Merge pull request #4588 from mysterywolf/kservice
add "kservice optimization" option
This commit is contained in:
commit
e99448c313
|
@ -116,10 +116,18 @@ config RT_TIMER_THREAD_STACK_SIZE
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
menu "kservice optimization"
|
||||||
|
|
||||||
config RT_KSERVICE_USING_STDLIB
|
config RT_KSERVICE_USING_STDLIB
|
||||||
bool "Enable kservice to use standard C library"
|
bool "Enable kservice to use standard C library"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config RT_KSERVICE_USING_TINY_SIZE
|
||||||
|
bool "Enable kservice to use tiny size"
|
||||||
|
default n
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
|
||||||
menuconfig RT_DEBUG
|
menuconfig RT_DEBUG
|
||||||
bool "Enable debugging features"
|
bool "Enable debugging features"
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -126,7 +126,7 @@ RTM_EXPORT(_rt_errno);
|
||||||
*/
|
*/
|
||||||
RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count)
|
RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count)
|
||||||
{
|
{
|
||||||
#ifdef RT_USING_TINY_SIZE
|
#ifdef RT_KSERVICE_USING_TINY_SIZE
|
||||||
char *xs = (char *)s;
|
char *xs = (char *)s;
|
||||||
|
|
||||||
while (count--)
|
while (count--)
|
||||||
|
@ -210,7 +210,7 @@ RTM_EXPORT(rt_memset);
|
||||||
*/
|
*/
|
||||||
RT_WEAK void *rt_memcpy(void *dst, const void *src, rt_ubase_t count)
|
RT_WEAK void *rt_memcpy(void *dst, const void *src, rt_ubase_t count)
|
||||||
{
|
{
|
||||||
#ifdef RT_USING_TINY_SIZE
|
#ifdef RT_KSERVICE_USING_TINY_SIZE
|
||||||
char *tmp = (char *)dst, *s = (char *)src;
|
char *tmp = (char *)dst, *s = (char *)src;
|
||||||
rt_ubase_t len;
|
rt_ubase_t len;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue