Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
apb.h
Package: str711USB.rar [view]
Upload User: yyyd609
Upload Date: 2022-07-18
Package Size: 183k
Code Size: 3k
Category:
ARM-PowerPC-ColdFire-MIPS
Development Platform:
C/C++
- /******************** (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:
- * 01/01/2004 : V1.2
- * 14/07/2004 : V1.3
- *******************************************************************************/
- #ifndef __APB_H
- #define __APB_H
- #include "71x_lib.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
- /*******************************************************************************
- * Function Name : APB_ClockConfig
- * Description : Enables/Disables the Clock gating for peripherals on the APB
- * bridge passed in parameters.
- * Input : APBx ( APB1 or APB2 )
- * NewState ENABLE or DISABLE
- * NewValue (u16)
- * Return : None
- *******************************************************************************/
- inline void APB_ClockConfig ( APB_TypeDef *APBx,
- FunctionalState NewState,
- u16 NewValue )
- {
- if (NewState == ENABLE) APBx->CKDIS &= ~NewValue;
- else APBx->CKDIS |= NewValue;
- }
- /*******************************************************************************
- * Function Name : APB_SwResetConfig
- * Description : Enables/Disables the software Reset for peripherals on the APB
- * bridge passed in parameters.
- * Input : APBx ( APB1 or APB2 )
- * NewState ENABLE or DISABLE
- * NewValue (u16)
- * Return : None
- *******************************************************************************/
- inline void APB_SwResetConfig ( APB_TypeDef *APBx,
- FunctionalState NewState,
- u16 NewValue )
- {
- if (NewState == ENABLE) APBx->SWRES |= NewValue;
- else APBx->SWRES &= ~NewValue;
- }
- #endif // __APB_H
- /******************* (C) COPYRIGHT 2003 STMicroelectronics *****END OF FILE****/