2025-04-10 15:31:06 +08:00
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
2020-07-27 03:13:07 +08:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include "esp_flash.h"
|
|
|
|
|
#include "spi_flash_chip_driver.h"
|
2025-04-10 15:31:06 +08:00
|
|
|
#include "sdkconfig.h"
|
2020-07-27 03:13:07 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Winbond SPI flash chip_drv, uses all the above functions for its operations. In
|
|
|
|
|
* default autodetection, this is used as a catchall if a more specific chip_drv
|
|
|
|
|
* is not found.
|
|
|
|
|
*/
|
2025-04-10 15:31:06 +08:00
|
|
|
|
|
|
|
|
#ifdef CONFIG_SPI_FLASH_SUPPORT_WINBOND_CHIP
|
2020-07-27 03:13:07 +08:00
|
|
|
extern const spi_flash_chip_t esp_flash_chip_winbond;
|
2025-04-10 15:31:06 +08:00
|
|
|
#else
|
|
|
|
|
extern __attribute__((weak)) const spi_flash_chip_t esp_flash_chip_winbond;
|
|
|
|
|
#endif
|