Add setReset instead of reset function. Fix comments.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 13 May 2008 10:29:28 +0000 (10:29 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 13 May 2008 10:29:28 +0000 (10:29 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1249 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/hw/hw_dataflash.c
bertos/hw/hw_dataflash.h

index d802d0d7498fc220ba867fd1bde863432355186c..1832f6ec8c6188c9035670fccedbea2a7c5d488a 100644 (file)
@@ -57,15 +57,19 @@ void dataflash_hw_init(void)
 void dataflash_hw_setCS(bool enable)
 {
        if (enable)
+       {
                /*
                 * Put here your code to enable
                 * dataflash memory
                 */
+       }
        else
+       {
                /*
                 * Put here your code to disable
                 * dataflash memory
                 */
+       }
 }
 
 /**
@@ -73,16 +77,25 @@ void dataflash_hw_setCS(bool enable)
  *
  * This function provide to send reset signal to
  * dataflash memory. You must impement it comly to a dataflash
- * memory datasheet that describe a reset procedure for select
- * device.
+ * memory datasheet to allow the drive to set a reset pin
+ * when \p enable flag is true, and disable it when is false.
  *
  */
-void dataflash_hw_reset(void)
+void dataflash_hw_setReset(bool enable)
 {
-    /*
-     * Put here your code to reset
-     * data flash memory
-     */
-
+       if (enable)
+       {
+               /*
+                * Put here your code to set reset of
+                * dataflash memory
+                */
+       }
+       else
+       {
+               /*
+                * Put here your code to clear reset of
+                * dataflash memory
+                */
+       }
 }
 
index aa726f1b7ded265e7035bfe38ad1975caf57aaf0..a0c697a08b2cae1a325ef828372a8d273f29316c 100644 (file)
@@ -18,5 +18,6 @@
 
 void dataflash_hw_init(void);
 void dataflash_hw_setCS(bool enable);
+void dataflash_hw_setReset(bool enable);
 
 #endif /* HW_DATAFLASH_H */