?? iocc1111.h
字號:
/**************************************************************************************************
* - ioCC1111.h -
*
* Special header for the Chipcon CC1111 System on Chip.
*
**************************************************************************************************
*/
#ifndef IOCC1111_H
#define IOCC1111_H
#include "ioCC1110.h"
#ifdef __IAR_SYSTEMS_ICC__
/* Enable language extensions for macros defined in included files */
#pragma language=extended
#endif
/* ------------------------------------------------------------------------------------------------
* Interrupt Alias
* ------------------------------------------------------------------------------------------------
*/
#define USB_VECTOR P2INT_VECTOR /* USB Inter. pending, alias for P2INT_VECTOR */
/* ------------------------------------------------------------------------------------------------
* SFR Bit Alias
* ------------------------------------------------------------------------------------------------
*/
#define USBIF P2IF /* USB interrupt flag */
/* USBIE P2IE , not in a bit addressable register */
/* ------------------------------------------------------------------------------------------------
* SFRs
* ------------------------------------------------------------------------------------------------
*/
SFR( ENDIAN , 0x95 ) /* USB Endianness Control */
/* ------------------------------------------------------------------------------------------------
* Xdata USB Registers
* ------------------------------------------------------------------------------------------------
*/
#define USBADDR XREG( 0xDE00 ) /* Function Address */
#define USBPOW XREG( 0xDE01 ) /* Power/Control Register */
#define USBIIF XREG( 0xDE02 ) /* IN Endpoints and EP0 Interrupt Flags */
#define _XREGDE03 XREG( 0xDE03 ) /* Reserved */
#define USBOIF XREG( 0xDE04 ) /* OUT Endpoints Interrupt Flags */
#define _XREGDE05 XREG( 0xDE05 ) /* Reserved */
#define USBCIF XREG( 0xDE06 ) /* Common USB Interrupt Flags */
#define USBIIE XREG( 0xDE07 ) /* IN Endpoints and EP0 Interrupt Enable Mask */
#define _XREGDE08 XREG( 0xDE08 ) /* Reserved */
#define USBOIE XREG( 0xDE09 ) /* OUT Endpoints Interrupt Enable Mask */
#define _XREGDE0A XREG( 0xDE0A ) /* Reserved */
#define USBCIE XREG( 0xDE0B ) /* Common USB Interrupt Enable Mask */
#define USBFRML XREG( 0xDE0C ) /* Current Frame Number (Low byte) */
#define USBFRMH XREG( 0xDE0D ) /* Current Frame Number (High byte) */
#define USBINDEX XREG( 0xDE0E ) /* Selects current endpoint */
#define USBMAXI XREG( 0xDE10 ) /* Max. packet size for IN endpoint */
#define USBCS0 XREG( 0xDE11 ) /* EP0 Control and Status (USBINDEX = 0) */
#define USBCSIL XREG( 0xDE11 ) /* IN EP{1-5} Control and Status Low (USBINDEX > 0) */
#define USBCSIH XREG( 0xDE12 ) /* IN EP{1-5} Control and Status High */
#define USBMAXO XREG( 0xDE13 ) /* Max. packet size for OUT endpoint */
#define USBCSOL XREG( 0xDE14 ) /* OUT EP{1-5} Control and Status Low */
#define USBCSOH XREG( 0xDE15 ) /* OUT EP{1-5} Control and Status High */
#define USBCNT0 XREG( 0xDE16 ) /* Number of received bytes in EP0 FIFO (USBINDEX = 0) */
#define USBCNTL XREG( 0xDE16 ) /* Number of bytes in OUT FIFO Low (USBINDEX > 0) */
#define USBCNTH XREG( 0xDE17 ) /* Number of bytes in OUT FIFO High */
#define USBF0 XREG( 0xDE20 ) /* Endpoint 0 FIFO */
#define USBF1 XREG( 0xDE22 ) /* Endpoint 1 FIFO */
#define USBF2 XREG( 0xDE24 ) /* Endpoint 2 FIFO */
#define USBF3 XREG( 0xDE26 ) /* Endpoint 3 FIFO */
#define USBF4 XREG( 0xDE28 ) /* Endpoint 4 FIFO */
#define USBF5 XREG( 0xDE2A ) /* Endpoint 5 FIFO */
/* ------------------------------------------------------------------------------------------------
* Xdata Mapped SFRs
* ------------------------------------------------------------------------------------------------
*/
/*
* Most SFRs are also accessible through XDATA address space. The register definitions for
* this type of access are listed below. The register names are identical to the SFR names
* but with the prefix X_ to denote an XDATA register.
*
* For register descriptions, refer to the actual SFR declarations elsewhere in this file.
*/
#define X_ENDIAN XREG( 0xDF95 )
/* ------------------------------------------------------------------------------------------------
*/
#ifdef __IAR_SYSTEMS_ICC__
#pragma language=default
#endif
/**************************************************************************************************
*/
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -