登录 免费注册 首页 | 行业黑名单 | 帮助
维库电子市场网
技术交流 | 电路欣赏 | 工控天地 | 数字广电 | 通信技术 | 电源技术 | 测控之家 | EMC技术 | ARM技术 | EDA技术 | PCB技术 | 嵌入式系统
驱动编程 | 集成电路 | 器件替换 | 模拟技术 | 新手园地 | 单 片 机 | DSP技术 | MCU技术 | IC 设计 | IC 产业 | CAN-bus/DeviceNe

两个版本的keil中APB.h定义怎么不一样

作者:lshlin 栏目:MCU技术
两个版本的keil中APB.h定义怎么不一样
两个版本的Code definition竟然不一样,新版本还删了#define  WDG_Periph       0x4000 !!!晕呼呼的。怎么回事,keil不可能犯这种错吧。

/******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
* File NAME          : apb.h
* Author             : MCD Application Team
* Date First Issued  : 05/30/2003
* DESCRIPTION        : This file contains all the functions prototypes for the
*                      APB BRIDGE SOFTWARE library.
********************************************************************************
* History:
*  30/11/2004 : V2.0
*  14/07/2004 : V1.3
*  01/01/2004 : V1.2
*******************************************************************************/
#ifndef __APB_H
#define __APB_H

#include "71x_map.h"

/* APB1 Peripherals */
#define  I2C0_Periph      0x0002
#define  I2C1_Periph      0x0004
#define  UART0_Periph     0x0010
#define  UART1_Periph     0x0020
#define  UART2_Periph     0x0040
#define  UART3_Periph     0x0080
#define  USB_Periph       0x0100
#define  CAN_Periph       0x0200
#define  BSPI0_Periph     0x0400
#define  BSPI1_Periph     0x0800
#define  HDLC_Periph      0x2000

/* APB2 Peripherals */
#define  XTI_Periph       0x0002
#define  GPIO0_Periph     0x0004
#define  GPIO1_Periph     0x0008
#define  GPIO2_Periph     0x0010
#define  ADC12_Periph     0x0080
#define  TIM0_Periph      0x0200
#define  TIM1_Periph      0x0400
#define  TIM2_Periph      0x0800
#define  TIM3_Periph      0x1000
#define  RTC_Periph       0x2000
#define  WDG_Periph       0x4000
#define  EIC_Periph       0x8000


/******************** (C) COPYRIGHT 2003 STMicroelectronics ********************
* File NAME          : apb.h
* Author             : MCD Application Team
* Date First Issued  : 05/30/2003
* DESCRIPTION        : This file contains all the functions prototypes for the
*                      APB BRIDGE SOFTWARE library.
********************************************************************************
* History:
*  13/01/2006 : V3.1
*  24/05/2005 : V3.0
*  30/11/2004 : V2.0
*  14/07/2004 : V1.3
*  01/01/2004 : V1.2
*******************************************************************************/
#ifndef __APB_H
#define __APB_H

#include "71x_map.h"

/* APB1 Peripherals */
#define I2C0_Periph  0x0001
#define I2C1_Periph  0x0002
#define UART0_Periph 0x0008
#define UART1_Periph 0x0010
#define UART2_Periph 0x0020
#define UART3_Periph 0x0040
#define USB_Periph   0x0080
#define CAN_Periph   0x0100
#define BSPI0_Periph 0x0200
#define BSPI1_Periph 0x0400
#define HDLC_Periph  0x2000

/* APB2 Peripherals */
#define XTI_Periph   0x0001
#define GPIO0_Periph 0x0004
#define GPIO1_Periph 0x0008
#define GPIO2_Periph 0x0010
#define ADC12_Periph 0x0040
#define CKOUT_Periph 0x0080
#define TIM0_Periph  0x0100
#define TIM1_Periph  0x0200
#define TIM2_Periph  0x0400
#define TIM3_Periph  0x0800
#define RTC_Periph   0x1000
#define EIC_Periph   0x4000


顺便帖上STR71x STANDARD SOFTWARE Library - User Manual关于这部份的内容。

参与讨论
昵称:
讨论内容:
 
 
相关帖子
关于STR710的USB代码的一个疑问
这里的施密特触发器起的作用是什么呀?
自己能做STR710的JTAG调试器嘛,有人做过嘛?
请各位推荐一块STR710FZ2T6的开发板
有用过ST72561K9单片机的朋友么,近来讨论一下.
免费注册为维库电子开发网会员,参与电子工程师社区讨论,点此进入


Copyright © 1998-2006 www.dzsc.com 浙ICP证030469号