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