summaryrefslogtreecommitdiff
path: root/py/misc.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@chickadee.tech>2016-10-25 14:27:59 -0700
committerScott Shawcroft <scott@chickadee.tech>2016-10-25 18:36:37 -0700
commitd189a3f3cf1b9aaaccf0996e8846aabe6e70cb4a (patch)
tree079bfb21ec2d46e60d22ba5bcca0e6e5f6f94574 /py/misc.h
parent614c1fdba2aca393e6769221cf8d8b55ee3464fe (diff)
atmel-samd: Support auto-reset based on USB write activity.
It will soft-reboot micropython after a burst of writes to the file system. This means that after you save files on your computer they will be automatically rerun. This can be disabled in the build by unsetting AUTORESET_TIMER in mpconfigboard.h. Using the REPL will also prevent the soft resets until you reset with CTRL-D manually.
Diffstat (limited to 'py/misc.h')
-rw-r--r--py/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/misc.h b/py/misc.h
index e60665e59..b68f9cccb 100644
--- a/py/misc.h
+++ b/py/misc.h
@@ -34,6 +34,8 @@
#include <stdint.h>
#include <stddef.h>
+#include "mpconfig.h"
+
typedef unsigned char byte;
typedef unsigned int uint;