Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
smartbond-pinctrl.h File Reference

Go to the source code of this file.

Macros

#define SMARTBOND_FUNC_GPIO   0
 Definitions of pin functions.
 
#define SMARTBOND_FUNC_UART_RX   1
 
#define SMARTBOND_FUNC_UART_TX   2
 
#define SMARTBOND_FUNC_UART2_RX   3
 
#define SMARTBOND_FUNC_UART2_TX   4
 
#define SMARTBOND_FUNC_UART2_CTSN   5
 
#define SMARTBOND_FUNC_UART2_RTSN   6
 
#define SMARTBOND_FUNC_UART3_RX   7
 
#define SMARTBOND_FUNC_UART3_TX   8
 
#define SMARTBOND_FUNC_UART3_CTSN   9
 
#define SMARTBOND_FUNC_UART3_RTSN   10
 
#define SMARTBOND_FUNC_ISO_CLK   11
 
#define SMARTBOND_FUNC_ISO_DATA   12
 
#define SMARTBOND_FUNC_SPI_DI   13
 
#define SMARTBOND_FUNC_SPI_DO   14
 
#define SMARTBOND_FUNC_SPI_CLK   15
 
#define SMARTBOND_FUNC_SPI_EN   16
 
#define SMARTBOND_FUNC_SPI2_DI   17
 
#define SMARTBOND_FUNC_SPI2_DO   18
 
#define SMARTBOND_FUNC_SPI2_CLK   19
 
#define SMARTBOND_FUNC_SPI2_EN   20
 
#define SMARTBOND_FUNC_I2C_SCL   21
 
#define SMARTBOND_FUNC_I2C_SDA   22
 
#define SMARTBOND_FUNC_I2C2_SCL   23
 
#define SMARTBOND_FUNC_I2C2_SDA   24
 
#define SMARTBOND_FUNC_USB_SOF   25
 
#define SMARTBOND_FUNC_ADC   26
 
#define SMARTBOND_FUNC_USB   27
 
#define SMARTBOND_FUNC_PCM_DI   28
 
#define SMARTBOND_FUNC_PCM_DO   29
 
#define SMARTBOND_FUNC_PCM_FSC   30
 
#define SMARTBOND_FUNC_PCM_CLK   31
 
#define SMARTBOND_FUNC_PDM_DATA   32
 
#define SMARTBOND_FUNC_PDM_CLK   33
 
#define SMARTBOND_FUNC_COEX_EXT_ACT   34
 
#define SMARTBOND_FUNC_COEX_SMART_ACT   35
 
#define SMARTBOND_FUNC_COEX_SMART_PRI   36
 
#define SMARTBOND_FUNC_PORT0_DCF   37
 
#define SMARTBOND_FUNC_PORT1_DCF   38
 
#define SMARTBOND_FUNC_PORT2_DCF   39
 
#define SMARTBOND_FUNC_PORT3_DCF   40
 
#define SMARTBOND_FUNC_PORT4_DCF   41
 
#define SMARTBOND_FUNC_CLOCK   42
 
#define SMARTBOND_FUNC_PG   43
 
#define SMARTBOND_FUNC_LCD   44
 
#define SMARTBOND_FUNC_LCD_SPI_DC   45
 
#define SMARTBOND_FUNC_LCD_SPI_DO   46
 
#define SMARTBOND_FUNC_LCD_SPI_CLK   47
 
#define SMARTBOND_FUNC_LCD_SPI_EN   48
 
#define SMARTBOND_FUNC_TIM_PWM   49
 
#define SMARTBOND_FUNC_TIM2_PWM   50
 
#define SMARTBOND_FUNC_TIM_1SHOT   51
 
#define SMARTBOND_FUNC_TIM2_1SHOT   52
 
#define SMARTBOND_FUNC_TIM3_PWM   53
 
#define SMARTBOND_FUNC_TIM4_PWM   54
 
#define SMARTBOND_PINMUX_PIN_POS   0
 Definitions of bit positions and bit masks in pinmux.
 
#define SMARTBOND_PINMUX_PIN_MASK   0x1f
 
#define SMARTBOND_PINMUX_PORT_POS   5
 
#define SMARTBOND_PINMUX_PORT_MASK   0x01
 
#define SMARTBOND_PINMUX_FUNC_POS   6
 
