104 lines
6.3 KiB
C
104 lines
6.3 KiB
C
/*===========================================================================*/
|
|
/* Module : RLIN_driver.h */
|
|
/* Version: V1.00 */
|
|
/*===========================================================================*/
|
|
/* COPYRIGHT */
|
|
/*===========================================================================*/
|
|
/* Copyright (c) 2012 by Renesas Electronics Europe GmbH, */
|
|
/* a company of the Renesas Electronics Corporation */
|
|
/*===========================================================================*/
|
|
/* Purpose: main routine of QB-R5F10PMF-TB startup sample */
|
|
/* */
|
|
/*===========================================================================*/
|
|
/* In case of any question please do not hesitate to contact: */
|
|
/* */
|
|
/* Technical Product Support */
|
|
/* */
|
|
/* Renesas Electronics Europe GmbH */
|
|
/* Arcadiastrasse 10 */
|
|
/* D-40472 Duesseldorf, Germany */
|
|
/* */
|
|
/* e-mail: device_support.rl78-eu@lm.renesas.com */
|
|
/* FAX: +49 - (0)211 / 65 03 - 12 79 */
|
|
/* */
|
|
/*===========================================================================*/
|
|
/* Warranty Disclaimer */
|
|
/* */
|
|
/* Because the Product(s) is licensed free of charge, there is no warranty */
|
|
/* of any kind whatsoever and expressly disclaimed and excluded by Renesas, */
|
|
/* either expressed or implied, including but not limited to those for */
|
|
/* non-infringement of intellectual property, merchantability and/or */
|
|
/* fitness for the particular purpose. */
|
|
/* Renesas shall not have any obligation to maintain, service or provide bug */
|
|
/* fixes for the supplied Product(s) and/or the Application. */
|
|
/* */
|
|
/* Each User is solely responsible for determining the appropriateness of */
|
|
/* using the Product(s) and assumes all risks associated with its exercise */
|
|
/* of rights under this Agreement, including, but not limited to the risks */
|
|
/* and costs of program errors, compliance with applicable laws, damage to */
|
|
/* or loss of data, programs or equipment, and unavailability or */
|
|
/* interruption of operations. */
|
|
/* */
|
|
/* Limitation of Liability */
|
|
/* */
|
|
/* In no event shall Renesas be liable to the User for any incidental, */
|
|
/* consequential, indirect, or punitive damage (including but not limited */
|
|
/* to lost profits) regardless of whether such liability is based on breach */
|
|
/* of contract, tort, strict liability, breach of warranties, failure of */
|
|
/* essential purpose or otherwise and even if advised of the possibility of */
|
|
/* such damages. Renesas shall not be liable for any services or products */
|
|
/* provided by third party vendors, developers or consultants identified or */
|
|
/* referred to the User by Renesas in connection with the Product(s) and/or */
|
|
/* the Application. */
|
|
/* */
|
|
/*===========================================================================*/
|
|
/* Environment: */
|
|
/* Device: R5F10PMF */
|
|
/* Target Hardware: QB-R5F10PMF-TB */
|
|
/* IDE: IAR Systems */
|
|
/* Embedded Workbench for RL78 V1.20.x */
|
|
/* */
|
|
/*===========================================================================*/
|
|
/* History: */
|
|
/* V1.00: Initial version */
|
|
/* */
|
|
/*===========================================================================*/
|
|
|
|
/***********************************************************************************************************************
|
|
* File Name : RLIN_Driver.h
|
|
* Device(s) : R5F10PMF
|
|
* Tool-Chain : IAR Systems iccrl78
|
|
* Description : This file implements device driver for PORT module.
|
|
* Creation Date: 15.07.2013
|
|
***********************************************************************************************************************/
|
|
|
|
#include "r_cg_userdefine.h"
|
|
|
|
#ifdef RLIN_Master
|
|
|
|
void RLIN_Master_Init(void); /* init Master RLIN0*/
|
|
void RLIN_Master_HeaderTransmit(uint8_t ID);
|
|
void RLIN_Master_Receive(uint8_t Data_length);
|
|
void RLIN_Master_Transmit(uint8_t * databuf,uint8_t Data_length);
|
|
void RLIN_Master_GetData(void);
|
|
#endif
|
|
|
|
extern uint8_t Slave_TxData[8];
|
|
extern uint8_t Slave_RxData1[8];
|
|
void Clear_DataBuffer(void);
|
|
uint8_t Get_reponse_RxData(uint8_t * RxData);//can not be declareed in yubianyi
|
|
|
|
/*
|
|
void Delay_ms(uint8_t i);
|
|
void Delay_us(uint8_t x);
|
|
*/
|
|
#ifdef RLIN_Slave
|
|
|
|
void RLIN_Slave_Init(void); /* init Slave RLIN0*/
|
|
void RLIN_Slave_HeaderReceive(void);
|
|
void RLIN_Slave_Transmit(uint8_t* databuf,uint8_t Data_length);
|
|
void RLIN_Slave_Receive(uint8_t Data_length);
|
|
void RLIN_Slave_NoResponse(void);
|
|
|
|
|
|
#endif |