USBDevice with MAX32620HSP platform support

Fork of USBDevice by mbed official

Committer:
mbed_official
Date:
Fri Apr 29 01:16:25 2016 +0100
Revision:
62:c1549af978d6
Synchronized with git revision fe9720f24b1adc71ab6962506ec51290f6afd270

Full URL: https://github.com/mbedmicro/mbed/commit/fe9720f24b1adc71ab6962506ec51290f6afd270/

[Renesas RZ/A1H] Enable asynchronous communications

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 62:c1549af978d6 1 /*******************************************************************************
mbed_official 62:c1549af978d6 2 * DISCLAIMER
mbed_official 62:c1549af978d6 3 * This software is supplied by Renesas Electronics Corporation and is only
mbed_official 62:c1549af978d6 4 * intended for use with Renesas products. No other uses are authorized. This
mbed_official 62:c1549af978d6 5 * software is owned by Renesas Electronics Corporation and is protected under
mbed_official 62:c1549af978d6 6 * all applicable laws, including copyright laws.
mbed_official 62:c1549af978d6 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
mbed_official 62:c1549af978d6 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
mbed_official 62:c1549af978d6 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
mbed_official 62:c1549af978d6 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
mbed_official 62:c1549af978d6 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
mbed_official 62:c1549af978d6 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
mbed_official 62:c1549af978d6 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
mbed_official 62:c1549af978d6 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
mbed_official 62:c1549af978d6 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
mbed_official 62:c1549af978d6 16 * Renesas reserves the right, without notice, to make changes to this software
mbed_official 62:c1549af978d6 17 * and to discontinue the availability of this software. By using this software,
mbed_official 62:c1549af978d6 18 * you agree to the additional terms and conditions found by accessing the
mbed_official 62:c1549af978d6 19 * following link:
mbed_official 62:c1549af978d6 20 * http://www.renesas.com/disclaimer
mbed_official 62:c1549af978d6 21 * Copyright (C) 2012 - 2014 Renesas Electronics Corporation. All rights reserved.
mbed_official 62:c1549af978d6 22 *******************************************************************************/
mbed_official 62:c1549af978d6 23 /*******************************************************************************
mbed_official 62:c1549af978d6 24 * File Name : usb_function.h
mbed_official 62:c1549af978d6 25 * $Rev: 1116 $
mbed_official 62:c1549af978d6 26 * $Date:: 2014-07-09 16:29:19 +0900#$
mbed_official 62:c1549af978d6 27 * Description : RZ/A1H R7S72100 USB Sample Program
mbed_official 62:c1549af978d6 28 *******************************************************************************/
mbed_official 62:c1549af978d6 29 #ifndef USB_FUNCTION_H
mbed_official 62:c1549af978d6 30 #define USB_FUNCTION_H
mbed_official 62:c1549af978d6 31
mbed_official 62:c1549af978d6 32 /*******************************************************************************
mbed_official 62:c1549af978d6 33 Includes <System Includes> , "Project Includes"
mbed_official 62:c1549af978d6 34 *******************************************************************************/
mbed_official 62:c1549af978d6 35 #include "r_typedefs.h"
mbed_official 62:c1549af978d6 36 #include "iodefine.h"
mbed_official 62:c1549af978d6 37 #include "rza_io_regrw.h"
mbed_official 62:c1549af978d6 38
mbed_official 62:c1549af978d6 39 /*******************************************************************************
mbed_official 62:c1549af978d6 40 Macro definitions
mbed_official 62:c1549af978d6 41 *******************************************************************************/
mbed_official 62:c1549af978d6 42 #define USB_FUNCTION_ALT_NO (255)
mbed_official 62:c1549af978d6 43 #define USB_FUNCTION_ALT_SET (0xff)
mbed_official 62:c1549af978d6 44
mbed_official 62:c1549af978d6 45 #define USB_FUNCTION_BITUPLLE (0x0002u)
mbed_official 62:c1549af978d6 46 #define USB_FUNCTION_BITUCKSEL (0x0004u)
mbed_official 62:c1549af978d6 47 #define USB_FUNCTION_BITBWAIT (0x003fu)
mbed_official 62:c1549af978d6 48
mbed_official 62:c1549af978d6 49 #define USB_FUNCTION_BUSWAIT_02 (0x0000u)
mbed_official 62:c1549af978d6 50 #define USB_FUNCTION_BUSWAIT_03 (0x0001u)
mbed_official 62:c1549af978d6 51 #define USB_FUNCTION_BUSWAIT_04 (0x0002u)
mbed_official 62:c1549af978d6 52 #define USB_FUNCTION_BUSWAIT_05 (0x0003u)
mbed_official 62:c1549af978d6 53 #define USB_FUNCTION_BUSWAIT_06 (0x0004u)
mbed_official 62:c1549af978d6 54 #define USB_FUNCTION_BUSWAIT_07 (0x0005u)
mbed_official 62:c1549af978d6 55 #define USB_FUNCTION_BUSWAIT_08 (0x0006u)
mbed_official 62:c1549af978d6 56 #define USB_FUNCTION_BUSWAIT_09 (0x0007u)
mbed_official 62:c1549af978d6 57 #define USB_FUNCTION_BUSWAIT_10 (0x0008u)
mbed_official 62:c1549af978d6 58 #define USB_FUNCTION_BUSWAIT_11 (0x0009u)
mbed_official 62:c1549af978d6 59 #define USB_FUNCTION_BUSWAIT_12 (0x000au)
mbed_official 62:c1549af978d6 60 #define USB_FUNCTION_BUSWAIT_13 (0x000bu)
mbed_official 62:c1549af978d6 61 #define USB_FUNCTION_BUSWAIT_14 (0x000cu)
mbed_official 62:c1549af978d6 62 #define USB_FUNCTION_BUSWAIT_15 (0x000du)
mbed_official 62:c1549af978d6 63 #define USB_FUNCTION_BUSWAIT_16 (0x000eu)
mbed_official 62:c1549af978d6 64 #define USB_FUNCTION_BUSWAIT_17 (0x000fu)
mbed_official 62:c1549af978d6 65
mbed_official 62:c1549af978d6 66 #define USB_FUNCTION_BITRESUME (0x0020u)
mbed_official 62:c1549af978d6 67 #define USB_FUNCTION_BITUACT (0x0010u)
mbed_official 62:c1549af978d6 68 #define USB_FUNCTION_HSPROC (0x0004u)
mbed_official 62:c1549af978d6 69 #define USB_FUNCTION_HSMODE (0x0003u)
mbed_official 62:c1549af978d6 70 #define USB_FUNCTION_FSMODE (0x0002u)
mbed_official 62:c1549af978d6 71 #define USB_FUNCTION_LSMODE (0x0001u)
mbed_official 62:c1549af978d6 72 #define USB_FUNCTION_UNDECID (0x0000u)
mbed_official 62:c1549af978d6 73
mbed_official 62:c1549af978d6 74 #define USB_FUNCTION_BITRCNT (0x8000u)
mbed_official 62:c1549af978d6 75 #define USB_FUNCTION_BITDREQE (0x1000u)
mbed_official 62:c1549af978d6 76 #define USB_FUNCTION_BITMBW (0x0c00u)
mbed_official 62:c1549af978d6 77 #define USB_FUNCTION_BITMBW_8 (0x0000u)
mbed_official 62:c1549af978d6 78 #define USB_FUNCTION_BITMBW_16 (0x0400u)
mbed_official 62:c1549af978d6 79 #define USB_FUNCTION_BITMBW_32 (0x0800u)
mbed_official 62:c1549af978d6 80 #define USB_FUNCTION_BITBYTE_LITTLE (0x0000u)
mbed_official 62:c1549af978d6 81 #define USB_FUNCTION_BITBYTE_BIG (0x0100u)
mbed_official 62:c1549af978d6 82 #define USB_FUNCTION_BITISEL (0x0020u)
mbed_official 62:c1549af978d6 83 #define USB_FUNCTION_BITCURPIPE (0x000fu)
mbed_official 62:c1549af978d6 84
mbed_official 62:c1549af978d6 85 #define USB_FUNCTION_CFIFO_READ (0x0000u)
mbed_official 62:c1549af978d6 86 #define USB_FUNCTION_CFIFO_WRITE (0x0020u)
mbed_official 62:c1549af978d6 87
mbed_official 62:c1549af978d6 88 #define USB_FUNCTION_BITBVAL (0x8000u)
mbed_official 62:c1549af978d6 89 #define USB_FUNCTION_BITBCLR (0x4000u)
mbed_official 62:c1549af978d6 90 #define USB_FUNCTION_BITFRDY (0x2000u)
mbed_official 62:c1549af978d6 91 #define USB_FUNCTION_BITDTLN (0x0fffu)
mbed_official 62:c1549af978d6 92
mbed_official 62:c1549af978d6 93 #define USB_FUNCTION_BITVBSE (0x8000u)
mbed_official 62:c1549af978d6 94 #define USB_FUNCTION_BITRSME (0x4000u)
mbed_official 62:c1549af978d6 95 #define USB_FUNCTION_BITSOFE (0x2000u)
mbed_official 62:c1549af978d6 96 #define USB_FUNCTION_BITDVSE (0x1000u)
mbed_official 62:c1549af978d6 97 #define USB_FUNCTION_BITCTRE (0x0800u)
mbed_official 62:c1549af978d6 98 #define USB_FUNCTION_BITVBINT (0x8000u)
mbed_official 62:c1549af978d6 99 #define USB_FUNCTION_BITRESM (0x4000u)
mbed_official 62:c1549af978d6 100 #define USB_FUNCTION_BITSOFR (0x2000u)
mbed_official 62:c1549af978d6 101 #define USB_FUNCTION_BITDVST (0x1000u)
mbed_official 62:c1549af978d6 102 #define USB_FUNCTION_BITCTRT (0x0800u)
mbed_official 62:c1549af978d6 103
mbed_official 62:c1549af978d6 104 #define USB_FUNCTION_BITBEMPE (0x0400u)
mbed_official 62:c1549af978d6 105 #define USB_FUNCTION_BITNRDYE (0x0200u)
mbed_official 62:c1549af978d6 106 #define USB_FUNCTION_BITBRDYE (0x0100u)
mbed_official 62:c1549af978d6 107 #define USB_FUNCTION_BITBEMP (0x0400u)
mbed_official 62:c1549af978d6 108 #define USB_FUNCTION_BITNRDY (0x0200u)
mbed_official 62:c1549af978d6 109 #define USB_FUNCTION_BITBRDY (0x0100u)
mbed_official 62:c1549af978d6 110
mbed_official 62:c1549af978d6 111 #define USB_FUNCTION_BITDVSQ (0x0070u)
mbed_official 62:c1549af978d6 112 #define USB_FUNCTION_BITDVSQS (0x0030u)
mbed_official 62:c1549af978d6 113 #define USB_FUNCTION_DS_SPD_CNFG (0x0070u)
mbed_official 62:c1549af978d6 114 #define USB_FUNCTION_DS_SPD_ADDR (0x0060u)
mbed_official 62:c1549af978d6 115 #define USB_FUNCTION_DS_SPD_DFLT (0x0050u)
mbed_official 62:c1549af978d6 116 #define USB_FUNCTION_DS_SPD_POWR (0x0040u)
mbed_official 62:c1549af978d6 117 #define USB_FUNCTION_DS_CNFG (0x0030u)
mbed_official 62:c1549af978d6 118 #define USB_FUNCTION_DS_ADDS (0x0020u)
mbed_official 62:c1549af978d6 119 #define USB_FUNCTION_DS_DFLT (0x0010u)
mbed_official 62:c1549af978d6 120 #define USB_FUNCTION_DS_POWR (0x0000u)
mbed_official 62:c1549af978d6 121 #define USB_FUNCTION_BITVALID (0x0008u)
mbed_official 62:c1549af978d6 122 #define USB_FUNCTION_BITCTSQ (0x0007u)
mbed_official 62:c1549af978d6 123 #define USB_FUNCTION_CS_SQER (0x0006u)
mbed_official 62:c1549af978d6 124 #define USB_FUNCTION_CS_WRND (0x0005u)
mbed_official 62:c1549af978d6 125 #define USB_FUNCTION_CS_WRSS (0x0004u)
mbed_official 62:c1549af978d6 126 #define USB_FUNCTION_CS_WRDS (0x0003u)
mbed_official 62:c1549af978d6 127 #define USB_FUNCTION_CS_RDSS (0x0002u)
mbed_official 62:c1549af978d6 128 #define USB_FUNCTION_CS_RDDS (0x0001u)
mbed_official 62:c1549af978d6 129 #define USB_FUNCTION_CS_IDST (0x0000u)
mbed_official 62:c1549af978d6 130
mbed_official 62:c1549af978d6 131 #define USB_FUNCTION_PIPExBUF (64u)
mbed_official 62:c1549af978d6 132
mbed_official 62:c1549af978d6 133 #define USB_FUNCTION_D0FIFO (0)
mbed_official 62:c1549af978d6 134 #define USB_FUNCTION_D1FIFO (1)
mbed_official 62:c1549af978d6 135 #define USB_FUNCTION_DMA_READY (0)
mbed_official 62:c1549af978d6 136 #define USB_FUNCTION_DMA_BUSY (1)
mbed_official 62:c1549af978d6 137 #define USB_FUNCTION_DMA_BUSYEND (2)
mbed_official 62:c1549af978d6 138
mbed_official 62:c1549af978d6 139 #define USB_FUNCTION_FIFO_USE (0x7000)
mbed_official 62:c1549af978d6 140
mbed_official 62:c1549af978d6 141 #endif /* USB_FUNCTION_FUNCTION_H */
mbed_official 62:c1549af978d6 142
mbed_official 62:c1549af978d6 143 /* End of File */