Port to LPC1549. Partially tested, not all features ported

Fork of QEI_hw by Hexley Ball

Revision:
3:68844cd35e64
diff -r 53f8ae2cf502 -r 68844cd35e64 qeihw_lpc1549.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qeihw_lpc1549.h	Fri Aug 14 16:36:38 2015 +0000
@@ -0,0 +1,26 @@
+// Defines translating LPC1768 to LPC1548
+
+#ifdef TARGET_LPC1549
+#define QEICON                  CON
+#define QEIMAXPOS               MAXPOS
+#define INXCMP                  INXCMP0
+#define QEILOAD                 LOAD
+#define FILTER
+#define QEICONF                 CONF
+#define QEIIEC                  IEC
+#define QEICLR                  CLR
+#define QEISTAT                 STAT
+#define QEIPOS                  POS
+#define QEITIME                 TIME
+#define QEICAP                  CAP
+#define QEIINTSTAT              INTSTAT
+#define QEIIES                  IES
+#define QEIVEL                  VEL
+#define QEISET                  SET
+
+#define QEIO_PHA_I              8
+#define QEIO_PHB_I              16
+#define QEIO_IDX_I              24
+
+#define SYSAHBCLKCTRL_QEI       ((uint32_t)(1<<21))
+#endif /* TARGET_LPC1549 */