USB_HID_STACK/USBUtils.c@1:4d08e0ebf5dd, 2011-10-21 (annotated)
- Committer:
- chris
- Date:
- Fri Oct 21 23:02:16 2011 +0000
- Revision:
- 1:4d08e0ebf5dd
- Parent:
- 0:e98d1c2b16c6
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:e98d1c2b16c6 | 1 | /* USBUtils.c */ |
chris | 0:e98d1c2b16c6 | 2 | /* USB Utility Functions */ |
chris | 0:e98d1c2b16c6 | 3 | /* Copyright (c) 2011 ARM Limited. All rights reserved. */ |
chris | 0:e98d1c2b16c6 | 4 | |
chris | 0:e98d1c2b16c6 | 5 | #include "stdint.h" |
chris | 0:e98d1c2b16c6 | 6 | |
chris | 0:e98d1c2b16c6 | 7 | void USBMemCopy(uint8_t *dst, uint8_t *src, uint32_t size) |
chris | 0:e98d1c2b16c6 | 8 | { |
chris | 0:e98d1c2b16c6 | 9 | if (size > 0) |
chris | 0:e98d1c2b16c6 | 10 | { |
chris | 0:e98d1c2b16c6 | 11 | do { |
chris | 0:e98d1c2b16c6 | 12 | *dst++ = *src++; |
chris | 0:e98d1c2b16c6 | 13 | } while (--size > 0); |
chris | 0:e98d1c2b16c6 | 14 | } |
chris | 0:e98d1c2b16c6 | 15 | } |