Library for Bert van Dam's book "ARM MICROCONTROLLERS" For all chapters with internet.

Dependencies:   mbed

Committer:
ICTFBI
Date:
Fri Oct 16 14:28:26 2015 +0000
Revision:
0:4edb816d21e1
Pre-update 16-10-15

Who changed what in which revision?

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