projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update UC3 platform driver support to use the bitmasks defined in the header files...
[pub/USBasp.git]
/
LUFA
/
CodeTemplates
/
DriverStubs
/
Dataflash.h
diff --git
a/LUFA/CodeTemplates/DriverStubs/Dataflash.h
b/LUFA/CodeTemplates/DriverStubs/Dataflash.h
index
e76c4eb
..
5edd26f
100644
(file)
--- a/
LUFA/CodeTemplates/DriverStubs/Dataflash.h
+++ b/
LUFA/CodeTemplates/DriverStubs/Dataflash.h
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
0
.
+ Copyright (C) Dean Camera, 201
1
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
0
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-79,8
+79,8
@@
#define DATAFLASH_PAGES // TODO: Replace with the total number of pages inside one of the Dataflash ICs
/* Inline Functions: */
#define DATAFLASH_PAGES // TODO: Replace with the total number of pages inside one of the Dataflash ICs
/* Inline Functions: */
- /** Initiali
s
es 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.
+ /** Initiali
z
es the dataflash driver so that commands and data may be sent to an attached dataflash IC.
+ * The
microcontroller
's SPI driver MUST be initialized before any of the dataflash commands are used.
*/
static inline void Dataflash_Init(void)
{
*/
static inline void Dataflash_Init(void)
{
@@
-124,7
+124,7
@@
* are deselected.
*
* \param[in] PageAddress Address of the page to manipulate, ranging from
* are deselected.
*
* \param[in] PageAddress Address of the page to manipulate, ranging from
- * ((DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS) - 1).
+ *
0 to
((DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS) - 1).
*/
static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress)
{
*/
static inline void Dataflash_SelectChipFromPage(const uint16_t PageAddress)
{
@@
-166,7
+166,7
@@
}
/** Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with
}
/** Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with
- * dataflash commands which require a complete 24-b
yte
address.
+ * dataflash commands which require a complete 24-b
it
address.
*
* \param[in] PageAddress Page address within the selected dataflash IC
* \param[in] BufferByte Address within the dataflash's buffer
*
* \param[in] PageAddress Page address within the selected dataflash IC
* \param[in] BufferByte Address within the dataflash's buffer