3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2019 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 // ---- Lock Example App Config ----
24 #define APP_TASK_NAME "APP"
34 #define APP_LOCK_BUTTON PB1
35 #define APP_FUNCTION_BUTTON PB0
36 #define APP_BUTTON_DEBOUNCE_PERIOD_MS 50
38 #define APP_BUTTON_PRESSED 0
39 #define APP_BUTTON_RELEASED 1
41 #define SYSTEM_STATE_LED BSP_LED_0
42 #define LOCK_STATE_LED BSP_LED_1
44 // Time it takes in ms for the simulated actuator to move from one
46 #define ACTUATOR_MOVEMENT_PERIOS_MS 2000
48 // ---- Lock Example SWU Config ----
49 #define SWU_INTERVAl_WINDOW_MIN_MS (23 * 60 * 60 * 1000) // 23 hours
50 #define SWU_INTERVAl_WINDOW_MAX_MS (24 * 60 * 60 * 1000) // 24 hours
52 // ---- Thread Polling Config ----
53 #define THREAD_ACTIVE_POLLING_INTERVAL_MS 100
54 #define THREAD_INACTIVE_POLLING_INTERVAL_MS 1000
61 void efr32LogInit(void);
63 void efr32Log(const char * aFormat, ...);
64 #define EFR32_LOG(...) efr32Log(__VA_ARGS__);
65 void appError(int err);