forked from PelionIoT/mbed-cloud-client-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
define.txt
32 lines (28 loc) · 1.47 KB
/
define.txt
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
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
if (NOT (${OS_BRAND} MATCHES "FreeRTOS"))
add_definitions(-DMBED_CLIENT_USER_CONFIG_FILE="\\"mbed_cloud_client_user_config.h"\\")
add_definitions(-DMBED_CLOUD_CLIENT_USER_CONFIG_FILE="\\"mbed_cloud_client_user_config.h"\\")
add_definitions(-DPAL_USER_DEFINED_CONFIGURATION="\\"sotp_fs_config_linux.h"\\")
if(RESET_STORAGE)
add_definitions(-DRESET_STORAGE)
endif(RESET_STORAGE)
else()
add_definitions(-DMBED_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\")
add_definitions(-DMBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\")
add_definitions(-DPAL_USER_DEFINED_CONFIGURATION=\"sotp_fs_config_FreeRTOS.h\")
endif()
SET(PAL_TLS_BSP_DIR ${NEW_CMAKE_SOURCE_DIR}/mbed-cloud-client/mbed-client-pal/Configs/${TLS_LIBRARY})
if (${TLS_LIBRARY} MATCHES mbedTLS)
# PAL specific configurations for mbedTLS
if (NOT (${OS_BRAND} MATCHES "FreeRTOS"))
add_definitions(-DMBEDTLS_CONFIG_FILE="\\"${PAL_TLS_BSP_DIR}/mbedTLSConfig_${OS_BRAND}.h"\\")
else()
add_definitions(-DMBEDTLS_CONFIG_FILE=\"${PAL_TLS_BSP_DIR}/mbedTLSConfig_${OS_BRAND}.h\")
endif()
message("PAL_TLS_BSP_DIR ${PAL_TLS_BSP_DIR}/pal_${OS_BRAND}.h")
endif()
add_definitions(-DPAL_DTLS_PEER_MIN_TIMEOUT=5000)
add_definitions(-DMBED_CONF_APP_DEVELOPER_MODE=1)
add_definitions(-DMBED_CONF_MBED_TRACE_ENABLE=0)
add_definitions(-DPLATFORM_ENABLE_BUTTON=1)
add_definitions(-DPLATFORM_ENABLE_LED=1)