-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.h
46 lines (38 loc) · 1.44 KB
/
app.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/***************************************************************************//**
* @brief app.h
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#ifndef APP_H_
#define APP_H_
#include "gecko_configuration.h"
/* DEBUG_LEVEL is used to enable/disable debug prints. Set DEBUG_LEVEL to 1 to enable debug prints */
#define DEBUG_LEVEL 0
/* Set this value to 1 if you want to disable deep sleep completely */
#define DISABLE_SLEEP 0
#if DEBUG_LEVEL
#include "retargetserial.h"
#include <stdio.h>
#endif
#if DEBUG_LEVEL
#define initLog() RETARGET_SerialInit()
#define flushLog() RETARGET_SerialFlush()
#define printLog(...) printf(__VA_ARGS__)
#else
#define initLog()
#define flushLog()
#define printLog(...)
#endif
/* Main application */
void appMain(gecko_configuration_t *pconfig);
#endif