diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-30 09:42:58 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-30 12:42:40 -0700 |
commit | 4a0b4262d395ec2c46809e1584b2109f3a3d872e (patch) | |
tree | 3514f309c3b267a8c844d05324dc1b41058ad3c2 /chip | |
parent | c795ea69ff4930d90e3d0cbdc9a10332e34be2bb (diff) | |
download | chrome-ec-4a0b4262d395ec2c46809e1584b2109f3a3d872e.tar.gz |
Add tick task
Adds a new HOOK_TICK event which is called every 250ms (LM4) or 500ms
(STM32). This will be used to consolidate a number of tasks which do
small amounts of work infrequently, and previously needed their own
task functions.
This CL adds the tick task; subsequent CLs will consolidate watchdog
and other tasks into tick hooks.
BUG=chrome-os-partner:15714
BRANCH=none
TEST=taskinfo shows TICK task as lowest priority
Change-Id: I9068ee99d56a5bf5c12afd86ad51998c013f4954
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36908
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/lm4/config.h | 3 | ||||
-rw-r--r-- | chip/stm32/config.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chip/lm4/config.h b/chip/lm4/config.h index 7a39262ba6..aa40382b42 100644 --- a/chip/lm4/config.h +++ b/chip/lm4/config.h @@ -15,6 +15,9 @@ /* Use a bigger console output buffer */ #define CONFIG_UART_TX_BUF_SIZE 8192 +/* Interval between HOOK_TICK notifications */ +#define HOOK_TICK_INTERVAL (250 * MSEC) + /****************************************************************************/ /* Memory mapping */ diff --git a/chip/stm32/config.h b/chip/stm32/config.h index ddd79f39bc..bc7283396a 100644 --- a/chip/stm32/config.h +++ b/chip/stm32/config.h @@ -24,6 +24,9 @@ /* Default task stack size */ #define TASK_STACK_SIZE 488 +/* Interval between HOOK_TICK notifications */ +#define HOOK_TICK_INTERVAL (500 * MSEC) + /* support programming on-chip flash */ #define CONFIG_FLASH |