|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +# Target Settings |
| 19 | + |
| 20 | +syscfg.vals: |
| 21 | + BOOT_CUSTOM_START: 1 # Use custom boot function boot_custom_start() |
| 22 | + OS_MAIN_STACK_SIZE: 1024 # Small stack size: 4 KB |
| 23 | + MSYS_1_BLOCK_COUNT: 64 # Allocate MSYS buffers for Semihosting Console |
| 24 | + HAL_ENABLE_SOFTWARE_BREAKPOINTS: 0 # In case of assertion failure, don't breakpoint. Must be set to 0 so that bootloader will reboot and won't hang in case of assertion failures. |
| 25 | + MCU_DEBUG_IGNORE_BKPT: 1 |
| 26 | + |
| 27 | + ########################################################################### |
| 28 | + # Hardware Settings |
| 29 | + |
| 30 | + SPIFLASH: 1 # Enable SPI Flash |
| 31 | + SPI_0_MASTER: 1 # Enable SPI port 0 for ST7789 display and SPI Flash |
| 32 | + I2C_1: 0 # Disable I2C port 1 for CST816S touch controller, BMA421 accelerometer, HRS3300 heart rate sensor |
| 33 | + UART_0: 0 # Disable UART port to reduce ROM size |
| 34 | + |
| 35 | + ########################################################################### |
| 36 | + # Common Settings for minimal ROM size |
| 37 | + |
| 38 | + CONSOLE_COMPAT: 0 # Disable console input |
| 39 | + CONSOLE_RTT: 0 # Disable RTT Console |
| 40 | + CONSOLE_UART: 0 # Disable UART Console |
| 41 | + LOG_CLI: 0 # Disable logging command-line interface |
| 42 | + LOG_LEVEL: 255 # Disable logs |
| 43 | + SENSOR_CLI: 0 # Disable sensor command-line interface |
| 44 | + SENSOR_OIC: 0 # Disable sensor OIC functions |
| 45 | + SHELL_CMD_HELP: 0 # Disable shell help |
| 46 | + SHELL_OS_MODULE: 0 # Disable shell module |
| 47 | + SHELL_TASK: 0 # Disable shell task |
| 48 | + STATS_CLI: 0 # Disable statistics command-line interface |
| 49 | + OS_SYSVIEW_TRACE_CALLOUT: 0 # Disable trace of callouts |
| 50 | + OS_SYSVIEW_TRACE_EVENTQ: 0 # Disable trace of event queues |
| 51 | + OS_SYSVIEW_TRACE_MUTEX: 0 # Disable trace of mutex |
| 52 | + OS_SYSVIEW_TRACE_SEM: 0 # Disable trace of semaphores |
| 53 | + BOOTUTIL_FEED_WATCHDOG: 1 # Enable watchdog feeding while performing a swap upgrade |
| 54 | + SANITY_INTERVAL: 1000 # The interval (in milliseconds) at which the sanity checks should run, should be at least 200ms prior to watchdog |
| 55 | + WATCHDOG_INTERVAL: 2000 # The interval (in milliseconds) at which the watchdog should reset if not tickled, in ms |
| 56 | + |
| 57 | + # Specific target hardware config |
| 58 | + |
| 59 | + PUSH_BUTTON_IN: 13 |
| 60 | + PUSH_BUTTON_OUT: 15 |
0 commit comments