You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/05/23 07:08:53 UTC
[GitHub] [mynewt-core] brolan-juul commented on a change in pull request
#1838: [Feature]: Main Task OS Sanity Check
brolan-juul commented on a change in pull request #1838: [Feature]: Main Task OS Sanity Check
URL: https://github.com/apache/mynewt-core/pull/1838#discussion_r286803639
##########
File path: kernel/os/src/os.c
##########
@@ -45,8 +45,14 @@ OS_TASK_STACK_DEFINE(g_idle_task_stack, OS_IDLE_STACK_SIZE);
uint32_t g_os_idle_ctr;
-static struct os_task os_main_task;
-OS_TASK_STACK_DEFINE(os_main_stack, OS_MAIN_STACK_SIZE);
+struct os_task g_os_main_task;
+OS_TASK_STACK_DEFINE(g_os_main_stack, OS_MAIN_STACK_SIZE);
+
+/*
+ * Double the interval timer to allow proper timer check-in.
+ */
+#define OS_MAIN_TASK_TIMER_TICKS \
Review comment:
Agreed. That would be a more descriptive name.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services