Remove chibios demo (hard to maintain with ChibiOS master tree)
[lwext4.git] / demos / chibios / apps / olimex_stm32_p107_sd / main.c
diff --git a/demos/chibios/apps/olimex_stm32_p107_sd/main.c b/demos/chibios/apps/olimex_stm32_p107_sd/main.c
deleted file mode 100644 (file)
index b8edabc..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-\r
-\r
-#include "ch.h"\r
-#include "hal.h"\r
-#include "chprintf.h"\r
-#include "sdc.h"\r
-\r
-#include <spi_lwext4.h>\r
-#include <test_lwext4.h>\r
-#include <timings.h>\r
-\r
-#include <stdio.h>\r
-#include <inttypes.h>\r
-#include <string.h>\r
-\r
-MMCDriver MMCD1;\r
-\r
-static const SPIConfig lscfg = {\r
-        NULL,\r
-        IOPORT1,\r
-        GPIOA_SPI3_CS_MMC,\r
-        SPI_CR1_BR_1 | SPI_CR1_BR_0\r
-};\r
-static const SPIConfig hscfg = {\r
-        NULL,\r
-        IOPORT1,\r
-        GPIOA_SPI3_CS_MMC,\r
-        0\r
-};\r
-\r
-static MMCConfig config = {\r
-        &SPID3, &lscfg, &hscfg\r
-};\r
-\r
-#define TEST_DELAY_MS    1000\r
-\r
-#define DIR_CNT     1000\r
-#define FILE_CNT    1000\r
-#define FILE_SIZE   8192\r
-\r
-static void lwext4_tests(void)\r
-{\r
-    printf("lwext4_tests:\n");\r
-\r
-    struct ext4_blockdev *bdev = spi_bdev_get();\r
-    struct ext4_bcache *bcache = spi_cache_get();\r
-\r
-    tim_wait_ms(TEST_DELAY_MS);\r
-    if(!test_lwext4_mount(bdev, bcache))\r
-        return;\r
-\r
-    tim_wait_ms(TEST_DELAY_MS);\r
-    test_lwext4_cleanup();\r
-    tim_wait_ms(TEST_DELAY_MS);\r
-\r
-    tim_wait_ms(TEST_DELAY_MS);\r
-    if(!test_lwext4_dir_test(DIR_CNT))\r
-        return;\r
-\r
-    tim_wait_ms(TEST_DELAY_MS);\r
-    if(!test_lwext4_file_test(FILE_SIZE, FILE_CNT))\r
-        return;\r
-\r
-    //test_lwext4_mp_stats();\r
-    //test_lwext4_block_stats();\r
-    //test_lwext4_cleanup();\r
-\r
-    if(!test_lwext4_umount())\r
-        return;\r
-\r
-    printf("test finished\n\n");\r
-}\r
-\r
-\r
-int main(void)\r
-{\r
-    halInit();\r
-    chSysInit();\r
-    sdStart(&STDOUT_SD, NULL);\r
-\r
-    mmcObjectInit(&MMCD1);\r
-    mmcStart(&MMCD1, &config);\r
-\r
-    printf("\n\n\n\n\nboard: %s\n", BOARD_NAME);\r
-    lwext4_tests();\r
-\r
-    while (TRUE) {\r
-        chThdSleepMilliseconds(500);\r
-    }\r
-}\r
-\r