rom/spi_flash.h: Remove first parameter of SPI_read_status_high()

Corrects the prototype to match the one compiled into ROM.
pull/65/head
Angus Gratton 2016-10-21 10:44:05 +11:00
rodzic 0704deca63
commit feca308f1f
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -218,7 +218,7 @@ void SelectSpiFunction(uint32_t ishspi);
void spi_flash_attach(uint32_t ishspi, bool legacy); void spi_flash_attach(uint32_t ishspi, bool legacy);
/** /**
* @brief SPI Read Flash status register. We use CMD 0x05. * @brief SPI Read Flash status register. We use CMD 0x05 (RDSR).
* Please do not call this function in SDK. * Please do not call this function in SDK.
* *
* @param SpiFlashChip *spi : The information for Flash, which is exported from ld file. * @param SpiFlashChip *spi : The information for Flash, which is exported from ld file.
@ -232,7 +232,7 @@ void spi_flash_attach(uint32_t ishspi, bool legacy);
SpiFlashOpResult SPI_read_status(SpiFlashChip *spi, uint32_t *status); SpiFlashOpResult SPI_read_status(SpiFlashChip *spi, uint32_t *status);
/** /**
* @brief SPI Read Flash status register high 16 bit. We use CMD 0x35. * @brief SPI Read Flash status register bits 8-15. We use CMD 0x35 (RDSR2).
* Please do not call this function in SDK. * Please do not call this function in SDK.
* *
* @param SpiFlashChip *spi : The information for Flash, which is exported from ld file. * @param SpiFlashChip *spi : The information for Flash, which is exported from ld file.
@ -243,7 +243,7 @@ SpiFlashOpResult SPI_read_status(SpiFlashChip *spi, uint32_t *status);
* SPI_FLASH_RESULT_ERR : read error. * SPI_FLASH_RESULT_ERR : read error.
* SPI_FLASH_RESULT_TIMEOUT : read timeout. * SPI_FLASH_RESULT_TIMEOUT : read timeout.
*/ */
SpiFlashOpResult SPI_read_status_high(SpiFlashChip *spi, uint32_t *status); SpiFlashOpResult SPI_read_status_high(uint32_t *status);
/** /**
* @brief Write status to Falsh status register. * @brief Write status to Falsh status register.