Example

Dependencies:   FXAS21002 FXOS8700Q

simple-mbed-cloud-client/mbed-cloud-client/mbed-client-pal/Configs/pal_ext_configs.cmake

Committer:
maygup01
Date:
2019-11-19
Revision:
0:11cc2b7889af

File content as of revision 0:11cc2b7889af:

SET(PAL_BSP_DIR ${NEW_CMAKE_SOURCE_DIR}/mbed-client-pal/Configs/)
SET(PAL_TLS_BSP_DIR ${PAL_BSP_DIR}/${TLS_LIBRARY})
SET(PAL_PLATFORM_BSP_DIR ${PAL_BSP_DIR}/pal_config)

#choose the samll test suit of esfs - becasue the latge one does not fit with networking to image size
add_definitions(-DESFS_INTERACTIVE_TEST)
add_definitions(-DSOTP_LOG=0)

# these are used & required by the unit tests
add_definitions(-DPAL_NET_DNS_SUPPORT)
add_definitions(-DPAL_DNS_API_VERSION=1)

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()