tmr1reg.h

来自「本程序为ST公司开发的源代码」· C头文件 代码 · 共 30 行

H
30
字号
/**************************************************
 *
 *
 * CVS ID:   $Id: tmr1reg.h,v 1.1 2006/01/31 18:50:20 belardi Exp $
 * Author:   Maurizio Marcucci [MM] - STM
 * Date:     $Date: 2006/01/31 18:50:20 $
 * Revision: $Revision: 1.1 $
 * 
 * Description:
 * 
 *   Accordo+ Hardware registers definition
 *
 ***************************************************
 * 
 * COPYRIGHT (C) ST Microelectronics  2005
 *            All Rights Reserved
 *
 ***************************************************/

#include "tmrdef.h"

#define TMR1_BASE_ADDR     0xE0040000

#define TIM1_OCAR (*((volatile uint32         *) (TMR1_BASE_ADDR + 0x08)))
#define TIM1_OCBR (*((volatile uint32         *) (TMR1_BASE_ADDR + 0x0C)))
#define TIM1_CNTR (*((volatile uint32         *) (TMR1_BASE_ADDR + 0x10)))
#define TIM1_CR1  (*((volatile TIMX_CR1_UNION *) (TMR1_BASE_ADDR + 0x14)))
#define TIM1_CR2  (*((volatile TIMX_CR2_UNION *) (TMR1_BASE_ADDR + 0x18)))
#define TIM1_SR   (*((volatile uint32         *) (TMR1_BASE_ADDR + 0x1C)))

⌨️ 快捷键说明

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