⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iarcompat.h

📁 ATmega8实现USB接口(采用USB的CDC类
💻 H
字号:
#ifndef __iarcompat_h_INCLUDED__#define __iarcompat_h_INCLUDED__#if defined __IAR_SYSTEMS_ICC__ || defined __IAR_SYSTEMS_ASM__/* Enable bit definitions */#ifndef ENABLE_BIT_DEFINITIONS#   define ENABLE_BIT_DEFINITIONS	1#endif/* Include IAR headers */#include <ioavr.h>#ifndef __IAR_SYSTEMS_ASM__#   include <inavr.h>#endif#define __attribute__(arg)#define IAR_SECTION(section)    @ section#ifndef USB_BUFFER_SECTION#   define  USB_BUFFER_SECTION  "TINY_Z"    /* if user has not selected a named section */#endif#ifdef __IAR_SYSTEMS_ASM__#   define __ASSEMBLER__#endif#ifdef __HAS_ELPM__#   define PROGMEM __farflash#else#   define PROGMEM __flash#endif#define PRG_RDB(addr)   (*(PROGMEM char *)(addr))/* The following definitions are not needed by the driver, but may be of some * help if you port a gcc based project to IAR. */#define cli()       __disable_interrupt()#define sei()       __enable_interrupt()#define wdt_reset() __watchdog_reset()/* Depending on the device you use, you may get problems with the way usbdrv.h * handles the differences between devices. Since IAR does not use #defines * for MCU registers, we can't check for the existence of a particular * register with an #ifdef. If the autodetection mechanism fails, include * definitions for the required USB_INTR_* macros in your usbconfig.h. See * usbconfig-prototype.h and usbdrv.h for details. */#endif  /* defined __IAR_SYSTEMS_ICC__ || defined __IAR_SYSTEMS_ASM__ */#endif  /* __iarcompat_h_INCLUDED__ */

⌨️ 快捷键说明

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