-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eppp): Add support for SDIO transport
- Loading branch information
1 parent
a05fbc7
commit 085dd79
Showing
11 changed files
with
519 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
idf_component_register(SRCS "eppp_link.c" | ||
idf_component_register(SRCS eppp_link.c eppp_sdio_slave.c eppp_sdio_host.c | ||
INCLUDE_DIRS "include" | ||
PRIV_REQUIRES esp_netif esp_driver_spi esp_driver_gpio esp_timer driver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#pragma once | ||
|
||
#define MAX_SDIO_PAYLOAD 1500 | ||
#define SDIO_ALIGN(size) (((size) + 3U) & ~(3U)) | ||
#define SDIO_PAYLOAD SDIO_ALIGN(MAX_SDIO_PAYLOAD) | ||
|
||
// Interrupts and registers | ||
#define SLAVE_INTR 0 | ||
#define SLAVE_REG_REQ 0 | ||
|
||
// Requests from host to slave | ||
#define REQ_RESET 1 | ||
#define REQ_INIT 2 |
Oops, something went wrong.