#define SMARTBOND_PINMUX_FUNC_MASK   0xff
 
#define SMARTBOND_PINMUX(func, port, pin)
 Utility macro to create pinmux.
 

Macro Definition Documentation

◆ SMARTBOND_FUNC_ADC

#define SMARTBOND_FUNC_ADC   26

◆ SMARTBOND_FUNC_CLOCK

#define SMARTBOND_FUNC_CLOCK   42

◆ SMARTBOND_FUNC_COEX_EXT_ACT

#define SMARTBOND_FUNC_COEX_EXT_ACT   34

◆ SMARTBOND_FUNC_COEX_SMART_ACT

#define SMARTBOND_FUNC_COEX_SMART_ACT   35

◆ SMARTBOND_FUNC_COEX_SMART_PRI

#define SMARTBOND_FUNC_COEX_SMART_PRI   36

◆ SMARTBOND_FUNC_GPIO

#define SMARTBOND_FUNC_GPIO   0

Definitions of pin functions.

◆ SMARTBOND_FUNC_I2C2_SCL

#define SMARTBOND_FUNC_I2C2_SCL   23

◆ SMARTBOND_FUNC_I2C2_SDA

#define SMARTBOND_FUNC_I2C2_SDA   24

◆ SMARTBOND_FUNC_I2C_SCL

#define SMARTBOND_FUNC_I2C_SCL   21

◆ SMARTBOND_FUNC_I2C_SDA

#define SMARTBOND_FUNC_I2C_SDA   22

◆ SMARTBOND_FUNC_ISO_CLK

#define SMARTBOND_FUNC_ISO_CLK   11

◆ SMARTBOND_FUNC_ISO_DATA

#define SMARTBOND_FUNC_ISO_DATA   12

◆ SMARTBOND_FUNC_LCD

#define SMARTBOND_FUNC_LCD   44

◆ SMARTBOND_FUNC_LCD_SPI_CLK

#define SMARTBOND_FUNC_LCD_SPI_CLK   47

◆ SMARTBOND_FUNC_LCD_SPI_DC

#define SMARTBOND_FUNC_LCD_SPI_DC   45

◆ SMARTBOND_FUNC_LCD_SPI_DO

#define SMARTBOND_FUNC_LCD_SPI_DO   46

◆ SMARTBOND_FUNC_LCD_SPI_EN

#define SMARTBOND_FUNC_LCD_SPI_EN   48

◆ SMARTBOND_FUNC_PCM_CLK

#define SMARTBOND_FUNC_PCM_CLK   31

◆ SMARTBOND_FUNC_PCM_DI

#define SMARTBOND_FUNC_PCM_DI   28

◆ SMARTBOND_FUNC_PCM_DO

#define SMARTBOND_FUNC_PCM_DO   29

◆ SMARTBOND_FUNC_PCM_FSC

#define SMARTBOND_FUNC_PCM_FSC   30

◆ SMARTBOND_FUNC_PDM_CLK

#define SMARTBOND_FUNC_PDM_CLK   33

◆ SMARTBOND_FUNC_PDM_DATA

#define SMARTBOND_FUNC_PDM_DATA   32

◆ SMARTBOND_FUNC_PG

#define SMARTBOND_FUNC_PG   43

◆ SMARTBOND_FUNC_PORT0_DCF

#define SMARTBOND_FUNC_PORT0_DCF   37

◆ SMARTBOND_FUNC_PORT1_DCF

#define SMARTBOND_FUNC_PORT1_DCF   38

◆ SMARTBOND_FUNC_PORT2_DCF

#define SMARTBOND_FUNC_PORT2_DCF   39

◆ SMARTBOND_FUNC_PORT3_DCF

#define SMARTBOND_FUNC_PORT3_DCF   40

◆ SMARTBOND_FUNC_PORT4_DCF

#define SMARTBOND_FUNC_PORT4_DCF   41

◆ SMARTBOND_FUNC_SPI2_CLK

#define SMARTBOND_FUNC_SPI2_CLK   19

◆ SMARTBOND_FUNC_SPI2_DI

#define SMARTBOND_FUNC_SPI2_DI   17

◆ SMARTBOND_FUNC_SPI2_DO

#define SMARTBOND_FUNC_SPI2_DO   18

◆ SMARTBOND_FUNC_SPI2_EN

