Freescale Semiconductor Inc.
Main Page | Data Structures | File List | Data Fields | Globals

etpu_tg_auto.h

Go to the documentation of this file.
00001 
00002 /**************************************************************** 
00003 * WARNING: This file is automatically generated. DO NOT EDIT IT!
00004 *
00005 * COPYRIGHT (c) Freescale 2004-2014, All Rights Reserved
00006 *
00007 * FILE NAME: etpu_tg_auto.h
00008 * ARCHITECTURE: eTPU2
00009 *
00010 * This file was generated by: etpuc_tg.c on Apr  9 2014 , 09:29:41
00011 *
00012 * This file provides an interface between eTPU code and CPU
00013 * code. All references to the eTPU function should be made with
00014 * information in this file. This allows only symbolic
00015 * information to be referenced which allows the eTPU code to be
00016 * optimized without effecting the CPU code.
00017 *****************************************************************/
00018 #ifndef _ETPU_TG_AUTO_H_
00019 #define _ETPU_TG_AUTO_H_
00020 
00021 /* Function Configuration Information */
00022 #define FS_ETPU_TG_FUNCTION_NUMBER 7
00023 #define FS_ETPU_TG_TABLE_SELECT 1
00024 #define FS_ETPU_TG_NUM_PARMS 0x20
00025 
00026 
00027 /* Host Service Request Definitions */
00028 #define FS_ETPU_TG_HSR_INIT 7
00029 
00030 /* Function Mode Bit Definitions */
00031 #define FS_ETPU_TG_FM0_POLARITY_LOW 0
00032 #define FS_ETPU_TG_FM0_POLARITY_HIGH 1
00033 #define FS_ETPU_TG_FM1_CRANK (0 << 1)
00034 #define FS_ETPU_TG_FM1_CAM (1 << 1)
00035 
00036 /* Parameter Definitions */
00037 #define FS_ETPU_TG_OFFSET_TOOTH_TCR1_TIME  0x1
00038 #define FS_ETPU_TG_OFFSET_TOOTH_PERIOD_ACTUAL 0x5
00039 #define FS_ETPU_TG_OFFSET_TOOTH_PERIOD_TARGET 0x9
00040 #define FS_ETPU_TG_OFFSET_ACCEL_RATIO  0xd
00041 #define FS_ETPU_TG_OFFSET_P_CAM_TOOTH_FIRST  0x11
00042 #define FS_ETPU_TG_OFFSET_P_CAM_TOOTH  0x15
00043 #define FS_ETPU_TG_OFFSET_TEETH_TILL_GAP  0x0
00044 #define FS_ETPU_TG_OFFSET_TEETH_IN_GAP  0x4
00045 #define FS_ETPU_TG_OFFSET_TEETH_PER_CYCLE  0x8
00046 #define FS_ETPU_TG_OFFSET_TOOTH_COUNTER_GAP  0xc
00047 #define FS_ETPU_TG_OFFSET_TOOTH_COUNTER_CYCLE 0x10
00048 #define FS_ETPU_TG_OFFSET_CAM_CHAN  0x14
00049 #define FS_ETPU_TG_OFFSET_GENERATION_DISABLE  0x18
00050 
00051 /* Generation Disable Definitions */
00052 #define FS_ETPU_TG_GENERATION_ALLOWED 0
00053 #define FS_ETPU_TG_GENERATION_DISABLED 1
00054 
00055 #endif