summaryrefslogtreecommitdiff
path: root/lib/mp-readline
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 /lib/mp-readline
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 'lib/mp-readline')
-rw-r--r--lib/mp-readline/readline.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mp-readline/readline.h b/lib/mp-readline/readline.h
index f73934d23..ffb0d0e1c 100644
--- a/lib/mp-readline/readline.h
+++ b/lib/mp-readline/readline.h
@@ -24,6 +24,8 @@
* THE SOFTWARE.
*/
+#include "py/misc.h"
+
#define CHAR_CTRL_A (1)
#define CHAR_CTRL_B (2)
#define CHAR_CTRL_C (3)