3 * Copyright (c) 2020 Project CHIP Authors
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 * Platform-specific configuration overrides for the CHIP System
21 * Layer on QPG6100 platforms.
30 namespace DeviceLayer {
31 struct ChipDeviceEvent;
32 } // namespace DeviceLayer
35 // ==================== Platform Adaptations ====================
37 #define CHIP_SYSTEM_CONFIG_POSIX_LOCKING 0
38 #define CHIP_SYSTEM_CONFIG_FREERTOS_LOCKING 0
39 #define CHIP_SYSTEM_CONFIG_NO_LOCKING 1
40 #define CHIP_SYSTEM_CONFIG_PLATFORM_PROVIDES_EVENT_FUNCTIONS 1
41 #define CHIP_SYSTEM_CONFIG_PLATFORM_PROVIDES_TIME 1
42 #define CHIP_SYSTEM_CONFIG_LWIP_EVENT_TYPE int
43 #define CHIP_SYSTEM_CONFIG_LWIP_EVENT_OBJECT_TYPE const struct ::chip::DeviceLayer::ChipDeviceEvent *
45 #define CHIP_SYSTEM_CONFIG_ERROR_TYPE int32_t
46 #define CHIP_SYSTEM_CONFIG_NO_ERROR 0
47 #define CHIP_SYSTEM_CONFIG_ERROR_MIN 7000000
48 #define CHIP_SYSTEM_CONFIG_ERROR_MAX 7000999
49 #define _CHIP_SYSTEM_CONFIG_ERROR(e) (CHIP_SYSTEM_CONFIG_ERROR_MIN + (e))
50 #define CHIP_SYSTEM_LWIP_ERROR_MIN 3000000
51 #define CHIP_SYSTEM_LWIP_ERROR_MAX 3000128
53 // ========== Platform-specific Configuration Overrides =========
55 #ifndef CHIP_SYSTEM_CONFIG_NUM_TIMERS
56 #define CHIP_SYSTEM_CONFIG_NUM_TIMERS 16
57 #endif // CHIP_SYSTEM_CONFIG_NUM_TIMERS