X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fdataflash_hwtest.c;h=05426fef6c75a2bdfd243ad098b9ade84a2d82df;hb=19decd4a0bdfff674f1e4f5caea1e6b6844e5e48;hp=fa8085586d8c038d3624288426ee301435875b2f;hpb=006c06fa5c4ce4a6e250877655e9963a8310538a;p=bertos.git diff --git a/bertos/drv/dataflash_hwtest.c b/bertos/drv/dataflash_hwtest.c index fa808558..05426fef 100644 --- a/bertos/drv/dataflash_hwtest.c +++ b/bertos/drv/dataflash_hwtest.c @@ -79,7 +79,7 @@ #define DATAFLASH_MEM_MODEL DFT_AT45DB642D // Function to set CS, this is typically implement in hw/hw_dataflash.{c, h} -#define DATAFLASH_FUNC_CS_SET &dataflash_hw_setCS +#define DATAFLASH_FUNC_CS_SET dataflash_hw_setCS // Function to reset memery, this is typically implement in hw/hw_dataflash.{c, h} #define DATAFLASH_FUNC_RESET NULL @@ -205,28 +205,27 @@ int dataflash_testTearDown(void) #if 0 int main(void) { - IRQ_ENABLE; + IRQ_ENABLE; kdbg_init(); #if CONFIG_KERN - proc_init(); - #endif - - if (!dataflash_testSetUp()) - { - LOG_INFO("DATAFLASH setup..ok\n"); - } - else - { - LOG_ERR("DATAFLASH setup..fail!\n"); - return EOF; - } - - dataflash_testRun(); - - for(;;) - { - } - + proc_init(); + #endif + + if (!dataflash_testSetUp()) + { + LOG_INFO("DATAFLASH setup..ok\n"); + } + else + { + LOG_ERR("DATAFLASH setup..fail!\n"); + return EOF; + } + + dataflash_testRun(); + + for(;;) + { + } } #endif