Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
npcx-pinctrl.h File Reference

Go to the source code of this file.

Macros

#define NPCX_PSL_MODE_EDGE   (1 << 0)
 NPCX specific PIN configuration flag. More...
 
#define NPCX_PSL_MODE_LEVEL   (1 << 1)
 
#define NPCX_PSL_ACTIVE_HIGH   (1 << 2)
 
#define NPCX_PSL_ACTIVE_LOW   (1 << 3)
 
#define NPCX_PSL_RISING_EDGE   (NPCX_PSL_MODE_EDGE | NPCX_PSL_ACTIVE_HIGH)
 
#define NPCX_PSL_FALLING_EDGE   (NPCX_PSL_MODE_EDGE | NPCX_PSL_ACTIVE_LOW)
 
#define NPCX_PSL_LEVEL_HIGH   (NPCX_PSL_MODE_LEVEL | NPCX_PSL_ACTIVE_HIGH)
 
#define NPCX_PSL_LEVEL_LOW   (NPCX_PSL_MODE_LEVEL | NPCX_PSL_ACTIVE_LOW)
 

Macro Definition Documentation

◆ NPCX_PSL_ACTIVE_HIGH

#define NPCX_PSL_ACTIVE_HIGH   (1 << 2)

◆ NPCX_PSL_ACTIVE_LOW

#define NPCX_PSL_ACTIVE_LOW   (1 << 3)

◆ NPCX_PSL_FALLING_EDGE

#define NPCX_PSL_FALLING_EDGE   (NPCX_PSL_MODE_EDGE | NPCX_PSL_ACTIVE_LOW)

◆ NPCX_PSL_LEVEL_HIGH

#define NPCX_PSL_LEVEL_HIGH   (NPCX_PSL_MODE_LEVEL | NPCX_PSL_ACTIVE_HIGH)

◆ NPCX_PSL_LEVEL_LOW

#define NPCX_PSL_LEVEL_LOW   (NPCX_PSL_MODE_LEVEL | NPCX_PSL_ACTIVE_LOW)

◆ NPCX_PSL_MODE_EDGE

#define NPCX_PSL_MODE_EDGE   (1 << 0)

NPCX specific PIN configuration flag.

Pin configuration is coded with the following fields Power Switch Logic (PSL) [ 0 : 3 ] Reserved [ 4 : 31]

Applicable to NPCX7 series.

◆ NPCX_PSL_MODE_LEVEL

#define NPCX_PSL_MODE_LEVEL   (1 << 1)

◆ NPCX_PSL_RISING_EDGE

#define NPCX_PSL_RISING_EDGE   (NPCX_PSL_MODE_EDGE | NPCX_PSL_ACTIVE_HIGH)