Zephyr API 3.6.99
Loading...
Searching...
No Matches
stm32-pinctrl-common.h File Reference

Go to the source code of this file.

Macros

#define STM32_PORTA   0 /* IO port A */
 numerical IDs for IO ports
 
#define STM32_PORTB   1 /* .. */
 
#define STM32_PORTC   2
 
#define STM32_PORTD   3
 
#define STM32_PORTE   4
 
#define STM32_PORTF   5
 
#define STM32_PORTG   6
 
#define STM32_PORTH   7
 
#define STM32_PORTI   8
 
#define STM32_PORTJ   9
 
#define STM32_PORTK   10 /* IO port K */
 
#define STM32_PORTM   12 /* IO port M (0xC) */
 
#define STM32_PORTN   13
 
#define STM32_PORTO   14
 
#define STM32_PORTP   15 /* IO port P (0xF) */
 
#define STM32_PORTS_MAX   (STM32_PORTP + 1)
 
#define STM32PIN(_port, _pin)
 helper macro to encode an IO port pin in a numerical format
 

Macro Definition Documentation

◆ STM32_PORTA

#define STM32_PORTA   0 /* IO port A */

numerical IDs for IO ports

◆ STM32_PORTB

#define STM32_PORTB   1 /* .. */

◆ STM32_PORTC

#define STM32_PORTC   2

◆ STM32_PORTD

#define STM32_PORTD   3

◆ STM32_PORTE

#define STM32_PORTE   4

◆ STM32_PORTF

#define STM32_PORTF   5

◆ STM32_PORTG

#define STM32_PORTG   6

◆ STM32_PORTH

#define STM32_PORTH   7

◆ STM32_PORTI

#define STM32_PORTI   8

◆ STM32_PORTJ

#define STM32_PORTJ   9

◆ STM32_PORTK

#define STM32_PORTK   10 /* IO port K */

◆ STM32_PORTM

#define STM32_PORTM   12 /* IO port M (0xC) */

◆ STM32_PORTN

#define STM32_PORTN   13

◆ STM32_PORTO

#define STM32_PORTO   14

◆ STM32_PORTP

#define STM32_PORTP   15 /* IO port P (0xF) */

◆ STM32_PORTS_MAX

#define STM32_PORTS_MAX   (STM32_PORTP + 1)

◆ STM32PIN

#define STM32PIN ( _port,
_pin )
Value:
(_port << 4 | _pin)

helper macro to encode an IO port pin in a numerical format