/** * @brief Returns if the flash chip is busy * @returns -1 for failure, 0 for not busy, 1 for busy */ static int32_t PIOS_Flash_Jedec_Busy(struct jedec_flash_dev * flash_dev) { int32_t status = PIOS_Flash_Jedec_ReadStatus(flash_dev); if (status < 0) return -1; return status & JEDEC_STATUS_BUSY; }
/** * @brief Returns if the flash chip is busy * @returns -1 for failure, 0 for not busy, 1 for busy */ static int32_t PIOS_Flash_Jedec_Busy() { int32_t status = PIOS_Flash_Jedec_ReadStatus(); if (status < 0) return -1; return status & JEDEC_STATUS_BUSY; }