fix rtc alarm thread parameters issue
This commit is contained in:
parent
66d54ea8c0
commit
bad2745dd3
|
@ -14,11 +14,11 @@ config RT_USING_RTC
|
||||||
|
|
||||||
config RT_ALARM_TIMESLICE
|
config RT_ALARM_TIMESLICE
|
||||||
int "timeslice for alarm thread"
|
int "timeslice for alarm thread"
|
||||||
default 10
|
default 5
|
||||||
|
|
||||||
config RT_ALARM_PRIORITY
|
config RT_ALARM_PRIORITY
|
||||||
int "priority for alarm thread"
|
int "priority for alarm thread"
|
||||||
default 5
|
default 10
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config RT_USING_SOFT_RTC
|
config RT_USING_SOFT_RTC
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
#define RT_ALARM_STACK_SIZE 2048
|
#define RT_ALARM_STACK_SIZE 2048
|
||||||
#endif
|
#endif
|
||||||
#ifndef RT_ALARM_TIMESLICE
|
#ifndef RT_ALARM_TIMESLICE
|
||||||
#define RT_ALARM_TIMESLICE 10
|
#define RT_ALARM_TIMESLICE 5
|
||||||
#endif
|
#endif
|
||||||
#ifndef RT_ALARM_PRIORITY
|
#ifndef RT_ALARM_PRIORITY
|
||||||
#define RT_ALARM_PRIORITY 5
|
#define RT_ALARM_PRIORITY 10
|
||||||
#endif
|
#endif
|
||||||
static struct rt_alarm_container _container;
|
static struct rt_alarm_container _container;
|
||||||
|
|
||||||
|
@ -800,8 +800,8 @@ int rt_alarm_system_init(void)
|
||||||
tid = rt_thread_create("alarmsvc",
|
tid = rt_thread_create("alarmsvc",
|
||||||
rt_alarmsvc_thread_init, RT_NULL,
|
rt_alarmsvc_thread_init, RT_NULL,
|
||||||
RT_ALARM_STACK_SIZE,
|
RT_ALARM_STACK_SIZE,
|
||||||
RT_ALARM_TIMESLICE,
|
RT_ALARM_PRIORITY,
|
||||||
RT_ALARM_PRIORITY);
|
RT_ALARM_TIMESLICE);
|
||||||
if (tid != RT_NULL)
|
if (tid != RT_NULL)
|
||||||
rt_thread_startup(tid);
|
rt_thread_startup(tid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue