Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
调味师
arduino-esp32
提交
8c88ecbf
A
arduino-esp32
项目概览
调味师
/
arduino-esp32
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
arduino-esp32
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8c88ecbf
编写于
12月 22, 2021
作者:
N
NiklasVoigt
提交者:
GitHub
12月 22, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add GPIO defines for C3 (#6005)
上级
5724275c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
30 addition
and
2 deletion
+30
-2
cores/esp32/esp32-hal-gpio.c
cores/esp32/esp32-hal-gpio.c
+30
-2
未找到文件。
cores/esp32/esp32-hal-gpio.c
浏览文件 @
8c88ecbf
...
...
@@ -37,7 +37,13 @@
#include "soc/periph_defs.h"
#include "soc/rtc_io_reg.h"
#define GPIO_FUNC 1
#else
#elif CONFIG_IDF_TARGET_ESP32C3
#include "esp32c3/rom/ets_sys.h"
#include "esp32c3/rom/gpio.h"
#include "esp_intr_alloc.h"
#include "soc/periph_defs.h"
#define USE_ESP_IDF_GPIO 1
#else
#define USE_ESP_IDF_GPIO 1
#endif
#else // ESP32 Before IDF 4.0
...
...
@@ -143,6 +149,29 @@ const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[SOC_GPIO_PIN_COUNT]={
{
0xb8
,
-
1
,
-
1
,
-
1
},
//SCL?
{
0xbc
,
-
1
,
-
1
,
-
1
},
//INPUT ONLY
{
0
,
-
1
,
-
1
,
-
1
}
#elif CONFIG_IDF_TARGET_ESP32C3
{
0x04
,
-
1
,
0
,
-
1
},
// ADC1_CH0
{
0x08
,
-
1
,
1
,
-
1
},
// ADC1_CH1
{
0x0c
,
-
1
,
2
,
-
1
},
// ADC1_CH2 | FSPIQ
{
0x10
,
-
1
,
3
,
-
1
},
// ADC1_CH3
{
0x14
,
-
1
,
4
,
-
1
},
// MTMS | ADC1_CH4 | FSPIHD
{
0x18
,
-
1
,
5
,
-
1
},
// MTDI | ADC2_CH0 | FSPIWP
{
0x1c
,
-
1
,
-
1
,
-
1
},
// MTCK | FSPICLK
{
0x20
,
-
1
,
-
1
,
-
1
},
// MTDO | FSPID
{
0x24
,
-
1
,
-
1
,
-
1
},
//
{
0x28
,
-
1
,
-
1
,
-
1
},
//
{
0x2c
,
-
1
,
-
1
,
-
1
},
// FSPICSO
{
0x30
,
-
1
,
-
1
,
-
1
},
//
{
0x34
,
-
1
,
-
1
,
-
1
},
// SPIHD
{
0x38
,
-
1
,
-
1
,
-
1
},
// SPIWP
{
0x3c
,
-
1
,
-
1
,
-
1
},
// SPICSO
{
0x40
,
-
1
,
-
1
,
-
1
},
// SPICLK
{
0x44
,
-
1
,
-
1
,
-
1
},
// SPID
{
0x48
,
-
1
,
-
1
,
-
1
},
// SPIQ
{
0x4c
,
-
1
,
-
1
,
-
1
},
// USB-
{
0x50
,
-
1
,
-
1
,
-
1
},
// USB+
{
0x54
,
-
1
,
-
1
,
-
1
},
// U0RXD
{
0x58
,
-
1
,
-
1
,
-
1
},
// U0TXD
#endif
};
...
...
@@ -481,4 +510,3 @@ extern int digitalRead(uint8_t pin) __attribute__ ((weak, alias("__digitalRead")
extern
void
attachInterrupt
(
uint8_t
pin
,
voidFuncPtr
handler
,
int
mode
)
__attribute__
((
weak
,
alias
(
"__attachInterrupt"
)));
extern
void
attachInterruptArg
(
uint8_t
pin
,
voidFuncPtrArg
handler
,
void
*
arg
,
int
mode
)
__attribute__
((
weak
,
alias
(
"__attachInterruptArg"
)));
extern
void
detachInterrupt
(
uint8_t
pin
)
__attribute__
((
weak
,
alias
(
"__detachInterrupt"
)));
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录