]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - board/arm/lpc178x-common/defines/system_def-lx_cpu1.h
LPC17xx and LPC178x: updates to ensure compatibility with new NXP header files.
[sysless.git] / board / arm / lpc178x-common / defines / system_def-lx_cpu1.h
index a12f5156eeb4446f4c5373dae6ac90541981f0df..db6b4eee20bbbf8667ca86eeaa1556c471362ebf 100644 (file)
 
 /***************************************************************************/
 /* io functions */
+
+#define LED1_BIT                BIT(LED1_PIN)
+#define LED2_BIT                BIT(LED2_PIN)
+
 #define LED_GP                 BIT(LED2_PIN)  /* GENREAL PURPOSE LED */
 #define LED_ERR                        BIT(LED1_PIN)
 
 
 /***************************************************************************/
 /* I2C1 configuration */
-#define I2C_DRV_SYSLESS_IRQ I2C1_IRQn
-#define I2C_DRV_SYSLESS_PORT I2C1_BASE
+#define I2C_DRV_SYSLESS_IRQ I2C2_IRQn
+#define I2C_DRV_SYSLESS_PORT LPC_I2C2_BASE
 #define I2C_DRV_SYSLESS_BITRATE 10000
 #define I2C_DRV_SYSLESS_SLADR 0