blob: 2f2cb7cd385cf35fc4a575baf185476082cc1958 [file] [log] [blame]
Timothy Maes280f5682020-11-17 16:37:46 +01001/*
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-wrk7dfad422021-11-29 23:02:05 +030023#define APP_TASK_NAME "APP"
jimlyall-q9ffd85e2021-03-03 14:59:09 +010024#define APP_LOCK_BUTTON BTN_SW4
25#define APP_FUNCTION_BUTTON BTN_SW5
Timothy Maes280f5682020-11-17 16:37:46 +010026
27#define SYSTEM_STATE_LED LED_GREEN
Dieter Van der Meulen9b608632021-11-30 14:54:35 +010028#define LOCK_STATE_LED LED_WHITE
Timothy Maes280f5682020-11-17 16:37:46 +010029
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 Maese4cfa0a2022-07-18 15:40:40 +020038// 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 Maes280f5682020-11-17 16:37:46 +010045#endif // APP_CONFIG_H