diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-07-15 16:17:32 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-07-16 12:06:31 -0700 |
commit | 0c73fdae773be0d42c969e4171b0504fcf06b97a (patch) | |
tree | 120e5c72cc095911d5761f2004b959176bcc974c /chip/stm32/config_chip.h | |
parent | 873e4425c5e27be3019b0ca47251e6fb94715bd3 (diff) | |
download | chrome-ec-0c73fdae773be0d42c969e4171b0504fcf06b97a.tar.gz |
Make a top-level config.h file to include sub-configs
This file will soon contain the exhaustive list of all CONFIG defines
and their descriptions.
Chip-level configs are renamed to config_chip.h to avoid naming
conflicts.
BUG=chrome-os-partner:18343
BRANCH=none
TEST=build all platforms
Change-Id: I9e94146f5b4c016894bd3ae3d371c4b9f3f69afe
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/62122
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32/config_chip.h')
-rw-r--r-- | chip/stm32/config_chip.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/chip/stm32/config_chip.h b/chip/stm32/config_chip.h new file mode 100644 index 0000000000..e6df7a7730 --- /dev/null +++ b/chip/stm32/config_chip.h @@ -0,0 +1,56 @@ +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_CONFIG_CHIP_H +#define __CROS_EC_CONFIG_CHIP_H + +/* use variant specific configuration for flash / UART / IRQ */ +#if defined(CHIP_VARIANT_stm32l15x) +#include "config-stm32l15x.h" +#elif defined(CHIP_VARIANT_stm32f100) +/* STM32F100xx is currently the only outlier in the STM32F series */ +#include "config-stm32f100.h" +#elif defined(CHIP_VARIANT_stm32f10x) +/* STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx, and STM32F107xx */ +#include "config-stm32f10x.h" +#else +#error "Unsupported chip variant" +#endif + +/* System stack size */ +#define CONFIG_STACK_SIZE 1024 + +/* Idle task stack size */ +#define IDLE_TASK_STACK_SIZE 256 + +/* Default task stack size */ +#define TASK_STACK_SIZE 488 + +/* Interval between HOOK_TICK notifications */ +#define HOOK_TICK_INTERVAL (500 * MSEC) + +/* Maximum number of deferrable functions */ +#define DEFERRABLE_MAX_COUNT 8 + +/* Number of I2C ports */ +#define I2C_PORT_COUNT 2 + +/* support programming on-chip flash */ +#define CONFIG_FLASH +#define CONFIG_FMAP + +/* build with assertions and debug messages */ +#define CONFIG_DEBUG + +/* Enable watchdog timer */ +#define CONFIG_WATCHDOG + +/* Flash protection applies to the next boot, not the current one */ +#define CONFIG_FLASH_PROTECT_NEXT_BOOT + +/* Compile for running from RAM instead of flash */ +/* #define COMPILE_FOR_RAM */ + +#endif /* __CROS_EC_CONFIG_CHIP_H */ |