资源简介
#ifndef I2C_H
#define I2C_H
#define sda (P1.1)
#define scl (P1.0)
void i2c_delay(unsigned char i);
void i2c_start(void);
void i2c_stop(void);
void i2c_sendbyte(unsigned char byt);
unsigned char i2c_waitack(void);
unsigned char i2c_receivebyte(void);
void i2c_sendack(unsigned char ackbit);
void wri
代码片段和文件信息
/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
* No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
* applicable laws including copyright laws.
* THIS SOFTWARE IS PROVIDED “AS IS“ AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
* NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY
* LAW NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT
* INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE EVEN IF RENESAS OR
* ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* Renesas reserves the right without notice to make changes to this software and to discontinue the availability
* of this software. By using this software you agree to the additional terms and conditions found by accessing the
* following link:
* http://www.renesas.com/disclaimer
*
* Copyright (C) 2011 2015 Renesas Electronics Corporation. All rights reserved.
***********************************************************************************************************************/
/***********************************************************************************************************************
* File Name : r_cg_cgc.c
* Version : CodeGenerator for RL78/G13 V2.03.01.03 [30 Jan 2015]
* Device(s) : R5F100LE
* Tool-Chain : CA78K0R
* Description : This file implements device driver for CGC module.
* Creation Date: 2015/5/28
***********************************************************************************************************************/
/***********************************************************************************************************************
Pragma directive
***********************************************************************************************************************/
/* Start user code for pragma. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
/***********************************************************************************************************************
Includes
***********************************************************************************************************************/
#include “r_cg_macrodriver.h“
#include “r_cg_cgc.h“
/* Start user code for include. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
#include “r_cg_userdefine.h“
/************************************************************************
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6048 2015-05-29 11:04 iiic\DefaultBuild\i2c.rel
文件 184697 2015-05-29 11:04 iiic\DefaultBuild\iiic.hex
文件 20296 2015-05-29 11:04 iiic\DefaultBuild\iiic.lmf
文件 17983 2015-05-29 11:04 iiic\DefaultBuild\iiic.map
文件 2088 2015-05-29 11:04 iiic\DefaultBuild\iiic.sym
文件 1868 2015-05-29 10:04 iiic\DefaultBuild\r_cg_cgc.rel
文件 1880 2015-05-29 10:04 iiic\DefaultBuild\r_cg_cgc_user.rel
文件 1836 2015-05-29 10:04 iiic\DefaultBuild\r_cg_port.rel
文件 1656 2015-05-29 10:04 iiic\DefaultBuild\r_cg_port_user.rel
文件 4500 2015-05-29 10:04 iiic\DefaultBuild\r_cg_serial.rel
文件 6156 2015-05-29 10:04 iiic\DefaultBuild\r_cg_serial_user.rel
文件 4324 2015-05-29 11:04 iiic\DefaultBuild\r_main.rel
文件 2412 2015-05-29 10:04 iiic\DefaultBuild\r_systeminit.rel
文件 552 2015-05-29 09:43 iiic\i2.h
文件 480 2015-05-29 11:04 iiic\i2c.h
文件 301987 2015-05-29 10:26 iiic\iiic.Administrator.mtud
文件 345290 2015-05-29 10:26 iiic\iiic.mtpj
文件 4196 2015-05-28 18:21 iiic\r_cg_cgc.c
文件 9846 2015-05-28 18:21 iiic\r_cg_cgc.h
文件 4042 2015-05-28 18:21 iiic\r_cg_cgc_user.c
文件 4861 2015-05-28 18:21 iiic\r_cg_macrodriver.h
文件 4135 2015-05-28 18:21 iiic\r_cg_port.c
文件 12900 2015-05-28 18:21 iiic\r_cg_port.h
文件 3467 2015-05-28 18:21 iiic\r_cg_port_user.c
文件 9471 2015-05-28 18:21 iiic\r_cg_serial.c
文件 25290 2015-05-28 18:21 iiic\r_cg_serial.h
文件 9724 2015-05-28 18:21 iiic\r_cg_serial_user.c
文件 2505 2015-05-28 18:21 iiic\r_cg_userdefine.h
文件 6628 2015-05-29 10:26 iiic\r_main.c
文件 4502 2015-05-28 18:21 iiic\r_systeminit.c
............此处省略6个文件信息
评论
共有 条评论