-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathdefine_NXP_LPC54628.txt
70 lines (58 loc) · 3.29 KB
/
define_NXP_LPC54628.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
if (NOT (${OS_BRAND} MATCHES "NXP"))
message(FATAL_ERROR "define_NXP.txt to be used only with NXP builds.")
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
###############################################################################
# Selection for the QSPI chip support. (Only select one of the three options.)
# LPCXpresso546XX eval board revision C or D support FLASH_MT25Q.
# LPCXpresso546XX eval board revision E or later support FLASH_W25Q.
###############################################################################
add_definitions(-DFLASH_W25Q)
#add_definitions(-DFLASH_MT25Q)
#add_definitions(-DFLASH_MX25R)
add_definitions(-DMBED_CLOUD_CLIENT_USER_CONFIG_FILE=\"mbed_cloud_client_user_config.h\")
add_definitions(-DPAL_USER_DEFINED_CONFIGURATION=\"pal_config_NXP.h\")
if (EXISTS ${NEW_CMAKE_SOURCE_DIR}/../../../../middleware/arm-pelion/mbed-cloud-client/mbed-client-pal/Configs/${TLS_LIBRARY})
SET(PAL_TLS_BSP_DIR ${NEW_CMAKE_SOURCE_DIR}/../../../../middleware/arm-pelion/mbed-cloud-client/mbed-client-pal/Configs/${TLS_LIBRARY})
else()
SET(PAL_TLS_BSP_DIR ${NEW_CMAKE_SOURCE_DIR}/mbed-cloud-client/mbed-client-pal/Configs/${TLS_LIBRARY})
endif()
add_definitions(-DMBEDTLS_CONFIG_FILE=\"${PAL_TLS_BSP_DIR}/mbedTLSConfig_${OS_BRAND}.h\")
if(PAL_SIMULATOR_FILE_SYSTEM_OVER_RAM)
message(WARNING "You are using simulation of File System over RAM")
add_definitions(-DPAL_SIMULATOR_FILE_SYSTEM_OVER_RAM=${PAL_SIMULATOR_FILE_SYSTEM_OVER_RAM})
endif(PAL_SIMULATOR_FILE_SYSTEM_OVER_RAM)
add_definitions(-DMBED_CONF_NS_HAL_PAL_EVENT_LOOP_THREAD_STACK_SIZE=8000)
add_definitions(-DPAL_SEMAPHORE_MAX_COUNT=4096)
add_definitions(-DPAL_DTLS_PEER_MIN_TIMEOUT=5000)
add_definitions(-DCOMPONENT_FLASHIAP)
add_definitions(-DFLASHIAP_APP_ROM_END_ADDR=0x80000)
add_definitions(-DMBED_CONF_STORAGE_STORAGE_TYPE=TDB_EXTERNAL)
add_definitions(-DMBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS=0x78000)
add_definitions(-DMBED_CONF_STORAGE_TDB_EXTERNAL_RBP_INTERNAL_SIZE=0x8000)
add_definitions(-DMBED_CONF_STORAGE_TDB_EXTERNAL_EXTERNAL_BASE_ADDRESS=0x0)
add_definitions(-DMBED_CONF_STORAGE_TDB_EXTERNAL_EXTERNAL_SIZE=0x20000)
add_definitions(-DMBED_CONF_STORAGE_TDB_EXTERNAL_BLOCKDEVICE=EXTERNAL_BLOCKDEVICE)
add_definitions(-DCOMPONENT_EXTERNAL_BLOCKDEVICE)
add_definitions(-DMBED_CONF_MBED_CLOUD_CLIENT_EXTERNAL_SST_SUPPORT=1)
add_definitions(-DMBED_CONF_MBED_CLOUD_CLIENT_DISABLE_CERTIFICATE_ENROLLMENT=1)
# Disable application features to minimize flash size.
add_definitions(-DDISABLE_ERROR_DESCRIPTION)
#add_definitions(-DMCC_MEMORY)
# Set to 1 to enable tracing
add_definitions(-DMBED_CONF_MBED_TRACE_ENABLE=0)
add_definitions(-DMBED_TRACE_MAX_LEVEL=TRACE_LEVEL_ERROR)
add_definitions(-DMBED_CONF_APP_DEVELOPER_MODE=1)
add_definitions(-DPLATFORM_ENABLE_BUTTON=1)
add_definitions(-DPLATFORM_ENABLE_LED=1)
##### PORT TESTS #####
add_definitions(-DPAL_SKIP_TEST_MODULE_SOTP=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_FILESYSTEM=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_INTERNALFLASH=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_UPDATE=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_ROT=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_DRBG=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_TIME=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_CRYPTO=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_TLS=1)
add_definitions(-DPAL_SKIP_TEST_MODULE_SST=1)