File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ void test_read_write() {
111111 // Write, sync, and read the block
112112 printf (" test %0*llx:%llu...\n " , addrwidth, block, block_size);
113113
114- err = sd.erase (block, block_size);
114+ err = sd.trim (block, block_size);
115115 TEST_ASSERT_EQUAL (0 , err);
116116
117117 err = sd.program (write_block, block, block_size);
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ using namespace utest::v1;
9090 * },
9191 * <<< lines removed >>>
9292 */
93- #if defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED)
93+ #if defined(DEVICE_SPI) && ( defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) || (MBED_CONF_SD_FSFAT_SDCARD_INSTALLED) )
9494
9595#define FSFAT_BASIC_TEST_00 fsfat_basic_test_00
9696#define FSFAT_BASIC_TEST_01 fsfat_basic_test_01
@@ -897,7 +897,7 @@ static control_t fsfat_basic_test_dummy()
897897 return CaseNext;
898898}
899899
900- #endif /* defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) */
900+ #endif
901901
902902utest::v1::status_t greentea_setup (const size_t number_of_cases)
903903{
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ using namespace utest::v1;
7575 * },
7676 * <<< lines removed >>>
7777 */
78- # if defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED)
79-
78+
79+ # if defined(DEVICE_SPI) && ( defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) || (MBED_CONF_SD_FSFAT_SDCARD_INSTALLED))
8080static char fsfat_fopen_utest_msg_g[FSFAT_UTEST_MSG_BUF_SIZE];
8181#define FSFAT_FOPEN_TEST_MOUNT_PT_NAME " sd"
8282#define FSFAT_FOPEN_TEST_MOUNT_PT_PATH " /" FSFAT_FOPEN_TEST_MOUNT_PT_NAME
@@ -1490,7 +1490,7 @@ static control_t fsfat_fopen_test_dummy()
14901490 return CaseNext;
14911491}
14921492
1493- #endif /* defined(DEVICE_SPI) && defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) */
1493+ #endif
14941494
14951495
14961496// / @cond FSFAT_DOXYGEN_DISABLE
You can’t perform that action at this time.
0 commit comments