Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / lock-app / k32w / main / include / app_config.h
1 /*
2  *
3  *    Copyright (c) 2020 Google LLC.
4  *    All rights reserved.
5  *
6  *    Licensed under the Apache License, Version 2.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  *
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19 #include "LED.h"
20
21 #pragma once
22
23 // ---- Lock Example App Config ----
24
25 #define RESET_BUTTON 1
26 #define LOCK_BUTTON 2
27 #define JOIN_BUTTON 3
28 #define BLE_BUTTON 4
29
30 #define RESET_BUTTON_PUSH 1
31 #define LOCK_BUTTON_PUSH 2
32 #define JOIN_BUTTON_PUSH 3
33 #define BLE_BUTTON_PUSH 4
34
35 #define APP_BUTTON_PUSH 1
36
37 #define SYSTEM_STATE_LED LED1
38 #define LOCK_STATE_LED LED2
39
40 // Time it takes in ms for the simulated actuator to move from one
41 // state to another.
42 #define ACTUATOR_MOVEMENT_PERIOS_MS 2000
43
44 // ---- Lock Example SWU Config ----
45 #define SWU_INTERVAl_WINDOW_MIN_MS (23 * 60 * 60 * 1000) // 23 hours
46 #define SWU_INTERVAl_WINDOW_MAX_MS (24 * 60 * 60 * 1000) // 24 hours
47
48 // ---- Thread Polling Config ----
49 #define THREAD_ACTIVE_POLLING_INTERVAL_MS 100
50 #define THREAD_INACTIVE_POLLING_INTERVAL_MS 1000
51
52 #if K32W_LOG_ENABLED
53 #define K32W_LOG(...) otPlatLog(OT_LOG_LEVEL_NONE, OT_LOG_REGION_API, ##__VA_ARGS__);
54 #else
55 #define K32W_LOG(...)
56 #endif