A modified version of http://mbed.org/users/segundo/libraries/NetServices/ljhqix to add HTTP proxy feature (based on http://mbed.org/users/igorsk/programs/NetServicesSource/ltjpag)
drv/usb/usb_mem.h@0:308f83189a3f, 2011-09-06 (annotated)
- Committer:
- mimil
- Date:
- Tue Sep 06 13:26:45 2011 +0000
- Revision:
- 0:308f83189a3f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mimil | 0:308f83189a3f | 1 | /* |
mimil | 0:308f83189a3f | 2 | Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) |
mimil | 0:308f83189a3f | 3 | |
mimil | 0:308f83189a3f | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy |
mimil | 0:308f83189a3f | 5 | of this software and associated documentation files (the "Software"), to deal |
mimil | 0:308f83189a3f | 6 | in the Software without restriction, including without limitation the rights |
mimil | 0:308f83189a3f | 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
mimil | 0:308f83189a3f | 8 | copies of the Software, and to permit persons to whom the Software is |
mimil | 0:308f83189a3f | 9 | furnished to do so, subject to the following conditions: |
mimil | 0:308f83189a3f | 10 | |
mimil | 0:308f83189a3f | 11 | The above copyright notice and this permission notice shall be included in |
mimil | 0:308f83189a3f | 12 | all copies or substantial portions of the Software. |
mimil | 0:308f83189a3f | 13 | |
mimil | 0:308f83189a3f | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
mimil | 0:308f83189a3f | 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
mimil | 0:308f83189a3f | 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
mimil | 0:308f83189a3f | 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
mimil | 0:308f83189a3f | 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
mimil | 0:308f83189a3f | 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
mimil | 0:308f83189a3f | 20 | THE SOFTWARE. |
mimil | 0:308f83189a3f | 21 | */ |
mimil | 0:308f83189a3f | 22 | |
mimil | 0:308f83189a3f | 23 | #ifndef USB_MEM_H |
mimil | 0:308f83189a3f | 24 | #define USB_MEM_H |
mimil | 0:308f83189a3f | 25 | |
mimil | 0:308f83189a3f | 26 | #ifdef __cplusplus |
mimil | 0:308f83189a3f | 27 | extern "C" { |
mimil | 0:308f83189a3f | 28 | #endif |
mimil | 0:308f83189a3f | 29 | |
mimil | 0:308f83189a3f | 30 | typedef unsigned char byte; |
mimil | 0:308f83189a3f | 31 | |
mimil | 0:308f83189a3f | 32 | void usb_mem_init(); |
mimil | 0:308f83189a3f | 33 | |
mimil | 0:308f83189a3f | 34 | volatile byte* usb_get_hcca(); |
mimil | 0:308f83189a3f | 35 | |
mimil | 0:308f83189a3f | 36 | volatile byte* usb_get_ed(); |
mimil | 0:308f83189a3f | 37 | |
mimil | 0:308f83189a3f | 38 | volatile byte* usb_get_td(); |
mimil | 0:308f83189a3f | 39 | |
mimil | 0:308f83189a3f | 40 | void usb_free_ed(volatile byte* ed); |
mimil | 0:308f83189a3f | 41 | |
mimil | 0:308f83189a3f | 42 | void usb_free_td(volatile byte* td); |
mimil | 0:308f83189a3f | 43 | |
mimil | 0:308f83189a3f | 44 | #ifdef __cplusplus |
mimil | 0:308f83189a3f | 45 | } |
mimil | 0:308f83189a3f | 46 | #endif |
mimil | 0:308f83189a3f | 47 | |
mimil | 0:308f83189a3f | 48 | #endif |