etpu_pwm_auto.h

来自「mpc55**系列芯片的例程 包括SCI,SPI,TIMER,FIT,EDMA」· C头文件 代码 · 共 41 行

H
41
字号

/****************************************************************
 * WARNING this file is automatically generated DO NOT EDIT IT! *
 *                                                              *
 * FILE NAME: etpu_pwm_auto.c      COPYRIGHT (c) Freescale 2004 *
 *                                      All Rights Reserved     *
 * This file generated by:                                      *
 * $RCSfile: etpuc_pwm.c,v $ $Revision: 1.5 $
 *                                                              *
 * This file provides an interface between eTPU code and CPU    *
 * code. All references to the PWM function should be made with *
 * information in this file. This allows only symbolic          *
 * information to be referenced which allows the eTPU code to be*
 * optimized without effecting the CPU code.                    *
 ****************************************************************/
#ifndef _ETPU_PWM_AUTO_H_
#define _ETPU_PWM_AUTO_H_

/* Function Configuration Information */
#define FS_ETPU_PWM_FUNCTION_NUMBER 1 
#define FS_ETPU_PWM_TABLE_SELECT 1 
#define FS_ETPU_PWM_NUM_PARMS 0x0018 

/* Host Service Request Definitions */
#define FS_ETPU_PWM_INIT 7 
#define FS_ETPU_PWM_IMM_UPDATE 3 
#define FS_ETPU_PWM_CO_UPDATE 5 

/* Function Mode Bit Definitions - polarity options */
#define FS_ETPU_PWM_ACTIVEHIGH 1  
#define FS_ETPU_PWM_ACTIVELOW 0   

/* Parameter Definitions */
#define FS_ETPU_PWM_PERIOD_OFFSET  0x0001
#define FS_ETPU_PWM_ACTIVE_OFFSET  0x0005
#define FS_ETPU_PWM_CO_PERIOD_OFFSET  0x0009
#define FS_ETPU_PWM_CO_ACTIVE_OFFSET  0x000D

#endif /* _ETPU_PWM_AUTO_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?