summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/std.h
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-01-06 00:20:11 -0800
committerDave Hylands <dhylands@gmail.com>2014-01-06 00:20:11 -0800
commit297446e7af472f8869ecca67f37ed159d02b1024 (patch)
tree80d279810f02335dee457fab68c42f5e4e365c81 /teensy/std.h
parente03c0533fe467439bae1addd6d2a2ee57a9370e4 (diff)
downloadmicropython-297446e7af472f8869ecca67f37ed159d02b1024.tar.gz
micropython-297446e7af472f8869ecca67f37ed159d02b1024.zip
Initial support for Teensy 3.1
Diffstat (limited to 'teensy/std.h')
-rw-r--r--teensy/std.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/teensy/std.h b/teensy/std.h
new file mode 100644
index 0000000000..587b9f8880
--- /dev/null
+++ b/teensy/std.h
@@ -0,0 +1,22 @@
+typedef unsigned int size_t;
+
+void __assert_func(void);
+
+void *malloc(size_t n);
+void free(void *ptr);
+void *calloc(size_t sz, size_t n);
+void *realloc(void *ptr, size_t n);
+
+void *memcpy(void *dest, const void *src, size_t n);
+void *memmove(void *dest, const void *src, size_t n);
+void *memset(void *s, int c, size_t n);
+
+int strlen(const char *str);
+int strcmp(const char *s1, const char *s2);
+int strncmp(const char *s1, const char *s2, size_t n);
+char *strndup(const char *s, size_t n);
+char *strcpy(char *dest, const char *src);
+char *strcat(char *dest, const char *src);
+
+int printf(const char *fmt, ...);
+int snprintf(char *str, size_t size, const char *fmt, ...);