X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fflash25_test.c;fp=bertos%2Fdrv%2Fflash25_test.c;h=0000000000000000000000000000000000000000;hb=006c06fa5c4ce4a6e250877655e9963a8310538a;hp=814c1648b88b097fcebb53704a21db16c68985c7;hpb=e62ca0b357f09804d7d894949df44224c9d74bb7;p=bertos.git diff --git a/bertos/drv/flash25_test.c b/bertos/drv/flash25_test.c deleted file mode 100644 index 814c1648..00000000 --- a/bertos/drv/flash25_test.c +++ /dev/null @@ -1,84 +0,0 @@ -/** - * \file - * - * - * \brief Test function for serial Flash memory. - * - * \version $Id$ - * \author Daniele Basile - */ - -/** - * Test function for flash25. - * - * \note: This implentation use a SPI channel. - */ - - -#include - -#include - -#include - -#warning FIXME:Review and refactor this test.. - -bool flash25_test(KFile *channel) -{ - Flash25 fd; - uint8_t test_buf[256]; - - /* - * Init a spi kfile interface and - * flash driver. - */ - flash25_init(&fd, channel); - - kprintf("Init serial flash\n"); - - flash25_chipErase(&fd); - - flash25_sectorErase(&fd, FLASH25_SECT1); - flash25_sectorErase(&fd, FLASH25_SECT2); - flash25_sectorErase(&fd, FLASH25_SECT3); - flash25_sectorErase(&fd, FLASH25_SECT4); - - /* - * Launche a kfile test interface. - */ - kprintf("Kfile test start..\n"); - if (!kfile_testRun(&fd.fd, test_buf, NULL, sizeof(test_buf))) - return false; - - return true; -} - -