Nut/OS  5.0.5
API Reference
XgNutArchArmLpcPinCon

Pin Function Select Registers

#define PINSEL_OFF(x)   (x * 4)
#define PINSEL(x)   (LPC_PINCON_BASE + PINSEL_OFF(x))

Pin Mode Select Registers

#define PINMODE_OFF(x)   (0x00000040 + x * 4)
#define PINMODE(x)   (LPC_PINCON_BASE + PINMODE_OFF(x))

Open Drain Mode Control Registers

#define PINMODE_OD_OFF(x)   (0x00000068 + x * 4)
#define PINMODE_OD(x)   (LPC_PINCON_BASE + PINMODE_OD_OFF(x))

I2C Pin Configuration Register

#define I2CPADCFG_OFF   0x0000007C
#define I2CPADCFG   (LPC_PINCON_BASE + I2CPADCFG_OFF)

Define Documentation

#define PINSEL_OFF (   x)    (x * 4)
#define PINSEL (   x)    (LPC_PINCON_BASE + PINSEL_OFF(x))

Referenced by GpioPinConfigGet(), and NutBoardInit().

#define PINMODE_OFF (   x)    (0x00000040 + x * 4)
#define PINMODE (   x)    (LPC_PINCON_BASE + PINMODE_OFF(x))

Referenced by GpioPinConfigGet().

#define PINMODE_OD_OFF (   x)    (0x00000068 + x * 4)
#define PINMODE_OD (   x)    (LPC_PINCON_BASE + PINMODE_OD_OFF(x))
#define I2CPADCFG_OFF   0x0000007C
#define I2CPADCFG   (LPC_PINCON_BASE + I2CPADCFG_OFF)