3 * Copyright (c) 2021 Google LLC.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 // ---- Light Example App Config ----
25 #define RESET_BUTTON 1
26 #define LIGHT_BUTTON 2
30 #define RESET_BUTTON_PUSH 1
31 #define LIGHT_BUTTON_PUSH 2
32 #define JOIN_BUTTON_PUSH 3
33 #define BLE_BUTTON_PUSH 4
35 #define APP_BUTTON_PUSH 1
37 #define SYSTEM_STATE_LED LED1
38 #define LIGHT_STATE_LED LED2
40 // Time it takes for the light to switch on/off
41 #define ACTUATOR_MOVEMENT_PERIOS_MS 50
43 // ---- Light Example SWU Config ----
44 #define SWU_INTERVAl_WINDOW_MIN_MS (23 * 60 * 60 * 1000) // 23 hours
45 #define SWU_INTERVAl_WINDOW_MAX_MS (24 * 60 * 60 * 1000) // 24 hours
47 // ---- Thread Polling Config ----
48 #define THREAD_ACTIVE_POLLING_INTERVAL_MS 100
49 #define THREAD_INACTIVE_POLLING_INTERVAL_MS 1000
52 #define K32W_LOG(...) otPlatLog(OT_LOG_LEVEL_NONE, OT_LOG_REGION_API, ##__VA_ARGS__);