| /* |
| * Copyright (c) 2016, The OpenThread Authors. |
| * All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions are met: |
| * 1. Redistributions of source code must retain the above copyright |
| * notice, this list of conditions and the following disclaimer. |
| * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. |
| * 3. Neither the name of the copyright holder nor the |
| * names of its contributors may be used to endorse or promote products |
| * derived from this software without specific prior written permission. |
| * |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| * POSSIBILITY OF SUCH DAMAGE. |
| */ |
| |
| /** |
| * @file custom_config_qspi.h |
| * Board Support Package. User Configuration file for cached QSPI mode. |
| */ |
| |
| #ifndef CUSTOM_CONFIG_QSPI_H_ |
| #define CUSTOM_CONFIG_QSPI_H_ |
| |
| #include "bsp_definitions.h" |
| |
| // clang-format off |
| |
| #define dg_configBLACK_ORCA_IC_REV BLACK_ORCA_IC_REV_B |
| #define dg_configBLACK_ORCA_IC_STEP BLACK_ORCA_IC_STEP_B |
| |
| #undef CONFIG_USE_BLE |
| #define CONFIG_USE_FTDF |
| |
| #define __HEAP_SIZE 0x0600 |
| #define __STACK_SIZE 0x0100 |
| |
| #define dg_configUSE_LP_CLK LP_CLK_32768 |
| #define dg_configEXEC_MODE MODE_IS_CACHED |
| #define dg_configCODE_LOCATION NON_VOLATILE_IS_FLASH |
| #define dg_configEXT_CRYSTAL_FREQ EXT_CRYSTAL_IS_16M |
| |
| #define dg_configIMAGE_SETUP DEVELOPMENT_MODE |
| #define dg_configEMULATE_OTP_COPY (0) |
| |
| #define dg_configUSER_CAN_USE_TIMER1 (0) |
| |
| #define dg_configUSE_WDOG (0) |
| |
| #define dg_configFLASH_CONNECTED_TO (FLASH_CONNECTED_TO_1V8) |
| #define dg_configFLASH_POWER_DOWN (0) |
| |
| #define dg_configPOWER_1V8_ACTIVE (1) |
| #define dg_configPOWER_1V8_SLEEP (1) |
| |
| #define dg_configBATTERY_TYPE (BATTERY_TYPE_LIMN2O4) |
| #define dg_configBATTERY_CHARGE_CURRENT 2 // 30mA |
| #define dg_configBATTERY_PRECHARGE_CURRENT 20 // 2.1mA |
| #define dg_configBATTERY_CHARGE_NTC 1 // disabled |
| |
| #define dg_configUSE_USB 0 |
| #define dg_configUSE_USB_CHARGER 0 |
| #define dg_configALLOW_CHARGING_NOT_ENUM 1 |
| |
| #define dg_configUSE_ProDK (1) |
| |
| #define dg_configUSE_SW_CURSOR (1) |
| |
| #define dg_configDISABLE_BACKGROUND_FLASH_OPS (1) |
| |
| /*************************************************************************************************\ |
| * Memory layout specific config |
| */ |
| #define dg_configQSPI_CODE_SIZE (512 * 1024) |
| |
| /*************************************************************************************************\ |
| * FTDF specific config |
| */ |
| #define FTDF_NO_CSL /* Define this to disable CSL mode */ |
| #define FTDF_NO_TSCH /* Define this to disable TSCH mode */ |
| #define FTDF_LITE /* Define this to enable LITE mode (only transparent mode enabled) */ |
| #define FTDF_PHY_API /* Define this to enable PHY API mode (no FTDF adapter; |
| implies FTDF_LITE) */ |
| #define FTDF_PASS_ACK_FRAME /* Define this to pass ACK frame */ |
| |
| /*************************************************************************************************\ |
| * OS specific config |
| */ |
| #define OS_BAREMETAL |
| |
| /*************************************************************************************************\ |
| * Peripheral specific config |
| */ |
| #define dg_configRF_ENABLE_RECALIBRATION (0) |
| |
| #define dg_configUSE_HW_AES_HASH (1) |
| #define dg_configUSE_HW_TIMER0 (1) |
| #define dg_configUSE_HW_TRNG (1) |
| |
| #define dg_configFLASH_ADAPTER (0) |
| #define dg_configRF_ADAPTER (0) |
| #define dg_configUART_SOFTWARE_FIFO (1) |
| #define dg_configUART2_SOFTWARE_FIFO_SIZE (256) |
| |
| #define dg_configNVMS_ADAPTER (0) |
| #define dg_configNVMS_VES (0) |
| |
| /* Include bsp default values */ |
| #include "bsp_defaults.h" |
| |
| // clang-format on |
| |
| #endif /* CUSTOM_CONFIG_QSPI_H_ */ |