]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/MCF5282/MCF5282_GPTA.h
FreeRTOS source:
[freertos] / FreeRTOS / Demo / ColdFire_MCF5282_Eclipse / RTOSDemo / MCF5282 / MCF5282_GPTA.h
diff --git a/FreeRTOS/Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/MCF5282/MCF5282_GPTA.h b/FreeRTOS/Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/MCF5282/MCF5282_GPTA.h
deleted file mode 100644 (file)
index 9092e2a..0000000
+++ /dev/null
@@ -1,198 +0,0 @@
-/* Coldfire C Header File\r
- * Copyright Freescale Semiconductor Inc\r
- * All rights reserved.\r
- *\r
- * 2007/03/19 Revision: 0.9\r
- */\r
-\r
-#ifndef __MCF5282_GPTA_H__\r
-#define __MCF5282_GPTA_H__\r
-\r
-\r
-/*********************************************************************\r
-*\r
-* General Purpose Timer Module (GPT)\r
-*\r
-*********************************************************************/\r
-\r
-/* Register read/write macros */\r
-#define MCF_GPTA_GPTIOS                      (*(vuint8 *)(&__IPSBAR[0x1A0000]))\r
-#define MCF_GPTA_GPTCFORC                    (*(vuint8 *)(&__IPSBAR[0x1A0001]))\r
-#define MCF_GPTA_GPTOC3M                     (*(vuint8 *)(&__IPSBAR[0x1A0002]))\r
-#define MCF_GPTA_GPTOC3D                     (*(vuint8 *)(&__IPSBAR[0x1A0003]))\r
-#define MCF_GPTA_GPTCNT                      (*(vuint16*)(&__IPSBAR[0x1A0004]))\r
-#define MCF_GPTA_GPTSCR1                     (*(vuint8 *)(&__IPSBAR[0x1A0006]))\r
-#define MCF_GPTA_GPTTOV                      (*(vuint8 *)(&__IPSBAR[0x1A0008]))\r
-#define MCF_GPTA_GPTCTL1                     (*(vuint8 *)(&__IPSBAR[0x1A0009]))\r
-#define MCF_GPTA_GPTCTL2                     (*(vuint8 *)(&__IPSBAR[0x1A000B]))\r
-#define MCF_GPTA_GPTIE                       (*(vuint8 *)(&__IPSBAR[0x1A000C]))\r
-#define MCF_GPTA_GPTSCR2                     (*(vuint8 *)(&__IPSBAR[0x1A000D]))\r
-#define MCF_GPTA_GPTFLG1                     (*(vuint8 *)(&__IPSBAR[0x1A000E]))\r
-#define MCF_GPTA_GPTFLG2                     (*(vuint8 *)(&__IPSBAR[0x1A000F]))\r
-#define MCF_GPTA_GPTC0                       (*(vuint16*)(&__IPSBAR[0x1A0010]))\r
-#define MCF_GPTA_GPTC1                       (*(vuint16*)(&__IPSBAR[0x1A0012]))\r
-#define MCF_GPTA_GPTC2                       (*(vuint16*)(&__IPSBAR[0x1A0014]))\r
-#define MCF_GPTA_GPTC3                       (*(vuint16*)(&__IPSBAR[0x1A0016]))\r
-#define MCF_GPTA_GPTPACTL                    (*(vuint8 *)(&__IPSBAR[0x1A0018]))\r
-#define MCF_GPTA_GPTPAFLG                    (*(vuint8 *)(&__IPSBAR[0x1A0019]))\r
-#define MCF_GPTA_GPTPACNT                    (*(vuint16*)(&__IPSBAR[0x1A001A]))\r
-#define MCF_GPTA_GPTPORT                     (*(vuint8 *)(&__IPSBAR[0x1A001D]))\r
-#define MCF_GPTA_GPTDDR                      (*(vuint8 *)(&__IPSBAR[0x1A001E]))\r
-#define MCF_GPTA_GPTC(x)                     (*(vuint16*)(&__IPSBAR[0x1A0010 + ((x)*0x2)]))\r
-\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTIOS */\r
-#define MCF_GPTA_GPTIOS_IOS0                 (0x1)\r
-#define MCF_GPTA_GPTIOS_IOS1                 (0x2)\r
-#define MCF_GPTA_GPTIOS_IOS2                 (0x4)\r
-#define MCF_GPTA_GPTIOS_IOS3                 (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTCFORC */\r
-#define MCF_GPTA_GPTCFORC_FOC0               (0x1)\r
-#define MCF_GPTA_GPTCFORC_FOC1               (0x2)\r
-#define MCF_GPTA_GPTCFORC_FOC2               (0x4)\r
-#define MCF_GPTA_GPTCFORC_FOC3               (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTOC3M */\r
-#define MCF_GPTA_GPTOC3M_OC3M0               (0x1)\r
-#define MCF_GPTA_GPTOC3M_OC3M1               (0x2)\r
-#define MCF_GPTA_GPTOC3M_OC3M2               (0x4)\r
-#define MCF_GPTA_GPTOC3M_OC3M3               (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTOC3D */\r
-#define MCF_GPTA_GPTOC3D_OC3D0               (0x1)\r
-#define MCF_GPTA_GPTOC3D_OC3D1               (0x2)\r
-#define MCF_GPTA_GPTOC3D_OC3D2               (0x4)\r
-#define MCF_GPTA_GPTOC3D_OC3D3               (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTCNT */\r
-#define MCF_GPTA_GPTCNT_CNTR(x)              (((x)&0xFFFF)<<0)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTSCR1 */\r
-#define MCF_GPTA_GPTSCR1_TFFCA               (0x10)\r
-#define MCF_GPTA_GPTSCR1_GPTEN               (0x80)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTTOV */\r
-#define MCF_GPTA_GPTTOV_TOV0                 (0x1)\r
-#define MCF_GPTA_GPTTOV_TOV1                 (0x2)\r
-#define MCF_GPTA_GPTTOV_TOV2                 (0x4)\r
-#define MCF_GPTA_GPTTOV_TOV3                 (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTCTL1 */\r
-#define MCF_GPTA_GPTCTL1_OL0                 (0x1)\r
-#define MCF_GPTA_GPTCTL1_OM0                 (0x2)\r
-#define MCF_GPTA_GPTCTL1_OL1                 (0x4)\r
-#define MCF_GPTA_GPTCTL1_OM1                 (0x8)\r
-#define MCF_GPTA_GPTCTL1_OL2                 (0x10)\r
-#define MCF_GPTA_GPTCTL1_OM2                 (0x20)\r
-#define MCF_GPTA_GPTCTL1_OL3                 (0x40)\r
-#define MCF_GPTA_GPTCTL1_OM3                 (0x80)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT0_NOTHING     (0)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT0_TOGGLE      (0x1)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT0_CLEAR       (0x2)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT0_SET         (0x3)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT1_NOTHING     (0)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT1_TOGGLE      (0x4)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT1_CLEAR       (0x8)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT1_SET         (0xC)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT2_NOTHING     (0)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT2_TOGGLE      (0x10)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT2_CLEAR       (0x20)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT2_SET         (0x30)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT3_NOTHING     (0)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT3_TOGGLE      (0x40)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT3_CLEAR       (0x80)\r
-#define MCF_GPTA_GPTCTL1_OUTPUT3_SET         (0xC0)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTCTL2 */\r
-#define MCF_GPTA_GPTCTL2_EDG0A               (0x1)\r
-#define MCF_GPTA_GPTCTL2_EDG0B               (0x2)\r
-#define MCF_GPTA_GPTCTL2_EDG1A               (0x4)\r
-#define MCF_GPTA_GPTCTL2_EDG1B               (0x8)\r
-#define MCF_GPTA_GPTCTL2_EDG2A               (0x10)\r
-#define MCF_GPTA_GPTCTL2_EDG2B               (0x20)\r
-#define MCF_GPTA_GPTCTL2_EDG3A               (0x40)\r
-#define MCF_GPTA_GPTCTL2_EDG3B               (0x80)\r
-#define MCF_GPTA_GPTCTL2_INPUT0_DISABLED     (0)\r
-#define MCF_GPTA_GPTCTL2_INPUT0_RISING       (0x1)\r
-#define MCF_GPTA_GPTCTL2_INPUT0_FALLING      (0x2)\r
-#define MCF_GPTA_GPTCTL2_INPUT0_ANY          (0x3)\r
-#define MCF_GPTA_GPTCTL2_INPUT1_DISABLED     (0)\r
-#define MCF_GPTA_GPTCTL2_INPUT1_RISING       (0x4)\r
-#define MCF_GPTA_GPTCTL2_INPUT1_FALLING      (0x8)\r
-#define MCF_GPTA_GPTCTL2_INPUT1_ANY          (0xC)\r
-#define MCF_GPTA_GPTCTL2_INPUT2_DISABLED     (0)\r
-#define MCF_GPTA_GPTCTL2_INPUT2_RISING       (0x10)\r
-#define MCF_GPTA_GPTCTL2_INPUT2_FALLING      (0x20)\r
-#define MCF_GPTA_GPTCTL2_INPUT2_ANY          (0x30)\r
-#define MCF_GPTA_GPTCTL2_INPUT3_DISABLED     (0)\r
-#define MCF_GPTA_GPTCTL2_INPUT3_RISING       (0x40)\r
-#define MCF_GPTA_GPTCTL2_INPUT3_FALLING      (0x80)\r
-#define MCF_GPTA_GPTCTL2_INPUT3_ANY          (0xC0)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTIE */\r
-#define MCF_GPTA_GPTIE_CI0                   (0x1)\r
-#define MCF_GPTA_GPTIE_CI1                   (0x2)\r
-#define MCF_GPTA_GPTIE_CI2                   (0x4)\r
-#define MCF_GPTA_GPTIE_CI3                   (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTSCR2 */\r
-#define MCF_GPTA_GPTSCR2_PR(x)               (((x)&0x7)<<0)\r
-#define MCF_GPTA_GPTSCR2_PR_1                (0)\r
-#define MCF_GPTA_GPTSCR2_PR_2                (0x1)\r
-#define MCF_GPTA_GPTSCR2_PR_4                (0x2)\r
-#define MCF_GPTA_GPTSCR2_PR_8                (0x3)\r
-#define MCF_GPTA_GPTSCR2_PR_16               (0x4)\r
-#define MCF_GPTA_GPTSCR2_PR_32               (0x5)\r
-#define MCF_GPTA_GPTSCR2_PR_64               (0x6)\r
-#define MCF_GPTA_GPTSCR2_PR_128              (0x7)\r
-#define MCF_GPTA_GPTSCR2_TCRE                (0x8)\r
-#define MCF_GPTA_GPTSCR2_RDPT                (0x10)\r
-#define MCF_GPTA_GPTSCR2_PUPT                (0x20)\r
-#define MCF_GPTA_GPTSCR2_TOI                 (0x80)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTFLG1 */\r
-#define MCF_GPTA_GPTFLG1_CF0                 (0x1)\r
-#define MCF_GPTA_GPTFLG1_CF1                 (0x2)\r
-#define MCF_GPTA_GPTFLG1_CF2                 (0x4)\r
-#define MCF_GPTA_GPTFLG1_CF3                 (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTFLG2 */\r
-#define MCF_GPTA_GPTFLG2_TOF                 (0x80)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTC */\r
-#define MCF_GPTA_GPTC_CCNT(x)                (((x)&0xFFFF)<<0)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTPACTL */\r
-#define MCF_GPTA_GPTPACTL_PAI                (0x1)\r
-#define MCF_GPTA_GPTPACTL_PAOVI              (0x2)\r
-#define MCF_GPTA_GPTPACTL_CLK(x)             (((x)&0x3)<<0x2)\r
-#define MCF_GPTA_GPTPACTL_CLK_GPTPR          (0)\r
-#define MCF_GPTA_GPTPACTL_CLK_PACLK          (0x1)\r
-#define MCF_GPTA_GPTPACTL_CLK_PACLK_256      (0x2)\r
-#define MCF_GPTA_GPTPACTL_CLK_PACLK_65536    (0x3)\r
-#define MCF_GPTA_GPTPACTL_PEDGE              (0x10)\r
-#define MCF_GPTA_GPTPACTL_PAMOD              (0x20)\r
-#define MCF_GPTA_GPTPACTL_PAE                (0x40)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTPAFLG */\r
-#define MCF_GPTA_GPTPAFLG_PAIF               (0x1)\r
-#define MCF_GPTA_GPTPAFLG_PAOVF              (0x2)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTPACNT */\r
-#define MCF_GPTA_GPTPACNT_PACNT(x)           (((x)&0xFFFF)<<0)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTPORT */\r
-#define MCF_GPTA_GPTPORT_PORTT0              (0x1)\r
-#define MCF_GPTA_GPTPORT_PORTT1              (0x2)\r
-#define MCF_GPTA_GPTPORT_PORTT2              (0x4)\r
-#define MCF_GPTA_GPTPORT_PORTT3              (0x8)\r
-\r
-/* Bit definitions and macros for MCF_GPTA_GPTDDR */\r
-#define MCF_GPTA_GPTDDR_DDRT0                (0x1)\r
-#define MCF_GPTA_GPTDDR_DDRT1                (0x2)\r
-#define MCF_GPTA_GPTDDR_DDRT2                (0x4)\r
-#define MCF_GPTA_GPTDDR_DDRT3                (0x8)\r
-\r
-\r
-#endif /* __MCF5282_GPTA_H__ */\r