projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add lcd_hd44 test module.
[bertos.git]
/
bertos
/
hw
/
hw_dataflash.c
diff --git
a/bertos/hw/hw_dataflash.c
b/bertos/hw/hw_dataflash.c
index d802d0d7498fc220ba867fd1bde863432355186c..739e5870299e94c0aa10f927a3fe8967d2632339 100644
(file)
--- a/
bertos/hw/hw_dataflash.c
+++ b/
bertos/hw/hw_dataflash.c
@@
-32,6
+32,8
@@
MOD_DEFINE(hw_dataflash);
*/
void dataflash_hw_init(void)
{
*/
void dataflash_hw_init(void)
{
+ #warning The data flash init pins function is not implemented!
+
//Disable CS line (remove if not needed)
dataflash_hw_setCS(false);
//Disable CS line (remove if not needed)
dataflash_hw_setCS(false);
@@
-56,16
+58,21
@@
void dataflash_hw_init(void)
*/
void dataflash_hw_setCS(bool enable)
{
*/
void dataflash_hw_setCS(bool enable)
{
+ #warning The data flash setCS function is not implemented!
if (enable)
if (enable)
+ {
/*
* Put here your code to enable
* dataflash memory
*/
/*
* Put here your code to enable
* dataflash memory
*/
+ }
else
else
+ {
/*
* Put here your code to disable
* dataflash memory
*/
/*
* Put here your code to disable
* dataflash memory
*/
+ }
}
/**
}
/**
@@
-73,16
+80,26
@@
void dataflash_hw_setCS(bool enable)
*
* This function provide to send reset signal to
* dataflash memory. You must impement it comly to a dataflash
*
* This function provide to send reset signal to
* dataflash memory. You must impement it comly to a dataflash
- * memory datasheet t
hat describe a reset procedure for select
- *
devic
e.
+ * memory datasheet t
o allow the drive to set a reset pin
+ *
when \p enable flag is true, and disable it when is fals
e.
*
*/
*
*/
-void dataflash_hw_
reset(void
)
+void dataflash_hw_
setReset(bool enable
)
{
{
- /*
- * Put here your code to reset
- * data flash memory
- */
-
+ #warning The data flash setReset function is not implemented!
+ if (enable)
+ {
+ /*
+ * Put here your code to set reset of
+ * dataflash memory
+ */
+ }
+ else
+ {
+ /*
+ * Put here your code to clear reset of
+ * dataflash memory
+ */
+ }
}
}