Timothy Maes | 280f568 | 2020-11-17 16:37:46 +0100 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * Copyright (c) 2020 Project CHIP Authors |
| 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 | #ifndef APP_CONFIG_H |
| 20 | #define APP_CONFIG_H |
| 21 | |
| 22 | // ---- Lock Example App Config ---- |
nikita-s-wrk | 7dfad42 | 2021-11-29 23:02:05 +0300 | [diff] [blame] | 23 | #define APP_TASK_NAME "APP" |
jimlyall-q | 9ffd85e | 2021-03-03 14:59:09 +0100 | [diff] [blame] | 24 | #define APP_LOCK_BUTTON BTN_SW4 |
| 25 | #define APP_FUNCTION_BUTTON BTN_SW5 |
Timothy Maes | 280f568 | 2020-11-17 16:37:46 +0100 | [diff] [blame] | 26 | |
| 27 | #define SYSTEM_STATE_LED LED_GREEN |
Dieter Van der Meulen | 9b60863 | 2021-11-30 14:54:35 +0100 | [diff] [blame] | 28 | #define LOCK_STATE_LED LED_WHITE |
Timothy Maes | 280f568 | 2020-11-17 16:37:46 +0100 | [diff] [blame] | 29 | |
| 30 | // Time it takes in ms for the simulated actuator to move from one |
| 31 | // state to another. |
| 32 | #define ACTUATOR_MOVEMENT_PERIOS_MS 2000 |
| 33 | |
| 34 | // ---- Lock Example SWU Config ---- |
| 35 | #define SWU_INTERVAl_WINDOW_MIN_MS (23 * 60 * 60 * 1000) // 23 hours |
| 36 | #define SWU_INTERVAl_WINDOW_MAX_MS (24 * 60 * 60 * 1000) // 24 hours |
| 37 | |
Timothy Maes | e4cfa0a | 2022-07-18 15:40:40 +0200 | [diff] [blame] | 38 | // Maximum number of users supported by lock |
| 39 | #define CONFIG_LOCK_NUM_USERS (5) |
| 40 | // Maximum number of credentials supported by lock |
| 41 | #define CONFIG_LOCK_NUM_CREDENTIALS (10) |
| 42 | // Maximum number of credentials per user supported by lock |
| 43 | #define CONFIG_LOCK_NUM_CREDENTIALS_PER_USER (2) |
| 44 | |
Timothy Maes | 280f568 | 2020-11-17 16:37:46 +0100 | [diff] [blame] | 45 | #endif // APP_CONFIG_H |