rtt-f030/bsp/rx/RPDL/r_pdl_wdt_rx62nxx.h

64 lines
1.3 KiB
C
Raw Normal View History

2014-11-12 01:09:43 +08:00
/*""FILE COMMENT""*******************************************************
* System Name : WDT API for RX62Nxx
* File Name : r_pdl_wdt_RX62Nxx.h
* Version : 1.02
* Contents : WDT API header
* Customer :
* Model :
* Order :
* CPU : RX
* Compiler : RXC
* OS : Nothing
* Programmer :
* Note :
************************************************************************
* Copyright, 2011. Renesas Electronics Corporation
* and Renesas Solutions Corporation
************************************************************************
* History : 2011.04.08
* : Ver 1.02
* : CS-5 release.
*""FILE COMMENT END""**************************************************/
#ifndef R_PDL_WDT_RX62Nxx_H
#define R_PDL_WDT_RX62Nxx_H
/* Callback function storage */
extern VoidCallBackFunc rpdl_WDT_callback_func;
/* Library prototypes */
bool R_WDT_CreateAll(
const uint16_t,
VoidCallBackFunc const,
const uint8_t
);
bool R_WDT_ControlAll(
const uint8_t
);
bool R_WDT_ReadAll(
volatile uint8_t * const
);
bool ReturnFalse(void);
/* Macro definitions */
#define R_WDT_Create(a, b, c) \
( \
( (c) <= IPL_MAX) ? \
R_WDT_CreateAll( (a), (b), (c) ) : \
ReturnFalse() \
)
#define R_WDT_Control(a) \
( \
R_WDT_ControlAll( (a) ) \
)
#define R_WDT_Read(a) \
( \
R_WDT_ReadAll( (a) ) \
)
#endif
/* End of file */