Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
6cfe4613
Unverified
Commit
6cfe4613
authored
Apr 05, 2022
by
Dirk O. Kaar
Committed by
GitHub
Apr 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amend "GPIO refactoring (#6259)" (#6527)
parent
7dc8ca4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
cores/esp32/esp32-hal-gpio.h
cores/esp32/esp32-hal-gpio.h
+0
-7
libraries/Ethernet/src/ETH.cpp
libraries/Ethernet/src/ETH.cpp
+4
-4
No files found.
cores/esp32/esp32-hal-gpio.h
View file @
6cfe4613
...
...
@@ -49,13 +49,6 @@ extern "C" {
#define INPUT_PULLDOWN 0x09
#define OPEN_DRAIN 0x10
#define OUTPUT_OPEN_DRAIN 0x12
#define SPECIAL 0xF0
#define FUNCTION_1 0x00
#define FUNCTION_2 0x20
#define FUNCTION_3 0x40
#define FUNCTION_4 0x60
#define FUNCTION_5 0x80
#define FUNCTION_6 0xA0
#define ANALOG 0xC0
//Interrupt Modes
...
...
libraries/Ethernet/src/ETH.cpp
View file @
6cfe4613
...
...
@@ -123,7 +123,7 @@ static esp_err_t on_lowlevel_init_done(esp_eth_handle_t eth_handle){
//gpio_hal_iomux_func_sel(PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0_EMAC_TX_CLK);
//PIN_INPUT_ENABLE(GPIO_PIN_MUX_REG[0]);
pinMode
(
0
,
INPUT
);
pinMode
(
0
,
FUNCTION_6
);
PIN_FUNC_SELECT
(
GPIO_PIN_MUX_REG
[
0
],
5
);
EMAC_EXT
.
ex_clk_ctrl
.
ext_en
=
1
;
EMAC_EXT
.
ex_clk_ctrl
.
int_en
=
0
;
EMAC_EXT
.
ex_oscclk_conf
.
clk_sel
=
1
;
...
...
@@ -135,7 +135,7 @@ static esp_err_t on_lowlevel_init_done(esp_eth_handle_t eth_handle){
//gpio_hal_iomux_func_sel(PERIPHS_IO_MUX_GPIO0_U, FUNC_GPIO0_CLK_OUT1);
//PIN_INPUT_DISABLE(GPIO_PIN_MUX_REG[0]);
pinMode
(
0
,
OUTPUT
);
pinMode
(
0
,
FUNCTION_2
);
PIN_FUNC_SELECT
(
GPIO_PIN_MUX_REG
[
0
],
1
);
// Choose the APLL clock to output on GPIO
REG_WRITE
(
PIN_CTRL
,
6
);
#endif
...
...
@@ -145,7 +145,7 @@ static esp_err_t on_lowlevel_init_done(esp_eth_handle_t eth_handle){
//gpio_hal_iomux_func_sel(PERIPHS_IO_MUX_GPIO16_U, FUNC_GPIO16_EMAC_CLK_OUT);
//PIN_INPUT_DISABLE(GPIO_PIN_MUX_REG[16]);
pinMode
(
16
,
OUTPUT
);
pinMode
(
16
,
FUNCTION_6
);
PIN_FUNC_SELECT
(
GPIO_PIN_MUX_REG
[
16
],
5
);
#endif
}
else
if
(
eth_clock_mode
==
ETH_CLOCK_GPIO17_OUT
){
#if CONFIG_ETH_RMII_CLK_OUT_GPIO != 17
...
...
@@ -153,7 +153,7 @@ static esp_err_t on_lowlevel_init_done(esp_eth_handle_t eth_handle){
//gpio_hal_iomux_func_sel(PERIPHS_IO_MUX_GPIO17_U, FUNC_GPIO17_EMAC_CLK_OUT_180);
//PIN_INPUT_DISABLE(GPIO_PIN_MUX_REG[17]);
pinMode
(
17
,
OUTPUT
);
pinMode
(
17
,
FUNCTION_6
);
PIN_FUNC_SELECT
(
GPIO_PIN_MUX_REG
[
17
],
5
);
#endif
}
#if CONFIG_ETH_RMII_CLK_INPUT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment