File tree Expand file tree Collapse file tree 15 files changed +476
-74
lines changed
spi_flash/test_apps/esp_flash/main Expand file tree Collapse file tree 15 files changed +476
-74
lines changed Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
66
77/*******************************************************************************
88 * NOTICE
9+ * The Lowlevel layer for SPI Flash
910 * The ll is not public api, don't use in application code.
10- * See readme.md in soc/include/hal/readme.md
1111 ******************************************************************************/
1212
13- // The Lowlevel layer for SPI Flash
14-
1513#pragma once
1614
1715#include <stdlib.h>
2624extern "C" {
2725#endif
2826
29- //NOTE: These macros are changed on ESP32-C2 for build. MODIFY these when bringup flash.
3027#define gpspi_flash_ll_get_hw (host_id ) ( ((host_id)==SPI2_HOST) ? &GPSPI2 : ({abort();(spi_dev_t*)0;}) )
3128#define gpspi_flash_ll_hw_get_id (dev ) ( ((dev) == (void*)&GPSPI2) ? SPI2_HOST : -1 )
3229
Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
66
77/*******************************************************************************
88 * NOTICE
9+ * The Lowlevel layer for SPI Flash
910 * The ll is not public api, don't use in application code.
10- * See readme.md in soc/include/hal/readme.md
1111 ******************************************************************************/
1212
13- // The Lowlevel layer for SPI Flash
14-
1513#pragma once
1614
1715#include <stdlib.h>
2826extern "C" {
2927#endif
3028
31- //NOTE: These macros are changed on c3 for build. MODIFY these when bringup flash.
3229#define gpspi_flash_ll_get_hw (host_id ) ( ((host_id)==SPI2_HOST) ? &GPSPI2 : ({abort();(spi_dev_t*)0;}) )
3330#define gpspi_flash_ll_hw_get_id (dev ) ( ((dev) == (void*)&GPSPI2) ? SPI2_HOST : -1 )
3431
Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
66
77/*******************************************************************************
88 * NOTICE
9+ * The Lowlevel layer for SPI Flash
910 * The ll is not public api, don't use in application code.
10- * See readme.md in soc/include/hal/readme.md
1111 ******************************************************************************/
1212
13- // The Lowlevel layer for SPI Flash
14-
1513#pragma once
1614
1715#include <stdlib.h>
2826extern "C" {
2927#endif
3028
31- //NOTE: These macros are changed on c3 for build. MODIFY these when bringup flash.
3229#define gpspi_flash_ll_get_hw (host_id ) ( ((host_id)==SPI2_HOST) ? &GPSPI2 : ({abort();(spi_dev_t*)0;}) )
3330#define gpspi_flash_ll_hw_get_id (dev ) ( ((dev) == (void*)&GPSPI2) ? SPI2_HOST : -1 )
3431
Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
66
77/*******************************************************************************
88 * NOTICE
9+ * The Lowlevel layer for SPI Flash
910 * The ll is not public api, don't use in application code.
10- * See readme.md in soc/include/hal/readme.md
1111 ******************************************************************************/
1212
13- // The Lowlevel layer for SPI Flash
14-
1513#pragma once
1614
1715#include <stdlib.h>
2826extern "C" {
2927#endif
3028
31- //NOTE: These macros are changed on c3 for build. MODIFY these when bringup flash.
3229#define gpspi_flash_ll_get_hw (host_id ) ( ((host_id)==SPI2_HOST) ? &GPSPI2 : ({abort();(spi_dev_t*)0;}) )
3330#define gpspi_flash_ll_hw_get_id (dev ) ( ((dev) == (void*)&GPSPI2) ? SPI2_HOST : -1 )
3431
Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
66
77/*******************************************************************************
88 * NOTICE
9+ * The Lowlevel layer for SPI Flash
910 * The ll is not public api, don't use in application code.
10- * See readme.md in soc/include/hal/readme.md
1111 ******************************************************************************/
1212
13- // The Lowlevel layer for SPI Flash
14-
1513#pragma once
1614
1715#include <stdlib.h>
2826extern "C" {
2927#endif
3028
31- //NOTE: These macros are changed on c3 for build. MODIFY these when bringup flash.
3229#define gpspi_flash_ll_get_hw (host_id ) ( ((host_id)==SPI2_HOST) ? &GPSPI2 : ({abort();(spi_dev_t*)0;}) )
3330#define gpspi_flash_ll_hw_get_id (dev ) ( ((dev) == (void*)&GPSPI2) ? SPI2_HOST : -1 )
3431
Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
66
77/*******************************************************************************
88 * NOTICE
9+ * The Lowlevel layer for SPI Flash
910 * The ll is not public api, don't use in application code.
10- * See readme.md in soc/include/hal/readme.md
1111 ******************************************************************************/
1212
13- // The Lowlevel layer for SPI Flash
14-
1513#pragma once
1614
1715#include <stdlib.h>
2826extern "C" {
2927#endif
3028
31- //NOTE: These macros are changed on h2 for build. MODIFY these when bringup flash.
3229#define gpspi_flash_ll_get_hw (host_id ) ( ((host_id)==SPI2_HOST) ? &GPSPI2 : ({abort();(spi_dev_t*)0;}) )
3330#define gpspi_flash_ll_hw_get_id (dev ) ( ((dev) == (void*)&GPSPI2) ? SPI2_HOST : -1 )
3431
You can’t perform that action at this time.
0 commit comments