+/rtos

git clone https://git.julia.blue/+/rtos

Vivek Malneediusb headers326af29

master
1.6 KiB42 linesraw
1//*****************************************************************************
2//
3// usbulpi.h - Header file for ULPI access functions.
4//
5// Copyright (c) 2013-2017 Texas Instruments Incorporated.  All rights reserved.
6// Software License Agreement
7//
8// Texas Instruments (TI) is supplying this software for use solely and
9// exclusively on TI's microcontroller products. The software is owned by
10// TI and/or its suppliers, and is protected under applicable copyright
11// laws. You may not combine this software with "viral" open-source
12// software in order to form a larger program.
13//
14// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
15// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
16// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
18// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
19// DAMAGES, FOR ANY REASON WHATSOEVER.
20//
21// This is part of revision 2.1.4.178 of the Tiva USB Library.
22//
23//*****************************************************************************
24
25#ifndef __ULPI_H__
26#define __ULPI_H__
27#include <stdbool.h>
28#include <stdint.h>
29
30#define ULPI_CFG_HS 0x00000000
31#define ULPI_CFG_FS 0x00000001
32#define ULPI_CFG_LS 0x00000002
33#define ULPI_CFG_AUTORESUME 0x00001000
34#define ULPI_CFG_INVVBUSIND 0x00002000
35#define ULPI_CFG_PASSTHRUIND 0x00004000
36#define ULPI_CFG_EXTVBUSDRV 0x00400000
37#define ULPI_CFG_EXTVBUSIND 0x00800000
38
39extern void ULPIConfigSet(uint32_t ui32Base, uint32_t ui32Config);
40extern void ULPIPowerTransceiver(uint32_t ui32Base, bool bEnable);
41
42#endif