3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2020 Google LLC.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 * Platform-specific configuration overrides for the chip Device Layer
23 * on K32W platforms using the NXP SDK.
28 // ==================== Platform Adaptations ====================
30 #define K32W_NO_ERRORS 0
31 #define K32W_ENTRY_NOT_FOUND 1
33 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
34 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
36 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD 1
38 #ifndef CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
39 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
42 #ifndef CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
43 #define CHIP_DEVICE_CHIP0BLE_DEBUG 0
46 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
48 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_CRIT_EIDC_KEY 2
49 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_PROD_EIDC_KEY 3
50 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_INFO_EIDC_KEY 4
51 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_DEBUG_EIDC_KEY 5
53 // ========== Platform-specific Configuration =========
55 // These are configuration options that are unique to the K32W platform.
56 // These can be overridden by the application as needed.
59 * @def CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
61 * The priority of the SoftDevice observer event handler registered by the
64 #ifndef CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
65 #define CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY 3
66 #endif // CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
69 * @def CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
71 * The SoftDevice BLE connection configuration tag used by the chip
74 #ifndef CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
75 #define CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG 1
76 #endif // CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
78 // ========== Platform-specific Configuration Overrides =========
79 #ifndef CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
80 #define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 8192
81 #endif // CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
83 #ifndef CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE
84 #define CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE 8192
85 #endif // CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE
87 #ifndef CHIP_DEVICE_CONFIG_BLE_APP_TASK_NAME
88 #define CHIP_DEVICE_CONFIG_BLE_APP_TASK_NAME "BLE App Task"
89 #endif // CHIP_DEVICE_CONFIG_BLE_APP_TASK_NAME
91 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_TELEMETRY 0
92 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY 1
93 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY_FULL 0
94 #define CHIP_DEVICE_CONFIG_LOG_PROVISIONING_HASH 0
96 #define CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED 1
98 #define CHIP_DEVICE_CONFIG_CHIPOBLE_ENABLE_ADVERTISING_AUTOSTART 0
100 #define CHIP_DEVICE_CONFIG_ENABLE_PAIRING_AUTOSTART 0