Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / pigweed-app / efr32 / include / AppConfig.h
1 /*
2  *
3  *    Copyright (c) 2021 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 #pragma once
20
21 // ---- PW Example App Config ----
22
23 // EFR32 WSTK Buttons
24 #define PB0 0
25 #define PB1 1
26
27 // EFR32 WSTK LEDs
28 #define BSP_LED_0 0
29 #define BSP_LED_1 1
30
31 #define APP_BUTTON_DEBOUNCE_PERIOD_MS 50
32 #define APP_BUTTON_PRESSED 0
33 #define APP_BUTTON_RELEASED 1
34
35 #define SYSTEM_STATE_LED BSP_LED_0
36
37 // EFR Logging
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 void efr32LogInit(void);
43 void efr32Log(const char * aFormat, ...);
44 #define EFR32_LOG(...) efr32Log(__VA_ARGS__);
45 void appError(int err);
46
47 #ifdef __cplusplus
48 }
49 #endif