hw_dataflash.c

Go to the documentation of this file.
00001 
00014 #include "hw_dataflash.h"
00015 
00016 #include <cfg/compiler.h>
00017 #include <cfg/module.h>
00018 #include <cfg/macros.h>
00019 
00020 #include <io/arm.h>
00021 
00022 
00023 MOD_DEFINE(hw_dataflash);
00024 
00033 void dataflash_hw_init(void)
00034 {
00035     #warning The data flash init pins function is not implemented!
00036 
00037     //Disable CS line (remove if not needed)
00038     dataflash_hw_setCS(false);
00039 
00040     /*
00041      * Put here your code!
00042      *
00043      * Note:
00044      * - if you drive manualy CS line, here init a CS pin
00045      * - if you use a dedicated reset line, here init a reset pin
00046      */
00047 
00048     MOD_INIT(hw_dataflash);
00049 }
00050 
00059 void dataflash_hw_setCS(bool enable)
00060 {
00061     #warning The data flash setCS function is not implemented!
00062     if (enable)
00063     {
00064         /*
00065          * Put here your code to enable
00066          * dataflash memory
00067          */
00068     }
00069     else
00070     {
00071         /*
00072          * Put here your code to disable
00073          * dataflash memory
00074          */
00075     }
00076 }
00077 
00087 void dataflash_hw_setReset(bool enable)
00088 {
00089     #warning The data flash setReset function is not implemented!
00090     if (enable)
00091     {
00092         /*
00093          * Put here your code to set reset of
00094          * dataflash memory
00095          */
00096     }
00097     else
00098     {
00099         /*
00100          * Put here your code to clear reset of
00101          * dataflash memory
00102          */
00103     }
00104 }
00105