diff options
| author | hathach <[email protected]> | 2023-02-27 09:11:35 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-02-27 09:11:35 +0700 |
| commit | e34aeb5cf69315d2d7711f0a1d040a28492d026d (patch) | |
| tree | 823a987b9dae178c1261b3ab5050389c0f44a852 /src/tusb.c | |
| parent | 2e47210c1af88b88b6f2d92fe2b6d08117041363 (diff) | |
minor clean up
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/tusb.c b/src/tusb.c index c918b0248..8318e5275 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -24,7 +24,6 @@ * This file is part of the TinyUSB stack. */ -#include "common/tusb_common.h" #include "tusb_option.h" #if CFG_TUH_ENABLED || CFG_TUD_ENABLED @@ -487,23 +486,3 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent) #endif #endif // host or device enabled - -//--------------------------------------------------------------------+ -// Common -//--------------------------------------------------------------------+ - -int32_t tu_memset_s(void *dest, size_t destsz, int ch, size_t count) { - if (count > destsz) { - return -1; - } - memset(dest, ch, count); - return 0; -} - -int32_t tu_memcpy_s(void *dest, size_t destsz, const void *src, size_t count) { - if (count > destsz) { - return -1; - } - memcpy(dest, src, count); - return 0; -}
\ No newline at end of file |
