Skip to content

Commit 2e78cf7

Browse files
committed
* fix b26/b27 can't used as gpio
1 parent 63d8e6c commit 2e78cf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/peripheral/port/maixcam/maix_pinmap.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ namespace maix::peripheral::pinmap
622622
else if (pin == "B26")
623623
{
624624
if (func == "GPIOB26") {
625+
_config_eth_pin(false);
625626
set_pinmux(0x03001130, 3);
626627
} else if (func == "PWM14") {
627628
_config_eth_pin(false);
@@ -634,6 +635,7 @@ namespace maix::peripheral::pinmap
634635
else if (pin == "B27")
635636
{
636637
if (func == "GPIOB27") {
638+
_config_eth_pin(false);
637639
set_pinmux(0x0300112C, 3);
638640
} else if (func == "PWM15") {
639641
_config_eth_pin(false);

0 commit comments

Comments
 (0)