💡 Misc. cleanup, comments
This commit is contained in:
committed by
Scott Lahteine
parent
f8e177a43e
commit
2ee4a667e1
@ -133,7 +133,7 @@ uint16_t W25QXXFlash::W25QXX_ReadID(void) {
|
||||
return Temp;
|
||||
}
|
||||
|
||||
void W25QXXFlash::SPI_FLASH_WriteEnable(void) {
|
||||
void W25QXXFlash::SPI_FLASH_WriteEnable() {
|
||||
// Select the FLASH: Chip Select low
|
||||
SPI_FLASH_CS_L();
|
||||
// Send "Write Enable" instruction
|
||||
@ -151,7 +151,7 @@ void W25QXXFlash::SPI_FLASH_WriteEnable(void) {
|
||||
* Output : None
|
||||
* Return : None
|
||||
*******************************************************************************/
|
||||
void W25QXXFlash::SPI_FLASH_WaitForWriteEnd(void) {
|
||||
void W25QXXFlash::SPI_FLASH_WaitForWriteEnd() {
|
||||
uint8_t FLASH_Status = 0;
|
||||
|
||||
// Select the FLASH: Chip Select low
|
||||
@ -216,7 +216,7 @@ void W25QXXFlash::SPI_FLASH_BlockErase(uint32_t BlockAddr) {
|
||||
* Output : None
|
||||
* Return : None
|
||||
*******************************************************************************/
|
||||
void W25QXXFlash::SPI_FLASH_BulkErase(void) {
|
||||
void W25QXXFlash::SPI_FLASH_BulkErase() {
|
||||
// Send write enable instruction
|
||||
SPI_FLASH_WriteEnable();
|
||||
|
||||
|
@ -61,11 +61,11 @@ public:
|
||||
static void spi_flash_Send(uint8_t b);
|
||||
static void spi_flash_SendBlock(uint8_t token, const uint8_t *buf);
|
||||
static uint16_t W25QXX_ReadID(void);
|
||||
static void SPI_FLASH_WriteEnable(void);
|
||||
static void SPI_FLASH_WaitForWriteEnd(void);
|
||||
static void SPI_FLASH_WriteEnable();
|
||||
static void SPI_FLASH_WaitForWriteEnd();
|
||||
static void SPI_FLASH_SectorErase(uint32_t SectorAddr);
|
||||
static void SPI_FLASH_BlockErase(uint32_t BlockAddr);
|
||||
static void SPI_FLASH_BulkErase(void);
|
||||
static void SPI_FLASH_BulkErase();
|
||||
static void SPI_FLASH_PageWrite(uint8_t *pBuffer, uint32_t WriteAddr, uint16_t NumByteToWrite);
|
||||
static void SPI_FLASH_BufferWrite(uint8_t *pBuffer, uint32_t WriteAddr, uint16_t NumByteToWrite);
|
||||
static void SPI_FLASH_BufferRead(uint8_t *pBuffer, uint32_t ReadAddr, uint16_t NumByteToRead);
|
||||
|
Reference in New Issue
Block a user