]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
LMC1: Added port pin style definition for auxual TLL I/O pins.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 26 Apr 2011 17:42:28 +0000 (19:42 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 26 Apr 2011 17:42:28 +0000 (19:42 +0200)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
board/arm/lpc17xx-common/defines/system_def-lmc1.h

index cee2b56d8251e7e449b760ca16ce71575b010045..87b819242816fa38be33a2c3e713eb234059fc76 100644 (file)
 #define LED1_PIN            PORT_PIN(2,6,PORT_CONF_GPIO_OUT_LO)
 #define RTS1_BIT            BIT(7)     // P2.7 RTS1 used as DIR1
 #define AUX_OUT2_BIT        BIT(8)     // P2.8 auxual TLL port
+#define AUX_OUT2_PIN        PORT_PIN(2,8,PORT_CONF_GPIO_OUT_HI)
 #define USB_CONNECT_BIT     BIT(9)      // P2.9 USB output for soft connect
 #define BOOT_BIT            BIT(10)     // P2.10 Boot input
 #define AUX_IN2_BIT         BIT(11)    // P2.11 auxual TLL port
+#define AUX_IN2_PIN         PORT_PIN(2,11,PORT_CONF_GPIO_IN_PU)
 #define AUX_OUT4_BIT        BIT(12)    // P2.12 auxual TLL port
+#define AUX_OUT4_PIN        PORT_PIN(2,12,PORT_CONF_GPIO_OUT_HI)
 #define ETH_PD_IRQ_BIT      BIT(13)    // P2.13 power down/int
 
 // Port Bit Definitions & Macros:    Description - initial conditions
 #define PWM2_BIT            BIT(25)     // P3.25 motor pwm 1 / ADC1
 #define PWM2_PIN            PORT_PIN(3,25,PORT_CONF_FNC_3|PORT_CONF_OUT_LO_NORM)
 #define AUX_OUT1_BIT        BIT(26)     // P3.26 auxual TLL port
+#define AUX_OUT1_PIN        PORT_PIN(3,26,PORT_CONF_GPIO_OUT_HI)
 
 // Port Bit Definitions & Macros:    Description - initial conditions
 #define AUX_OUT3_BIT        BIT(28)     // P4.28 auxual TLL port / TXD3
+#define AUX_OUT3_PIN        PORT_PIN(4,28,PORT_CONF_GPIO_OUT_HI)
 #define AUX_IN1_BIT         BIT(29)     // P4.29 auxual TLL port / RXD3
+#define AUX_IN1_PIN         PORT_PIN(4,29,PORT_CONF_GPIO_IN_PU)
 
 #define P0IO_INPUT_BITS      (uint32_t) ( \
                                          CAN1_RX_BIT | \