summaryrefslogtreecommitdiff
path: root/components/libc/compilers/newlib/libc.h
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-11 16:29:14 +0800
committerMeco Man <[email protected]>2021-02-11 16:29:14 +0800
commitdbe1a9c2dcc517e0d99ad5cfdfab12a4ebe357d7 (patch)
treecbd7035a5811d4dfcd9644c79428c79fd03ea113 /components/libc/compilers/newlib/libc.h
parente904f9bf27d0056ffc53f47e91f39ed9a0b1f11e (diff)
移除无用的代码
Diffstat (limited to 'components/libc/compilers/newlib/libc.h')
-rw-r--r--components/libc/compilers/newlib/libc.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/components/libc/compilers/newlib/libc.h b/components/libc/compilers/newlib/libc.h
index b4f28e44cc..9a76ffb79f 100644
--- a/components/libc/compilers/newlib/libc.h
+++ b/components/libc/compilers/newlib/libc.h
@@ -10,23 +10,10 @@
#ifndef __RTT_LIBC_H__
#define __RTT_LIBC_H__
-#include <stdio.h>
-#include <stdint.h>
-#include <string.h>
-#include <sys/time.h>
-
#ifndef _EXFUN
-#define _EXFUN(name, proto) name proto
+#define _EXFUN(name, proto) name proto
#endif
-#define MILLISECOND_PER_SECOND 1000UL
-#define MICROSECOND_PER_SECOND 1000000UL
-#define NANOSECOND_PER_SECOND 1000000000UL
-
-#define MILLISECOND_PER_TICK (MILLISECOND_PER_SECOND / RT_TICK_PER_SECOND)
-#define MICROSECOND_PER_TICK (MICROSECOND_PER_SECOND / RT_TICK_PER_SECOND)
-#define NANOSECOND_PER_TICK (NANOSECOND_PER_SECOND / RT_TICK_PER_SECOND)
-
#ifdef __cplusplus
extern "C" {
#endif