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

82 lines
1.6 KiB
C

/*""FILE COMMENT""*******************************************************
* System Name : LPC API for RX62Nxx
* File Name : r_pdl_lpc_RX62Nxx.h
* Version : 1.02
* Contents : LPC 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_LPC_RX62Nxx_H
#define R_PDL_LPC_RX62Nxx_H
#define R_PDL_LPC_BACKUP_AREA_SIZE 32
/* Library prototypes */
bool R_LPC_CreateAll(
const uint32_t,
const uint32_t
);
bool R_LPC_ControlAll(
const uint16_t
);
bool R_LPC_WriteBackupAll(
volatile const uint8_t * const,
const uint8_t
);
bool R_LPC_ReadBackupAll(
volatile uint8_t * const,
const uint8_t
);
bool R_LPC_GetStatusAll(
volatile uint16_t * const
);
bool ReturnFalse(void);
/* Macro definitions */
#define R_LPC_Create(a, b) \
( \
R_LPC_CreateAll( (a), (b) ) \
)
#define R_LPC_Control(a) \
( \
R_LPC_ControlAll( (a) ) \
)
#define R_LPC_WriteBackup(a, b) \
( \
( ( ((b) > 0) && ((b) <= R_PDL_LPC_BACKUP_AREA_SIZE) ) ) ? \
R_LPC_WriteBackupAll( (a), (b) ) : \
ReturnFalse() \
)
#define R_LPC_ReadBackup(a, b) \
( \
( ( ((b) > 0) && ((b) <= R_PDL_LPC_BACKUP_AREA_SIZE) ) ) ? \
R_LPC_ReadBackupAll( (a), (b) ) : \
ReturnFalse() \
)
#define R_LPC_GetStatus(a) \
( \
R_LPC_GetStatusAll( (a) ) \
)
#endif
/* End of file */