/*******************************************************************************
* 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) 2012 - 2013 Renesas Electronics Corporation. All rights reserved.
*******************************************************************************/
/*******************************************************************************
* File Name    : usb0_haudio_pipe.c
* $Rev: 682 $
* $Date:: 2014-01-23 09:15:07 +0900#$
* Device(s)    :
* Tool-Chain   :
* OS           : None
* H/W Platform :
* Description  : USB Sample Program
* Operation    :
* Limitations  :
*******************************************************************************/

/*******************************************************************************
Includes   <System Includes> , "Project Includes"
*******************************************************************************/
#include "usb_hdrv_rza1.h"


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


/*******************************************************************************
Macro definitions
*******************************************************************************/


/*******************************************************************************
Imported global variables and functions (from other files)
*******************************************************************************/


/*******************************************************************************
Exported global variables and functions (to be accessed by other files)
*******************************************************************************/


/* ================================================================================ */
/* Endpoint Configuration Data Format                                               */
/* ================================================================================ */
/*    LINE1: Pipe Window Select Register                                            */
/*        CPU Access PIPE         : PIPE1 to PIPE9           [ ### SET ### ]        */
/*    LINE2: Pipe Configuration Register                                            */
/*        Transfer Type           : USB_NONE                 [ USB_NONE    ]        */
/*        Buffer Ready interrupt  : USB_NONE                 [ USB_NONE    ]        */
/*        Double Buffer Mode      : USB_CNT_ON / USB_CNT_OFF [ ### SET ### ]        */
/*        Continuous Transmit:    : USB_CNT_ON / USB_CNT_OFF [ ### SET ### ]        */
/*        Short NAK               : USB_NONE                 [ USB_NONE    ]        */
/*        Transfer Direction      : USB_NONE                 [ USB_NONE    ]        */
/*        Endpoint Number         : USB_NONE                 [ USB_NONE    ]        */
/*    LINE3: Pipe Buffer Configuration Register                                     */
/*        Buffer Size             : USB_BUF_SIZE( x )        [ ### SET ### ]        */
/*        Buffer Top Number       : USB_BUF_BUMB( x )        [ ### SET ### ]        */
/*    LINE4: Pipe Maxpacket Size Register                                           */
/*        Max Packet Size         : USB_NONE                 [ USB_NONE    ]        */
/*    LINE5: Pipe Cycle Configuration Register ( 0x6C )                             */
/*        ISO Buffer Flush Mode   : USB_NONE                 [ USB_NONE    ]        */
/*        ISO Interval Value      : USB_NONE                 [ USB_NONE    ]        */
/*    LINE6: use FIFO port                                                          */
/*                                : USB_CUSE                 [ ### SET ### ]        */
/*                                : USB_D0USE / USB_D1USE                           */
/*                                : USB_D0DMA    / USB_D0DMA                        */
/*    LINE7: use FIFO port Endian : USB_FIFO_BIG / USB_FIFO_LITTLE [ ### SET ### ]  */
/* ================================================================================ */

/* Device Address 1 */
USB_HOST_CFG_PIPETBL_t     usb0_audio_ep_tbl1[ ] =
{
    {
        USB_PIPE1,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 8 ),
        USB_NONE,
        USB_NONE,
        USB_D0DMA,
        USB_FIFO_LITTLE,
    },

    {
        USB_PIPE2,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 26 ),
        USB_NONE,
        USB_NONE,
        USB_D1DMA,
        USB_FIFO_LITTLE,
    },

    {
        /* Pipe end */
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
    }
};

/* Device Address 2 */
USB_HOST_CFG_PIPETBL_t     usb0_audio_ep_tbl2[ ] =
{
    {
        USB_PIPE1,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 8 ),
        USB_NONE,
        USB_NONE,
        USB_D0DMA,
        USB_FIFO_LITTLE,
    },

    {
        USB_PIPE2,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 26 ),
        USB_NONE,
        USB_NONE,
        USB_D1DMA,
        USB_FIFO_LITTLE,
    },

    {
        /* Pipe end */
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
    }
};

/* Device Address 3 */
USB_HOST_CFG_PIPETBL_t     usb0_audio_ep_tbl3[ ] =
{
    {
        USB_PIPE1,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 8 ),
        USB_NONE,
        USB_NONE,
        USB_D0DMA,
        USB_FIFO_LITTLE,
    },

    {
        USB_PIPE2,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 26 ),
        USB_NONE,
        USB_NONE,
        USB_D1DMA,
        USB_FIFO_LITTLE,
    },

    {
        /* Pipe end */
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
    }
};

/* Device Address 4 */
USB_HOST_CFG_PIPETBL_t     usb0_audio_ep_tbl4[ ] =
{
    {
        USB_PIPE1,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 8 ),
        USB_NONE,
        USB_NONE,
        USB_D0DMA,
        USB_FIFO_LITTLE,
    },

    {
        USB_PIPE2,
        /* TYPE  / BFRE      / DBLB       / CNTMD       / SHTNAK   / DIR      / EPNUM */
        USB_NONE | USB_NONE  | USB_DBL_ON | USB_CNT_OFF | USB_NONE | USB_NONE | USB_NONE,
        USB_BUF_SIZE( 576 ) | USB_BUF_NUMB( 26 ),
        USB_NONE,
        USB_NONE,
        USB_D1DMA,
        USB_FIFO_LITTLE,
    },

    {
        /* Pipe end */
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
        USB_PIPE_TBL_END,
    }
};


/*******************************************************************************
Private global variables and functions
*******************************************************************************/


/* End of File */
