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

Go to the source code of this file.

Macros

#define NUMICRO_MFP_SHIFT   0U
 
#define NUMICRO_MFP_MASK   0xFU
 
#define NUMICRO_PIN_SHIFT   4U
 
#define NUMICRO_PIN_MASK   0xFU
 
#define NUMICRO_PORT_SHIFT   8U
 
#define NUMICRO_PORT_MASK   0xFU
 
#define NUMICRO_PINMUX(port, pin, mfp)
 Pin configuration configuration bit field.
 
#define NUMICRO_PORT(pinmux)
 
#define NUMICRO_PIN(pinmux)
 
#define NUMICRO_MFP(pinmux)
 

Macro Definition Documentation

◆ NUMICRO_MFP

#define NUMICRO_MFP ( pinmux)
Value:
#define NUMICRO_MFP_MASK
Definition numicro-pinctrl.h:11
#define NUMICRO_MFP_SHIFT
Definition numicro-pinctrl.h:10

◆ NUMICRO_MFP_MASK

#define NUMICRO_MFP_MASK   0xFU

◆ NUMICRO_MFP_SHIFT

#define NUMICRO_MFP_SHIFT   0U

◆ NUMICRO_PIN

#define NUMICRO_PIN ( pinmux)
Value:
#define NUMICRO_PIN_SHIFT
Definition numicro-pinctrl.h:12
#define NUMICRO_PIN_MASK
Definition numicro-pinctrl.h:13

◆ NUMICRO_PIN_MASK

#define NUMICRO_PIN_MASK   0xFU

◆ NUMICRO_PIN_SHIFT

#define NUMICRO_PIN_SHIFT   4U

◆ NUMICRO_PINMUX

#define NUMICRO_PINMUX ( port,
pin,
mfp )
Value:
(((((port) - 'A') & NUMICRO_PORT_MASK) << NUMICRO_PORT_SHIFT) | \
#define NUMICRO_PORT_MASK
Definition numicro-pinctrl.h:15
#define NUMICRO_PORT_SHIFT
Definition numicro-pinctrl.h:14

Pin configuration configuration bit field.

Fields:

  • mfp [ 0 : 3 ]
  • pin [ 4 : 7 ]
  • port [ 8 : 11 ]
Parameters
portPort ('A'..'H')
pinPin (0..15)
mfpMulti-function value (0..15)

◆ NUMICRO_PORT

#define NUMICRO_PORT ( pinmux)
Value:

◆ NUMICRO_PORT_MASK

#define NUMICRO_PORT_MASK   0xFU

◆ NUMICRO_PORT_SHIFT

#define NUMICRO_PORT_SHIFT   8U