| /* |
| * |
| * Copyright (c) 2021-2022 Project CHIP Authors |
| * All rights reserved. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| /** |
| * @file |
| * Example project configuration file for CHIP. |
| * |
| * This is a place to put application or project-specific overrides |
| * to the default configuration values for general CHIP features. |
| * |
| */ |
| |
| #pragma once |
| |
| // Enable use of test setup parameters for testing purposes only. |
| // |
| // WARNING: This option makes it possible to circumvent basic chip security functionality. |
| // Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS. |
| // |
| #define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 1 |
| |
| // requirement for authentication in various protocols can be disabled. |
| // |
| // WARNING: These options make it possible to circumvent basic Chip security functionality, |
| // including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS. |
| // |
| #define CHIP_CONFIG_SECURITY_TEST_MODE 0 |
| |
| /** |
| * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID |
| * |
| * 0xFFF1: Test vendor. |
| */ |
| #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0xFFF1 |
| |
| /** |
| * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID |
| * |
| * 0x800B: pigweed-app |
| */ |
| #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x800B |
| |
| /** |
| * CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION |
| * |
| * The hardware version number assigned to device or product by the device vendor. This |
| * number is scoped to the device product id, and typically corresponds to a revision of the |
| * physical device, a change to its packaging, and/or a change to its marketing presentation. |
| * This value is generally *not* incremented for device software versions. |
| */ |
| #define CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION 1 |
| |
| /** |
| * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE |
| * |
| * Enable support for Chip-over-BLE (CHIPoBLE). |
| */ |
| #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1 |
| |
| /** |
| * CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER |
| * |
| * Enables the use of a hard-coded default serial number if none |
| * is found in Chip NV storage. |
| */ |
| #define CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER "DUMMY_SN" |
| |
| /** |
| * CHIP_DEVICE_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS |
| * |
| * Enable recording UTC timestamps. |
| */ |
| #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1 |
| |
| /** |
| * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE |
| * |
| * A size, in bytes, of the individual debug event logging buffer. |
| */ |
| #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512) |
| |
| /** |
| * CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL |
| * |
| * The interval (in units of 0.625ms) at which the device will send BLE advertisements while |
| * in fast advertising mode. |
| * |
| * 40 (25ms). |
| */ |
| #define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL 40 |
| |
| /** |
| * CHIP_DEVICE_CONFIG_BLE_SLOW_ADVERTISING_INTERVAL |
| * |
| * The interval (in units of 0.625ms) at which the device will send BLE advertisements while |
| * in slow advertisement mode. |
| * |
| * 800 (500ms). |
| */ |
| #define CHIP_DEVICE_CONFIG_BLE_SLOW_ADVERTISING_INTERVAL 800 |
| |
| /** |
| * CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_TIMEOUT |
| * |
| * The amount of time in miliseconds after which BLE should change his advertisements |
| * from fast interval to slow interval. |
| * |
| * 30000 (30 secondes). |
| */ |
| #define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_TIMEOUT (30 * 1000) |
| |
| // Enable unit-test only features |
| #define CONFIG_BUILD_FOR_HOST_UNIT_TEST 1 |