/*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protected under
* all applicable laws, including copyright laws.
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* Renesas reserves the right, without notice, to make changes to this software
* and to discontinue the availability of this software. By using this software,
* you agree to the additional terms and conditions found by accessing the
* following link:
* http://www.renesas.com/disclaimer *
* Copyright (C) 2014 Renesas Electronics Corporation
* and Renesas Solutions Corp. All rights reserved.
*******************************************************************************/
/*******************************************************************************
* File Name    : r_pdc_apl.h
* Version      : 1.00
* Device(s)    : Renesas
* Tool-Chain   : Renesas
* OS           : None
* H/W Platform : Independent
* Description  : This is PDC application program code.
******************************************************************************/
/*****************************************************************************
* History : DD.MM.YYYY Version Description
*         : 01.09.2014 1.00    First Release
******************************************************************************/
#ifndef __R_PDC_APL_H__
#define __R_PDC_APL_H__

#ifndef PDC_INITIAL
#define PDC_EXTERN extern
#else
#define PDC_EXTERN
#endif

/*******************************************************************************
Includes   <System Includes> , "Project Includes"
*******************************************************************************/

/******************************************************************************
Macro definitions
******************************************************************************/
#define  D_PDC_MAX_PICTURE_BLOCK      (1)   // How many picture blocks?

// interrupt priority
#define PDC_INT_PRI_DMAC  (1)

/*******************************************************************************
Typedef definitions
*******************************************************************************/

/******************************************************************************
Exported global variables
******************************************************************************/
PDC_EXTERN unsigned char g_pdc_picture_block;

PDC_EXTERN unsigned int  g_pdc_size_width;
PDC_EXTERN unsigned int  g_pdc_size_height;

PDC_EXTERN volatile unsigned long pdc_pcsr;

/******************************************************************************
Exported global functions (to be accessed by other files)
******************************************************************************/
PDC_EXTERN void R_pdc_init( void );
PDC_EXTERN void R_pdc_create( void );
PDC_EXTERN void R_pdc_receive_again( uint8_t continue_flag );
PDC_EXTERN uint8_t *R_get_pdc_capture_buf_adr( void );

#endif // __R_PDC_APL__H__
/******************************************************************************
End  Of File
******************************************************************************/
