File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,18 @@ config RT_TIMER_THREAD_STACK_SIZE
116116
117117endif
118118
119+ menu "kservice optimization"
120+
119121config RT_KSERVICE_USING_STDLIB
120122 bool "Enable kservice to use standard C library"
121123 default n
122124
125+ config RT_KSERVICE_USING_TINY_SIZE
126+ bool "Enable kservice to use tiny size"
127+ default n
128+
129+ endmenu
130+
123131menuconfig RT_DEBUG
124132 bool "Enable debugging features"
125133 default y
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ RTM_EXPORT(_rt_errno);
126126 */
127127RT_WEAK void * rt_memset (void * s , int c , rt_ubase_t count )
128128{
129- #ifdef RT_USING_TINY_SIZE
129+ #ifdef RT_KSERVICE_USING_TINY_SIZE
130130 char * xs = (char * )s ;
131131
132132 while (count -- )
@@ -210,7 +210,7 @@ RTM_EXPORT(rt_memset);
210210 */
211211RT_WEAK void * rt_memcpy (void * dst , const void * src , rt_ubase_t count )
212212{
213- #ifdef RT_USING_TINY_SIZE
213+ #ifdef RT_KSERVICE_USING_TINY_SIZE
214214 char * tmp = (char * )dst , * s = (char * )src ;
215215 rt_ubase_t len ;
216216
You can’t perform that action at this time.
0 commit comments