rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hw_layer
ports
cypress
serial_over_usb
usbdevicehw.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2013-2016, Cypress Semiconductor Corporation or a *
3
* subsidiary of Cypress Semiconductor Corporation. All rights reserved. *
4
* *
5
* This software, including source code, documentation and related *
6
* materials ("Software"), is owned by Cypress Semiconductor Corporation or *
7
* one of its subsidiaries ("Cypress") and is protected by and subject to *
8
* worldwide patent protection (United States and foreign), United States *
9
* copyright laws and international treaty provisions. Therefore, you may use *
10
* this Software only as provided in the license agreement accompanying the *
11
* software package from which you obtained this Software ("EULA"). *
12
* *
13
* If no EULA applies, Cypress hereby grants you a personal, non-exclusive, *
14
* non-transferable license to copy, modify, and compile the *
15
* Software source code solely for use in connection with Cypress's *
16
* integrated circuit products. Any reproduction, modification, translation, *
17
* compilation, or representation of this Software except as specified *
18
* above is prohibited without the express written permission of Cypress. *
19
* *
20
* Disclaimer: THIS SOFTWARE IS PROVIDED AS-IS, WITH NO *
21
* WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, *
22
* BUT NOT LIMITED TO, NONINFRINGEMENT, IMPLIED *
23
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
24
* PARTICULAR PURPOSE. Cypress reserves the right to make *
25
* changes to the Software without notice. Cypress does not assume any *
26
* liability arising out of the application or use of the Software or any *
27
* product or circuit described in the Software. Cypress does not *
28
* authorize its products for use in any products where a malfunction or *
29
* failure of the Cypress product may reasonably be expected to result in *
30
* significant property damage, injury or death ("High Risk Product"). By *
31
* including Cypress's product in a High Risk Product, the manufacturer *
32
* of such system or application assumes all risk of such use and in doing *
33
* so agrees to indemnify Cypress against all liability. *
34
*******************************************************************************/
35
/************************************************************************/
36
/** \file usbdevicehw.h
37
**
38
** - See README.TXT for project description
39
** - pre release for a simple universal usb function library
40
**
41
** History:
42
** - 2010-03-30 1.0 MSc First version (works with 16FX,FR80)
43
** - 2011-03-30 1.1 MSc New HW description style
44
** - 2016-06-23 1.2 MSc Updated for use with MCU Templates >= v2.0
45
*****************************************************************************/
46
47
#ifndef __USBDEVICEHW_H__
48
#define __USBDEVICEHW_H__
49
50
#define DEVICE0VBUS_DISABLEISR
51
#define DEVICE0VBUS_ENABLEISR
52
#define DEVICE0VBUS_ISRISSET 0
53
#define DEVICE0VBUS_CLEARISRFLAG
54
#define DEVICE0VBUS_SETLOWDETECT
55
#define DEVICE0VBUS_SETHIGHDETECT
56
#define DEVICE0VBUS_HIGHDETECT Gpio1pin_Get( GPIO1PIN_P60 )
57
#define DEVICE0VBUS_INIT Gpio1pin_InitIn( GPIO1PIN_P60, Gpio1pin_InitPullup( 0u ) )
58
#define DEVICE0VBUS_DEINIT
59
#define DEVICE0VBUS_ENABLED 1
60
61
#define DEVICE0HCONX_INIT
62
#define DEVICE0HCONX_SET
63
#define DEVICE0HCONX_CLEAR
64
#define DEVICE0HCONX_ENABLED 1
65
66
#define DEVICE1VBUS_DISABLEISR
67
#define DEVICE1VBUS_ENABLEISR
68
#define DEVICE1VBUS_ISRISSET 0
69
#define DEVICE1VBUS_CLEARISRFLAG
70
#define DEVICE1VBUS_SETLOWDETECT
71
#define DEVICE1VBUS_SETHIGHDETECT
72
#define DEVICE1VBUS_HIGHDETECT (0)
73
#define DEVICE1VBUS_INIT
74
#define DEVICE1VBUS_DEINIT
75
#define DEVICE1VBUS_ENABLED 0
76
77
#define DEVICE1HCONX_INIT
78
#define DEVICE1HCONX_SET
79
#define DEVICE1HCONX_CLEAR
80
#define DEVICE1HCONX_ENABLED 0
81
82
83
#endif
Generated on Sat Sep 27 2025 00:10:07 for rusEFI by
1.9.8