aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-23 08:37:11 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-23 08:37:11 +0000
commitf229502d9addacfbefe955a47931b980bfbb1a10 (patch)
tree17311a066348fa23088257d51a95354bdb152885 /LUFA/Drivers/Board
parent1e8df8951a3335e4b45ad0c25a82df3d90d785f3 (diff)
downloadlufa-f229502d9addacfbefe955a47931b980bfbb1a10.tar.gz
lufa-f229502d9addacfbefe955a47931b980bfbb1a10.tar.bz2
lufa-f229502d9addacfbefe955a47931b980bfbb1a10.zip
Fixed AVRISP programmer demo -- can now connect to a target and read/write Sig/Lock/Fuse/OSCCAL bytes successfully.
Changed SPI_Init() to allow for the clock polarity and data sample modes to be set. Changed Dataflash_Init() to no longer call SPI_Init() automatically.
Diffstat (limited to 'LUFA/Drivers/Board')
-rw-r--r--LUFA/Drivers/Board/Dataflash.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/LUFA/Drivers/Board/Dataflash.h b/LUFA/Drivers/Board/Dataflash.h
index acdcc4c40..8c2b69d99 100644
--- a/LUFA/Drivers/Board/Dataflash.h
+++ b/LUFA/Drivers/Board/Dataflash.h
@@ -164,17 +164,13 @@
#endif
/* Inline Functions: */
- /** Initializes the dataflash driver (including the SPI driver) so that commands and data may be
- * sent to an attached dataflash IC.
- *
- * \param[in] PrescalerMask SPI prescaler mask, see SPI.h documentation
+ /** Initializes the dataflash driver so that commands and data may be sent to an attached dataflash IC.
+ * The AVR's SPI driver MUST be initialized before any of the dataflash commands are used.
*/
- static inline void Dataflash_Init(const uint8_t PrescalerMask)
+ static inline void Dataflash_Init(void)
{
DATAFLASH_CHIPCS_DDR |= DATAFLASH_CHIPCS_MASK;
DATAFLASH_CHIPCS_PORT |= DATAFLASH_CHIPCS_MASK;
-
- SPI_Init(PrescalerMask, true);
}
/** Toggles the select line of the currently selected dataflash IC, so that it is ready to receive