File tree Expand file tree Collapse file tree 3 files changed +47
-17
lines changed Expand file tree Collapse file tree 3 files changed +47
-17
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ matrix:
88
88
- pip install "Jinja2>=2.10.1,<2.11"
89
89
- pip install "intelhex>=1.3,<=2.2.1"
90
90
script :
91
- - mbedtools checkout
92
- - echo mbedtools build -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
93
- - mbedtools build -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
91
+ - mbedtools deploy
92
+ - echo mbedtools compile -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
93
+ - mbedtools compile -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE}
94
94
- ccache -s
95
95
96
96
- &build-test
Original file line number Diff line number Diff line change @@ -24,13 +24,41 @@ target_sources(${APP_TARGET}
24
24
main.cpp
25
25
)
26
26
27
+ list (APPEND mbed_storage_libs )
28
+
29
+ if ("DATAFLASH" IN_LIST MBED_TARGET_LABELS )
30
+ list (APPEND mbed_storage_libs mbed-storage-dataflash )
31
+ endif ()
32
+
33
+ if ("FLASHIAP" IN_LIST MBED_TARGET_LABELS )
34
+ list (APPEND mbed_storage_libs mbed-storage-flashiap )
35
+ endif ()
36
+
37
+ if ("I2CEE" IN_LIST MBED_TARGET_LABELS )
38
+ list (APPEND mbed_storage_libs mbed-storage-i2cee )
39
+ endif ()
40
+
41
+ if ("OSPIF" IN_LIST MBED_TARGET_LABELS )
42
+ list (APPEND mbed_storage_libs mbed-storage-ospif )
43
+ endif ()
44
+
45
+ if ("QSPIF" IN_LIST MBED_TARGET_LABELS )
46
+ list (APPEND mbed_storage_libs mbed-storage-qspif )
47
+ endif ()
48
+
49
+ if ("SD" IN_LIST MBED_TARGET_LABELS )
50
+ list (APPEND mbed_storage_libs mbed-storage-sd )
51
+ endif ()
52
+
53
+ if ("SPIF" IN_LIST MBED_TARGET_LABELS )
54
+ list (APPEND mbed_storage_libs mbed-storage-spif )
55
+ endif ()
56
+
27
57
target_link_libraries (${APP_TARGET}
28
58
PRIVATE
29
59
mbed-os
30
- mbed-events
31
60
mbed-storage
32
- mbed-storage-qspif
33
- mbed-storage-flashiap
61
+ ${mbed_storage_libs}
34
62
)
35
63
36
64
mbed_set_post_build (${APP_TARGET} )
Original file line number Diff line number Diff line change 20
20
// Block devices
21
21
#if COMPONENT_QSPIF
22
22
#include " QSPIFBlockDevice.h"
23
+ QSPIFBlockDevice bd;
24
+ #endif
25
+
26
+ #if COMPONENT_OSPIF
27
+ #include " OSPIFBlockDevice.h"
28
+ OSPIFBlockDevice bd;
23
29
#endif
24
30
25
31
#if COMPONENT_SPIF
26
32
#include " SPIFBlockDevice.h"
33
+ // Physical block device, can be any device that supports the BlockDevice API
34
+ SPIFBlockDevice bd;
27
35
#endif
28
36
29
37
#if COMPONENT_DATAFLASH
30
38
#include " DataFlashBlockDevice.h"
31
- #endif
39
+ DataFlashBlockDevice bd;
40
+ #endif
32
41
33
42
#if COMPONENT_SD
34
43
#include " SDBlockDevice.h"
35
- #endif
36
-
37
- #include " HeapBlockDevice.h"
38
-
39
-
40
44
// Physical block device, can be any device that supports the BlockDevice API
41
- SDBlockDevice bd (
42
- MBED_CONF_SD_SPI_MOSI,
43
- MBED_CONF_SD_SPI_MISO,
44
- MBED_CONF_SD_SPI_CLK,
45
- MBED_CONF_SD_SPI_CS);
45
+ SDBlockDevice bd;
46
+ #endif
46
47
48
+ #include " HeapBlockDevice.h"
47
49
48
50
// Entry point for the example
49
51
int main () {
You can’t perform that action at this time.
0 commit comments