Chip_IOCON_PinMux(LPC_IOCON,PORT_1,PIN_19,IOCON_MODE_INACT,FUNC0); |
#if defined(CHIP_LPC175X_6X) #define IOCON_MODE_INACT (0x2 << 2)/*!< No addition pin function */ |
Chip_IOCON_PinMux(LPC_IOCON,PORT_1,PIN_19,2,IOCON_FUNC0); |
/** * IOCON function and mode selection definitions * See the User Manual for specific modes and [color=#f00]functions supoprted by the * various LPC11xx devices. Functionality can vary per device. [/color] */ #define IOCON_FUNC0 0x0/*!< Selects pin function 0 */ #define IOCON_FUNC1 0x1/*!< Selects pin function 1 */ #define IOCON_FUNC2 0x2/*!< Selects pin function 2 */ #define IOCON_FUNC3 0x3/*!< Selects pin function 3 */ #if defined(CHIP_LPC175X_6X) [color=#f00]#define IOCON_MODE_INACT (0x2 << 2)/*!< No addition pin function */ #define IOCON_MODE_PULLDOWN (0x3 << 2)/*!< Selects pull-down function */ #define IOCON_MODE_PULLUP (0x0 << 2)/*!< Selects pull-up function */ #define IOCON_MODE_REPEATER (0x1 << 2)/*!< Selects pin repeater function */ [/color]#else |