mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-22 00:56:50 +08:00
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,132 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : RTC Interrupt program for RX62Nxx
|
||||
* File Name : Interrupt_RTC.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handler for RTC
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_rtc.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline: RTC periodic interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_RTC_PRD(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for RTC
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : rpdl_RTC_Periodic_callback_func()
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
#if FAST_INTC_VECTOR == VECT_RTC_PRD
|
||||
__fast_interrupt void Interrupt_RTC_PRD(void)
|
||||
#else
|
||||
#pragma vector = VECT_RTC_PRD
|
||||
__interrupt void Interrupt_RTC_PRD(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_RTC_Periodic_callback_func != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_RTC_Periodic_callback_func();
|
||||
}
|
||||
}
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline: RTC alarm interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_RTC_ALM(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for RTC
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : rpdl_RTC_Alarm_callback_func()
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
#if FAST_INTC_VECTOR == VECT_RTC_ALM
|
||||
__fast_interrupt void Interrupt_RTC_ALM(void)
|
||||
#else
|
||||
#pragma vector = VECT_RTC_ALM
|
||||
__interrupt void Interrupt_RTC_ALM(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_RTC_Alarm_callback_func != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_RTC_Alarm_callback_func();
|
||||
}
|
||||
}
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline: RTC Carry interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_RTC_CUP(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for RTC
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function :
|
||||
*-------------------------------------------------------------------
|
||||
* Notes : This interrupt is not used.
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
#if FAST_INTC_VECTOR == VECT_RTC_CUP
|
||||
__fast_interrupt void Interrupt_RTC_CUP(void)
|
||||
#else
|
||||
#pragma vector = VECT_RTC_CUP
|
||||
__interrupt void Interrupt_RTC_CUP(void)
|
||||
#endif
|
||||
{
|
||||
/* Disable further requests */
|
||||
ICU.IER[IER_RTC_CUP].BIT.IEN_RTC_CUP = 0;
|
||||
}
|
||||
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,78 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Interrupt program for RX62Nxx
|
||||
* File Name : Interrupt_ADC_10.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handlers for the ADC units
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_adc_10.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline: ADC interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_ADCn(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for ADC unit n
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : ADC_callback_func[n]()
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_AD0_ADI0
|
||||
__fast_interrupt void Interrupt_ADC0(void)
|
||||
#else
|
||||
#pragma vector = VECT_AD0_ADI0
|
||||
__interrupt void Interrupt_ADC0(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_ADC_10_callback_func[0] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_ADC_10_callback_func[0]();
|
||||
}
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_AD1_ADI1
|
||||
__fast_interrupt void Interrupt_ADC1(void)
|
||||
#else
|
||||
#pragma vector = VECT_AD1_ADI1
|
||||
__interrupt void Interrupt_ADC1(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_ADC_10_callback_func[1] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_ADC_10_callback_func[1]();
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file */
|
||||
@@ -0,0 +1,64 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : 12-bit ADC Interrupt program for RX62Nxx
|
||||
* File Name : Interrupt_ADC_12.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handler for ADC_12
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_adc_12.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline: ADC interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_ADCn(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for ADC unit n
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : rpdl_ADC_12_callback_func[n]()
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_S12AD_ADI
|
||||
__fast_interrupt void Interrupt_ADC_12_0(void)
|
||||
#else
|
||||
#pragma vector = VECT_S12AD_ADI
|
||||
__interrupt void Interrupt_ADC_12_0(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_ADC_12_callback_func[0] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_ADC_12_callback_func[0]();
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file */
|
||||
@@ -0,0 +1,63 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Interrupt program for RX62Nxx
|
||||
* File Name : Interrupt_BSC.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handler for the BSC
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_bsc.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline : BSC interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_BSC(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for the BSC
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : rpdl_BSC_callback_func
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_BSC_BUSERR
|
||||
__fast_interrupt void Interrupt_BSC(void)
|
||||
#else
|
||||
#pragma vector = VECT_BSC_BUSERR
|
||||
__interrupt void Interrupt_BSC(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_BSC_callback_func != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_BSC_callback_func();
|
||||
}
|
||||
}
|
||||
/* End of file */
|
||||
@@ -0,0 +1,141 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Interrupt program for RX62Nxx
|
||||
* File Name : Interrupt_CMT.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handlers for the CMT channels
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_cmt.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline : Timer interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_CMTn(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for CMT channel n
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : CMT_callback_func[n]
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
#if 0
|
||||
#if FAST_INTC_VECTOR == VECT_CMT0_CMI0
|
||||
__fast_interrupt void Interrupt_CMT0(void)
|
||||
#else
|
||||
#pragma vector = VECT_CMT0_CMI0
|
||||
__interrupt void Interrupt_CMT0(void)
|
||||
#endif
|
||||
{
|
||||
if (rpdl_CMT_one_shot[0] != false)
|
||||
{
|
||||
/* Stop the channel 0 clock input */
|
||||
CMT.CMSTR0.BIT.STR0 = 0;
|
||||
|
||||
/* Clear the interrupt request flag (the timer may have set it again) */
|
||||
ICU.IR[IR_CMT0_CMI0].BIT.IR = 0;
|
||||
}
|
||||
|
||||
/* Call the user function */
|
||||
if (rpdl_CMT_callback_func[0] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_CMT_callback_func[0]();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#if FAST_INTC_VECTOR == VECT_CMT1_CMI1
|
||||
__fast_interrupt void Interrupt_CMT1(void)
|
||||
#else
|
||||
#pragma vector = VECT_CMT1_CMI1
|
||||
__interrupt void Interrupt_CMT1(void)
|
||||
#endif
|
||||
{
|
||||
if (rpdl_CMT_one_shot[1] != false)
|
||||
{
|
||||
/* Stop the channel 0 clock input */
|
||||
CMT.CMSTR0.BIT.STR1 = 0;
|
||||
|
||||
/* Clear the interrupt request flag (the timer may have set it again) */
|
||||
ICU.IR[IR_CMT1_CMI1].BIT.IR = 0;
|
||||
}
|
||||
|
||||
/* Call the user function */
|
||||
if (rpdl_CMT_callback_func[1] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_CMT_callback_func[1]();
|
||||
}
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_CMT2_CMI2
|
||||
__fast_interrupt void Interrupt_CMT2(void)
|
||||
#else
|
||||
#pragma vector = VECT_CMT2_CMI2
|
||||
__interrupt void Interrupt_CMT2(void)
|
||||
#endif
|
||||
{
|
||||
if (rpdl_CMT_one_shot[2] != false)
|
||||
{
|
||||
/* Stop the channel 0 clock input */
|
||||
CMT.CMSTR1.BIT.STR2 = 0;
|
||||
|
||||
/* Clear the interrupt request flag (the timer may have set it again) */
|
||||
ICU.IR[IR_CMT2_CMI2].BIT.IR = 0;
|
||||
}
|
||||
|
||||
/* Call the user function */
|
||||
if (rpdl_CMT_callback_func[2] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_CMT_callback_func[2]();
|
||||
}
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_CMT3_CMI3
|
||||
__fast_interrupt void Interrupt_CMT3(void)
|
||||
#else
|
||||
#pragma vector = VECT_CMT3_CMI3
|
||||
__interrupt void Interrupt_CMT3(void)
|
||||
#endif
|
||||
{
|
||||
if (rpdl_CMT_one_shot[3] != false)
|
||||
{
|
||||
/* Stop the channel 0 clock input */
|
||||
CMT.CMSTR1.BIT.STR3 = 0;
|
||||
|
||||
/* Clear the interrupt request flag (the timer may have set it again) */
|
||||
ICU.IR[IR_CMT3_CMI3].BIT.IR = 0;
|
||||
}
|
||||
|
||||
/* Call the user function */
|
||||
if (rpdl_CMT_callback_func[3] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_CMT_callback_func[3]();
|
||||
}
|
||||
}
|
||||
/* End of file */
|
||||
@@ -0,0 +1,105 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Interrupt program for RX62N
|
||||
* File Name : Interrupt_DMAC.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handlers for the DMAC channels
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_dmac.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline : DMAC interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_DMACn(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for DMAC channel n
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : DMAC_callback_func[n]
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_DMAC_DMAC0I
|
||||
__fast_interrupt void Interrupt_DMAC0(void)
|
||||
#else
|
||||
#pragma vector = VECT_DMAC_DMAC0I
|
||||
__interrupt void Interrupt_DMAC0(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_DMAC_callback_func[0] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_DMAC_callback_func[0]();
|
||||
}
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_DMAC_DMAC1I
|
||||
__fast_interrupt void Interrupt_DMAC1(void)
|
||||
#else
|
||||
#pragma vector = VECT_DMAC_DMAC1I
|
||||
__interrupt void Interrupt_DMAC1(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_DMAC_callback_func[1] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_DMAC_callback_func[1]();
|
||||
}
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_DMAC_DMAC2I
|
||||
__fast_interrupt void Interrupt_DMAC2(void)
|
||||
#else
|
||||
#pragma vector = VECT_DMAC_DMAC2I
|
||||
__interrupt void Interrupt_DMAC2(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_DMAC_callback_func[2] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_DMAC_callback_func[2]();
|
||||
}
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_DMAC_DMAC3I
|
||||
__fast_interrupt void Interrupt_DMAC3(void)
|
||||
#else
|
||||
#pragma vector = VECT_DMAC_DMAC3I
|
||||
__interrupt void Interrupt_DMAC3(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_DMAC_callback_func[3] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_DMAC_callback_func[3]();
|
||||
}
|
||||
}
|
||||
/* End of file */
|
||||
@@ -0,0 +1,88 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Interrupt program for RX62N
|
||||
* File Name : Interrupt_EXDMAC.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handlers for the EXDMAC channels
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_exdmac.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline : EXDMAC interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_EXDMACn(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for EXDMAC channel n
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : EXDMAC_callback_func[n]
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_EXDMAC_EXDMAC0I
|
||||
__fast_interrupt void Interrupt_EXDMAC0(void)
|
||||
#else
|
||||
#pragma vector = VECT_EXDMAC_EXDMAC0I
|
||||
__interrupt void Interrupt_EXDMAC0(void)
|
||||
#endif
|
||||
{
|
||||
#if defined(DEVICE_PACKAGE_LQFP_100) || defined(DEVICE_PACKAGE_TFLGA_85)
|
||||
/* This peripheral is not available on the 100-pin or 85-pin packages */
|
||||
nop();
|
||||
#else
|
||||
/* Call the user function */
|
||||
if (rpdl_EXDMAC_callback_func[0] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_EXDMAC_callback_func[0]();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_EXDMAC_EXDMAC1I
|
||||
__fast_interrupt void Interrupt_EXDMAC1(void)
|
||||
#else
|
||||
#pragma vector = VECT_EXDMAC_EXDMAC1I
|
||||
__interrupt void Interrupt_EXDMAC1(void)
|
||||
#endif
|
||||
{
|
||||
#if defined(DEVICE_PACKAGE_LQFP_100) || defined(DEVICE_PACKAGE_TFLGA_85)
|
||||
/* This peripheral is not available on the 100-pin or 85-pin packages */
|
||||
nop();
|
||||
#else
|
||||
/* Call the user function */
|
||||
if (rpdl_EXDMAC_callback_func[1] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_EXDMAC_callback_func[1]();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,126 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Interrupt program for RX62N
|
||||
* File Name : Interrupt_POE.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handlers for the Port Output Enable module
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_poe.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline : POE interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_OEIn(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for POE interrupt n
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : POE_callback_func[n]
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_POE_OEI1
|
||||
__fast_interrupt void Interrupt_OEI1(void)
|
||||
#else
|
||||
#pragma vector = VECT_POE_OEI1
|
||||
__interrupt void Interrupt_OEI1(void)
|
||||
#endif
|
||||
{
|
||||
#ifdef DEVICE_PACKAGE_TFLGA_85
|
||||
/* This peripheral is not available on the 85-pin package */
|
||||
nop();
|
||||
#else
|
||||
/* Call the user function */
|
||||
if (rpdl_POE_callback_func[0] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_POE_callback_func[0]();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_POE_OEI2
|
||||
__fast_interrupt void Interrupt_OEI2(void)
|
||||
#else
|
||||
#pragma vector = VECT_POE_OEI2
|
||||
__interrupt void Interrupt_OEI2(void)
|
||||
#endif
|
||||
{
|
||||
#ifdef DEVICE_PACKAGE_TFLGA_85
|
||||
/* This peripheral is not available on the 85-pin package */
|
||||
nop();
|
||||
#else
|
||||
/* Call the user function */
|
||||
if (rpdl_POE_callback_func[2] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_POE_callback_func[2]();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_POE_OEI3
|
||||
__fast_interrupt void Interrupt_OEI3(void)
|
||||
#else
|
||||
#pragma vector = VECT_POE_OEI3
|
||||
__interrupt void Interrupt_OEI3(void)
|
||||
#endif
|
||||
{
|
||||
#ifdef DEVICE_PACKAGE_TFLGA_85
|
||||
/* This peripheral is not available on the 85-pin package */
|
||||
nop();
|
||||
#else
|
||||
/* Call the user function */
|
||||
if (rpdl_POE_callback_func[1] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_POE_callback_func[1]();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_POE_OEI4
|
||||
__fast_interrupt void Interrupt_OEI4(void)
|
||||
#else
|
||||
#pragma vector = VECT_POE_OEI4
|
||||
__interrupt void Interrupt_OEI4(void)
|
||||
#endif
|
||||
{
|
||||
#ifdef DEVICE_PACKAGE_TFLGA_85
|
||||
/* This peripheral is not available on the 85-pin package */
|
||||
nop();
|
||||
#else
|
||||
/* Call the user function */
|
||||
if (rpdl_POE_callback_func[3] != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_POE_callback_func[3]();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,63 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Interrupt program for RX62Nxx
|
||||
* File Name : Interrupt_WDT.c
|
||||
* Version : 1.02
|
||||
* Contents : Interrupt handler for the Watchdog timer
|
||||
* 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""**************************************************/
|
||||
|
||||
#include "r_pdl_wdt.h"
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "r_pdl_user_definitions.h"
|
||||
|
||||
/*""FUNC COMMENT""***************************************************
|
||||
* Module outline : Timer interrupt processing
|
||||
*-------------------------------------------------------------------
|
||||
* Declaration : void Interrupt_WDT(void)
|
||||
*-------------------------------------------------------------------
|
||||
* Function : Interrupt processing function for the WDT
|
||||
*-------------------------------------------------------------------
|
||||
* Argument : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Return value : Nothing
|
||||
*-------------------------------------------------------------------
|
||||
* Input :
|
||||
* Output :
|
||||
*-------------------------------------------------------------------
|
||||
* Use function : WDT_callback_func
|
||||
*-------------------------------------------------------------------
|
||||
* Notes :
|
||||
*-------------------------------------------------------------------
|
||||
* History : 2011.04.08
|
||||
* : Ver 1.02
|
||||
* : CS-5 release.
|
||||
*""FUNC COMMENT END""**********************************************/
|
||||
|
||||
#if FAST_INTC_VECTOR == VECT_WDT_WOVI
|
||||
__fast_interrupt void Interrupt_WDT(void)
|
||||
#else
|
||||
#pragma vector = VECT_WDT_WOVI
|
||||
__interrupt void Interrupt_WDT(void)
|
||||
#endif
|
||||
{
|
||||
/* Call the user function */
|
||||
if (rpdl_WDT_callback_func != PDL_NO_FUNC)
|
||||
{
|
||||
rpdl_WDT_callback_func();
|
||||
}
|
||||
}
|
||||
/* End of file */
|
||||
@@ -0,0 +1,72 @@
|
||||
/********************************************************************************/
|
||||
/* RX FAMILY C/C++ Compiler */
|
||||
/* Copyright (C) 2007 Renesas Technology Corp. and Renesas Solutions Corp. */
|
||||
/* All Rights Reserved. */
|
||||
/********************************************************************************/
|
||||
|
||||
#ifndef _MACRO
|
||||
#define _MACRO
|
||||
|
||||
#ifdef __RX
|
||||
|
||||
#ifndef _NO_MT
|
||||
#define _NO_MT
|
||||
#endif /* !_NO_MT */
|
||||
|
||||
#ifdef __STDC_VERSION__
|
||||
#if 199901L <= __STDC_VERSION__
|
||||
#define _C99
|
||||
#endif /* 199901L <= __STDC_VERSION__ */
|
||||
#endif /* __STDC_VERSION__ */
|
||||
|
||||
#ifndef _HAS_TR1
|
||||
#define _HAS_TR1 0
|
||||
#endif /* !_HAS_TR1 */
|
||||
|
||||
#ifndef __STDC_WANT_LIB_EXT1__
|
||||
#define __STDC_WANT_LIB_EXT1__ 0
|
||||
#endif /* !__STDC_WANT_LIB_EXT1 */
|
||||
|
||||
#ifndef _ADDED_C_LIB
|
||||
#define _ADDED_C_LIB 0
|
||||
#endif /* !_ADDED_C_LIB */
|
||||
|
||||
#ifndef __STDC_WANT_SAFER_LIB__
|
||||
#define __STDC_WANT_SAFER_LIB__ 0
|
||||
#endif /* !__STDC_WANT_SAFER_LIB__ */
|
||||
|
||||
#ifndef _ALT_NS
|
||||
#define _ALT_NS 0
|
||||
#endif /* !_ALT_NS */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#ifndef _C99
|
||||
#define _C99
|
||||
#endif /* !_C99*/
|
||||
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#ifdef __embedded_cplusplus
|
||||
|
||||
#ifndef _NO_NS
|
||||
#define _NO_NS
|
||||
#endif /* !_NO_NS */
|
||||
|
||||
#ifndef _ECPP
|
||||
#define _ECPP
|
||||
#endif /* !_ECPP */
|
||||
|
||||
#endif /* __embedded_cplusplus */
|
||||
|
||||
#ifdef _REENTRANT
|
||||
|
||||
#ifndef _R_REENT
|
||||
#define _R_REENT
|
||||
#endif /* !_R_REENT */
|
||||
|
||||
#endif /* _REENTRANT */
|
||||
|
||||
#endif /* __RX */
|
||||
|
||||
#endif /* _MACRO */
|
||||
@@ -0,0 +1,111 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : ADC converter API for RX62Nxx
|
||||
* File Name : r_pdl_adc_10.h
|
||||
* Version : 1.02
|
||||
* Contents : ADC function prototypes
|
||||
* Customer :
|
||||
* Model :
|
||||
* Order :
|
||||
* CPU : RX
|
||||
* Compiler : RXC
|
||||
* OS :
|
||||
* 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_ADC_10_H
|
||||
#define R_PDL_ADC_10_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_ADC_10_Create(
|
||||
uint8_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
float,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_ADC_10_Destroy(
|
||||
uint8_t
|
||||
);
|
||||
bool R_ADC_10_Control(
|
||||
uint16_t
|
||||
);
|
||||
bool R_ADC_10_Read(
|
||||
uint8_t,
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Scan mode */
|
||||
#define PDL_ADC_10_MODE_SINGLE 0x00000001u
|
||||
#define PDL_ADC_10_MODE_CONTINUOUS_SCAN 0x00000002u
|
||||
#define PDL_ADC_10_MODE_ONE_CYCLE_SCAN 0x00000004u
|
||||
|
||||
/* Channel selection */
|
||||
#define PDL_ADC_10_CHANNELS_OPTION_1 0x00000008u
|
||||
#define PDL_ADC_10_CHANNELS_OPTION_2 0x00000010u
|
||||
#define PDL_ADC_10_CHANNELS_OPTION_3 0x00000020u
|
||||
#define PDL_ADC_10_CHANNELS_OPTION_4 0x00000040u
|
||||
|
||||
/* Trigger selection */
|
||||
#define PDL_ADC_10_TRIGGER_SOFTWARE 0x00000080u
|
||||
#define PDL_ADC_10_TRIGGER_MTU0_MTU4_CMIC_A 0x00000100u
|
||||
#define PDL_ADC_10_TRIGGER_TMR0_CM_A 0x00000200u
|
||||
#define PDL_ADC_10_TRIGGER_ADTRG0 0x00000400u
|
||||
#define PDL_ADC_10_TRIGGER_ADTRG1 0x00000800u
|
||||
#define PDL_ADC_10_TRIGGER_MTU0_CMIC 0x00001000u
|
||||
#define PDL_ADC_10_TRIGGER_MTU6_MTU10_CMIC_A 0x00002000u
|
||||
#define PDL_ADC_10_TRIGGER_MTU4_CM 0x00004000u
|
||||
#define PDL_ADC_10_TRIGGER_MTU10_CM 0x00008000u
|
||||
|
||||
/* Data alignment */
|
||||
#define PDL_ADC_10_DATA_ALIGNMENT_LEFT 0x00010000u
|
||||
#define PDL_ADC_10_DATA_ALIGNMENT_RIGHT 0x00020000u
|
||||
|
||||
/* DMAC / DTC trigger control */
|
||||
#define PDL_ADC_10_DMAC_DTC_TRIGGER_DISABLE 0x00040000u
|
||||
#define PDL_ADC_10_DMAC_TRIGGER_ENABLE 0x00080000u
|
||||
#define PDL_ADC_10_DTC_TRIGGER_ENABLE 0x00100000u
|
||||
|
||||
/* Sampling time calcuation control */
|
||||
#define PDL_ADC_10_ADSSTR_CALCULATE 0x00200000u
|
||||
#define PDL_ADC_10_ADSSTR_SPECIFY 0x00400000u
|
||||
|
||||
/* Pin selection */
|
||||
#define PDL_ADC_10_PIN_ADTRG0_A 0x00800000u
|
||||
#define PDL_ADC_10_PIN_ADTRG0_B 0x01000000u
|
||||
|
||||
/* Self-Diagnostic */
|
||||
#define PDL_ADC_10_SINGLE_AN0_SW (PDL_ADC_10_MODE_SINGLE | \
|
||||
PDL_ADC_10_CHANNELS_OPTION_1 | \
|
||||
PDL_ADC_10_TRIGGER_SOFTWARE)
|
||||
#define PDL_ADC_10_ADDIAGR_DISABLE 0x02000000u
|
||||
#define PDL_ADC_10_ADDIAGR_VREF_0 0x04000000u
|
||||
#define PDL_ADC_10_ADDIAGR_VREF_0_5 0x08000000u
|
||||
#define PDL_ADC_10_ADDIAGR_VREF_1 0x10000000u
|
||||
#define PDL_ADC_10_SELF_DIAGNOSTIC_DISABLE (PDL_ADC_10_ADDIAGR_DISABLE)
|
||||
#define PDL_ADC_10_SELF_DIAGNOSTIC_VREF_0 (PDL_ADC_10_SINGLE_AN0_SW | PDL_ADC_10_ADDIAGR_VREF_0)
|
||||
#define PDL_ADC_10_SELF_DIAGNOSTIC_VREF_0_5 (PDL_ADC_10_SINGLE_AN0_SW | PDL_ADC_10_ADDIAGR_VREF_0_5)
|
||||
#define PDL_ADC_10_SELF_DIAGNOSTIC_VREF_1 (PDL_ADC_10_SINGLE_AN0_SW | PDL_ADC_10_ADDIAGR_VREF_1)
|
||||
|
||||
/* On / off control */
|
||||
#define PDL_ADC_10_0_ON 0x0001u
|
||||
#define PDL_ADC_10_0_OFF 0x0002u
|
||||
#define PDL_ADC_10_1_ON 0x0004u
|
||||
#define PDL_ADC_10_1_OFF 0x0008u
|
||||
|
||||
/* CPU control */
|
||||
#define PDL_ADC_10_CPU_ON 0x0100u
|
||||
#define PDL_ADC_10_CPU_OFF 0x0200u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,82 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : A/D converter API for RX62Nxx
|
||||
* File Name : r_pdl_adc_10_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : ADC 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_ADC_10_RX62Nxx_H
|
||||
#define R_PDL_ADC_10_RX62Nxx_H
|
||||
|
||||
#define ADC_10_UNITS 2
|
||||
|
||||
extern VoidCallBackFunc rpdl_ADC_10_callback_func[];
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_ADC_10_CreateAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const float,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_ADC_10_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_ADC_10_ControlAll(
|
||||
const uint16_t
|
||||
);
|
||||
bool R_ADC_10_ReadAll(
|
||||
const uint8_t,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_ADC_10_Create(a, b, c, d, e, f) \
|
||||
( \
|
||||
( ( ((a) < ADC_10_UNITS) && ((f) <= IPL_MAX) ) ) ? \
|
||||
R_ADC_10_CreateAll( (a), (b), (c), (d), (e), (f)): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_ADC_10_Destroy(a) \
|
||||
( \
|
||||
( (a) < ADC_10_UNITS ) ? \
|
||||
R_ADC_10_DestroyAll( (a) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_ADC_10_Control(a) \
|
||||
( \
|
||||
( ((a) & 0xFFu) != 0x00u ) ? \
|
||||
R_ADC_10_ControlAll( (a) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_ADC_10_Read(a, b) \
|
||||
( \
|
||||
( (a) < ADC_10_UNITS ) ? \
|
||||
R_ADC_10_ReadAll( (a), (b) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,123 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : 12-bit ADC converter API for RX62Nxx
|
||||
* File Name : r_pdl_adc_12.h
|
||||
* Version : 1.02
|
||||
* Contents : ADC_12 function prototypes
|
||||
* Customer :
|
||||
* Model :
|
||||
* Order :
|
||||
* CPU : RX
|
||||
* Compiler : RXC
|
||||
* OS :
|
||||
* 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_ADC_12_H
|
||||
#define R_PDL_ADC_12_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_ADC_12_Create(
|
||||
uint8_t,
|
||||
uint32_t,
|
||||
uint16_t,
|
||||
uint16_t,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_ADC_12_Destroy(
|
||||
uint8_t
|
||||
);
|
||||
bool R_ADC_12_Control(
|
||||
uint8_t
|
||||
);
|
||||
bool R_ADC_12_Read(
|
||||
uint8_t,
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Scan mode */
|
||||
#define PDL_ADC_12_SCAN_SINGLE 0x00000001ul
|
||||
#define PDL_ADC_12_SCAN_CONTINUOUS 0x00000002ul
|
||||
|
||||
// Input channel selection
|
||||
#define PDL_ADC_12_CHANNEL_0 0x00000004ul
|
||||
#define PDL_ADC_12_CHANNEL_1 0x00000008ul
|
||||
#define PDL_ADC_12_CHANNEL_2 0x00000010ul
|
||||
#define PDL_ADC_12_CHANNEL_3 0x00000020ul
|
||||
#define PDL_ADC_12_CHANNEL_4 0x00000040ul
|
||||
#define PDL_ADC_12_CHANNEL_5 0x00000080ul
|
||||
#define PDL_ADC_12_CHANNEL_6 0x00000100ul
|
||||
#define PDL_ADC_12_CHANNEL_7 0x00000200ul
|
||||
|
||||
/* Clock division */
|
||||
#define PDL_ADC_12_DIV_1 0x00000400ul
|
||||
#define PDL_ADC_12_DIV_2 0x00000800ul
|
||||
#define PDL_ADC_12_DIV_4 0x00001000ul
|
||||
#define PDL_ADC_12_DIV_8 0x00002000ul
|
||||
|
||||
/* Data alignment */
|
||||
#define PDL_ADC_12_DATA_ALIGNMENT_LEFT 0x00004000ul
|
||||
#define PDL_ADC_12_DATA_ALIGNMENT_RIGHT 0x00008000ul
|
||||
|
||||
/* Result register clearing */
|
||||
#define PDL_ADC_12_RETAIN_RESULT 0x00010000ul
|
||||
#define PDL_ADC_12_CLEAR_RESULT 0x00020000ul
|
||||
|
||||
/* DMAC / DTC trigger control */
|
||||
#define PDL_ADC_12_DMAC_DTC_TRIGGER_DISABLE 0x00040000ul
|
||||
#define PDL_ADC_12_DMAC_TRIGGER_ENABLE 0x00080000ul
|
||||
#define PDL_ADC_12_DTC_TRIGGER_ENABLE 0x00100000ul
|
||||
|
||||
/* Trigger selection */
|
||||
#define PDL_ADC_12_TRIGGER_SOFTWARE 0x0001u
|
||||
#define PDL_ADC_12_TRIGGER_ADTRG0 0x0002u
|
||||
#define PDL_ADC_12_TRIGGER_MTU0_ICCM_A 0x0004u
|
||||
#define PDL_ADC_12_TRIGGER_MTU0_ICCM_B 0x0008u
|
||||
#define PDL_ADC_12_TRIGGER_MTU0_MTU4_ICCM 0x0010u
|
||||
#define PDL_ADC_12_TRIGGER_MTU6_MTU10_ICCM 0x0020u
|
||||
#define PDL_ADC_12_TRIGGER_MTU0_CM_E 0x0040u
|
||||
#define PDL_ADC_12_TRIGGER_MTU0_CM_F 0x0080u
|
||||
#define PDL_ADC_12_TRIGGER_MTU4_CM 0x0100u
|
||||
#define PDL_ADC_12_TRIGGER_MTU10_CM 0x0200u
|
||||
#define PDL_ADC_12_TRIGGER_TMR0 0x0400u
|
||||
#define PDL_ADC_12_TRIGGER_TMR2 0x0800u
|
||||
|
||||
/* Pin selection */
|
||||
#define PDL_ADC_12_PIN_ADTRG0_A 0x1000u
|
||||
#define PDL_ADC_12_PIN_ADTRG0_B 0x2000u
|
||||
|
||||
/* Value addition mode selection */
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_0 0x0001u
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_1 0x0002u
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_2 0x0004u
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_3 0x0008u
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_4 0x0010u
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_5 0x0020u
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_6 0x0040u
|
||||
#define PDL_ADC_12_VALUE_ADD_CHANNEL_7 0x0080u
|
||||
|
||||
/* Value addition count selection */
|
||||
#define PDL_ADC_12_VALUE_ADD_TIME_1 0x0100u
|
||||
#define PDL_ADC_12_VALUE_ADD_TIME_2 0x0200u
|
||||
#define PDL_ADC_12_VALUE_ADD_TIME_3 0x0400u
|
||||
#define PDL_ADC_12_VALUE_ADD_TIME_4 0x0800u
|
||||
|
||||
/* On / off control */
|
||||
#define PDL_ADC_12_0_ON 0x01u
|
||||
#define PDL_ADC_12_0_OFF 0x02u
|
||||
|
||||
/* CPU control */
|
||||
#define PDL_ADC_12_CPU_OFF 0x04u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,80 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : 12-bit A/D converter API for RX62Nxx
|
||||
* File Name : r_pdl_adc_12_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : ADC_12 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_ADC_12_RX62Nxx_H
|
||||
#define R_PDL_ADC_12_RX62Nxx_H
|
||||
|
||||
extern VoidCallBackFunc rpdl_ADC_12_callback_func[];
|
||||
|
||||
#define ADC_12_UNITS 1
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_ADC_12_CreateAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint16_t,
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_ADC_12_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_ADC_12_ControlAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_ADC_12_ReadAll(
|
||||
const uint8_t,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_ADC_12_Create(a, b, c, d, e, f) \
|
||||
( \
|
||||
( ( ((a) < ADC_12_UNITS) && ((f) <= IPL_MAX) ) ) ? \
|
||||
R_ADC_12_CreateAll( (a), (b), (c), (d), (e), (f)): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_ADC_12_Destroy(a) \
|
||||
( \
|
||||
( (a) < ADC_12_UNITS ) ? \
|
||||
R_ADC_12_DestroyAll( (a) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_ADC_12_Control(a) \
|
||||
( \
|
||||
R_ADC_12_ControlAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_ADC_12_Read(a, b) \
|
||||
( \
|
||||
( (a) < ADC_12_UNITS ) ? \
|
||||
R_ADC_12_ReadAll( (a), (b) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,129 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : BSC API for RX62N
|
||||
* File Name : r_pdl_bsc_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : BSC 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_BSC_RX62Nxx_H
|
||||
#define R_PDL_BSC_RX62Nxx_H
|
||||
|
||||
#define BSC_AREAS 8
|
||||
|
||||
/* Callback function storage */
|
||||
extern VoidCallBackFunc rpdl_BSC_callback_func;
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_BSC_CreateAll(
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint8_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_BSC_CreateAreaAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_BSC_SDRAM_CreateAreaAll(
|
||||
const uint16_t,
|
||||
const uint16_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint16_t
|
||||
);
|
||||
bool R_BSC_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_BSC_ControlAll(
|
||||
const uint16_t
|
||||
);
|
||||
bool R_BSC_GetStatusAll(
|
||||
volatile uint8_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint8_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_BSC_Create(a, b, c, d, e) \
|
||||
( \
|
||||
( (e) <= IPL_MAX ) ? \
|
||||
R_BSC_CreateAll( (a), (b), (c), (d), (e) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_BSC_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) \
|
||||
( \
|
||||
( (a) < BSC_AREAS ) ? \
|
||||
R_BSC_CreateAreaAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l), (m), (n), (o) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#if defined (DEVICE_PACKAGE_LQFP_100) || defined (DEVICE_PACKAGE_TFLGA_85)
|
||||
#define R_BSC_SDRAM_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l) \
|
||||
( \
|
||||
ReturnFalse() \
|
||||
)
|
||||
#else
|
||||
#define R_BSC_SDRAM_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l) \
|
||||
( \
|
||||
R_BSC_SDRAM_CreateAreaAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l) ) \
|
||||
)
|
||||
#endif
|
||||
|
||||
#define R_BSC_Destroy(a) \
|
||||
( \
|
||||
( (a) < BSC_AREAS ) ? \
|
||||
R_BSC_DestroyAll( (a) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_BSC_Control(a) \
|
||||
( \
|
||||
R_BSC_ControlAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_BSC_GetStatus(a, b, c) \
|
||||
( \
|
||||
R_BSC_GetStatusAll( (a), (b), (c) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,64 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : CGC API
|
||||
* File Name : r_pdl_cgc.h
|
||||
* Version : 1.02
|
||||
* Contents : CGC header
|
||||
* Customer :
|
||||
* Model :
|
||||
* Order :
|
||||
* CPU : RX
|
||||
* Compiler : RXC
|
||||
* OS :
|
||||
* 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_CGC_H
|
||||
#define R_PDL_CGC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_CGC_Set(
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint16_t
|
||||
);
|
||||
|
||||
bool R_CGC_Control(
|
||||
uint16_t
|
||||
);
|
||||
|
||||
bool R_CGC_GetStatus(
|
||||
uint8_t *
|
||||
);
|
||||
|
||||
/* BCLK pin putput control */
|
||||
#define PDL_CGC_BCLK_DISABLE 0x0001u
|
||||
#define PDL_CGC_BCLK_DIV_1 0x0002u
|
||||
#define PDL_CGC_BCLK_DIV_2 0x0004u
|
||||
#define PDL_CGC_BCLK_HIGH 0x0008u
|
||||
|
||||
/* SDCLK pin putput control */
|
||||
#define PDL_CGC_SDCLK_DISABLE 0x0010u
|
||||
#define PDL_CGC_SDCLK_ENABLE 0x0020u
|
||||
|
||||
/* Oscillation Stop Detection control */
|
||||
#define PDL_CGC_OSC_STOP_ENABLE 0x0040u
|
||||
#define PDL_CGC_OSC_STOP_DISABLE 0x0080u
|
||||
|
||||
/* Sub-clock oscillator control */
|
||||
#define PDL_CGC_SUB_CLOCK_ENABLE 0x0100u
|
||||
#define PDL_CGC_SUB_CLOCK_DISABLE 0x0200u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,55 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : CGC API for RX62Nxx
|
||||
* File Name : r_pdl_cgc_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : CGC 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_CGC_RX62Nxx_H
|
||||
#define R_PDL_CGC_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_CGC_SetAll(
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint16_t
|
||||
);
|
||||
|
||||
bool R_CGC_ControlAll(
|
||||
const uint16_t
|
||||
);
|
||||
|
||||
bool R_CGC_GetStatusAll(
|
||||
volatile uint8_t * const
|
||||
);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_CGC_Set(a, b, c, d, e) \
|
||||
R_CGC_SetAll( (a), (b), (c), (d), (e) )
|
||||
|
||||
#define R_CGC_Control(a) \
|
||||
R_CGC_ControlAll( (a) )
|
||||
|
||||
#define R_CGC_GetStatus(a) \
|
||||
R_CGC_GetStatusAll( (a) )
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,83 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : CMT API for RX62Nxx
|
||||
* File Name : r_pdl_cmt.h
|
||||
* Version : 1.02
|
||||
* Contents : CMT 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_CMT_H
|
||||
#define R_PDL_CMT_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_CMT_Create(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
float,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_CMT_CreateOneShot(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
float,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_CMT_Destroy(
|
||||
uint8_t
|
||||
);
|
||||
bool R_CMT_Control(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
float
|
||||
);
|
||||
bool R_CMT_Read(
|
||||
uint8_t,
|
||||
uint8_t *,
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Timer counter control */
|
||||
#define PDL_CMT_STOP 0x0001u
|
||||
#define PDL_CMT_START 0x0002u
|
||||
|
||||
/* Calculation selection */
|
||||
#define PDL_CMT_PERIOD 0x0004u
|
||||
#define PDL_CMT_FREQUENCY 0x0008u
|
||||
|
||||
/* CPU control */
|
||||
#define PDL_CMT_CPU_ON 0x0010u
|
||||
#define PDL_CMT_CPU_OFF 0x0020u
|
||||
|
||||
/* DMAC / DTC trigger control */
|
||||
#define PDL_CMT_DMAC_DTC_TRIGGER_DISABLE 0x0040u
|
||||
#define PDL_CMT_DMAC_TRIGGER_ENABLE 0x0080u
|
||||
#define PDL_CMT_DTC_TRIGGER_ENABLE 0x0100u
|
||||
|
||||
/* Direct register control */
|
||||
#define PDL_CMT_CONSTANT 0x0200u
|
||||
#define PDL_CMT_COUNTER 0x0400u
|
||||
#define PDL_CMT_PCLK_DIV_8 0x0800u
|
||||
#define PDL_CMT_PCLK_DIV_32 0x1000u
|
||||
#define PDL_CMT_PCLK_DIV_128 0x2000u
|
||||
#define PDL_CMT_PCLK_DIV_512 0x4000u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,104 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : CMT API for RX62Nxx
|
||||
* File Name : r_pdl_cmt_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : CMT 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_CMT_RX62Nxx_H
|
||||
#define R_PDL_CMT_RX62Nxx_H
|
||||
|
||||
#define CMT_UNITS 2
|
||||
#define CMT_CHANNELS_PER_UNIT 2
|
||||
#define CMT_CHANNELS (uint8_t)(CMT_UNITS * CMT_CHANNELS_PER_UNIT)
|
||||
|
||||
/* Callback function storage */
|
||||
extern VoidCallBackFunc rpdl_CMT_callback_func[CMT_CHANNELS];
|
||||
|
||||
/* Global variables */
|
||||
extern volatile uint8_t rpdl_CMT_one_shot[CMT_CHANNELS];
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_CMT_CreateAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const float,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_CMT_CreateOneShotAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const float,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_CMT_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_CMT_ControlAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const float
|
||||
);
|
||||
bool R_CMT_ReadAll(
|
||||
const uint8_t,
|
||||
volatile uint8_t * const,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_CMT_Create(a, b, c, d, e) \
|
||||
( \
|
||||
( ( ((a) < CMT_CHANNELS ) && ((e) <= IPL_MAX) ) ) ? \
|
||||
R_CMT_CreateAll( (a), (b), (c), (d), (e) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_CMT_CreateOneShot(a, b, c, d, e) \
|
||||
( \
|
||||
( ( ((a) < CMT_CHANNELS ) && ((e) <= IPL_MAX) ) ) ? \
|
||||
R_CMT_CreateOneShotAll( (a), (b), (c), (d), (e) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_CMT_Destroy(a) \
|
||||
( \
|
||||
( (a) < CMT_UNITS ) ? \
|
||||
R_CMT_DestroyAll( (a) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_CMT_Control(a, b, c) \
|
||||
( \
|
||||
( (a) < CMT_CHANNELS ) ? \
|
||||
R_CMT_ControlAll( (a), (b), (c) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_CMT_Read(a, b, c) \
|
||||
( \
|
||||
( (a) < CMT_CHANNELS ) ? \
|
||||
R_CMT_ReadAll( (a), (b), (c) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,57 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : CRC calculator API for RX62Nxx
|
||||
* File Name : r_pdl_crc.h
|
||||
* Version : 1.02
|
||||
* Contents : CRC function prototypes
|
||||
* Customer :
|
||||
* Model :
|
||||
* Order :
|
||||
* CPU : RX
|
||||
* Compiler : RXC
|
||||
* OS :
|
||||
* 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_CRC_H
|
||||
#define R_PDL_CRC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_CRC_Create(
|
||||
uint8_t
|
||||
);
|
||||
bool R_CRC_Destroy(
|
||||
void
|
||||
);
|
||||
bool R_CRC_Write(
|
||||
uint8_t
|
||||
);
|
||||
bool R_CRC_Read(
|
||||
uint8_t,
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Polynomial selection */
|
||||
#define PDL_CRC_POLY_CRC_8 0x01u
|
||||
#define PDL_CRC_POLY_CRC_16 0x02u
|
||||
#define PDL_CRC_POLY_CRC_CCITT 0x04u
|
||||
|
||||
/* Bit order */
|
||||
#define PDL_CRC_LSB_FIRST 0x08u
|
||||
#define PDL_CRC_MSB_FIRST 0x10u
|
||||
|
||||
/* Result register clearing */
|
||||
#define PDL_CRC_CLEAR_RESULT 0x01u
|
||||
#define PDL_CRC_RETAIN_RESULT 0x02u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,64 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : CRC calculator API for RX62Nxx
|
||||
* File Name : r_pdl_crc_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : CRC 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_CRC_RX62Nxx_H
|
||||
#define R_PDL_CRC_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_CRC_CreateAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_CRC_DestroyAll(
|
||||
void
|
||||
);
|
||||
bool R_CRC_WriteAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_CRC_ReadAll(
|
||||
const uint8_t,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_CRC_Create(a) \
|
||||
( \
|
||||
R_CRC_CreateAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_CRC_Destroy() \
|
||||
( \
|
||||
R_CRC_DestroyAll() \
|
||||
)
|
||||
|
||||
#define R_CRC_Write(a) \
|
||||
( \
|
||||
R_CRC_WriteAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_CRC_Read(a, b) \
|
||||
( \
|
||||
R_CRC_ReadAll( (a), (b) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,52 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : DAC API for RX62Nxx
|
||||
* File Name : r_pdl_dac_10.h
|
||||
* Version : 1.02
|
||||
* Contents : CRC function prototypes
|
||||
* 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_DAC_H
|
||||
#define R_PDL_DAC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_DAC_10_Create(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
uint16_t
|
||||
);
|
||||
bool R_DAC_10_Destroy(
|
||||
uint8_t
|
||||
);
|
||||
bool R_DAC_10_Write(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
uint16_t
|
||||
);
|
||||
|
||||
/* Channel selection */
|
||||
#define PDL_DAC_10_CHANNEL_0 0x01u
|
||||
#define PDL_DAC_10_CHANNEL_1 0x02u
|
||||
|
||||
/* Data alignment */
|
||||
#define PDL_DAC_10_ALIGN_LEFT 0x04u
|
||||
#define PDL_DAC_10_ALIGN_RIGHT 0x08u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,59 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : DAC API for RX62Nxx
|
||||
* File Name : r_pdl_dac_10_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : DAC 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_DAC_RX62Nxx_H
|
||||
#define R_PDL_DAC_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_DAC_10_CreateAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const uint16_t
|
||||
);
|
||||
bool R_DAC_10_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_DAC_10_WriteAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const uint16_t
|
||||
);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_DAC_10_Create(a, b, c) \
|
||||
( \
|
||||
R_DAC_10_CreateAll( (a), (b), (c) ) \
|
||||
)
|
||||
|
||||
#define R_DAC_10_Destroy(a) \
|
||||
( \
|
||||
R_DAC_10_DestroyAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_DAC_10_Write(a, b, c) \
|
||||
( \
|
||||
R_DAC_10_WriteAll( (a), (b), (c) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,59 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : PDL driver API
|
||||
* File Name : r_pdl_definitions.h
|
||||
* Version : 1.02
|
||||
* Contents : API headers for RX62N (100-pin package)
|
||||
* Customer :
|
||||
* Model :
|
||||
* Order :
|
||||
* CPU : RX
|
||||
* Compiler : RXC
|
||||
* OS :
|
||||
* 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_DEFS_H
|
||||
#define R_PDL_DEFS_H
|
||||
|
||||
#define PDL_VERSION 0x0102u /* v01.02 in BCD format */
|
||||
#define DEVICE_PACKAGE_LQFP_100
|
||||
|
||||
/* Peripiherals that are common to all device packages */
|
||||
#include "r_pdl_adc_10_RX62Nxx.h"
|
||||
#include "r_pdl_adc_12_RX62Nxx.h"
|
||||
#include "r_pdl_bsc_RX62Nxx.h"
|
||||
#include "r_pdl_cgc_RX62Nxx.h"
|
||||
#include "r_pdl_cmt_RX62Nxx.h"
|
||||
#include "r_pdl_crc_RX62Nxx.h"
|
||||
#include "r_pdl_dac_10_RX62Nxx.h"
|
||||
#include "r_pdl_dmac_RX62Nxx.h"
|
||||
#include "r_pdl_dtc_RX62Nxx.h"
|
||||
#include "r_pdl_intc_RX62Nxx.h"
|
||||
#include "r_pdl_iwdt_RX62Nxx.h"
|
||||
#include "r_pdl_lpc_RX62Nxx.h"
|
||||
#include "r_pdl_lvd_RX62Nxx.h"
|
||||
#include "r_pdl_mcu_RX62Nxx.h"
|
||||
#include "r_pdl_mtu2_RX62Nxx.h"
|
||||
#include "r_pdl_pfc_RX62Nxx.h"
|
||||
#include "r_pdl_poe_RX62Nxx.h"
|
||||
#include "r_pdl_ppg_RX62Nxx.h"
|
||||
#include "r_pdl_rtc_RX62Nxx.h"
|
||||
#include "r_pdl_sci_RX62Nxx.h"
|
||||
#include "r_pdl_spi_RX62Nxx.h"
|
||||
#include "r_pdl_tmr_RX62Nxx.h"
|
||||
#include "r_pdl_wdt_RX62Nxx.h"
|
||||
|
||||
/* Peripiherals that are device package-dependent */
|
||||
#include "r_pdl_iic_RX62NxFP.h"
|
||||
#include "r_pdl_io_port_RX62NxFP.h"
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,174 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : DMAC API for RX62Nxx
|
||||
* File Name : r_pdl_dmac.h
|
||||
* Version : 1.02
|
||||
* Contents : DMAC 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_DMAC_H
|
||||
#define R_PDL_DMAC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_DMAC_Create(
|
||||
uint8_t,
|
||||
uint32_t,
|
||||
uint8_t,
|
||||
void *,
|
||||
void *,
|
||||
uint16_t,
|
||||
uint16_t,
|
||||
int32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_DMAC_Destroy(
|
||||
uint8_t
|
||||
);
|
||||
bool R_DMAC_Control(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
void *,
|
||||
void *,
|
||||
uint16_t,
|
||||
uint16_t,
|
||||
int32_t,
|
||||
uint32_t,
|
||||
uint32_t
|
||||
);
|
||||
bool R_DMAC_GetStatus(
|
||||
uint8_t,
|
||||
uint8_t *,
|
||||
uint32_t *,
|
||||
uint32_t *,
|
||||
uint16_t *,
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Transfer mode selection */
|
||||
#define PDL_DMAC_NORMAL 0x00000001ul
|
||||
#define PDL_DMAC_REPEAT 0x00000002ul
|
||||
#define PDL_DMAC_BLOCK 0x00000004ul
|
||||
#define PDL_DMAC_SOURCE 0x00000008ul
|
||||
#define PDL_DMAC_DESTINATION 0x00000010ul
|
||||
|
||||
/* Address addition direction selection */
|
||||
#define PDL_DMAC_SOURCE_ADDRESS_FIXED 0x00000020ul
|
||||
#define PDL_DMAC_SOURCE_ADDRESS_PLUS 0x00000040ul
|
||||
#define PDL_DMAC_SOURCE_ADDRESS_MINUS 0x00000080ul
|
||||
#define PDL_DMAC_SOURCE_ADDRESS_OFFSET 0x00000100ul
|
||||
#define PDL_DMAC_DESTINATION_ADDRESS_FIXED 0x00000200ul
|
||||
#define PDL_DMAC_DESTINATION_ADDRESS_PLUS 0x00000400ul
|
||||
#define PDL_DMAC_DESTINATION_ADDRESS_MINUS 0x00000800ul
|
||||
#define PDL_DMAC_DESTINATION_ADDRESS_OFFSET 0x00001000ul
|
||||
|
||||
/* Transfer data size */
|
||||
#define PDL_DMAC_SIZE_8 0x00002000ul
|
||||
#define PDL_DMAC_SIZE_16 0x00004000ul
|
||||
#define PDL_DMAC_SIZE_32 0x00008000ul
|
||||
|
||||
/* Interrupt generation */
|
||||
#define PDL_DMAC_IRQ_END 0x00010000ul
|
||||
#define PDL_DMAC_IRQ_ESCAPE_END 0x00020000ul
|
||||
#define PDL_DMAC_IRQ_REPEAT_SIZE_END 0x00040000ul
|
||||
#define PDL_DMAC_IRQ_EXT_SOURCE 0x00080000ul
|
||||
#define PDL_DMAC_IRQ_EXT_DESTINATION 0x00100000ul
|
||||
|
||||
/* Start trigger forwarding */
|
||||
#define PDL_DMAC_TRIGGER_CLEAR 0x00200000ul
|
||||
#define PDL_DMAC_TRIGGER_FORWARD 0x00400000ul
|
||||
|
||||
/* DTC trigger control */
|
||||
#define PDL_DMAC_DTC_TRIGGER_DISABLE 0x00800000ul
|
||||
#define PDL_DMAC_DTC_TRIGGER_ENABLE 0x01000000ul
|
||||
|
||||
/* DMAC activation source */
|
||||
#define PDL_DMAC_TRIGGER_SW 0x00u
|
||||
#define PDL_DMAC_TRIGGER_CMT0 VECT_CMT0_CMI0
|
||||
#define PDL_DMAC_TRIGGER_CMT1 VECT_CMT1_CMI1
|
||||
#define PDL_DMAC_TRIGGER_CMT2 VECT_CMT2_CMI2
|
||||
#define PDL_DMAC_TRIGGER_CMT3 VECT_CMT3_CMI3
|
||||
#define PDL_DMAC_TRIGGER_USB0_D0 VECT_USB0_D0FIFO0
|
||||
#define PDL_DMAC_TRIGGER_USB0_D1 VECT_USB0_D1FIFO0
|
||||
#define PDL_DMAC_TRIGGER_USB1_D0 VECT_USB1_D0FIFO1
|
||||
#define PDL_DMAC_TRIGGER_USB1_D1 VECT_USB1_D1FIFO1
|
||||
#define PDL_DMAC_TRIGGER_SPI0_RX VECT_RSPI0_SPRI0
|
||||
#define PDL_DMAC_TRIGGER_SPI0_TX VECT_RSPI0_SPTI0
|
||||
#define PDL_DMAC_TRIGGER_SPI1_RX VECT_RSPI1_SPRI1
|
||||
#define PDL_DMAC_TRIGGER_SPI1_TX VECT_RSPI1_SPTI1
|
||||
#define PDL_DMAC_TRIGGER_IRQ0 VECT_ICU_IRQ0
|
||||
#define PDL_DMAC_TRIGGER_IRQ1 VECT_ICU_IRQ1
|
||||
#define PDL_DMAC_TRIGGER_IRQ2 VECT_ICU_IRQ2
|
||||
#define PDL_DMAC_TRIGGER_IRQ3 VECT_ICU_IRQ3
|
||||
#define PDL_DMAC_TRIGGER_ADC10_0 VECT_AD0_ADI0
|
||||
#define PDL_DMAC_TRIGGER_ADC10_1 VECT_AD1_ADI1
|
||||
#define PDL_DMAC_TRIGGER_ADC12 VECT_S12AD_ADI
|
||||
#define PDL_DMAC_TRIGGER_MTU0 VECT_MTU0_TGIA0
|
||||
#define PDL_DMAC_TRIGGER_MTU1 VECT_MTU1_TGIA1
|
||||
#define PDL_DMAC_TRIGGER_MTU2 VECT_MTU2_TGIA2
|
||||
#define PDL_DMAC_TRIGGER_MTU3 VECT_MTU3_TGIA3
|
||||
#define PDL_DMAC_TRIGGER_MTU4 VECT_MTU4_TGIA4
|
||||
#define PDL_DMAC_TRIGGER_MTU6 VECT_MTU6_TGIA6
|
||||
#define PDL_DMAC_TRIGGER_MTU7 VECT_MTU7_TGIA7
|
||||
#define PDL_DMAC_TRIGGER_MTU8 VECT_MTU8_TGIA8
|
||||
#define PDL_DMAC_TRIGGER_MTU9 VECT_MTU9_TGIA9
|
||||
#define PDL_DMAC_TRIGGER_MTU10 VECT_MTU10_TGIA10
|
||||
#define PDL_DMAC_TRIGGER_SCI0_RX VECT_SCI0_RXI0
|
||||
#define PDL_DMAC_TRIGGER_SCI0_TX VECT_SCI0_TXI0
|
||||
#define PDL_DMAC_TRIGGER_SCI1_RX VECT_SCI1_RXI1
|
||||
#define PDL_DMAC_TRIGGER_SCI1_TX VECT_SCI1_TXI1
|
||||
#define PDL_DMAC_TRIGGER_SCI2_RX VECT_SCI2_RXI2
|
||||
#define PDL_DMAC_TRIGGER_SCI2_TX VECT_SCI2_TXI2
|
||||
#define PDL_DMAC_TRIGGER_SCI3_RX VECT_SCI3_RXI3
|
||||
#define PDL_DMAC_TRIGGER_SCI3_TX VECT_SCI3_TXI3
|
||||
#define PDL_DMAC_TRIGGER_SCI5_RX VECT_SCI5_RXI5
|
||||
#define PDL_DMAC_TRIGGER_SCI5_TX VECT_SCI5_TXI5
|
||||
#define PDL_DMAC_TRIGGER_SCI6_RX VECT_SCI6_RXI6
|
||||
#define PDL_DMAC_TRIGGER_SCI6_TX VECT_SCI6_TXI6
|
||||
#define PDL_DMAC_TRIGGER_IIC0_RX VECT_RIIC0_ICRXI0
|
||||
#define PDL_DMAC_TRIGGER_IIC0_TX VECT_RIIC0_ICTXI0
|
||||
#define PDL_DMAC_TRIGGER_IIC1_RX VECT_RIIC1_ICRXI1
|
||||
#define PDL_DMAC_TRIGGER_IIC1_TX VECT_RIIC1_ICTXI1
|
||||
|
||||
/* Enable / suspend control */
|
||||
#define PDL_DMAC_ENABLE 0x0001u
|
||||
#define PDL_DMAC_SUSPEND 0x0002u
|
||||
|
||||
/* Software trigger control */
|
||||
#define PDL_DMAC_START 0x0004u
|
||||
#define PDL_DMAC_START_RUN 0x0008u
|
||||
#define PDL_DMAC_STOP 0x0010u
|
||||
|
||||
/* Transfer end interrupt flag control */
|
||||
#define PDL_DMAC_CLEAR_DTIF 0x0020u
|
||||
#define PDL_DMAC_CLEAR_ESIF 0x0040u
|
||||
|
||||
/* Modify registers selection */
|
||||
#define PDL_DMAC_UPDATE_SOURCE 0x0080u
|
||||
#define PDL_DMAC_UPDATE_DESTINATION 0x0100u
|
||||
#define PDL_DMAC_UPDATE_COUNT 0x0200u
|
||||
#define PDL_DMAC_UPDATE_SIZE 0x0400u
|
||||
#define PDL_DMAC_UPDATE_OFFSET 0x0800u
|
||||
#define PDL_DMAC_UPDATE_REPEAT_SOURCE 0x1000u
|
||||
#define PDL_DMAC_UPDATE_REPEAT_DESTINATION 0x2000u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,101 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : DMAC API for RX62Nxx
|
||||
* File Name : r_pdl_dmac_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : DMAC 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_DMAC_RX62Nxx_H
|
||||
#define R_PDL_DMAC_RX62Nxx_H
|
||||
|
||||
#define DMAC_CHANNELS 4
|
||||
|
||||
/* Callback function storage */
|
||||
extern VoidCallBackFunc rpdl_DMAC_callback_func[];
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_DMAC_CreateAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint8_t,
|
||||
volatile const void * const,
|
||||
volatile const void * const,
|
||||
const uint16_t,
|
||||
const uint16_t,
|
||||
const int32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_DMAC_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_DMAC_ControlAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
volatile const void * const,
|
||||
volatile const void * const,
|
||||
const uint16_t,
|
||||
const uint16_t,
|
||||
const int32_t,
|
||||
const uint32_t,
|
||||
const uint32_t
|
||||
);
|
||||
bool R_DMAC_GetStatusAll(
|
||||
const uint8_t,
|
||||
volatile uint8_t * const,
|
||||
volatile uint32_t * const,
|
||||
volatile uint32_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_DMAC_Create(a, b, c, d, e, f, g, h, i, j, k, l) \
|
||||
( \
|
||||
( ( ((a) < DMAC_CHANNELS ) && ((l) <= IPL_MAX) ) ) ? \
|
||||
R_DMAC_CreateAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_DMAC_Control(a, b, c, d, e, f, g, h, i) \
|
||||
( \
|
||||
( ((a) < DMAC_CHANNELS) ) ? \
|
||||
R_DMAC_ControlAll( (a), (b), (c), (d), (e), (f), (g), (h), (i) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_DMAC_GetStatus(a, b, c, d, e, f) \
|
||||
( \
|
||||
( ((a) < DMAC_CHANNELS) ) ? \
|
||||
R_DMAC_GetStatusAll( (a), (b), (c), (d), (e), (f) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_DMAC_Destroy(a) \
|
||||
( \
|
||||
( ((a) < DMAC_CHANNELS) ) ? \
|
||||
R_DMAC_DestroyAll( (a) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,90 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : DTC API for RX62N
|
||||
* File Name : r_pdl_dtc_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : DTC 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_DTC_RX62Nxx_H
|
||||
#define R_PDL_DTC_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_DTC_SetAll(
|
||||
const uint8_t,
|
||||
uint32_t * const
|
||||
);
|
||||
bool R_DTC_CreateAll(
|
||||
const uint32_t,
|
||||
const uint8_t,
|
||||
uint32_t * const,
|
||||
volatile const void * const,
|
||||
volatile const void * const,
|
||||
const uint16_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_DTC_DestroyAll(
|
||||
void
|
||||
);
|
||||
bool R_DTC_ControlAll(
|
||||
const uint32_t,
|
||||
const uint8_t,
|
||||
uint32_t * const,
|
||||
volatile const void * const,
|
||||
volatile const void * const,
|
||||
const uint16_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_DTC_GetStatusAll(
|
||||
const uint32_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint32_t * const,
|
||||
volatile uint32_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint8_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_DTC_Set(a, b) \
|
||||
( \
|
||||
R_DTC_SetAll( (a), (b) ) \
|
||||
)
|
||||
|
||||
#define R_DTC_Create(a, b, c, d, e, f) \
|
||||
( \
|
||||
R_DTC_CreateAll( (a), (uint8_t)((a) >> 24), (b), (c), (d), (e), (f) ) \
|
||||
)
|
||||
|
||||
#define R_DTC_Destroy() \
|
||||
( \
|
||||
R_DTC_DestroyAll() \
|
||||
)
|
||||
|
||||
#define R_DTC_Control(a, b, c, d, e, f) \
|
||||
( \
|
||||
R_DTC_ControlAll( (a), (uint8_t)((a) >> 24), (b), (c), (d), (e), (f) ) \
|
||||
)
|
||||
|
||||
#define R_DTC_GetStatus(a, b, c, d, e, f) \
|
||||
( \
|
||||
R_DTC_GetStatusAll( (a), (b), (c), (d), (e), (f) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,148 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : EXDMAC API for RX62Nxx
|
||||
* File Name : r_pdl_exdmac.h
|
||||
* Version : 1.02
|
||||
* Contents : EXDMAC 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_EXDMAC_H
|
||||
#define R_PDL_EXDMAC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_EXDMAC_Create(
|
||||
uint8_t,
|
||||
uint32_t,
|
||||
uint16_t,
|
||||
uint8_t,
|
||||
void *,
|
||||
void *,
|
||||
uint16_t,
|
||||
uint16_t,
|
||||
int32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_EXDMAC_Destroy(
|
||||
uint8_t
|
||||
);
|
||||
bool R_EXDMAC_Control(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
void *,
|
||||
void *,
|
||||
uint16_t,
|
||||
uint16_t,
|
||||
int32_t,
|
||||
uint32_t,
|
||||
uint32_t
|
||||
);
|
||||
bool R_EXDMAC_GetStatus(
|
||||
uint8_t,
|
||||
uint8_t *,
|
||||
uint32_t *,
|
||||
uint32_t *,
|
||||
uint16_t *,
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Transfer mode selection */
|
||||
#define PDL_EXDMAC_NORMAL 0x00000001ul
|
||||
#define PDL_EXDMAC_REPEAT 0x00000002ul
|
||||
#define PDL_EXDMAC_BLOCK 0x00000004ul
|
||||
#define PDL_EXDMAC_CLUSTER 0x00000008ul
|
||||
#define PDL_EXDMAC_SOURCE 0x00000010ul
|
||||
#define PDL_EXDMAC_DESTINATION 0x00000020ul
|
||||
|
||||
/* Address addition direction selection */
|
||||
#define PDL_EXDMAC_SOURCE_ADDRESS_FIXED 0x00000040ul
|
||||
#define PDL_EXDMAC_SOURCE_ADDRESS_PLUS 0x00000080ul
|
||||
#define PDL_EXDMAC_SOURCE_ADDRESS_MINUS 0x00000100ul
|
||||
#define PDL_EXDMAC_SOURCE_ADDRESS_OFFSET 0x00000200ul
|
||||
#define PDL_EXDMAC_DESTINATION_ADDRESS_FIXED 0x00000400ul
|
||||
#define PDL_EXDMAC_DESTINATION_ADDRESS_PLUS 0x00000800ul
|
||||
#define PDL_EXDMAC_DESTINATION_ADDRESS_MINUS 0x00001000ul
|
||||
#define PDL_EXDMAC_DESTINATION_ADDRESS_OFFSET 0x00002000ul
|
||||
|
||||
/* Address mode selection */
|
||||
#define PDL_EXDMAC_ADDRESS_MODE_READ 0x00004000ul
|
||||
#define PDL_EXDMAC_ADDRESS_MODE_WRITE 0x00008000ul
|
||||
#define PDL_EXDMAC_ADDRESS_MODE_DUAL 0x00010000ul
|
||||
|
||||
/* Transfer data size */
|
||||
#define PDL_EXDMAC_SIZE_8 0x00020000ul
|
||||
#define PDL_EXDMAC_SIZE_16 0x00040000ul
|
||||
#define PDL_EXDMAC_SIZE_32 0x00080000ul
|
||||
|
||||
/* Pin selection */
|
||||
#define PDL_EXDMAC_PIN_A 0x0001u
|
||||
#define PDL_EXDMAC_PIN_B 0x0002u
|
||||
#define PDL_EXDMAC_PIN_C 0x0004u
|
||||
|
||||
/* EDACKn pin output control */
|
||||
#define PDL_EXDMAC_EDACK_DISABLE 0x0008u
|
||||
#define PDL_EXDMAC_EDACK_LOW 0x0010u
|
||||
#define PDL_EXDMAC_EDACK_HIGH 0x0020u
|
||||
#define PDL_EXDMAC_EDACK_SYNC 0x0040u
|
||||
#define PDL_EXDMAC_EDACK_WAIT 0x0080u
|
||||
|
||||
/* Trigger selection */
|
||||
#define PDL_EXDMAC_TRIGGER_SW 0x0100u
|
||||
#define PDL_EXDMAC_TRIGGER_RISING 0x0200u
|
||||
#define PDL_EXDMAC_TRIGGER_FALLING 0x0400u
|
||||
#define PDL_EXDMAC_TRIGGER_LOW 0x0800u
|
||||
#define PDL_EXDMAC_TRIGGER_MTU1 0x1000u
|
||||
|
||||
/* Interrupt generation */
|
||||
#define PDL_EXDMAC_IRQ_END 0x01u
|
||||
#define PDL_EXDMAC_IRQ_ESCAPE_END 0x02u
|
||||
#define PDL_EXDMAC_IRQ_REPEAT_SIZE_END 0x04u
|
||||
#define PDL_EXDMAC_IRQ_EXT_SOURCE 0x08u
|
||||
#define PDL_EXDMAC_IRQ_EXT_DESTINATION 0x10u
|
||||
|
||||
/* DTC trigger control */
|
||||
#define PDL_EXDMAC_DTC_TRIGGER_DISABLE 0x20u
|
||||
#define PDL_EXDMAC_DTC_TRIGGER_ENABLE 0x40u
|
||||
|
||||
/* Enable / suspend control */
|
||||
#define PDL_EXDMAC_ENABLE 0x0001u
|
||||
#define PDL_EXDMAC_SUSPEND 0x0002u
|
||||
|
||||
/* Software trigger control */
|
||||
#define PDL_EXDMAC_START 0x0004u
|
||||
#define PDL_EXDMAC_START_RUN 0x0008u
|
||||
#define PDL_EXDMAC_STOP 0x0010u
|
||||
|
||||
/* Transfer end interrupt flag control */
|
||||
#define PDL_EXDMAC_CLEAR_DTIF 0x0020u
|
||||
#define PDL_EXDMAC_CLEAR_ESIF 0x0040u
|
||||
|
||||
/* Modify registers selection */
|
||||
#define PDL_EXDMAC_UPDATE_SOURCE 0x0080u
|
||||
#define PDL_EXDMAC_UPDATE_DESTINATION 0x0100u
|
||||
#define PDL_EXDMAC_UPDATE_COUNT 0x0200u
|
||||
#define PDL_EXDMAC_UPDATE_SIZE 0x0400u
|
||||
#define PDL_EXDMAC_UPDATE_OFFSET 0x0800u
|
||||
#define PDL_EXDMAC_UPDATE_REPEAT_SOURCE 0x1000u
|
||||
#define PDL_EXDMAC_UPDATE_REPEAT_DESTINATION 0x2000u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,102 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : EXDMAC API for RX62Nxx
|
||||
* File Name : r_pdl_exdmac_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : EXDMAC 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_EXDMAC_RX62Nxx_H
|
||||
#define R_PDL_EXDMAC_RX62Nxx_H
|
||||
|
||||
#define EXDMAC_CHANNELS 2
|
||||
|
||||
/* Callback function storage */
|
||||
extern VoidCallBackFunc rpdl_EXDMAC_callback_func[];
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_EXDMAC_CreateAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint16_t,
|
||||
const uint8_t,
|
||||
volatile const void * const,
|
||||
volatile const void * const,
|
||||
const uint16_t,
|
||||
const uint16_t,
|
||||
const int32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_EXDMAC_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_EXDMAC_ControlAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
volatile const void * const,
|
||||
volatile const void * const,
|
||||
const uint16_t,
|
||||
const uint16_t,
|
||||
const int32_t,
|
||||
const uint32_t,
|
||||
const uint32_t
|
||||
);
|
||||
bool R_EXDMAC_GetStatusAll(
|
||||
const uint8_t,
|
||||
volatile uint8_t * const,
|
||||
volatile uint32_t * const,
|
||||
volatile uint32_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_EXDMAC_Create(a, b, c, d, e, f, g, h, i, j, k, l, m) \
|
||||
( \
|
||||
( ( ((a) < EXDMAC_CHANNELS ) && ((m) <= IPL_MAX) ) ) ? \
|
||||
R_EXDMAC_CreateAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l), (m) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_EXDMAC_Control(a, b, c, d, e, f, g, h, i) \
|
||||
( \
|
||||
( ((a) < EXDMAC_CHANNELS) ) ? \
|
||||
R_EXDMAC_ControlAll( (a), (b), (c), (d), (e), (f), (g), (h), (i) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_EXDMAC_GetStatus(a, b, c, d, e, f) \
|
||||
( \
|
||||
( ((a) < EXDMAC_CHANNELS) ) ? \
|
||||
R_EXDMAC_GetStatusAll( (a), (b), (c), (d), (e), (f) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_EXDMAC_Destroy(a) \
|
||||
( \
|
||||
( ((a) < EXDMAC_CHANNELS) ) ? \
|
||||
R_EXDMAC_DestroyAll( (a) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,118 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : External interrupt API for RX62Nxx
|
||||
* File Name : r_pdl_intc_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : INTC 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_INTC_RX62Nxx_H
|
||||
#define R_PDL_INTC_RX62Nxx_H
|
||||
|
||||
/* Callback function storage */
|
||||
extern VoidCallBackFunc rpdl_INTC_callback_func[];
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_INTC_CreateExtInterruptAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_INTC_CreateSoftwareInterruptAll(
|
||||
const uint8_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_INTC_CreateFastInterruptAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_INTC_CreateExceptionHandlersAll(
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const
|
||||
);
|
||||
bool R_INTC_ControlExtInterruptAll(
|
||||
const uint8_t,
|
||||
const uint32_t
|
||||
);
|
||||
bool R_INTC_GetExtInterruptStatusAll(
|
||||
const uint8_t,
|
||||
volatile uint8_t * const
|
||||
);
|
||||
bool R_INTC_ReadAll(
|
||||
const uint16_t,
|
||||
volatile uint8_t * const
|
||||
);
|
||||
bool R_INTC_WriteAll(
|
||||
const uint16_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_INTC_ModifyAll(
|
||||
const uint16_t,
|
||||
const uint8_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_INTC_CreateExtInterrupt(a, b, c, d) \
|
||||
( \
|
||||
( ( (a) <= PDL_INTC_NMI ) && ((d) <= IPL_MAX) ) ? \
|
||||
R_INTC_CreateExtInterruptAll( (a), (b), (c), (d) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_INTC_CreateSoftwareInterrupt(a, b, c) \
|
||||
( \
|
||||
( (c) <= IPL_MAX ) ? \
|
||||
R_INTC_CreateSoftwareInterruptAll( (a), (b), (c) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_INTC_ControlExtInterrupt(a, b) \
|
||||
( \
|
||||
( (a) <= PDL_INTC_NMI ) ? \
|
||||
R_INTC_ControlExtInterruptAll( (a), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_INTC_GetExtInterruptStatus(a, b) \
|
||||
( \
|
||||
( (a) <= PDL_INTC_NMI ) ? \
|
||||
R_INTC_GetExtInterruptStatusAll( (a), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_INTC_CreateFastInterrupt(a) \
|
||||
( R_INTC_CreateFastInterruptAll( (a) ) )
|
||||
|
||||
#define R_INTC_CreateExceptionHandlers(a, b, c) \
|
||||
( R_INTC_CreateExceptionHandlersAll( (a), (b), (c) ) )
|
||||
|
||||
#define R_INTC_Read(a, b) \
|
||||
( R_INTC_ReadAll( (a), (b) ) )
|
||||
|
||||
#define R_INTC_Write(a, b) \
|
||||
( R_INTC_WriteAll( (a), (b) ) )
|
||||
|
||||
#define R_INTC_Modify(a, b, c) \
|
||||
( R_INTC_ModifyAll( (a), (b), (c) ) )
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,55 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Independent Watchdog timer API for RX62Nxx
|
||||
* File Name : r_pdl_iwdt.h
|
||||
* Version : 1.02
|
||||
* Contents : IWDT 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_IWDT_H
|
||||
#define R_PDL_IWDT_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_IWDT_Set(
|
||||
uint16_t
|
||||
);
|
||||
bool R_IWDT_Control(
|
||||
uint8_t
|
||||
);
|
||||
bool R_IWDT_Read(
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Calculation selection */
|
||||
#define PDL_IWDT_TIMEOUT_1024 0x0001u
|
||||
#define PDL_IWDT_TIMEOUT_4096 0x0002u
|
||||
#define PDL_IWDT_TIMEOUT_8192 0x0004u
|
||||
#define PDL_IWDT_TIMEOUT_16384 0x0008u
|
||||
|
||||
#define PDL_IWDT_CLOCK_OCO_1 0x0010u
|
||||
#define PDL_IWDT_CLOCK_OCO_16 0x0020u
|
||||
#define PDL_IWDT_CLOCK_OCO_32 0x0040u
|
||||
#define PDL_IWDT_CLOCK_OCO_64 0x0080u
|
||||
#define PDL_IWDT_CLOCK_OCO_128 0x0100u
|
||||
#define PDL_IWDT_CLOCK_OCO_256 0x0200u
|
||||
|
||||
#define PDL_IWDT_REFRESH 0x01u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,55 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Independent Watchdog timer API for RX62Nxx
|
||||
* File Name : r_pdl_iwdt_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : IWDT 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_IWDT_RX62Nxx_H
|
||||
#define R_PDL_IWDT_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_IWDT_SetAll(
|
||||
const uint16_t
|
||||
);
|
||||
bool R_IWDT_ControlAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_IWDT_ReadAll(
|
||||
volatile uint16_t * const
|
||||
);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_IWDT_Set(a) \
|
||||
( \
|
||||
R_IWDT_SetAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_IWDT_Control(a) \
|
||||
( \
|
||||
R_IWDT_ControlAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_IWDT_Read(a) \
|
||||
( \
|
||||
R_IWDT_ReadAll( (a) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,125 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : LPC API for RX62Nxx
|
||||
* File Name : r_pdl_lpc.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_H
|
||||
#define R_PDL_LPC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_LPC_Create(
|
||||
uint32_t,
|
||||
uint32_t
|
||||
);
|
||||
bool R_LPC_Control(
|
||||
uint16_t
|
||||
);
|
||||
bool R_LPC_WriteBackup(
|
||||
uint8_t *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_LPC_ReadBackup(
|
||||
uint8_t *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_LPC_GetStatus(
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Software and Deep Software Standby mode output port control */
|
||||
#define PDL_LPC_EXT_BUS_ON 0x00000001ul
|
||||
#define PDL_LPC_EXT_BUS_HI_Z 0x00000002ul
|
||||
|
||||
/* On-chip RAM power / USB resume detection control */
|
||||
#define PDL_LPC_RAM_USB_DETECT_ON 0x00000004ul
|
||||
#define PDL_LPC_RAM_USB_DETECT_OFF 0x00000008ul
|
||||
|
||||
/* I/O port retention control */
|
||||
#define PDL_LPC_IO_SAME 0x00000010ul
|
||||
#define PDL_LPC_IO_DELAY 0x00000020ul
|
||||
|
||||
/* Deep software standby cancel control */
|
||||
#define PDL_LPC_CANCEL_IRQ0_DISABLE 0x00000040ul
|
||||
#define PDL_LPC_CANCEL_IRQ0_FALLING 0x00000080ul
|
||||
#define PDL_LPC_CANCEL_IRQ0_RISING 0x00000100ul
|
||||
#define PDL_LPC_CANCEL_IRQ1_DISABLE 0x00000200ul
|
||||
#define PDL_LPC_CANCEL_IRQ1_FALLING 0x00000400ul
|
||||
#define PDL_LPC_CANCEL_IRQ1_RISING 0x00000800ul
|
||||
#define PDL_LPC_CANCEL_IRQ2_DISABLE 0x00001000ul
|
||||
#define PDL_LPC_CANCEL_IRQ2_FALLING 0x00002000ul
|
||||
#define PDL_LPC_CANCEL_IRQ2_RISING 0x00004000ul
|
||||
#define PDL_LPC_CANCEL_IRQ3_DISABLE 0x00008000ul
|
||||
#define PDL_LPC_CANCEL_IRQ3_FALLING 0x00010000ul
|
||||
#define PDL_LPC_CANCEL_IRQ3_RISING 0x00020000ul
|
||||
#define PDL_LPC_CANCEL_NMI_DISABLE 0x00040000ul
|
||||
#define PDL_LPC_CANCEL_NMI_FALLING 0x00080000ul
|
||||
#define PDL_LPC_CANCEL_NMI_RISING 0x00100000ul
|
||||
#define PDL_LPC_CANCEL_LVD_DISABLE 0x00200000ul
|
||||
#define PDL_LPC_CANCEL_LVD_ENABLE 0x00400000ul
|
||||
#define PDL_LPC_CANCEL_RTC_DISABLE 0x00800000ul
|
||||
#define PDL_LPC_CANCEL_RTC_ENABLE 0x01000000ul
|
||||
#define PDL_LPC_CANCEL_USB_DISABLE 0x02000000ul
|
||||
#define PDL_LPC_CANCEL_USB_ENABLE 0x04000000ul
|
||||
|
||||
/* Software Standby waiting time */
|
||||
#define PDL_LPC_STANDBY_64 0x00000001ul
|
||||
#define PDL_LPC_STANDBY_512 0x00000002ul
|
||||
#define PDL_LPC_STANDBY_1024 0x00000004ul
|
||||
#define PDL_LPC_STANDBY_2048 0x00000008ul
|
||||
#define PDL_LPC_STANDBY_4096 0x00000010ul
|
||||
#define PDL_LPC_STANDBY_16384 0x00000020ul
|
||||
#define PDL_LPC_STANDBY_32768 0x00000040ul
|
||||
#define PDL_LPC_STANDBY_65536 0x00000080ul
|
||||
#define PDL_LPC_STANDBY_131072 0x00000100ul
|
||||
#define PDL_LPC_STANDBY_262144 0x00000200ul
|
||||
#define PDL_LPC_STANDBY_524288 0x00000400ul
|
||||
|
||||
/* Deep Software Standby waiting time */
|
||||
#define PDL_LPC_DEEP_STANDBY_64 0x00000800ul
|
||||
#define PDL_LPC_DEEP_STANDBY_512 0x00001000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_1024 0x00002000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_2048 0x00004000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_4096 0x00008000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_16384 0x00010000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_32768 0x00020000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_65536 0x00040000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_131072 0x00080000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_262144 0x00100000ul
|
||||
#define PDL_LPC_DEEP_STANDBY_524288 0x00200000ul
|
||||
|
||||
/* Error monitoring */
|
||||
#define PDL_LPC_MODE_SLEEP 0x0001u
|
||||
#define PDL_LPC_MODE_ALL_MODULE_CLOCK_STOP 0x0002u
|
||||
#define PDL_LPC_MODE_SOFTWARE_STANDBY 0x0004u
|
||||
#define PDL_LPC_MODE_DEEP_SOFTWARE_STANDBY 0x0008u
|
||||
|
||||
/* All-module clock stop cancellation modification */
|
||||
#define PDL_LPC_TMR_OFF 0x0010u
|
||||
#define PDL_LPC_TMR_UNIT_0 0x0020u
|
||||
#define PDL_LPC_TMR_UNIT_1 0x0040u
|
||||
#define PDL_LPC_TMR_BOTH 0x0080u
|
||||
|
||||
/* I/O port retention cancellation */
|
||||
#define PDL_LPC_IO_RELEASE 0x0100u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,81 @@
|
||||
/*""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 */
|
||||
@@ -0,0 +1,42 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Voltage detection circuit API for RX62Nxx
|
||||
* File Name : r_pdl_lvd.h
|
||||
* Version : 1.02
|
||||
* Contents : LVD 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_LVD_H
|
||||
#define R_PDL_LVD_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool LVD_Control(
|
||||
uint8_t
|
||||
);
|
||||
|
||||
/* LVD2 and LVD1 control */
|
||||
#define PDL_LVD_VDET2_DISABLE_VDET1_DISABLE 0x01u
|
||||
#define PDL_LVD_VDET2_DISABLE_VDET1_RESET 0x02u
|
||||
#define PDL_LVD_VDET2_DISABLE_VDET1_INTERRUPT 0x04u
|
||||
#define PDL_LVD_VDET2_RESET_VDET1_DISABLE 0x08u
|
||||
#define PDL_LVD_VDET2_INTERRUPT_VDET1_DISABLE 0x10u
|
||||
#define PDL_LVD_VDET2_INTERRUPT_VDET1_RESET 0x20u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,39 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Voltage detection circuit API for RX62Nxx
|
||||
* File Name : r_pdl_lvd_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : LVD 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_LVD_RX62Nxx_H
|
||||
#define R_PDL_LVD_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_LVD_ControlAll(
|
||||
const uint8_t
|
||||
);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_LVD_Control(a) \
|
||||
( \
|
||||
R_LVD_ControlAll( (a) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,45 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : MCU API for RX62Nxx
|
||||
* File Name : r_pdl_mcu.h
|
||||
* Version : 1.02
|
||||
* Contents : MCU 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_MCU_H
|
||||
#define R_PDL_MCU_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_MCU_Control(
|
||||
uint8_t
|
||||
);
|
||||
bool R_MCU_GetStatus(
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* On-chip ROM control */
|
||||
#define PDL_MCU_ROM_ENABLE 0x01u
|
||||
#define PDL_MCU_ROM_DISABLE 0x02u
|
||||
|
||||
/* On-chip RAM control */
|
||||
#define PDL_MCU_RAM_ENABLE 0x04u
|
||||
#define PDL_MCU_RAM_DISABLE 0x08u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,46 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : MCU API for RX62Nxx
|
||||
* File Name : r_pdl_mcu_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : MCU 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_MCU_RX62Nxx_H
|
||||
#define R_PDL_MCU_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_MCU_ControlAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_MCU_GetStatusAll(
|
||||
volatile uint16_t * const
|
||||
);
|
||||
|
||||
/* Macro definitions */
|
||||
#define R_MCU_Control(a) \
|
||||
( \
|
||||
R_MCU_ControlAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_MCU_GetStatus(a) \
|
||||
( \
|
||||
R_MCU_GetStatusAll( (a) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,187 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Multi-function Timer Pulse Unit API for RX62N
|
||||
* File Name : r_pdl_MTU2_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : MTU2 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_MTU2_RX62Nxx_H
|
||||
#define R_PDL_MTU2_RX62Nxx_H
|
||||
|
||||
#define MTU2_UNITS 2
|
||||
#define MTU2_CHANNELS_PER_UNIT 6
|
||||
#define MTU2_CHANNELS (uint8_t)(MTU2_UNITS * MTU2_CHANNELS_PER_UNIT)
|
||||
|
||||
/* Callback function storage */
|
||||
extern VoidCallBackFunc rpdl_MTU2_func1_callback_func[MTU2_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_MTU2_func2_callback_func[MTU2_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_MTU2_func3_callback_func[MTU2_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_MTU2_func4_callback_func[MTU2_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_MTU2_TGRE_callback_func[MTU2_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_MTU2_TGRF_callback_func[MTU2_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_MTU2_Overflow_callback_func[MTU2_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_MTU2_Underflow_callback_func[MTU2_CHANNELS];
|
||||
|
||||
typedef struct R_MTU2_Create_parameters
|
||||
{
|
||||
uint32_t data2;
|
||||
uint32_t data3;
|
||||
uint32_t data4;
|
||||
uint16_t data5;
|
||||
uint32_t data6;
|
||||
uint32_t data7;
|
||||
uint32_t data8;
|
||||
uint16_t data9;
|
||||
uint16_t data10;
|
||||
uint16_t data11;
|
||||
uint16_t data12;
|
||||
uint16_t data13;
|
||||
uint16_t data14;
|
||||
uint16_t data15;
|
||||
uint16_t data16;
|
||||
uint16_t data17;
|
||||
uint16_t data18;
|
||||
VoidCallBackFunc func1;
|
||||
VoidCallBackFunc func2;
|
||||
VoidCallBackFunc func3;
|
||||
VoidCallBackFunc func4;
|
||||
uint8_t data19;
|
||||
VoidCallBackFunc func5;
|
||||
VoidCallBackFunc func6;
|
||||
VoidCallBackFunc func7;
|
||||
VoidCallBackFunc func8;
|
||||
uint8_t data20;
|
||||
} R_MTU2_Create_structure;
|
||||
|
||||
typedef struct R_MTU2_ControlChannel_parameters
|
||||
{
|
||||
uint8_t data2;
|
||||
uint16_t data3;
|
||||
uint16_t data4;
|
||||
uint16_t data5;
|
||||
uint16_t data6;
|
||||
uint16_t data7;
|
||||
uint16_t data8;
|
||||
uint16_t data9;
|
||||
uint16_t data10;
|
||||
uint16_t data11;
|
||||
uint16_t data12;
|
||||
} R_MTU2_ControlChannel_structure;
|
||||
|
||||
typedef struct R_MTU2_ControlUnit_parameters
|
||||
{
|
||||
uint16_t data2;
|
||||
uint32_t data3;
|
||||
uint32_t data4;
|
||||
uint16_t data5;
|
||||
uint32_t data6;
|
||||
uint8_t data7;
|
||||
uint16_t data8;
|
||||
uint16_t data9;
|
||||
uint16_t data10;
|
||||
} R_MTU2_ControlUnit_structure;
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_MTU2_SetAll(
|
||||
const uint16_t
|
||||
);
|
||||
bool R_MTU2_CreateAll(
|
||||
const uint8_t,
|
||||
R_MTU2_Create_structure * const
|
||||
);
|
||||
bool R_MTU2_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_MTU2_ControlChannelAll(
|
||||
const uint8_t,
|
||||
R_MTU2_ControlChannel_structure * const
|
||||
);
|
||||
bool R_MTU2_ControlUnitAll(
|
||||
const uint8_t,
|
||||
R_MTU2_ControlUnit_structure * const
|
||||
);
|
||||
bool R_MTU2_ReadChannelAll(
|
||||
const uint8_t,
|
||||
volatile uint8_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool R_MTU2_ReadUnitAll(
|
||||
const uint8_t,
|
||||
volatile uint16_t * const,
|
||||
volatile uint8_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
void R_MTU2_Create_load_defaults(R_MTU2_Create_structure * const);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_MTU2_Set(a) \
|
||||
( \
|
||||
R_MTU2_SetAll( (a) ) \
|
||||
)
|
||||
|
||||
#define R_MTU2_Create(a, b) \
|
||||
( \
|
||||
( (a) < MTU2_CHANNELS ) ? \
|
||||
R_MTU2_CreateAll( (a), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_MTU2_ControlChannel(a, b) \
|
||||
( \
|
||||
( (a) < MTU2_CHANNELS ) ? \
|
||||
R_MTU2_ControlChannelAll( (a), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_MTU2_ControlUnit(a, b) \
|
||||
( \
|
||||
( (a) < MTU2_UNITS ) ? \
|
||||
R_MTU2_ControlUnitAll( (a), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_MTU2_ReadChannel(a, b, c, d, e, f, g, h, i) \
|
||||
( \
|
||||
( (a) < MTU2_CHANNELS ) ? \
|
||||
R_MTU2_ReadChannelAll( (a), (b), (c), (d), (e), (f), (g), (h), (i) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_MTU2_ReadUnit(a, b, c) \
|
||||
( \
|
||||
( (a) < MTU2_UNITS ) ? \
|
||||
R_MTU2_ReadUnitAll( (a), (b), (c) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_MTU2_Destroy(a) \
|
||||
( \
|
||||
( (a) < MTU2_UNITS ) ? \
|
||||
R_MTU2_DestroyAll( (a) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,74 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : PFC API
|
||||
* File Name : r_pdl_pfc.h
|
||||
* Version : 1.02
|
||||
* Contents : PFC API header
|
||||
* Customer :
|
||||
* Model :
|
||||
* Order :
|
||||
* CPU : RX
|
||||
* Compiler : RXC
|
||||
* OS :
|
||||
* 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_PFC_H
|
||||
#define R_PDL_PFC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_PFC_Read(
|
||||
uint8_t,
|
||||
uint8_t *
|
||||
);
|
||||
bool R_PFC_Write(
|
||||
uint8_t,
|
||||
uint8_t
|
||||
);
|
||||
bool R_PFC_Modify(
|
||||
uint8_t,
|
||||
uint8_t,
|
||||
uint8_t
|
||||
);
|
||||
|
||||
/* PFC register definitions */
|
||||
#define PDL_PFC_PF0CSE 0x00u
|
||||
#define PDL_PFC_PF1CSS 0x01u
|
||||
#define PDL_PFC_PF2CSS 0x02u
|
||||
#define PDL_PFC_PF3BUS 0x03u
|
||||
#define PDL_PFC_PF4BUS 0x04u
|
||||
#define PDL_PFC_PF5BUS 0x05u
|
||||
#define PDL_PFC_PF6BUS 0x06u
|
||||
#define PDL_PFC_PF7DMA 0x07u
|
||||
#define PDL_PFC_PF8IRQ 0x08u
|
||||
#define PDL_PFC_PF9IRQ 0x09u
|
||||
#define PDL_PFC_PFAADC 0x0Au
|
||||
#define PDL_PFC_PFBTMR 0x0Bu
|
||||
#define PDL_PFC_PFCMTU 0x0Cu
|
||||
#define PDL_PFC_PFDMTU 0x0Du
|
||||
#define PDL_PFC_PFENET 0x0Eu
|
||||
#define PDL_PFC_PFFSCI 0x0Fu
|
||||
#define PDL_PFC_PFGSPI 0x10u
|
||||
#define PDL_PFC_PFHSPI 0x11u
|
||||
#define PDL_PFC_PFJCAN 0x13u
|
||||
#define PDL_PFC_PFKUSB 0x14u
|
||||
#define PDL_PFC_PFLUSB 0x15u
|
||||
#define PDL_PFC_PFMPOE 0x16u
|
||||
#define PDL_PFC_PFNPOE 0x17u
|
||||
|
||||
/* Logical operations */
|
||||
#define PDL_PFC_AND 0x01u
|
||||
#define PDL_PFC_OR 0x02u
|
||||
#define PDL_PFC_XOR 0x04u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,72 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : PFC API for RX62Nxx
|
||||
* File Name : r_pdl_pfc_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : PFC 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_PFC_RX62Nxx_H
|
||||
#define R_PDL_PFC_RX62Nxx_H
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_PFC_ReadRegisterAll(
|
||||
const uint8_t,
|
||||
volatile uint8_t * const
|
||||
);
|
||||
bool R_PFC_WriteRegisterAll(
|
||||
const uint8_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_PFC_ModifyRegisterAll(
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
/* R_PFC_Read */
|
||||
/* Call the function if the PFC number is valid (0 to 9). */
|
||||
#define R_PFC_Read(a, b) \
|
||||
( \
|
||||
((a) <= PDL_PFC_PFNPOE) ? \
|
||||
R_PFC_ReadRegisterAll( (a), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
/* R_PFC_Write */
|
||||
/* Call the function if the PFC number is valid (0 to 9). */
|
||||
#define R_PFC_Write(a, b) \
|
||||
( \
|
||||
((a) <= PDL_PFC_PFNPOE) ? \
|
||||
R_PFC_WriteRegisterAll( (a), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
/* R_PFC_Modify */
|
||||
/* Call the function if the PFC number is valid (0 to 9). */
|
||||
#define R_PFC_Modify(a, b, c) \
|
||||
( \
|
||||
((a) <= PDL_PFC_PFNPOE) ? \
|
||||
R_PFC_ModifyRegisterAll( (a), (b), (c) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,178 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : POE API for RX62Nxx
|
||||
* File Name : r_pdl_poe.h
|
||||
* Version : 1.02
|
||||
* Contents : POE 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_POE_H
|
||||
#define R_PDL_POE_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_POE_Set(
|
||||
uint32_t,
|
||||
uint8_t,
|
||||
uint32_t
|
||||
);
|
||||
bool R_POE_Create(
|
||||
uint16_t,
|
||||
void *,
|
||||
void *,
|
||||
void *,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool POE_Control(
|
||||
uint8_t,
|
||||
uint16_t,
|
||||
uint16_t
|
||||
);
|
||||
bool R_POE_GetStatus(
|
||||
uint16_t *
|
||||
);
|
||||
|
||||
/* Pin selection */
|
||||
#define PDL_POE_PINS_0_TO_3 0x01u
|
||||
#define PDL_POE_PINS_4_TO_7 0x02u
|
||||
#define PDL_POE_PIN_8 0x04u
|
||||
#define PDL_POE_PIN_9 0x08u
|
||||
|
||||
/* Input pin detection */
|
||||
#define PDL_POE_0_MODE_EDGE 0x00000001ul
|
||||
#define PDL_POE_0_MODE_LOW_8 0x00000002ul
|
||||
#define PDL_POE_0_MODE_LOW_16 0x00000004ul
|
||||
#define PDL_POE_0_MODE_LOW_128 0x00000008ul
|
||||
|
||||
#define PDL_POE_1_MODE_EDGE 0x00000010ul
|
||||
#define PDL_POE_1_MODE_LOW_8 0x00000020ul
|
||||
#define PDL_POE_1_MODE_LOW_16 0x00000040ul
|
||||
#define PDL_POE_1_MODE_LOW_128 0x00000080ul
|
||||
|
||||
#define PDL_POE_2_MODE_EDGE 0x00000100ul
|
||||
#define PDL_POE_2_MODE_LOW_8 0x00000200ul
|
||||
#define PDL_POE_2_MODE_LOW_16 0x00000400ul
|
||||
#define PDL_POE_2_MODE_LOW_128 0x00000800ul
|
||||
|
||||
#define PDL_POE_3_MODE_EDGE 0x00001000ul
|
||||
#define PDL_POE_3_MODE_LOW_8 0x00002000ul
|
||||
#define PDL_POE_3_MODE_LOW_16 0x00004000ul
|
||||
#define PDL_POE_3_MODE_LOW_128 0x00008000ul
|
||||
|
||||
#define PDL_POE_4_MODE_EDGE 0x00010000ul
|
||||
#define PDL_POE_4_MODE_LOW_8 0x00020000ul
|
||||
#define PDL_POE_4_MODE_LOW_16 0x00040000ul
|
||||
#define PDL_POE_4_MODE_LOW_128 0x00080000ul
|
||||
|
||||
#define PDL_POE_5_MODE_EDGE 0x00100000ul
|
||||
#define PDL_POE_5_MODE_LOW_8 0x00200000ul
|
||||
#define PDL_POE_5_MODE_LOW_16 0x00400000ul
|
||||
#define PDL_POE_5_MODE_LOW_128 0x00800000ul
|
||||
|
||||
#define PDL_POE_6_MODE_EDGE 0x01000000ul
|
||||
#define PDL_POE_6_MODE_LOW_8 0x02000000ul
|
||||
#define PDL_POE_6_MODE_LOW_16 0x04000000ul
|
||||
#define PDL_POE_6_MODE_LOW_128 0x08000000ul
|
||||
|
||||
#define PDL_POE_7_MODE_EDGE 0x10000000ul
|
||||
#define PDL_POE_7_MODE_LOW_8 0x20000000ul
|
||||
#define PDL_POE_7_MODE_LOW_16 0x40000000ul
|
||||
#define PDL_POE_7_MODE_LOW_128 0x80000000ul
|
||||
|
||||
#define PDL_POE_8_MODE_EDGE 0x01u
|
||||
#define PDL_POE_8_MODE_LOW_8 0x02u
|
||||
#define PDL_POE_8_MODE_LOW_16 0x04u
|
||||
#define PDL_POE_8_MODE_LOW_128 0x08u
|
||||
|
||||
#define PDL_POE_9_MODE_EDGE 0x10u
|
||||
#define PDL_POE_9_MODE_LOW_8 0x20u
|
||||
#define PDL_POE_9_MODE_LOW_16 0x40u
|
||||
#define PDL_POE_9_MODE_LOW_128 0x80u
|
||||
|
||||
/* Pin output control */
|
||||
|
||||
/* High impedance request detection */
|
||||
#define PDL_POE_HI_Z_REQ_8_ENABLE 0x00000001ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC0A 0x00000002ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC0B 0x00000004ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC0C 0x00000008ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC0D 0x00000010ul
|
||||
|
||||
#define PDL_POE_HI_Z_REQ_9_ENABLE 0x00000020ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC6A 0x00000040ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC6B 0x00000080ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC6C 0x00000100ul
|
||||
#define PDL_POE_HI_Z_REQ_MTIOC6D 0x00000200ul
|
||||
|
||||
/* Output short detection */
|
||||
#define PDL_POE_SHORT_3_4_HI_Z 0x00000400ul
|
||||
#define PDL_POE_SHORT_MTIOC4BD_B 0x00000800ul
|
||||
#define PDL_POE_SHORT_MTIOC4AC_B 0x00001000ul
|
||||
#define PDL_POE_SHORT_MTIOC3BD_B 0x00002000ul
|
||||
#define PDL_POE_SHORT_MTIOC4BD_A 0x00004000ul
|
||||
#define PDL_POE_SHORT_MTIOC4AC_A 0x00008000ul
|
||||
#define PDL_POE_SHORT_MTIOC3BD_A 0x00010000ul
|
||||
|
||||
#define PDL_POE_SHORT_9_10_HI_Z 0x00020000ul
|
||||
#define PDL_POE_SHORT_MTIOC10BD 0x00040000ul
|
||||
#define PDL_POE_SHORT_MTIOC10AC 0x00080000ul
|
||||
#define PDL_POE_SHORT_MTIOC9BD 0x00100000ul
|
||||
|
||||
/* High impedance request response */
|
||||
#define PDL_POE_IRQ_HI_Z_0_3_DISABLE 0x0001u
|
||||
#define PDL_POE_IRQ_HI_Z_0_3_ENABLE 0x0002u
|
||||
#define PDL_POE_IRQ_HI_Z_4_7_DISABLE 0x0004u
|
||||
#define PDL_POE_IRQ_HI_Z_4_7_ENABLE 0x0008u
|
||||
#define PDL_POE_IRQ_HI_Z_8_DISABLE 0x0010u
|
||||
#define PDL_POE_IRQ_HI_Z_8_ENABLE 0x0020u
|
||||
#define PDL_POE_IRQ_HI_Z_9_DISABLE 0x0040u
|
||||
#define PDL_POE_IRQ_HI_Z_9_ENABLE 0x0080u
|
||||
|
||||
/* Output short detection response */
|
||||
#define PDL_POE_IRQ_SHORT_3_4_ENABLE 0x0100u
|
||||
#define PDL_POE_IRQ_SHORT_3_4_DISABLE 0x0200u
|
||||
#define PDL_POE_IRQ_SHORT_9_10_ENABLE 0x0400u
|
||||
#define PDL_POE_IRQ_SHORT_9_10_DISABLE 0x0800u
|
||||
|
||||
/* MTU channel high impedance control */
|
||||
#define PDL_POE_MTU3_MTU4_HI_Z_ON 0x01u
|
||||
#define PDL_POE_MTU3_MTU4_HI_Z_OFF 0x02u
|
||||
#define PDL_POE_MTU0_HI_Z_ON 0x04u
|
||||
#define PDL_POE_MTU0_HI_Z_OFF 0x08u
|
||||
#define PDL_POE_MTU9_MTU10_HI_Z_ON 0x10u
|
||||
#define PDL_POE_MTU9_MTU10_HI_Z_OFF 0x20u
|
||||
#define PDL_POE_MTU6_HI_Z_ON 0x40u
|
||||
#define PDL_POE_MTU6_HI_Z_OFF 0x80u
|
||||
|
||||
/* Event flag control */
|
||||
#define PDL_POE_FLAG_POE0_CLEAR 0x0001u
|
||||
#define PDL_POE_FLAG_POE1_CLEAR 0x0002u
|
||||
#define PDL_POE_FLAG_POE2_CLEAR 0x0004u
|
||||
#define PDL_POE_FLAG_POE3_CLEAR 0x0008u
|
||||
#define PDL_POE_FLAG_POE4_CLEAR 0x0010u
|
||||
#define PDL_POE_FLAG_POE5_CLEAR 0x0020u
|
||||
#define PDL_POE_FLAG_POE6_CLEAR 0x0040u
|
||||
#define PDL_POE_FLAG_POE7_CLEAR 0x0080u
|
||||
#define PDL_POE_FLAG_POE8_CLEAR 0x0100u
|
||||
#define PDL_POE_FLAG_POE9_CLEAR 0x0200u
|
||||
#define PDL_POE_FLAG_SHORT_3_4_CLEAR 0x0400u
|
||||
#define PDL_POE_FLAG_SHORT_9_10_CLEAR 0x0800u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,80 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : POE API for RX62Nxx
|
||||
* File Name : r_pdl_poe_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : POE 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_POE_RX62Nxx_H
|
||||
#define R_PDL_POE_RX62Nxx_H
|
||||
|
||||
#define POE_INTERRUPTS 4
|
||||
|
||||
/* Callback function storage */
|
||||
extern VoidCallBackFunc rpdl_POE_callback_func[];
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_POE_SetAll(
|
||||
const uint32_t,
|
||||
const uint8_t,
|
||||
const uint32_t
|
||||
);
|
||||
bool R_POE_CreateAll(
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_POE_ControlAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const uint16_t
|
||||
);
|
||||
bool R_POE_GetStatusAll(
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_POE_Set(a, b, c) \
|
||||
( \
|
||||
R_POE_SetAll( (a), (b), (c) ) \
|
||||
)
|
||||
|
||||
#define R_POE_Create(a, b, c, d, e, f) \
|
||||
( \
|
||||
( ((f) <= IPL_MAX) ) ? \
|
||||
R_POE_CreateAll( (a), (b), (c), (d), (e), (f) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_POE_Control(a, b, c) \
|
||||
( \
|
||||
R_POE_ControlAll( (a), (b), (c) ) \
|
||||
)
|
||||
|
||||
#define R_POE_GetStatus(a) \
|
||||
( \
|
||||
R_POE_GetStatusAll( (a) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,105 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : PPG API for RX62Nxx
|
||||
* File Name : r_pdl_PPG.h
|
||||
* Version : 1.02
|
||||
* Contents : PPG 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_PPG_H
|
||||
#define R_PDL_PPG_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_PPG_Create(
|
||||
uint32_t,
|
||||
uint16_t,
|
||||
uint8_t
|
||||
);
|
||||
bool R_PPG_Destroy(
|
||||
uint32_t
|
||||
);
|
||||
bool R_PPG_Control(
|
||||
uint32_t,
|
||||
uint8_t
|
||||
);
|
||||
|
||||
/* Output pin selection */
|
||||
#define PDL_PPG_PO0 (PDL_PPG_GROUP_0 | 0x01u)
|
||||
#define PDL_PPG_PO1 (PDL_PPG_GROUP_0 | 0x02u)
|
||||
#define PDL_PPG_PO2 (PDL_PPG_GROUP_0 | 0x04u)
|
||||
#define PDL_PPG_PO3 (PDL_PPG_GROUP_0 | 0x08u)
|
||||
#define PDL_PPG_PO4 (PDL_PPG_GROUP_1 | 0x10u)
|
||||
#define PDL_PPG_PO5 (PDL_PPG_GROUP_1 | 0x20u)
|
||||
#define PDL_PPG_PO6 (PDL_PPG_GROUP_1 | 0x40u)
|
||||
#define PDL_PPG_PO7 (PDL_PPG_GROUP_1 | 0x80u)
|
||||
#define PDL_PPG_PO8 (PDL_PPG_GROUP_2 | 0x01u)
|
||||
#define PDL_PPG_PO9 (PDL_PPG_GROUP_2 | 0x02u)
|
||||
#define PDL_PPG_PO10 (PDL_PPG_GROUP_2 | 0x04u)
|
||||
#define PDL_PPG_PO11 (PDL_PPG_GROUP_2 | 0x08u)
|
||||
#define PDL_PPG_PO12 (PDL_PPG_GROUP_3 | 0x10u)
|
||||
#define PDL_PPG_PO13 (PDL_PPG_GROUP_3 | 0x20u)
|
||||
#define PDL_PPG_PO14 (PDL_PPG_GROUP_3 | 0x40u)
|
||||
#define PDL_PPG_PO15 (PDL_PPG_GROUP_3 | 0x80u)
|
||||
#define PDL_PPG_PO16 (PDL_PPG_GROUP_4 | 0x01u)
|
||||
#define PDL_PPG_PO17 (PDL_PPG_GROUP_4 | 0x02u)
|
||||
#define PDL_PPG_PO18 (PDL_PPG_GROUP_4 | 0x04u)
|
||||
#define PDL_PPG_PO19 (PDL_PPG_GROUP_4 | 0x08u)
|
||||
#define PDL_PPG_PO20 (PDL_PPG_GROUP_5 | 0x10u)
|
||||
#define PDL_PPG_PO21 (PDL_PPG_GROUP_5 | 0x20u)
|
||||
#define PDL_PPG_PO22 (PDL_PPG_GROUP_5 | 0x40u)
|
||||
#define PDL_PPG_PO23 (PDL_PPG_GROUP_5 | 0x80u)
|
||||
#define PDL_PPG_PO24 (PDL_PPG_GROUP_6 | 0x01u)
|
||||
#define PDL_PPG_PO25 (PDL_PPG_GROUP_6 | 0x02u)
|
||||
#define PDL_PPG_PO26 (PDL_PPG_GROUP_6 | 0x04u)
|
||||
#define PDL_PPG_PO27 (PDL_PPG_GROUP_6 | 0x08u)
|
||||
#define PDL_PPG_PO28 (PDL_PPG_GROUP_7 | 0x10u)
|
||||
#define PDL_PPG_PO29 (PDL_PPG_GROUP_7 | 0x20u)
|
||||
#define PDL_PPG_PO30 (PDL_PPG_GROUP_7 | 0x40u)
|
||||
#define PDL_PPG_PO31 (PDL_PPG_GROUP_7 | 0x80u)
|
||||
|
||||
/* Output trigger selection */
|
||||
#define PDL_PPG_TRIGGER_MTU0 0x0001u
|
||||
#define PDL_PPG_TRIGGER_MTU1 0x0002u
|
||||
#define PDL_PPG_TRIGGER_MTU2 0x0004u
|
||||
#define PDL_PPG_TRIGGER_MTU3 0x0008u
|
||||
#define PDL_PPG_TRIGGER_MTU6 0x0010u
|
||||
#define PDL_PPG_TRIGGER_MTU7 0x0020u
|
||||
#define PDL_PPG_TRIGGER_MTU8 0x0040u
|
||||
#define PDL_PPG_TRIGGER_MTU9 0x0080u
|
||||
|
||||
/* Non-overlap control */
|
||||
#define PDL_PPG_NORMAL 0x0100u
|
||||
#define PDL_PPG_NON_OVERLAP 0x0200u
|
||||
|
||||
/* Invert control */
|
||||
#define PDL_PPG_DIRECT 0x0400u
|
||||
#define PDL_PPG_INVERT 0x0800u
|
||||
|
||||
/* Group selection */
|
||||
#define PDL_PPG_GROUP_0 0x00000100u
|
||||
#define PDL_PPG_GROUP_1 0x00110200u
|
||||
#define PDL_PPG_GROUP_2 0x00220400u
|
||||
#define PDL_PPG_GROUP_3 0x00330800u
|
||||
#define PDL_PPG_GROUP_4 0x01041000u
|
||||
#define PDL_PPG_GROUP_5 0x01152000u
|
||||
#define PDL_PPG_GROUP_6 0x01264000u
|
||||
#define PDL_PPG_GROUP_7 0x01378000u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,76 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : PPG API for RX62Nxx
|
||||
* File Name : r_pdl_ppg_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : PPG 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_PPG_RX62Nxx_H
|
||||
#define R_PDL_PPG_RX62Nxx_H
|
||||
|
||||
#define PPG_UNITS 2
|
||||
#define PPG_GROUPS_PER_UNIT 4
|
||||
#define PPG_GROUPS (uint8_t)(PPG_UNITS * PPG_GROUPS_PER_UNIT)
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_PPG_CreateAll(
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_PPG_DestroyAll(
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_PPG_ControlAll(
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_PPG_Create(a, b, c) \
|
||||
( \
|
||||
( (a) != 0x00000000u ) ? \
|
||||
R_PPG_CreateAll( (uint8_t)(((a) & 0x0F000000ul) >> 24), (uint8_t)(((a) & 0x00F00000ul) >> 20), (uint8_t)(((a) & 0x000F0000ul) >> 16), (uint8_t)(((a) & 0x0000FF00ul) >> 8), (uint8_t)(a), (b), (c) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_PPG_Destroy(a) \
|
||||
( \
|
||||
( (a) != 0x00000000u ) ? \
|
||||
R_PPG_DestroyAll( (uint8_t)(((a) & 0x0F000000ul) >> 24), (uint8_t)(((a) & 0x0000FF00ul) >> 8), (uint8_t)(a) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_PPG_Control(a, b ) \
|
||||
( \
|
||||
( (a) != 0x00u ) ? \
|
||||
R_PPG_ControlAll( (uint8_t)(((a) & 0x0F000000ul) >> 24), (uint8_t)(((a) & 0x0000FF00ul) >> 8), (b) ) : \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,136 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Real-time clock API for RX62Nxx
|
||||
* File Name : r_pdl_rtc.h
|
||||
* Version : 1.02
|
||||
* Contents : RTC function prototypes
|
||||
* Customer :
|
||||
* Model :
|
||||
* Order :
|
||||
* CPU : RX
|
||||
* Compiler : RXC
|
||||
* OS :
|
||||
* 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_RTC_H
|
||||
#define R_PDL_RTC_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_RTC_Create(
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
void *,
|
||||
uint8_t,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_RTC_Control(
|
||||
uint32_t,
|
||||
uint16_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint32_t,
|
||||
uint32_t
|
||||
);
|
||||
bool R_RTC_Read(
|
||||
uint8_t *,
|
||||
uint32_t *,
|
||||
uint32_t *
|
||||
);
|
||||
|
||||
/* Alarm control */
|
||||
#define PDL_RTC_ALARM_HOUR_DISABLE 0x00000001ul
|
||||
#define PDL_RTC_ALARM_HOUR_ENABLE 0x00000002ul
|
||||
#define PDL_RTC_ALARM_MINUTE_DISABLE 0x00000004ul
|
||||
#define PDL_RTC_ALARM_MINUTE_ENABLE 0x00000008ul
|
||||
#define PDL_RTC_ALARM_SECOND_DISABLE 0x00000010ul
|
||||
#define PDL_RTC_ALARM_SECOND_ENABLE 0x00000020ul
|
||||
#define PDL_RTC_ALARM_YEAR_DISABLE 0x00000040ul
|
||||
#define PDL_RTC_ALARM_YEAR_ENABLE 0x00000080ul
|
||||
#define PDL_RTC_ALARM_MONTH_DISABLE 0x00000100ul
|
||||
#define PDL_RTC_ALARM_MONTH_ENABLE 0x00000200ul
|
||||
#define PDL_RTC_ALARM_DAY_DISABLE 0x00000400ul
|
||||
#define PDL_RTC_ALARM_DAY_ENABLE 0x00000800ul
|
||||
#define PDL_RTC_ALARM_DOW_DISABLE 0x00001000ul
|
||||
#define PDL_RTC_ALARM_DOW_ENABLE 0x00002000ul
|
||||
|
||||
#define PDL_RTC_ALARM_TIME_DISABLE \
|
||||
(PDL_RTC_ALARM_HOUR_DISABLE | PDL_RTC_ALARM_MINUTE_DISABLE | PDL_RTC_ALARM_SECOND_DISABLE)
|
||||
#define PDL_RTC_ALARM_TIME_ENABLE \
|
||||
(PDL_RTC_ALARM_HOUR_ENABLE | PDL_RTC_ALARM_MINUTE_ENABLE | PDL_RTC_ALARM_SECOND_ENABLE)
|
||||
#define PDL_RTC_ALARM_DATE_DISABLE \
|
||||
(PDL_RTC_ALARM_YEAR_DISABLE | PDL_RTC_ALARM_MONTH_DISABLE | \
|
||||
PDL_RTC_ALARM_DAY_DISABLE | PDL_RTC_ALARM_DOW_DISABLE)
|
||||
#define PDL_RTC_ALARM_DATE_ENABLE \
|
||||
(PDL_RTC_ALARM_YEAR_ENABLE | PDL_RTC_ALARM_MONTH_ENABLE | \
|
||||
PDL_RTC_ALARM_DAY_ENABLE | PDL_RTC_ALARM_DOW_ENABLE)
|
||||
|
||||
/* Periodic interrupt selection */
|
||||
#define PDL_RTC_PERIODIC_DISABLE 0x00004000ul
|
||||
#define PDL_RTC_PERIODIC_256_HZ 0x00008000ul
|
||||
#define PDL_RTC_PERIODIC_64_HZ 0x00010000ul
|
||||
#define PDL_RTC_PERIODIC_16_HZ 0x00020000ul
|
||||
#define PDL_RTC_PERIODIC_4_HZ 0x00040000ul
|
||||
#define PDL_RTC_PERIODIC_2_HZ 0x00080000ul
|
||||
#define PDL_RTC_PERIODIC_1_HZ 0x00100000ul
|
||||
#define PDL_RTC_PERIODIC_2S 0x00200000ul
|
||||
|
||||
/* Clock output control */
|
||||
#define PDL_RTC_OUTPUT_DISABLE 0x00400000ul
|
||||
#define PDL_RTC_OUTPUT_ENABLE 0x00800000ul
|
||||
|
||||
/* Clock control */
|
||||
#define PDL_RTC_CLOCK_STOP 0x01000000ul
|
||||
#define PDL_RTC_CLOCK_START 0x02000000ul
|
||||
|
||||
/* 30-second adjustment control */
|
||||
#define PDL_RTC_ADJUST_START 0x04000000ul
|
||||
|
||||
/* Reset control */
|
||||
#define PDL_RTC_RESET_START 0x08000000ul
|
||||
|
||||
/* Current time counter selection */
|
||||
#define PDL_RTC_UPDATE_CURRENT_HOUR 0x0001u
|
||||
#define PDL_RTC_UPDATE_CURRENT_MINUTE 0x0002u
|
||||
#define PDL_RTC_UPDATE_CURRENT_SECOND 0x0004u
|
||||
#define PDL_RTC_UPDATE_CURRENT_TIME \
|
||||
(PDL_RTC_UPDATE_CURRENT_HOUR | PDL_RTC_UPDATE_CURRENT_MINUTE | PDL_RTC_UPDATE_CURRENT_SECOND)
|
||||
|
||||
/* Current date counter selection */
|
||||
#define PDL_RTC_UPDATE_CURRENT_YEAR 0x0008u
|
||||
#define PDL_RTC_UPDATE_CURRENT_MONTH 0x0010u
|
||||
#define PDL_RTC_UPDATE_CURRENT_DAY 0x0020u
|
||||
#define PDL_RTC_UPDATE_CURRENT_DOW 0x0040u
|
||||
#define PDL_RTC_UPDATE_CURRENT_DATE \
|
||||
(PDL_RTC_UPDATE_CURRENT_YEAR | PDL_RTC_UPDATE_CURRENT_MONTH | PDL_RTC_UPDATE_CURRENT_DAY | PDL_RTC_UPDATE_CURRENT_DOW)
|
||||
|
||||
/* Alarm time counter selection */
|
||||
#define PDL_RTC_UPDATE_ALARM_HOUR 0x0080u
|
||||
#define PDL_RTC_UPDATE_ALARM_MINUTE 0x0100u
|
||||
#define PDL_RTC_UPDATE_ALARM_SECOND 0x0200u
|
||||
#define PDL_RTC_UPDATE_ALARM_TIME \
|
||||
(PDL_RTC_UPDATE_ALARM_HOUR | PDL_RTC_UPDATE_ALARM_MINUTE | PDL_RTC_UPDATE_ALARM_SECOND)
|
||||
|
||||
/* Alarm date counter selection */
|
||||
#define PDL_RTC_UPDATE_ALARM_YEAR 0x0400u
|
||||
#define PDL_RTC_UPDATE_ALARM_MONTH 0x0800u
|
||||
#define PDL_RTC_UPDATE_ALARM_DAY 0x1000u
|
||||
#define PDL_RTC_UPDATE_ALARM_DOW 0x2000u
|
||||
#define PDL_RTC_UPDATE_ALARM_DATE \
|
||||
(PDL_RTC_UPDATE_ALARM_YEAR | PDL_RTC_UPDATE_ALARM_MONTH | PDL_RTC_UPDATE_ALARM_DAY | PDL_RTC_UPDATE_ALARM_DOW)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,76 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Real-time clock API for RX62Nxx
|
||||
* File Name : r_pdl_rtc_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : RTC 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_RTC_RX62Nxx_H
|
||||
#define R_PDL_RTC_RX62Nxx_H
|
||||
|
||||
extern VoidCallBackFunc rpdl_RTC_Periodic_callback_func;
|
||||
extern VoidCallBackFunc rpdl_RTC_Alarm_callback_func;
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_RTC_CreateAll(
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_RTC_ControlAll(
|
||||
const uint32_t,
|
||||
const uint16_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t
|
||||
);
|
||||
bool R_RTC_ReadAll(
|
||||
volatile uint8_t * const,
|
||||
volatile uint32_t * const,
|
||||
volatile uint32_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
|
||||
#define R_RTC_Create(a, b, c, d, e, f, g, h, i) \
|
||||
( \
|
||||
( ((g) <= IPL_MAX) && ((i) <= IPL_MAX) ) ? \
|
||||
R_RTC_CreateAll( (a), (b), (c), (d), (e), (f), (g), (h), (i) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_RTC_Control(a, b, c, d, e, f) \
|
||||
( \
|
||||
R_RTC_ControlAll( (a), (b), (c), (d), (e), (f) ) \
|
||||
)
|
||||
|
||||
#define R_RTC_Read(a, b, c) \
|
||||
( \
|
||||
R_RTC_ReadAll( (a), (b), (c) ) \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,178 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Serial Communication Interface API for RX62Nxx
|
||||
* File Name : r_pdl_sci_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : Serial Interface 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_SCI_RX62Nxx_H
|
||||
#define R_PDL_SCI_RX62Nxx_H
|
||||
|
||||
#define SCI_CHANNELS 7
|
||||
|
||||
/* Globals */
|
||||
extern volatile const uint8_t * rpdl_SCI_tx_string_pointer[SCI_CHANNELS];
|
||||
extern volatile uint8_t * rpdl_SCI_rx_string_pointer[SCI_CHANNELS];
|
||||
extern volatile uint8_t * rpdl_SCI_rx_string_start[SCI_CHANNELS];
|
||||
extern volatile uint16_t rpdl_SCI_rx_counter[SCI_CHANNELS];
|
||||
extern volatile uint16_t rpdl_SCI_tx_counter[SCI_CHANNELS];
|
||||
extern volatile uint16_t rpdl_SCI_rx_threshold[SCI_CHANNELS];
|
||||
extern volatile uint16_t rpdl_SCI_tx_threshold[SCI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SCI_tx_using_irq[SCI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SCI_rx_using_irq[SCI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SCI_sync_simultaneous[SCI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SCI_MP_mode[SCI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SCI_MP_rx_stationID[SCI_CHANNELS];
|
||||
|
||||
/* Callback function prototypes */
|
||||
extern VoidCallBackFunc rpdl_SCI_TX_End_callback_func[SCI_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_SCI_RX_End_callback_func[SCI_CHANNELS];
|
||||
extern VoidCallBackFunc rpdl_SCI_RX_Error_callback_func[SCI_CHANNELS];
|
||||
|
||||
/* Library prototypes */
|
||||
bool R_SCI_SetAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SCI_CreateAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SCI_CreateAsyncAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SCI_CreateSyncAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SCI_CreateSmartAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SCI_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SCI_SendAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
volatile const uint8_t * const,
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const
|
||||
);
|
||||
bool R_SCI_SendStationID(
|
||||
const uint8_t,
|
||||
const uint16_t
|
||||
);
|
||||
bool R_SCI_SendData(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
volatile const uint8_t * const,
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const
|
||||
);
|
||||
bool R_SCI_ReceiveAll(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
volatile uint8_t * const,
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const
|
||||
);
|
||||
bool R_SCI_ReceiveStationID(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const
|
||||
);
|
||||
bool R_SCI_ReceiveData(
|
||||
const uint8_t,
|
||||
const uint16_t,
|
||||
volatile uint8_t * const,
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const,
|
||||
VoidCallBackFunc const
|
||||
);
|
||||
bool R_SCI_ControlAll(
|
||||
const uint8_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SCI_GetStatusAll(
|
||||
const uint8_t,
|
||||
volatile uint8_t * const,
|
||||
volatile uint8_t * const,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
#define R_SCI_Set(a) \
|
||||
( R_SCI_SetAll( (a) ) )
|
||||
|
||||
#define R_SCI_Create(a, b, c, d) \
|
||||
( \
|
||||
( ((a) >= SCI_CHANNELS) || ((a) == 4) || ((c) == 0) || ((d) > IPL_MAX) )? \
|
||||
ReturnFalse(): \
|
||||
R_SCI_CreateAll( (a), (b), (c), (d) )\
|
||||
)
|
||||
|
||||
#define R_SCI_Destroy(a) \
|
||||
( \
|
||||
(((a) < SCI_CHANNELS) && ((a) != 4)) ? \
|
||||
R_SCI_DestroyAll( (a) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SCI_Send(a, b, c, d, e) \
|
||||
( \
|
||||
(((a) < SCI_CHANNELS) && ((a) != 4)) ? \
|
||||
R_SCI_SendAll( (a), (b), (c), (d), (e) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SCI_Receive(a, b, c, d, e, f) \
|
||||
( \
|
||||
(((a) < SCI_CHANNELS) && ((a) != 4)) ? \
|
||||
R_SCI_ReceiveAll( (a), (b), (c), (d), (e), (f) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SCI_Control(a, b) \
|
||||
( \
|
||||
(((a) < SCI_CHANNELS) && ((a) != 4)) ? \
|
||||
R_SCI_ControlAll( (a), (b) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SCI_GetStatus(a, b, c, d, e) \
|
||||
( \
|
||||
(((a) < SCI_CHANNELS) && ((a) != 4)) ? \
|
||||
R_SCI_GetStatusAll( (a), (b), (c), (d), (e) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,131 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : Serial Peripheral Interface API for RX62Nxx
|
||||
* File Name : r_pdl_spi_RX62Nxx.h
|
||||
* Version : 1.02
|
||||
* Contents : SPI 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_SPI_RX62Nxx_H
|
||||
#define R_PDL_SPI_RX62Nxx_H
|
||||
|
||||
#define SPI_CHANNELS 2
|
||||
#define SPI_COMMANDS 8
|
||||
|
||||
/* Globals */
|
||||
extern volatile uint8_t rpdl_SPI_method[SPI_CHANNELS];
|
||||
extern volatile uint16_t rpdl_SPI_sequence_count[SPI_CHANNELS];
|
||||
extern volatile uint16_t rpdl_SPI_tx_sequence_counter[SPI_CHANNELS];
|
||||
extern volatile uint16_t rpdl_SPI_rx_sequence_counter[SPI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SPI_tx_frame_counter[SPI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SPI_frame_total[SPI_CHANNELS];
|
||||
extern volatile uint8_t rpdl_SPI_rx_frame_counter[SPI_CHANNELS];
|
||||
extern volatile const uint32_t * rpdl_SPI_tx_ptr[SPI_CHANNELS];
|
||||
extern volatile uint32_t * rpdl_SPI_rx_ptr[SPI_CHANNELS];
|
||||
|
||||
/* Callback function prototypes */
|
||||
extern VoidCallBackFunc rpdl_SPI_callback_func[SPI_CHANNELS];
|
||||
|
||||
/* Request trigger options */
|
||||
typedef enum {
|
||||
SPI_USING_POLLING,
|
||||
SPI_USING_IRQ,
|
||||
SPI_USING_DMAC_DTC
|
||||
} rpdl_spi_transfer_options;
|
||||
|
||||
bool R_SPI_CreateAll(
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t,
|
||||
const uint32_t
|
||||
);
|
||||
bool R_SPI_DestroyAll(
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SPI_CommandAll(
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint32_t,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SPI_TransferAll(
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
volatile const uint32_t * const,
|
||||
volatile uint32_t * const,
|
||||
const uint16_t,
|
||||
VoidCallBackFunc const,
|
||||
const uint8_t
|
||||
);
|
||||
bool R_SPI_ControlAll(
|
||||
const uint8_t,
|
||||
const uint8_t,
|
||||
const uint32_t
|
||||
);
|
||||
bool R_SPI_GetStatusAll(
|
||||
const uint8_t,
|
||||
volatile uint16_t * const,
|
||||
volatile uint16_t * const
|
||||
);
|
||||
bool ReturnFalse(void);
|
||||
|
||||
/* Macro definitions */
|
||||
#define R_SPI_Create(a, b, c, d, e) \
|
||||
( \
|
||||
( (a) < SPI_CHANNELS) ? \
|
||||
R_SPI_CreateAll( (a), (b), (c), (d), (e) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SPI_Destroy(a) \
|
||||
( \
|
||||
( (a) < SPI_CHANNELS) ? \
|
||||
R_SPI_DestroyAll( (a) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SPI_Command(a, b, c, d) \
|
||||
( \
|
||||
( ( ((a) < SPI_CHANNELS) && ((b) < SPI_COMMANDS) ) ) ? \
|
||||
R_SPI_CommandAll( (a), (b), (c), (d) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SPI_Transfer(a, b, c, d, e, f, g) \
|
||||
( \
|
||||
( ( ((a) < SPI_CHANNELS) && ((g) <= IPL_MAX) ) ) ? \
|
||||
R_SPI_TransferAll( (a), (b), (c), (d), (e), (f), (g) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SPI_Control(a, b, c) \
|
||||
( \
|
||||
( (a) < SPI_CHANNELS) ? \
|
||||
R_SPI_ControlAll( (a), (b), (c) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#define R_SPI_GetStatus(a, b, c) \
|
||||
( \
|
||||
( (a) < SPI_CHANNELS) ? \
|
||||
R_SPI_GetStatusAll( (a), (b), (c) ): \
|
||||
ReturnFalse() \
|
||||
)
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : RPDL driver API
|
||||
* File Name : r_pdl_user_definitions.h
|
||||
* Contents : User-modifiable definitions
|
||||
*""FILE COMMENT END""**************************************************/
|
||||
|
||||
#ifndef R_PDL_USER_DEFS_H
|
||||
#define R_PDL_USER_DEFS_H
|
||||
|
||||
/* The vector number to be used with fast interrupt processing */
|
||||
#define FAST_INTC_VECTOR 0
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,60 @@
|
||||
/*""FILE COMMENT""*******************************************************
|
||||
* System Name : WDT API for RX62Nxx
|
||||
* File Name : r_pdl_wdt.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_H
|
||||
#define R_PDL_WDT_H
|
||||
|
||||
#include "r_pdl_common_defs_RX62Nxx.h"
|
||||
|
||||
/* Function prototypes */
|
||||
bool R_WDT_Create(
|
||||
uint16_t,
|
||||
void *,
|
||||
uint8_t
|
||||
);
|
||||
bool R_WDT_Control(
|
||||
uint8_t
|
||||
);
|
||||
bool R_WDT_Read(
|
||||
uint8_t *
|
||||
);
|
||||
|
||||
/* Calculation selection */
|
||||
#define PDL_WDT_PCLK_DIV_4 0x0001u
|
||||
#define PDL_WDT_PCLK_DIV_64 0x0002u
|
||||
#define PDL_WDT_PCLK_DIV_128 0x0004u
|
||||
#define PDL_WDT_PCLK_DIV_512 0x0008u
|
||||
#define PDL_WDT_PCLK_DIV_2048 0x0010u
|
||||
#define PDL_WDT_PCLK_DIV_8192 0x0020u
|
||||
#define PDL_WDT_PCLK_DIV_32768 0x0040u
|
||||
#define PDL_WDT_PCLK_DIV_131072 0x0080u
|
||||
|
||||
/* MCU reset control */
|
||||
#define PDL_WDT_RESET_DISABLE 0x0100u
|
||||
#define PDL_WDT_RESET_ENABLE 0x0200u
|
||||
|
||||
/* Timer counter control */
|
||||
#define PDL_WDT_STOP 0x01u
|
||||
#define PDL_WDT_RESET_COUNTER 0x02u
|
||||
|
||||
#endif
|
||||
/* End of file */
|
||||
@@ -0,0 +1,63 @@
|
||||
/*""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 */
|
||||
@@ -0,0 +1,5 @@
|
||||
board:Renesas YRDKRX62N
|
||||
chip: R5F562N8BDFP RX62N8
|
||||
Tool: IAR Embedded Workbench for Renesas RX 2.60.5
|
||||
IAR Embedded Workbench common components 7.0.6.3257
|
||||
(30-day limited)
|
||||
@@ -0,0 +1,11 @@
|
||||
Import('RTT_ROOT')
|
||||
Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
cwd = os.path.join(str(Dir('#')), 'applications')
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd, str(Dir('#'))]
|
||||
|
||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* File : startup.c
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006, RT-Thread Develop Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://openlab.rt-thread.com/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2006-08-31 Bernard first implementation
|
||||
*/
|
||||
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
#include "board.h"
|
||||
#include "intrinsics.h"
|
||||
/**
|
||||
* @addtogroup rx62n
|
||||
*/
|
||||
|
||||
/*@{*/
|
||||
|
||||
extern int rt_application_init(void);
|
||||
|
||||
|
||||
#pragma section="HEAP"
|
||||
|
||||
/*******************************************************************************
|
||||
* Function Name : assert_failed
|
||||
* Description : Reports the name of the source file and the source line number
|
||||
* where the assert error has occurred.
|
||||
* Input : - file: pointer to the source file name
|
||||
* - line: assert error line source number
|
||||
* Output : None
|
||||
* Return : None
|
||||
*******************************************************************************/
|
||||
void assert_failed(unsigned char * file, unsigned long line)
|
||||
{
|
||||
rt_kprintf("\n\r Wrong parameter value detected on\r\n");
|
||||
rt_kprintf(" file %s\r\n", file);
|
||||
rt_kprintf(" line %d\r\n", line);
|
||||
|
||||
while (1) ;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will startup RT-Thread RTOS.
|
||||
*/
|
||||
void rtthread_startup(void)
|
||||
{
|
||||
/* init board */
|
||||
rt_hw_board_init();
|
||||
#ifdef RT_USING_CONSOLE
|
||||
/* show version */
|
||||
rt_show_version();
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_HEAP
|
||||
|
||||
rt_system_heap_init(__segment_end("HEAP"), (void*)RX62N_SRAM_END);
|
||||
|
||||
#endif /* RT_USING_HEAP */
|
||||
|
||||
/* init scheduler system */
|
||||
rt_system_scheduler_init();
|
||||
|
||||
/* initialize timer */
|
||||
rt_system_timer_init();
|
||||
|
||||
/* init timer thread */
|
||||
rt_system_timer_thread_init();
|
||||
|
||||
/* init application */
|
||||
rt_application_init();
|
||||
|
||||
/* init idle thread */
|
||||
rt_thread_idle_init();
|
||||
|
||||
/* start scheduler */
|
||||
rt_system_scheduler_start();
|
||||
|
||||
/* never reach here */
|
||||
return ;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
rt_hw_system_freq_init();
|
||||
|
||||
__enable_interrupt();
|
||||
/* disable interrupt first */
|
||||
rt_hw_interrupt_disable();
|
||||
|
||||
/* startup RT-Thread RTOS */
|
||||
rtthread_startup();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*@}*/
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
#ifndef __UART_H__
|
||||
#define __UART_H__
|
||||
|
||||
void rt_hw_uart_init(void);
|
||||
#endif /* UART_H_ */
|
||||
@@ -0,0 +1,96 @@
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
#include "board.h"
|
||||
#include "uart.h"
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "r_pdl_cgc.h"
|
||||
/* General RPDL function definitions */
|
||||
#include "r_pdl_definitions.h"
|
||||
#include "intrinsics.h"
|
||||
#include "iorx62n.h"
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This is the timer interrupt service routine.
|
||||
*
|
||||
*/
|
||||
#pragma vector = VECT_CMT0_CMI0
|
||||
__interrupt
|
||||
void SysTick_Handler(void)
|
||||
{
|
||||
// __enable_interrupt();
|
||||
/* enter interrupt */
|
||||
rt_interrupt_enter();
|
||||
|
||||
rt_tick_increase();
|
||||
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
|
||||
void rt_hw_systick_init(void)
|
||||
{
|
||||
/* Enable compare match timer 0. */
|
||||
MSTP( CMT0 ) = 0;
|
||||
|
||||
/* Interrupt on compare match. */
|
||||
CMT0.CMCR.BIT.CMIE = 1;
|
||||
|
||||
/* Set the compare match value. */
|
||||
CMT0.CMCOR = ( unsigned short ) (((XTAL_FREQUENCY * PCLK_MUL) / RT_TICK_PER_SECOND)/8 -1);
|
||||
|
||||
/* Divide the PCLK by 128. */
|
||||
CMT0.CMCR.BIT.CKS = 0;
|
||||
|
||||
/* Enable the interrupt... */
|
||||
_IEN( _CMT0_CMI0 ) = 1;
|
||||
|
||||
/* ...and set its priority to the application defined kernel priority. */
|
||||
_IPR( _CMT0_CMI0 ) = 4;
|
||||
|
||||
/* Start the timer. */
|
||||
CMT.CMSTR0.BIT.STR0 = 1;
|
||||
}
|
||||
|
||||
void rt_hw_system_freq_init(void)
|
||||
{
|
||||
/* Declare error flag */
|
||||
bool err = true;
|
||||
|
||||
/* Modify the MCU clocks, all are based off Epson 12 MHz clock */
|
||||
err &= R_CGC_Set
|
||||
(
|
||||
12E6,
|
||||
96E6,
|
||||
48E6,
|
||||
24E6,
|
||||
PDL_NO_DATA
|
||||
);
|
||||
/*
|
||||
Clock Description Frequency
|
||||
----------------------------------------
|
||||
Input Clock Frequency..............12MHz
|
||||
Internal Clock Frequency...........96MHz
|
||||
Peripheral Clock Frequency.........48MHz
|
||||
External Bus Clock Frequency.......24MHz */
|
||||
|
||||
/* Halt in while loop when RPDL errors detected */
|
||||
while (!err);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will initial rx62n board
|
||||
*/
|
||||
void rt_hw_board_init()
|
||||
{
|
||||
|
||||
rt_hw_system_freq_init();
|
||||
rt_hw_systick_init();
|
||||
rt_hw_uart_init();
|
||||
#ifdef RT_USING_CONSOLE
|
||||
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||
#endif
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef __BOARD_H__
|
||||
#define __BOARD_H__
|
||||
|
||||
|
||||
#define XTAL_FREQUENCY (12000000L)
|
||||
#define ICLK_MUL (8)
|
||||
#define PCLK_MUL (4)
|
||||
#define BCLK_MUL (2)
|
||||
|
||||
#define RX62N_SRAM_END 0x0000ffff
|
||||
|
||||
#define RT_USING_UART2
|
||||
|
||||
void rt_hw_board_init(void);
|
||||
void rt_hw_system_freq_init(void);
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,51 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// ILINK command file template for the Renesas RX microcontroller R5F562N8
|
||||
//-----------------------------------------------------------------------------
|
||||
define memory mem with size = 4G;
|
||||
|
||||
define region ROM_region16 = mem:[from 0xFFFF8000 to 0xFFFFFFFF];
|
||||
define region RAM_region16 = mem:[from 0x00000004 to 0x00007FFF];
|
||||
define region ROM_region24 = mem:[from 0xFFF80000 to 0xFFFFFFFF];
|
||||
define region RAM_region24 = mem:[from 0x00000004 to 0x00017FFF];
|
||||
define region ROM_region32 = mem:[from 0xFFF80000 to 0xFFFFFFFF];
|
||||
define region RAM_region32 = mem:[from 0x00000004 to 0x00017FFF];
|
||||
define region DATA_FLASH_region = mem:[from 0x00100000 to 0x00107FFF];
|
||||
|
||||
initialize by copy { rw, ro section D, ro section D_1, ro section D_2 };
|
||||
initialize by copy with packing = none { section __DLIB_PERTHREAD };
|
||||
do not initialize { section .*.noinit };
|
||||
|
||||
define block HEAP with alignment = 4, size = _HEAP_SIZE { };
|
||||
define block USTACK with alignment = 4, size = _USTACK_SIZE { };
|
||||
define block ISTACK with alignment = 4, size = _ISTACK_SIZE { };
|
||||
|
||||
define block STACKS with fixed order { block ISTACK,
|
||||
block USTACK };
|
||||
keep { section FSymTab };
|
||||
keep { section VSymTab };
|
||||
keep { section .rti_fn* };
|
||||
place at address mem:0xFFFFFF80 { ro section .nmivec };
|
||||
|
||||
"ROM16":place in ROM_region16 { ro section .code16*,
|
||||
ro section .data16* };
|
||||
"RAM16":place in RAM_region16 { rw section .data16*,
|
||||
rw section __DLIB_PERTHREAD };
|
||||
"ROM24":place in ROM_region24 { ro section .code24*,
|
||||
ro section .data24* };
|
||||
"RAM24":place in RAM_region24 { rw section .data24* };
|
||||
"ROM32":place in ROM_region32 { ro,
|
||||
ro section FSymTab,
|
||||
ro section VSymTab,
|
||||
ro section .rti_fn*,
|
||||
};
|
||||
"RAM32":place in RAM_region32 { rw,
|
||||
ro section D,
|
||||
ro section D_1,
|
||||
ro section D_2,
|
||||
block STACKS,
|
||||
block HEAP,
|
||||
};
|
||||
|
||||
"DATAFLASH":place in DATA_FLASH_region
|
||||
{ ro section .dataflash* };
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE Workspace SYSTEM "http://www.slickedit.com/dtd/vse/10.0/vpw.dtd">
|
||||
<Workspace Version="10.0" VendorName="SlickEdit">
|
||||
<Projects>
|
||||
<Project File="project.vpj"/>
|
||||
</Projects>
|
||||
</Workspace>
|
||||
@@ -0,0 +1,150 @@
|
||||
[Global]
|
||||
CurrentProject=project.vpj
|
||||
[ProjectDates]
|
||||
project.vpj=20141105163139555
|
||||
[ActiveConfig]
|
||||
project.vpj=Debug
|
||||
[TreeExpansion2]
|
||||
-@ project.vpj
|
||||
+ applications
|
||||
+ ..\..\components
|
||||
- drivers
|
||||
- include
|
||||
- drivers
|
||||
+ serial
|
||||
+ finsh
|
||||
+ drivers
|
||||
+ ..\..\include
|
||||
- ..\..\libcpu
|
||||
- rx
|
||||
+ RPDL
|
||||
+ ..\..\src
|
||||
- E:\
|
||||
- ForTest
|
||||
- iar_rx
|
||||
- rx
|
||||
- inc
|
||||
scroll:0
|
||||
[State]
|
||||
SCREEN: 1366 768 97 52 1172 625 0 0 M 0 0 0 0 935 334 0
|
||||
CWD: ..\rx
|
||||
BUFFER: BN="..\..\include\rthw.h"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.3072 CL=1 LE=0 CX=1 CY=15 WI=5 BI=26 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="rtconfig.h"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.1899 CL=32 LE=0 CX=32 CY=27 WI=5 BI=25 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\src\kservice.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.24196 CL=31 LE=0 CX=31 CY=15 WI=5 BI=23 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="E:\ForTest\iar_rx\rx\inc\iorx62n.h"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.0 CL=1 LE=0 CX=1 CY=0 WI=5 BI=22 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="RPDL\r_pdl_sci.h"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.2631 CL=29 LE=0 CX=29 CY=14 WI=5 BI=21 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="RPDL\interrupt_sci.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.13015 CL=6 LE=0 CX=6 CY=13 WI=5 BI=20 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\components\finsh\shell.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.738 CL=49 LE=0 CX=49 CY=13 WI=5 BI=19 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\components\drivers\include\drivers\serial.h"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.5705 CL=1 LE=0 CX=1 CY=20 WI=5 BI=18 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="RPDL\Interrupt_INTC.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.13438 CL=2 LE=0 CX=2 CY=2 WI=5 BI=16 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="drivers\board.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.1997 CL=4 LE=0 CX=4 CY=10 WI=5 BI=15 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\libcpu\rx\context_iar.S"
|
||||
BI: MA=1 72 1 TABS=10 16 36 72 73 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=IBM HLASM HM=0 MF=52428896 TL=72 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.3626 CL=9 LE=0 CX=9 CY=7 WI=5 BI=14 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\libcpu\rx\cpuport.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=118620768 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.5430 CL=1 LE=0 CX=1 CY=10 WI=5 BI=4 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\components\finsh\finsh.h"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.5625 CL=70 LE=0 CX=70 CY=6 WI=5 BI=28 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\src\scheduler.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.12003 CL=13 LE=0 CX=13 CY=25 WI=5 BI=27 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="applications\startup.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.2126 CL=2 LE=0 CX=2 CY=24 WI=5 BI=24 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="drivers\uart.c"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=33554432 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=0 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.12260 CL=1 LE=0 CX=1 CY=21 WI=5 BI=17 HT=0 HN=0 HF=0 HC=4
|
||||
BUFFER: BN="..\..\libcpu\rx\cpuconfig.h"
|
||||
BI: MA=1 74 1 TABS=1 5 WWS=1 IWT=0 ST=8 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C/C++ HM=0 MF=120783456 TL=0 MLL=0 ASE=0 LNL=1 LCF=6 CAPS=0 E=0 ESBU2=1 CL="" SC="" SCE= SCU=
|
||||
VIEW: LN=.0 CL=1 LE=0 CX=1 CY=0 WI=5 BI=29 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=9 ",,," DID=0
|
||||
BUFFER: BN="applications\startup.c"
|
||||
VIEW: LN=.2126 CL=2 LE=0 CX=7 CY=24 WI=157 BI=24 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=8 ",,," DID=0
|
||||
BUFFER: BN="..\..\src\scheduler.c"
|
||||
VIEW: LN=.12003 CL=13 LE=0 CX=18 CY=25 WI=155 BI=27 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 351 0 0 N WF=0 WT=11 ",,," DID=0
|
||||
BUFFER: BN="..\..\components\finsh\finsh.h"
|
||||
VIEW: LN=.5625 CL=70 LE=0 CX=75 CY=6 WI=153 BI=28 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 351 0 0 N WF=0 WT=2 ",,," DID=0
|
||||
BUFFER: BN="drivers\board.c"
|
||||
VIEW: LN=.1997 CL=4 LE=0 CX=8 CY=10 WI=147 BI=15 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 351 0 0 N WF=0 WT=17 ",,," DID=0
|
||||
BUFFER: BN="RPDL\Interrupt_INTC.c"
|
||||
VIEW: LN=.13438 CL=2 LE=0 CX=7 CY=2 WI=145 BI=16 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=7 ",,," DID=0
|
||||
BUFFER: BN="..\..\components\drivers\include\drivers\serial.h"
|
||||
VIEW: LN=.5705 CL=1 LE=0 CX=6 CY=20 WI=143 BI=18 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=4 ",,," DID=0
|
||||
BUFFER: BN="..\..\components\finsh\shell.c"
|
||||
VIEW: LN=.738 CL=49 LE=0 CX=54 CY=13 WI=141 BI=19 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=3 ",,," DID=0
|
||||
BUFFER: BN="RPDL\interrupt_sci.c"
|
||||
VIEW: LN=.13015 CL=6 LE=0 CX=12 CY=13 WI=139 BI=20 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=14 ",,," DID=0
|
||||
BUFFER: BN="RPDL\r_pdl_sci.h"
|
||||
VIEW: LN=.2631 CL=29 LE=0 CX=34 CY=14 WI=137 BI=21 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=6 ",,," DID=0
|
||||
BUFFER: BN="E:\ForTest\iar_rx\rx\inc\iorx62n.h"
|
||||
VIEW: LN=.0 CL=1 LE=0 CX=7 CY=0 WI=135 BI=22 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=13 ",,," DID=0
|
||||
BUFFER: BN="..\..\src\kservice.c"
|
||||
VIEW: LN=.24196 CL=31 LE=0 CX=37 CY=15 WI=133 BI=23 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=12 ",,," DID=0
|
||||
BUFFER: BN="rtconfig.h"
|
||||
VIEW: LN=.1899 CL=32 LE=0 CX=37 CY=27 WI=131 BI=25 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=10 ",,," DID=0
|
||||
BUFFER: BN="..\..\include\rthw.h"
|
||||
VIEW: LN=.3072 CL=1 LE=0 CX=6 CY=15 WI=129 BI=26 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 491 0 0 N WF=0 WT=5 ",,," DID=0
|
||||
BUFFER: BN="drivers\uart.c"
|
||||
VIEW: LN=.12260 CL=1 LE=0 CX=6 CY=21 WI=159 BI=17 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 311 0 0 N WF=0 WT=18 ",,," DID=0
|
||||
BUFFER: BN="..\..\libcpu\rx\cpuconfig.h"
|
||||
VIEW: LN=.184 CL=1 LE=0 CX=4 CY=7 WI=161 BI=29 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 311 0 0 N WF=0 WT=16 ",,," DID=0
|
||||
BUFFER: BN="..\..\libcpu\rx\context_iar.S"
|
||||
VIEW: LN=.3626 CL=9 LE=0 CX=14 CY=7 WI=149 BI=14 HT=0 HN=0 HF=0 HC=4
|
||||
WINDOW: 1 22 933 311 0 0 N WF=0 WT=15 ",,," DID=0
|
||||
BUFFER: BN="..\..\libcpu\rx\cpuport.c"
|
||||
VIEW: LN=.6697 CL=14 LE=0 CX=19 CY=13 WI=151 BI=4 HT=0 HN=0 HF=0 HC=4
|
||||
MDISTATE: 1
|
||||
AAAAAAAAAAHaAAAAAAAAADkAAAVVAAACq+oAAAAC+gAAABEAAAARAAAAAwAAAAEAAAACAAAAEAAAAAAAAAAFAAAABAAAAA4AAAANAAAADAAAAAsAAAAKAAAABgAAAA8AAAAIAAAACQAAAAf6AAAAEQAAABEAAAACAAAABQAAAAEAAAADAAAABAAAAAsAAAAGAAAADAAAAAAAAAAJAAAACAAAAAoAAAANAAAABwAAABAAAAAOAAAAD/wAAABYADIAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAYgBzAHAAXAByAHgAXABkAHIAaQB2AGUAcgBzAFwAYgBvAGEAcgBkAC4AYwAA/////wAA/AAAAFwAMQA2ADoAOgA6AEYAOgBcAFAAcgBvAGoAZQBjAHQAXABJAEEAUgBcAHIAdABcAGwAaQBiAGMAcAB1AFwAcgB4AFwAYwBvAG4AdABlAHgAdABfAGkAYQByAC4AUwAA/////wAA/AAAAFgAMQA4ADoAOgA6AEYAOgBcAFAAcgBvAGoAZQBjAHQAXABJAEEAUgBcAHIAdABcAGwAaQBiAGMAcAB1AFwAcgB4AFwAYwBwAHUAYwBvAG4AZgBpAGcALgBoAAD/////AAD8AAAAVAAxADUAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAbABpAGIAYwBwAHUAXAByAHgAXABjAHAAdQBwAG8AcgB0AC4AYwEA/////wAB/AAAAF4AMQAxADoAOgA6AEYAOgBcAFAAcgBvAGoAZQBjAHQAXABJAEEAUgBcAHIAdABcAGMAbwBtAHAAbwBuAGUAbgB0AHMAXABmAGkAbgBzAGgAXABmAGkAbgBzAGgALgBoAAD/////AAD8AAAAZgAxADcAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAYgBzAHAAXAByAHgAXABSAFAARABMAFwASQBuAHQAZQByAHIAdQBwAHQAXwBJAE4AVABDAC4AYwAA/////wAA/AAAAGIAMwA6ADoAOgBGADoAXABQAHIAbwBqAGUAYwB0AFwASQBBAFIAXAByAHQAXABiAHMAcABcAHIAeABcAFIAUABEAEwAXABpAG4AdABlAHIAcgB1AHAAdABfAHMAYwBpAC4AYwAA/////wAA/AAAAEwANgA6ADoAOgBFADoAXABGAG8AcgBUAGUAcwB0AFwAaQBhAHIAXwByAHgAXAByAHgAXABpAG4AYwBcAGkAbwByAHgANgAyAG4ALgBoAAD/////AAD8AAAASgAxADMAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAcwByAGMAXABrAHMAZQByAHYAaQBjAGUALgBjAAD/////AAD8AAAAXAAxADQAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAYgBzAHAAXAByAHgAXABSAFAARABMAFwAcgBfAHAAZABsAF8AcwBjAGkALgBoAAD/////AAD8AAAAUAAxADIAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAYgBzAHAAXAByAHgAXAByAHQAYwBvAG4AZgBpAGcALgBoAAD/////AAD8AAAASgAxADAAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAaQBuAGMAbAB1AGQAZQBcAHIAdABoAHcALgBoAAD/////AAD8AAAASgA4ADoAOgA6AEYAOgBcAFAAcgBvAGoAZQBjAHQAXABJAEEAUgBcAHIAdABcAHMAcgBjAFwAcwBjAGgAZQBkAHUAbABlAHIALgBjAAD/////AAD8AAAAggA3ADoAOgA6AEYAOgBcAFAAcgBvAGoAZQBjAHQAXABJAEEAUgBcAHIAdABcAGMAbwBtAHAAbwBuAGUAbgB0AHMAXABkAHIAaQB2AGUAcgBzAFwAaQBuAGMAbAB1AGQAZQBcAGQAcgBpAHYAZQByAHMAXABzAGUAcgBpAGEAbAAuAGgAAP////8AAPwAAABcADQAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAYwBvAG0AcABvAG4AZQBuAHQAcwBcAGYAaQBuAHMAaABcAHMAaABlAGwAbAAuAGMAAP////8AAPwAAABmADkAOgA6ADoARgA6AFwAUAByAG8AagBlAGMAdABcAEkAQQBSAFwAcgB0AFwAYgBzAHAAXAByAHgAXABhAHAAcABsAGkAYwBhAHQAaQBvAG4AcwBcAHMAdABhAHIAdAB1AHAALgBjAAD/////AAD8AAAAVgA1ADoAOgA6AEYAOgBcAFAAcgBvAGoAZQBjAHQAXABJAEEAUgBcAHIAdABcAGIAcwBwAFwAcgB4AFwAZAByAGkAdgBlAHIAcwBcAHUAYQByAHQALgBjAAD/////AAA=
|
||||
FILEHIST: 9
|
||||
rtconfig.h
|
||||
drivers\uart.c
|
||||
RPDL\interrupt_sci.c
|
||||
..\..\include\rthw.h
|
||||
..\..\components\finsh\finsh.h
|
||||
RPDL\Interrupt_INTC.c
|
||||
..\..\libcpu\rx\context_iar.S
|
||||
..\..\libcpu\rx\cpuconfig.h
|
||||
..\..\libcpu\rx\cpuport.c
|
||||
TBCLASS: 0 0
|
||||
DEBUG: 0 0 0 0 3 0 gdb
|
||||
printf
|
||||
strcpy
|
||||
std::*
|
||||
DEBUG2: 0
|
||||
Binary file not shown.
+332
File diff suppressed because it is too large
Load Diff
+1164
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,187 @@
|
||||
/* RT-Thread config file */
|
||||
#ifndef __RTTHREAD_CFG_H__
|
||||
#define __RTTHREAD_CFG_H__
|
||||
|
||||
/* RT_NAME_MAX*/
|
||||
#define RT_NAME_MAX 8
|
||||
|
||||
/* RT_ALIGN_SIZE*/
|
||||
#define RT_ALIGN_SIZE 4
|
||||
|
||||
/* PRIORITY_MAX */
|
||||
#define RT_THREAD_PRIORITY_MAX 32
|
||||
|
||||
/* Tick per Second */
|
||||
#define RT_TICK_PER_SECOND 100
|
||||
|
||||
/* SECTION: RT_DEBUG */
|
||||
/* Thread Debug */
|
||||
#define RT_DEBUG
|
||||
#define RT_THREAD_DEBUG
|
||||
|
||||
#define RT_USING_OVERFLOW_CHECK
|
||||
|
||||
/* Using Hook */
|
||||
#define RT_USING_HOOK
|
||||
|
||||
/* Using Software Timer */
|
||||
/* #define RT_USING_TIMER_SOFT */
|
||||
#define RT_TIMER_THREAD_PRIO 4
|
||||
#define RT_TIMER_THREAD_STACK_SIZE 512
|
||||
#define RT_TIMER_TICK_PER_SECOND 10
|
||||
|
||||
/* SECTION: IPC */
|
||||
/* Using Semaphore*/
|
||||
#define RT_USING_SEMAPHORE
|
||||
|
||||
/* Using Mutex */
|
||||
#define RT_USING_MUTEX
|
||||
|
||||
/* Using Event */
|
||||
#define RT_USING_EVENT
|
||||
|
||||
/* Using MailBox */
|
||||
#define RT_USING_MAILBOX
|
||||
|
||||
/* Using Message Queue */
|
||||
#define RT_USING_MESSAGEQUEUE
|
||||
|
||||
/* SECTION: Memory Management */
|
||||
/* Using Memory Pool Management*/
|
||||
#define RT_USING_MEMPOOL
|
||||
|
||||
/* Using Dynamic Heap Management */
|
||||
#define RT_USING_HEAP
|
||||
|
||||
/* Using Small MM */
|
||||
#define RT_USING_SMALL_MEM
|
||||
|
||||
// <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
|
||||
#define RT_USING_COMPONENTS_INIT
|
||||
|
||||
/* SECTION: Device System */
|
||||
/* Using Device System */
|
||||
#define RT_USING_DEVICE
|
||||
// <bool name="RT_USING_DEVICE_IPC" description="Using device communication" default="true" />
|
||||
#define RT_USING_DEVICE_IPC
|
||||
// <bool name="RT_USING_SERIAL" description="Using Serial" default="true" />
|
||||
#define RT_USING_SERIAL
|
||||
|
||||
/* SECTION: Console options */
|
||||
#define RT_USING_CONSOLE
|
||||
/* the buffer size of console*/
|
||||
#define RT_CONSOLEBUF_SIZE 128
|
||||
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart1" />
|
||||
#define RT_CONSOLE_DEVICE_NAME "uart2"
|
||||
|
||||
/* SECTION: finsh, a C-Express shell */
|
||||
#define RT_USING_FINSH
|
||||
/* Using symbol table */
|
||||
#define FINSH_USING_SYMTAB
|
||||
#define FINSH_USING_DESCRIPTION
|
||||
|
||||
/* SECTION: device filesystem */
|
||||
/* #define RT_USING_DFS */
|
||||
|
||||
#define RT_USING_DFS_ELMFAT
|
||||
/* Reentrancy (thread safe) of the FatFs module. */
|
||||
#define RT_DFS_ELM_REENTRANT
|
||||
/* Number of volumes (logical drives) to be used. */
|
||||
#define RT_DFS_ELM_DRIVES 2
|
||||
/* #define RT_DFS_ELM_USE_LFN 1 */
|
||||
/* #define RT_DFS_ELM_CODE_PAGE 936 */
|
||||
#define RT_DFS_ELM_MAX_LFN 255
|
||||
/* Maximum sector size to be handled. */
|
||||
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
|
||||
|
||||
/* the max number of mounted filesystem */
|
||||
#define DFS_FILESYSTEMS_MAX 2
|
||||
/* the max number of opened files */
|
||||
#define DFS_FD_MAX 4
|
||||
|
||||
/* SECTION: lwip, a lighwight TCP/IP protocol stack */
|
||||
/* #define RT_USING_LWIP */
|
||||
/* LwIP uses RT-Thread Memory Management */
|
||||
#define RT_LWIP_USING_RT_MEM
|
||||
/* Enable ICMP protocol*/
|
||||
#define RT_LWIP_ICMP
|
||||
/* Enable UDP protocol*/
|
||||
#define RT_LWIP_UDP
|
||||
/* Enable TCP protocol*/
|
||||
#define RT_LWIP_TCP
|
||||
/* Enable DNS */
|
||||
#define RT_LWIP_DNS
|
||||
|
||||
/* the number of simulatenously active TCP connections*/
|
||||
#define RT_LWIP_TCP_PCB_NUM 5
|
||||
|
||||
/* Using DHCP */
|
||||
/* #define RT_LWIP_DHCP */
|
||||
|
||||
/* ip address of target*/
|
||||
#define RT_LWIP_IPADDR0 192
|
||||
#define RT_LWIP_IPADDR1 168
|
||||
#define RT_LWIP_IPADDR2 1
|
||||
#define RT_LWIP_IPADDR3 30
|
||||
|
||||
/* gateway address of target*/
|
||||
#define RT_LWIP_GWADDR0 192
|
||||
#define RT_LWIP_GWADDR1 168
|
||||
#define RT_LWIP_GWADDR2 1
|
||||
#define RT_LWIP_GWADDR3 1
|
||||
|
||||
/* mask address of target*/
|
||||
#define RT_LWIP_MSKADDR0 255
|
||||
#define RT_LWIP_MSKADDR1 255
|
||||
#define RT_LWIP_MSKADDR2 255
|
||||
#define RT_LWIP_MSKADDR3 0
|
||||
|
||||
/* tcp thread options */
|
||||
#define RT_LWIP_TCPTHREAD_PRIORITY 12
|
||||
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 10
|
||||
#define RT_LWIP_TCPTHREAD_STACKSIZE 1024
|
||||
|
||||
/* ethernet if thread options */
|
||||
#define RT_LWIP_ETHTHREAD_PRIORITY 15
|
||||
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 10
|
||||
#define RT_LWIP_ETHTHREAD_STACKSIZE 512
|
||||
|
||||
/* TCP sender buffer space */
|
||||
#define RT_LWIP_TCP_SND_BUF 8192
|
||||
/* TCP receive window. */
|
||||
#define RT_LWIP_TCP_WND 8192
|
||||
|
||||
/* SECTION: RT-Thread/GUI */
|
||||
/* #define RT_USING_RTGUI */
|
||||
|
||||
/* name length of RTGUI object */
|
||||
#define RTGUI_NAME_MAX 12
|
||||
/* support 16 weight font */
|
||||
#define RTGUI_USING_FONT16
|
||||
/* support Chinese font */
|
||||
#define RTGUI_USING_FONTHZ
|
||||
/* use DFS as file interface */
|
||||
#define RTGUI_USING_DFS_FILERW
|
||||
/* use font file as Chinese font */
|
||||
#define RTGUI_USING_HZ_FILE
|
||||
/* use Chinese bitmap font */
|
||||
#define RTGUI_USING_HZ_BMP
|
||||
/* use small size in RTGUI */
|
||||
#define RTGUI_USING_SMALL_SIZE
|
||||
/* use mouse cursor */
|
||||
/* #define RTGUI_USING_MOUSE_CURSOR */
|
||||
/* default font size in RTGUI */
|
||||
#define RTGUI_DEFAULT_FONT_SIZE 16
|
||||
|
||||
/* image support */
|
||||
/* #define RTGUI_IMAGE_XPM */
|
||||
/* #define RTGUI_IMAGE_BMP */
|
||||
|
||||
// <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" />
|
||||
// #define RT_USING_CMSIS_OS
|
||||
// <bool name="RT_USING_RTT_CMSIS" description="Using CMSIS in RTT" default="true" />
|
||||
//#define RT_USING_RTT_CMSIS
|
||||
// <bool name="RT_USING_BSP_CMSIS" description="Using CMSIS in BSP" default="true" />
|
||||
// #define RT_USING_BSP_CMSIS
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<workspace>
|
||||
<project>
|
||||
<path>$WS_DIR$\rt.ewp</path>
|
||||
</project>
|
||||
<batchBuild/>
|
||||
</workspace>
|
||||
|
||||
|
||||
-138
@@ -1,138 +0,0 @@
|
||||
Due to our use of `libtool' to generate and install the FreeType 2
|
||||
libraries on Unix systems, as well as other historical events, it is
|
||||
generally very difficult to know precisely which release of the font
|
||||
engine is installed on a given system.
|
||||
|
||||
This file tries to explain why and to document ways to properly detect
|
||||
FreeType on Unix.
|
||||
|
||||
|
||||
1. Version and Release numbers
|
||||
------------------------------
|
||||
|
||||
For each new public release of FreeType 2, there are generally *three*
|
||||
distinct `version' numbers to consider:
|
||||
|
||||
* The official FreeType 2 release number, like 2.0.9 or 2.1.3.
|
||||
|
||||
* The libtool (and Unix) specific version number, like 9.2.3. This is
|
||||
what `freetype-config --version' returns.
|
||||
|
||||
* The platform-specific shared object number, used for example when
|
||||
the library is installed as `/usr/lib/libfreetype.so.6.3.2'.
|
||||
|
||||
The platform-specific number is, unsurprisingly, platform-specific and
|
||||
varies with the operating system you are using (several variants of
|
||||
Linux, FreeBSD, Solaris, etc.). You should thus _never_ use it, even
|
||||
for simple tests.
|
||||
|
||||
The libtool-specific number does not equal the release number but is
|
||||
tied to it.
|
||||
|
||||
The release number is available at *compile* time through the following
|
||||
macros defined in FT_FREETYPE_H:
|
||||
|
||||
- FREETYPE_MAJOR: major release number
|
||||
- FREETYPE_MINOR: minor release number
|
||||
- FREETYPE_PATCH: patch release number
|
||||
|
||||
See below for a small autoconf fragment.
|
||||
|
||||
The release number is also available at *runtime* through the
|
||||
`FT_Library_Version' API. Unfortunately, this one wasn't available or
|
||||
working correctly before the 2.1.3 official release.
|
||||
|
||||
|
||||
2. History
|
||||
----------
|
||||
|
||||
The following table gives, for each official release, the corresponding
|
||||
libtool number, as well as the shared object number found on _most_
|
||||
systems, but not all of them:
|
||||
|
||||
|
||||
release libtool so
|
||||
-------------------------------
|
||||
2.3.12 10.0.4 6.4.0
|
||||
2.3.11 9.22.3 6.3.22
|
||||
2.3.10 9.21.3 6.3.21
|
||||
2.3.9 9.20.3 6.3.20
|
||||
2.3.8 9.19.3 6.3.19
|
||||
2.3.7 9.18.3 6.3.18
|
||||
2.3.6 9.17.3 6.3.17
|
||||
2.3.5 9.16.3 6.3.16
|
||||
2.3.4 9.15.3 6.3.15
|
||||
2.3.3 9.14.3 6.3.14
|
||||
2.3.2 9.13.3 6.3.13
|
||||
2.3.1 9.12.3 6.3.12
|
||||
2.3.0 9.11.3 6.3.11
|
||||
2.2.1 9.10.3 6.3.10
|
||||
2.2.0 9.9.3 6.3.9
|
||||
2.1.10 9.8.3 6.3.8
|
||||
2.1.9 9.7.3 6.3.7
|
||||
2.1.8 9.6.3 6.3.6
|
||||
2.1.7 9.5.3 6.3.5
|
||||
2.1.6 9.5.3 6.3.5
|
||||
2.1.5 9.4.3 6.3.4
|
||||
2.1.4 9.3.3 6.3.3
|
||||
2.1.3 9.2.3 6.3.2
|
||||
2.1.2 9.1.3 6.3.1
|
||||
2.1.1 9.0.3 ?
|
||||
2.1.0 8.0.2 ?
|
||||
2.0.9 9.0.3 ?
|
||||
2.0.8 8.0.2 ?
|
||||
2.0.4 7.0.1 ?
|
||||
2.0.1 6.1.0 ?
|
||||
|
||||
The libtool numbers are a bit inconsistent due to the library's history:
|
||||
|
||||
- 2.1.0 was created as a development branch from 2.0.8 (hence the same
|
||||
libtool numbers).
|
||||
|
||||
- 2.0.9 was a bug-fix release of the `stable' branch, and we
|
||||
incorrectly increased its libtool number.
|
||||
|
||||
- 2.1.4 was a development version, however it was stable enough to be
|
||||
the basis of the 2.2.0 release.
|
||||
|
||||
|
||||
3. Autoconf Code Fragment
|
||||
-------------------------
|
||||
|
||||
Lars Clausen contributed the following autoconf fragment to detect which
|
||||
version of FreeType is installed on a system. This one tests for a
|
||||
version that is at least 2.0.9; you should change it to check against
|
||||
other release numbers.
|
||||
|
||||
|
||||
AC_MSG_CHECKING([whether FreeType version is 2.0.9 or higher])
|
||||
old_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS=`freetype-config --cflags`
|
||||
AC_TRY_CPP([
|
||||
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
#if (FREETYPE_MAJOR*1000 + FREETYPE_MINOR)*1000 + FREETYPE_PATCH < 2000009
|
||||
#error Freetype version too low.
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT(yes)
|
||||
FREETYPE_LIBS=`freetype-config --libs`
|
||||
AC_SUBST(FREETYPE_LIBS)
|
||||
AC_DEFINE(HAVE_FREETYPE,1,[Define if you have the FreeType2 library])
|
||||
CPPFLAGS="$old_CPPFLAGS"],
|
||||
[AC_MSG_ERROR([Need FreeType library version 2.0.9 or higher])])
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by
|
||||
David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
|
||||
This file is part of the FreeType project, and may only be used,
|
||||
modified, and distributed under the terms of the FreeType project
|
||||
license, LICENSE.TXT. By continuing to use, modify, or distribute this
|
||||
file you indicate that you have read the license and understand and
|
||||
accept it fully.
|
||||
|
||||
|
||||
--- end of VERSION.DLL ---
|
||||
@@ -553,7 +553,7 @@ void finsh_system_var_init(const void* begin, const void* end)
|
||||
_sysvar_table_end = (struct finsh_sysvar*) end;
|
||||
}
|
||||
|
||||
#if defined(__ICCARM__) /* for IAR compiler */
|
||||
#if defined(__ICCARM__) || defined(__ICCRX__) /* for IAR compiler */
|
||||
#ifdef FINSH_USING_SYMTAB
|
||||
#pragma section="FSymTab"
|
||||
#pragma section="VSymTab"
|
||||
@@ -606,7 +606,7 @@ int finsh_system_init(void)
|
||||
#ifndef FINSH_USING_MSH_ONLY
|
||||
finsh_system_var_init(&VSymTab$$Base, &VSymTab$$Limit);
|
||||
#endif
|
||||
#elif defined (__ICCARM__) /* for IAR Compiler */
|
||||
#elif defined (__ICCARM__) || defined(__ICCRX__) /* for IAR Compiler */
|
||||
finsh_system_function_init(__section_begin("FSymTab"),
|
||||
__section_end("FSymTab"));
|
||||
finsh_system_var_init(__section_begin("VSymTab"),
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
#include "cpuconfig.h"
|
||||
|
||||
//#include "iorx62n.h"
|
||||
EXTERN _rt_thread_switch_interrupt_flag
|
||||
EXTERN _rt_interrupt_from_thread
|
||||
EXTERN _rt_interrupt_to_thread
|
||||
EXTERN _rt_hw_hard_fault_exception
|
||||
EXTERN _rt_hw_cpu_shutdown
|
||||
|
||||
/*PUBLIC _Interrupt_SWINT*/
|
||||
PUBLIC ___interrupt_27
|
||||
PUBLIC ___interrupt_0
|
||||
RSEG CODE:CODE(4)
|
||||
|
||||
;/*
|
||||
; * rt_base_t rt_hw_interrupt_disable();
|
||||
; */
|
||||
PUBLIC _rt_hw_interrupt_disable
|
||||
_rt_hw_interrupt_disable:
|
||||
MVTIPL #MAX_SYSCALL_INTERRUPT_PRIORITY
|
||||
RTS
|
||||
|
||||
;/*
|
||||
; * void rt_hw_interrupt_enable(rt_base_t level);
|
||||
; */
|
||||
PUBLIC _rt_hw_interrupt_enable
|
||||
_rt_hw_interrupt_enable:
|
||||
MVTIPL #KERNEL_INTERRUPT_PRIORITY
|
||||
RTS
|
||||
|
||||
; r0 --> swith from thread stack
|
||||
; r1 --> swith to thread stack
|
||||
; psr, pc, lr, r12, r3, r2, r1, r0 are pushed into [from] stack
|
||||
___interrupt_27:
|
||||
|
||||
/* enable interrupt because enter the interrupt,it will be clear */
|
||||
SETPSW I
|
||||
MVTIPL #MAX_SYSCALL_INTERRUPT_PRIORITY
|
||||
PUSH.L R15
|
||||
|
||||
/* justage if it should switch thread*/
|
||||
MOV.L #_rt_thread_switch_interrupt_flag, R15
|
||||
MOV.L [ R15 ], R15
|
||||
CMP #0, R15
|
||||
BEQ notask_exit
|
||||
/* clean the flag*/
|
||||
MOV.L #_rt_thread_switch_interrupt_flag, R15
|
||||
MOV.L #0, [ R15 ]
|
||||
|
||||
/* justage if it should save the register*/
|
||||
MOV.L #_rt_interrupt_from_thread, R15
|
||||
MOV.L [ R15 ], R15
|
||||
CMP #0, R15
|
||||
BEQ need_modify_isp
|
||||
/*save register*/
|
||||
MVFC USP, R15
|
||||
SUB #12, R15
|
||||
MVTC R15, USP
|
||||
MOV.L [ R0 ], [ R15 ] ;PSW
|
||||
MOV.L 4[ R0 ], 4[ R15 ];PC
|
||||
MOV.L 8[ R0 ], 8[ R15 ] ;R15
|
||||
ADD #12, R0
|
||||
SETPSW U
|
||||
PUSHM R1-R14
|
||||
MVFC FPSW, R15
|
||||
PUSH.L R15
|
||||
MVFACHI R15
|
||||
PUSH.L R15
|
||||
MVFACMI R15 ; Middle order word.
|
||||
SHLL #16, R15 ; Shifted left as it is restored to the low orde r w
|
||||
PUSH.L R15
|
||||
/*save thread stack pointer and switch to new thread*/
|
||||
MOV.L #_rt_interrupt_from_thread, R15
|
||||
MOV.L [ R15 ], R15
|
||||
MOV.L R0, [ R15 ]
|
||||
BRA swtich_to_thread
|
||||
need_modify_isp:
|
||||
MVFC ISP, R15
|
||||
ADD #12, R15
|
||||
MVTC R15, ISP
|
||||
swtich_to_thread:
|
||||
SETPSW U
|
||||
MOV.L #_rt_interrupt_to_thread, R15
|
||||
MOV.L [ R15 ], R15
|
||||
MOV.L [ R15 ], R0
|
||||
POP R15
|
||||
MVTACLO R15
|
||||
POP R15
|
||||
MVTACHI R15
|
||||
POP R15
|
||||
MVTC R15, FPSW
|
||||
POPM R1-R15
|
||||
BRA pendsv_exit
|
||||
notask_exit:
|
||||
POP R15
|
||||
pendsv_exit:
|
||||
|
||||
MVTIPL #KERNEL_INTERRUPT_PRIORITY
|
||||
RTE
|
||||
NOP
|
||||
NOP
|
||||
/*exception interrupt*/
|
||||
___interrupt_0:
|
||||
PUSH.L R15
|
||||
/*save the register for infomation*/
|
||||
MVFC USP, R15
|
||||
SUB #12, R15
|
||||
MVTC R15, USP
|
||||
MOV.L [ R0 ], [ R15 ] ;PSW
|
||||
MOV.L 4[ R0 ], 4[ R15 ];PC
|
||||
MOV.L 8[ R0 ], 8[ R15 ] ;R15
|
||||
ADD #12, R0
|
||||
SETPSW U
|
||||
PUSHM R1-R14
|
||||
MVFC FPSW, R15
|
||||
PUSH.L R15
|
||||
MVFACHI R15
|
||||
PUSH.L R15
|
||||
MVFACMI R15 ; Middle order word.
|
||||
SHLL #16, R15 ; Shifted left as it is restored to the low orde r w
|
||||
PUSH.L R15
|
||||
/*save the exception infomation add R1 as a parameter of
|
||||
* function rt_hw_hard_fault_exception
|
||||
*/
|
||||
MOV.L R0, R1
|
||||
BRA _rt_hw_hard_fault_exception
|
||||
BRA _rt_hw_cpu_shutdown
|
||||
RTE
|
||||
NOP
|
||||
NOP
|
||||
END
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef __CPU_CONFIG_H__
|
||||
#define __CPU_CONFIG_H__
|
||||
|
||||
#define MAX_SYSCALL_INTERRUPT_PRIORITY 10
|
||||
#define KERNEL_INTERRUPT_PRIORITY 1
|
||||
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user