pwm_ref.h
来自「嵌入式系统」· C头文件 代码 · 共 39 行
H
39 行
/*-----------------------------------------------------------------------------
@@
@@ Copyright (c) 2001 Sharp Corporation All rights reserved.
@@
@@ (Summary) : PWM register and constant definition
@@
@@ (Comment) :
@@
@@ (Author) : Kazuko FUKUDA
@@
@@ (History) : 2001/1/15
@@ 2001/1/17 K.FUKUDA reflect result of code review version
@@ 2001/06/05 Tan WK Version 2.0 with LH79532 support
@@ 2001/08/31 Teo LL Version 3.0 with LH79533 support
@@
@@ (RCS ID) :
@@
-----------------------------------------------------------------------------*/
#ifndef APD_PWM_REF
#define APD_PWM_REF
/* PWM register address */
#define APD_PWM_CH_OFST (APD_ULONG)0x100 /* Channel offset */
#define APD_PWM_TC_OFST (APD_ULONG)0x000 /* Terminal Count Register offset */
#define APD_PWM_DC_OFST (APD_ULONG)0x004 /* Duty Cycle Register offset */
#define APD_PWM_ENB_OFST (APD_ULONG)0x008 /* Enable Register offset */
#define APD_PWM_DIV_OFST (APD_ULONG)0x00C /* Clock Divider Register offset */
#define APD_PWM_SYNC_OFST (APD_ULONG)0x010 /* Synchronous Register offset */
#define APD_PWM_INV_OFST (APD_ULONG)0x014 /* Invert Register offset */
/* PWM channel */
#define APD_PWM_MAX_CHL_NUM 4
/* PWM bit setting definition */
#define APD_PWM_DISABLE 0x00
#define APD_PWM_ENABLE 0x01
#endif /* APD_PWM_REF */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?