-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from david-cermak/feat/eppp_sdio
[eppp]: Add support for SDIO transport
- Loading branch information
Showing
11 changed files
with
524 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,19 @@ | ||
/* | ||
* 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) | ||
#define PPP_SOF 0x7E | ||
|
||
// 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.