aboutsummaryrefslogtreecommitdiff
path: root/syscalls.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-05-05 22:58:34 -0400
committerPaul Selkirk <paul@psgd.org>2017-05-05 22:58:34 -0400
commit1815f1b2aa0a3ff0654f4eb65fdd0a5bdfe8c7b7 (patch)
tree34e28b0a0b2b1b862bb3039792a9504e227fd7ba /syscalls.c
parent9cec66f9200cb573353928bd3292fb1f710e4b3c (diff)
Port profiling code, using a new SysTick hook and new CLI commands.
Diffstat (limited to 'syscalls.c')
-rw-r--r--syscalls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/syscalls.c b/syscalls.c
index d7b7211..1624454 100644
--- a/syscalls.c
+++ b/syscalls.c
@@ -48,6 +48,7 @@
/***************************************************************************/
+#ifndef DO_PROFILING
int _read_r (struct _reent *r, int file, char * ptr, int len)
{
r = r;
@@ -103,6 +104,7 @@ int _close_r (struct _reent *r, int file)
{
return 0;
}
+#endif
/***************************************************************************/
@@ -143,6 +145,7 @@ caddr_t _sbrk_r (struct _reent *r, int incr)
/***************************************************************************/
+#ifndef DO_PROFILING
int _fstat_r (struct _reent *r, int file, struct stat * st)
{
r = r;
@@ -181,6 +184,7 @@ int _kill (int a, int b)
return 0;
}
+#endif
/***************************************************************************/
@@ -193,6 +197,7 @@ int _getpid(int a)
/***************************************************************************/
+#ifndef DO_PROFILING
int _open(int a, int b)
{
a = a;
@@ -200,5 +205,6 @@ int _open(int a, int b)
return 0;
}
+#endif
/*** EOF ***/