Diff: USB_HID_STACK/USBUtils.c
- Revision:
- 0:e98d1c2b16c6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USB_HID_STACK/USBUtils.c Thu Oct 20 14:07:30 2011 +0000 @@ -0,0 +1,15 @@ +/* USBUtils.c */ +/* USB Utility Functions */ +/* Copyright (c) 2011 ARM Limited. All rights reserved. */ + +#include "stdint.h" + +void USBMemCopy(uint8_t *dst, uint8_t *src, uint32_t size) +{ + if (size > 0) + { + do { + *dst++ = *src++; + } while (--size > 0); + } +}