Port to LPC1549. Partially tested, not all features ported

Fork of QEI_hw by Hexley Ball

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers qeihw_lpc1549.h Source File

qeihw_lpc1549.h

00001 // Defines translating LPC1768 to LPC1548
00002 
00003 #ifdef TARGET_LPC1549
00004 #define QEICON                  CON
00005 #define QEIMAXPOS               MAXPOS
00006 #define INXCMP                  INXCMP0
00007 #define QEILOAD                 LOAD
00008 #define FILTER
00009 #define QEICONF                 CONF
00010 #define QEIIEC                  IEC
00011 #define QEICLR                  CLR
00012 #define QEISTAT                 STAT
00013 #define QEIPOS                  POS
00014 #define QEITIME                 TIME
00015 #define QEICAP                  CAP
00016 #define QEIINTSTAT              INTSTAT
00017 #define QEIIES                  IES
00018 #define QEIVEL                  VEL
00019 #define QEISET                  SET
00020 
00021 #define QEIO_PHA_I              8
00022 #define QEIO_PHB_I              16
00023 #define QEIO_IDX_I              24
00024 
00025 #define SYSAHBCLKCTRL_QEI       ((uint32_t)(1<<21))
00026 #endif /* TARGET_LPC1549 */