4 * Copyright 2008 Develer S.r.l. (http://www.develer.com/)
8 * \brief Dataflash HW control routines.
11 * \author Francesco Sacchi <batt@develer.com>
14 #include "hw_dataflash.h"
16 #include <cfg/compiler.h>
17 #include <cfg/module.h>
18 #include <cfg/macros.h>
23 MOD_DEFINE(hw_dataflash);
26 * Data flash init function.
28 * This function provide to initialize all that
29 * needs to drive a dataflash memory.
30 * Generaly needs to init pins to drive a CS line
33 void dataflash_hw_init(void)
35 #warning The data flash init pins function is not implemented!
37 //Disable CS line (remove if not needed)
38 dataflash_hw_setCS(false);
44 * - if you drive manualy CS line, here init a CS pin
45 * - if you use a dedicated reset line, here init a reset pin
48 MOD_INIT(hw_dataflash);
54 * This function enable or disable a CS line.
55 * You must implement this function comply to a dataflash
56 * memory datasheet to allow the drive to enable a memory
57 * when \p enable flag is true, and disable it when is false.
59 void dataflash_hw_setCS(bool enable)
61 #warning The data flash setCS function is not implemented!
65 * Put here your code to enable
72 * Put here your code to disable
79 * Reset data flash memory.
81 * This function provide to send reset signal to
82 * dataflash memory. You must impement it comly to a dataflash
83 * memory datasheet to allow the drive to set a reset pin
84 * when \p enable flag is true, and disable it when is false.
87 void dataflash_hw_setReset(bool enable)
89 #warning The data flash setReset function is not implemented!
93 * Put here your code to set reset of
100 * Put here your code to clear reset of