X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fdataflash.c;h=68047d5b5cac4e1743ea14df89140aadf84dd666;hb=efaaa302de8fec1522eaa5a80ea750214028b3b4;hp=a349895c1d9044127478d3a33835179ab0132274;hpb=515886be3106584a6d695d4b5453730121b91f74;p=bertos.git diff --git a/bertos/drv/dataflash.c b/bertos/drv/dataflash.c index a349895c..68047d5b 100644 --- a/bertos/drv/dataflash.c +++ b/bertos/drv/dataflash.c @@ -27,12 +27,10 @@ * the GNU General Public License. * * Copyright 2007 Develer S.r.l. (http://www.develer.com/) - * * --> * * \brief Function library for dataflash AT45DB family (implementation). * - * * \version $Id: dataflash.c 21658 2008-06-05 16:42:54Z asterix $ * \author Daniele Basile * \author Francesco Sacchi @@ -54,9 +52,7 @@ #include -#if CONFIG_KERNEL -#include -#endif +#include /* cpu_relax() */ #include @@ -213,11 +209,7 @@ static uint8_t dataflash_cmd(DataFlash *fd, dataflash_page_t page_addr, dataflas * is high. */ while (!(dataflash_stat(fd) & BUSY_BIT)) - { - #if CONFIG_KERNEL - proc_switch(); - #endif - } + cpu_relax(); stat = dataflash_stat(fd);