#define SMARTBOND_FUNC_SPI2_EN   20

◆ SMARTBOND_FUNC_SPI_CLK

#define SMARTBOND_FUNC_SPI_CLK   15

◆ SMARTBOND_FUNC_SPI_DI

#define SMARTBOND_FUNC_SPI_DI   13

◆ SMARTBOND_FUNC_SPI_DO

#define SMARTBOND_FUNC_SPI_DO   14

◆ SMARTBOND_FUNC_SPI_EN

#define SMARTBOND_FUNC_SPI_EN   16

◆ SMARTBOND_FUNC_TIM2_1SHOT

#define SMARTBOND_FUNC_TIM2_1SHOT   52

◆ SMARTBOND_FUNC_TIM2_PWM

#define SMARTBOND_FUNC_TIM2_PWM   50

◆ SMARTBOND_FUNC_TIM3_PWM

#define SMARTBOND_FUNC_TIM3_PWM   53

◆ SMARTBOND_FUNC_TIM4_PWM

#define SMARTBOND_FUNC_TIM4_PWM   54

◆ SMARTBOND_FUNC_TIM_1SHOT

#define SMARTBOND_FUNC_TIM_1SHOT   51

◆ SMARTBOND_FUNC_TIM_PWM

#define SMARTBOND_FUNC_TIM_PWM   49

◆ SMARTBOND_FUNC_UART2_CTSN

#define SMARTBOND_FUNC_UART2_CTSN   5

◆ SMARTBOND_FUNC_UART2_RTSN

#define SMARTBOND_FUNC_UART2_RTSN   6

◆ SMARTBOND_FUNC_UART2_RX

#define SMARTBOND_FUNC_UART2_RX   3

◆ SMARTBOND_FUNC_UART2_TX

#define SMARTBOND_FUNC_UART2_TX   4

◆ SMARTBOND_FUNC_UART3_CTSN

#define SMARTBOND_FUNC_UART3_CTSN   9

◆ SMARTBOND_FUNC_UART3_RTSN

#define SMARTBOND_FUNC_UART3_RTSN   10

◆ SMARTBOND_FUNC_UART3_RX

#define SMARTBOND_FUNC_UART3_RX   7

◆ SMARTBOND_FUNC_UART3_TX

#define SMARTBOND_FUNC_UART3_TX   8

◆ SMARTBOND_FUNC_UART_RX

#define SMARTBOND_FUNC_UART_RX   1

◆ SMARTBOND_FUNC_UART_TX

#define SMARTBOND_FUNC_UART_TX   2

◆ SMARTBOND_FUNC_USB

#define SMARTBOND_FUNC_USB   27

◆ SMARTBOND_FUNC_USB_SOF

#define SMARTBOND_FUNC_USB_SOF   25

◆ SMARTBOND_PINMUX

#define SMARTBOND_PINMUX ( func,
port,
pin )
Value:
(((SMARTBOND_FUNC_ ## func) << SMARTBOND_PINMUX_FUNC_POS) | \
((port) << SMARTBOND_PINMUX_PORT_POS) | \
#define SMARTBOND_PINMUX_FUNC_POS
Definition smartbond-pinctrl.h:72
#define SMARTBOND_PINMUX_PIN_POS
Definitions of bit positions and bit masks in pinmux.
Definition smartbond-pinctrl.h:68
#define SMARTBOND_PINMUX_PORT_POS
Definition smartbond-pinctrl.h:70

Utility macro to create pinmux.

◆ SMARTBOND_PINMUX_FUNC_MASK

#define SMARTBOND_PINMUX_FUNC_MASK   0xff

◆ SMARTBOND_PINMUX_FUNC_POS

#define SMARTBOND_PINMUX_FUNC_POS   6

◆ SMARTBOND_PINMUX_PIN_MASK

#define SMARTBOND_PINMUX_PIN_MASK   0x1f

◆ SMARTBOND_PINMUX_PIN_POS

#define SMARTBOND_PINMUX_PIN_POS   0

Definitions of bit positions and bit masks in pinmux.

◆ SMARTBOND_PINMUX_PORT_MASK

#define SMARTBOND_PINMUX_PORT_MASK   0x01

◆ SMARTBOND_PINMUX_PORT_POS

#define SMARTBOND_PINMUX_PORT_POS   5