X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/778da9dc6d48c670b9fb0ce219e8df083a33e0c6..24f730fce3f2022762011d795c3feada5ef874b3:/LUFA/Drivers/Board/Dataflash.h diff --git a/LUFA/Drivers/Board/Dataflash.h b/LUFA/Drivers/Board/Dataflash.h index 1b9b71f3c..22f4b10d6 100644 --- a/LUFA/Drivers/Board/Dataflash.h +++ b/LUFA/Drivers/Board/Dataflash.h @@ -81,9 +81,11 @@ #define __GET_DATAFLASH_MASK(x) __GET_DATAFLASH_MASK2(DATAFLASH_CHIP,x) #endif - /* Retrieves the Dataflash chip select mask for the given Dataflash chip index. + /** Retrieves the Dataflash chip select mask for the given Dataflash chip index. * - * \param index Index of the dataflash chip mask to retrieve + * \param[in] index Index of the dataflash chip mask to retrieve + * + * \return Mask for the given Dataflash chip's /CS pin */ #define DATAFLASH_CHIP_MASK(index) __GET_DATAFLASH_MASK(index) @@ -109,7 +111,7 @@ #define Dataflash_GetSelectedChip() (DATAFLASH_CHIPCS_PORT & DATAFLASH_CHIPCS_MASK) #define Dataflash_SelectChip(mask) MACROS{ DATAFLASH_CHIPCS_PORT = ((DATAFLASH_CHIPCS_PORT \ - & ~DATAFLASH_CHIPCS_MASK) | mask); }MACROE + & ~DATAFLASH_CHIPCS_MASK) | (mask)); }MACROE #define Dataflash_DeselectChip() Dataflash_SelectChip(DATAFLASH_NO_CHIP) #endif @@ -156,6 +158,12 @@ #include "STK525/Dataflash.h" #elif (BOARD == BOARD_STK526) #include "STK526/Dataflash.h" + #elif (BOARD == BOARD_XPLAIN) + #include "XPLAIN/Dataflash.h" + #elif (BOARD == BOARD_XPLAIN_REV1) + #include "XPLAIN/Dataflash.h" + #elif (BOARD == BOARD_EVK527) + #include "EVK527/Dataflash.h" #elif (BOARD == BOARD_USER) #include "Board/Dataflash.h" #else @@ -183,7 +191,7 @@ Dataflash_SelectChip(SelectedChipMask); } - /** Spinloops while the currently selected dataflash is busy executing a command, such as a main + /** Spin-loops while the currently selected dataflash is busy executing a command, such as a main * memory page program or main memory to buffer transfer. */ static inline void Dataflash_WaitWhileBusy(void)