+/rtos
git clone https://git.julia.blue/+/rtos
83915e3
master
1//***************************************************************************** 2// 3// usbhandler.c - General USB handling routines. 4// 5// Copyright (c) 2007-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#include "tivaware/hw_memmap.h" 26#include "tivaware/hw_types.h" 27#include "tivaware/rom.h" 28#include "tivaware/rom_map.h" 29#include "tivaware/usb.h" 30#include "usblib/device/usbdevice.h" 31#include "usblib/device/usbdevicepriv.h" 32#include "usblib/usblib.h" 33#include "usblib/usblibpriv.h" 34#include <stdbool.h> 35#include <stdint.h> 36 37//***************************************************************************** 38// 39//! \addtogroup device_api 40//! @{ 41// 42//***************************************************************************** 43 44//***************************************************************************** 45// 46//! The USB device interrupt handler. 47//! 48//! This the main USB interrupt handler entry point for use in USB device 49//! applications. This top-level handler will branch the interrupt off to the 50//! appropriate application or stack handlers depending on the current status 51//! of the USB controller. 52//! 53//! Applications which operate purely as USB devices (rather than dual mode 54//! applications which can operate in either device or host mode at different 55//! times) must ensure that a pointer to this function is installed in the 56//! interrupt vector table entry for the USB0 interrupt. For dual mode 57//! operation, the vector should be set to point to \e USB0DualModeIntHandler() 58//! instead. 59//! 60//! \return None. 61// 62//***************************************************************************** 63void usb0_handler (void ) { 64uint32_t ui32Status ; 65 66// 67// Get the controller interrupt status. 68// 69ui32Status = MAP_USBIntStatusControl (USB0_BASE ); 70 71// 72// Call the internal handler. 73// 74USBDeviceIntHandlerInternal (0 ,ui32Status ); 75} 76 77//***************************************************************************** 78// 79// Close the Doxygen group. 80//! @} 81// 82//*****************************************************************************