iom16v.h ATmega16的头文件

上传者: u013274633 | 上传时间: 2019-12-21 21:27:43 | 文件大小: 12KB | 文件类型: h
ATmega16


ifndef __iom16v_h
#define __iom16v_h

#define uchar unsigned char
#define uint unsigned int

#ifndef BIT
#define BIT(x) (1 << (x))
#endif

/* ATmega16 header file for
* ImageCraft ICCAVR compiler
*/

/* 2 wire serial interface */
#define TWBR (*(volatile unsigned char *)0x20)
#define TWSR (*(volatile unsigned char *)0x21)
#define TWPS1 1
#define TWPS0 0
#define TWCR (*(volatile unsigned char *)0x56)
#define TWINT 7
#define TWEA 6
#define TWSTA 5
#define TWSTO 4
#define TWWC 3
#define TWEN 2
#define TWIE 0
#define TWAR (*(volatile unsigned char *)0x22)
#define TWGCE 0
#define TWDR (*(volatile unsigned char *)0x23)

文件下载

评论信息

  • zdfwyh :
    有点用处,不过用处不大
    2020-04-10
  • 叶落无痕87 :
    参考学习一下
    2017-10-31
  • a123wz :
    关联头文件没有啊
    2015-02-05

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明