@@ -12,42 +12,78 @@ set(unittest-includes ${unittest-includes}
12
12
)
13
13
14
14
set (unittest-sources
15
- ../features/device_key/source /DeviceKey.cpp
16
- ../components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp
17
- ../components/storage/blockdevice/COMPONENT_I2CEE/I2CEEBlockDevice.cpp
18
- ../components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp
19
- ../components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp
20
- ../components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp
21
- ../components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp
22
- ../components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp
23
- ../features/storage/filesystem/Dir.cpp
24
- ../features/storage/filesystem/FileSystem.cpp
25
- ../features/storage/filesystem/File.cpp
26
- ../features/storage/kvstore/global_api/kvstore_global_api.cpp
27
- ../features/storage/kvstore/securestore/SecureStore.cpp
28
- ../features/storage/kvstore/kv_map/KVMap.cpp
29
- ../features/storage/kvstore/tdbstore/TDBStore.cpp
30
- ../features/storage/kvstore/direct_access_devicekey/DirectAccessDevicekey.cpp
31
- ../features/storage/kvstore/conf/kv_config.cpp
32
- ../features/storage/kvstore/filesystemstore/FileSystemStore.cpp
33
- ../features/storage/system_storage/SystemStorage.cpp
34
- ../features/storage/blockdevice/ChainingBlockDevice.cpp
35
- ../features/storage/blockdevice/ReadOnlyBlockDevice.cpp
36
- ../features/storage/blockdevice/SlicingBlockDevice.cpp
37
- ../features/storage/blockdevice/MBRBlockDevice.cpp
38
- ../features/storage/blockdevice/HeapBlockDevice.cpp
39
- ../features/storage/blockdevice/FlashSimBlockDevice.cpp
40
- ../features/storage/blockdevice/ObservingBlockDevice.cpp
41
- ../features/storage/blockdevice/ProfilingBlockDevice.cpp
42
- ../features/storage/blockdevice/BufferedBlockDevice.cpp
43
- ../features/storage/blockdevice/ExhaustibleBlockDevice.cpp
15
+ ../features/device_key/source /DeviceKey.cpp
16
+ ../components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp
17
+ ../components/storage/blockdevice/COMPONENT_I2CEE/I2CEEBlockDevice.cpp
18
+ ../components/storage/blockdevice/COMPONENT_DATAFLASH/DataFlashBlockDevice.cpp
19
+ ../components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp
20
+ ../components/storage/blockdevice/COMPONENT_RSPIF/SPIFReducedBlockDevice.cpp
21
+ ../components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp
22
+ ../components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp
23
+ ../features/storage/filesystem/Dir.cpp
24
+ ../features/storage/filesystem/FileSystem.cpp
25
+ ../features/storage/filesystem/File.cpp
26
+ ../features/storage/kvstore/global_api/kvstore_global_api.cpp
27
+ ../features/storage/kvstore/securestore/SecureStore.cpp
28
+ ../features/storage/kvstore/kv_map/KVMap.cpp
29
+ ../features/storage/kvstore/tdbstore/TDBStore.cpp
30
+ ../features/storage/kvstore/direct_access_devicekey/DirectAccessDevicekey.cpp
31
+ ../features/storage/kvstore/conf/kv_config.cpp
32
+ ../features/storage/kvstore/filesystemstore/FileSystemStore.cpp
33
+ ../features/storage/system_storage/SystemStorage.cpp
34
+ ../features/storage/blockdevice/ChainingBlockDevice.cpp
35
+ ../features/storage/blockdevice/ReadOnlyBlockDevice.cpp
36
+ ../features/storage/blockdevice/SlicingBlockDevice.cpp
37
+ ../features/storage/blockdevice/MBRBlockDevice.cpp
38
+ ../features/storage/blockdevice/HeapBlockDevice.cpp
39
+ ../features/storage/blockdevice/FlashSimBlockDevice.cpp
40
+ ../features/storage/blockdevice/ObservingBlockDevice.cpp
41
+ ../features/storage/blockdevice/ProfilingBlockDevice.cpp
42
+ ../features/storage/blockdevice/BufferedBlockDevice.cpp
43
+ ../features/storage/blockdevice/ExhaustibleBlockDevice.cpp
44
44
)
45
45
46
46
set (unittest-test -sources
47
47
empty_baseline/empty_baseline.cpp
48
48
)
49
49
50
- set (DEVICE_FLAGS "-DDEVICE_ANALOGIN -DDEVICE_ANALOGOUT -DDEVICE_CAN -DDEVICE_ETHERNET -DDEVICE_FLASH -DDEVICE_I2C -DDEVICE_I2CSLAVE -DDEVICE_I2C_ASYNCH -DDEVICE_INTERRUPTIN -DDEVICE_LPTICKER -DDEVICE_PORTIN -DDEVICE_PORTINOUT -DDEVICE_PORTOUT -DDEVICE_PWMOUT -DDEVICE_QSPI -DDEVICE_SERIAL -DDEVICE_SERIAL_ASYNCH -DDEVICE_SERIAL_FC -DDEVICE_SPI -DDEVICE_SPISLAVE -DDEVICE_SPI_ASYNCH -DDEVICE_FLASH -DCOMPONENT_FLASHIAP" )
51
- set (CONF_FLAGS "-DMBED_CONF_PLATFORM_CTHUNK_COUNT_MAX=10 -DMBED_CONF_DATAFLASH_SPI_FREQ=1 -DMBED_CONF_FLASHIAP_BLOCK_DEVICE_BASE_ADDRESS=0 -DMBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE=0 -DMBED_CONF_QSPIF_QSPI_FREQ=1 -DMBED_CONF_QSPIF_QSPI_MIN_READ_SIZE=1 -DMBED_CONF_QSPIF_QSPI_MIN_PROG_SIZE=1 -DMBED_LFS_READ_SIZE=64 -DMBED_LFS_PROG_SIZE=64 -DMBED_LFS_BLOCK_SIZE=512 -DMBED_LFS_LOOKAHEAD=512 -DFLASHIAP_APP_ROM_END_ADDR=0x80000 -DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=1024 -DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=0x80000 -DMBED_CONF_STORAGE_STORAGE_TYPE=default" )
52
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${DEVICE_FLAGS} ${CONF_FLAGS} " )
53
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEVICE_FLAGS} ${CONF_FLAGS} " )
50
+ set (unittest-test -flags
51
+ -DDEVICE_ANALOGIN
52
+ -DDEVICE_ANALOGOUT
53
+ -DDEVICE_CAN
54
+ -DDEVICE_ETHERNET
55
+ -DDEVICE_FLASH
56
+ -DDEVICE_I2C
57
+ -DDEVICE_I2CSLAVE
58
+ -DDEVICE_I2C_ASYNCH
59
+ -DDEVICE_INTERRUPTIN
60
+ -DDEVICE_LPTICKER
61
+ -DDEVICE_PORTIN
62
+ -DDEVICE_PORTINOUT
63
+ -DDEVICE_PORTOUT
64
+ -DDEVICE_PWMOUT
65
+ -DDEVICE_QSPI
66
+ -DDEVICE_SERIAL
67
+ -DDEVICE_SERIAL_ASYNCH
68
+ -DDEVICE_SERIAL_FC
69
+ -DDEVICE_SPI
70
+ -DDEVICE_SPISLAVE
71
+ -DDEVICE_SPI_ASYNCH
72
+ -DCOMPONENT_FLASHIAP
73
+ -DMBED_CONF_PLATFORM_CTHUNK_COUNT_MAX=10
74
+ -DMBED_CONF_DATAFLASH_SPI_FREQ=1
75
+ -DMBED_CONF_FLASHIAP_BLOCK_DEVICE_BASE_ADDRESS=0
76
+ -DMBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE=0
77
+ -DMBED_CONF_QSPIF_QSPI_FREQ=1
78
+ -DMBED_CONF_QSPIF_QSPI_MIN_READ_SIZE=1
79
+ -DMBED_CONF_QSPIF_QSPI_MIN_PROG_SIZE=1
80
+ -DMBED_LFS_READ_SIZE=64
81
+ -DMBED_LFS_PROG_SIZE=64
82
+ -DMBED_LFS_BLOCK_SIZE=512
83
+ -DMBED_LFS_LOOKAHEAD=512
84
+ -DFLASHIAP_APP_ROM_END_ADDR=0x80000
85
+ -DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=1024
86
+ -DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=0x80000
87
+ -DMBED_CONF_STORAGE_STORAGE_TYPE=default
88
+ -DMBED_CONF_FAT_CHAN_FF_MAX_SS=4096
89
+ )
0 commit comments