Zephyr API Documentation
4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
amebad-pinctrl.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Realtek Semiconductor Corp.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_AMEBAD_PINCTRL_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_AMEBAD_PINCTRL_H_
9
10
/* PINMUX Function definitions */
11
#define AMEBA_GPIO 0
12
#define AMEBA_UART 1
13
#define AMEBA_UART_RTSCTS 2
14
#define AMEBA_LOGUART 2
15
#define AMEBA_SPIM 3
16
#define AMEBA_SPIS 3
17
#define AMEBA_RTC 4
18
#define AMEBA_TIMINPUT 4
19
#define AMEBA_IR 5
20
#define AMEBA_SPIF 6
21
#define AMEBA_I2C 7
22
#define AMEBA_SDIOD 8
23
#define AMEBA_SDIOH 8
24
#define AMEBA_PWM 9
25
#define AMEBA_PWM_HS 9
26
#define AMEBA_PWM_LP 10
27
#define AMEBA_SWD 11
28
#define AMEBA_I2S 12
29
#define AMEBA_DMIC 12
30
#define AMEBA_LCD 13
31
#define AMEBA_USB 14
32
#define AMEBA_QDEC 15
33
#define AMEBA_SGPIO 16
34
#define AMEBA_RFE 18
35
#define AMEBA_BTCOEX 19
36
#define AMEBA_WIFIFW 20
37
#define AMEBA_EXT_PCM 20
38
#define AMEBA_EXT_BT 20
39
#define AMEBA_BB_PIN 21
40
#define AMEBA_SIC 22
41
#define AMEBA_TIMINPUT_HS 22
42
#define AMEBA_DBGPORT 23
43
#define AMEBA_BBDBG 25
44
#define AMEBA_EXT32K 28
45
#define AMEBA_RTCOUT 28
46
#define AMEBA_KEYSCAN_ROW 29
47
#define AMEBA_KEYSCAN_COL 30
48
#define AMEBA_WAKEUP 31
49
50
/* Define pins number: bit[14:13] port, bit[12:8] pin, bit[7:0] function ID */
51
#define AMEBA_PORT_PIN(port, line) ((((port) - 'A') << 5) + (line))
52
#define AMEBA_PINMUX(port, line, funcid) (((AMEBA_PORT_PIN(port, line)) << 8) | (funcid))
53
54
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_AMEBAD_PINCTRL_H_ */
zephyr
dt-bindings
pinctrl
amebad-pinctrl.h
Generated on
for Zephyr API Documentation by
1.15.0