diff options
| author | Scott Shawcroft <scott@chickadee.tech> | 2016-08-24 17:38:08 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@chickadee.tech> | 2016-08-24 17:38:08 -0700 |
| commit | 3cb4938c637290625d2fd71f7b4b94d385a4070b (patch) | |
| tree | 9cee8c43de12a32f541f25c876e4549bfb14a11d /atmel-samd/main.c | |
| parent | dade18bddf2a700c372f64d0a859cd0d24ea98d0 (diff) | |
atmel-samd: Support Digital IO pins.
Also bumps up the heap size.
Diffstat (limited to 'atmel-samd/main.c')
| -rw-r--r-- | atmel-samd/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c index cb722cc1a..2e7cc48a5 100644 --- a/atmel-samd/main.c +++ b/atmel-samd/main.c @@ -18,6 +18,7 @@ #include "asf/sam0/drivers/system/system.h" #include "mpconfigboard.h" +#include "pin.h" #include "uart.h" void do_str(const char *src, mp_parse_input_kind_t input_kind) { @@ -41,7 +42,7 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) { } static char *stack_top; -static char heap[2048]; +static char heap[8192]; int main(int argc, char **argv) { // initialise the cpu and peripherals @@ -57,6 +58,9 @@ int main(int argc, char **argv) { gc_init(heap, heap + sizeof(heap)); #endif mp_init(); + + pin_init0(); + #if MICROPY_REPL_EVENT_DRIVEN pyexec_event_repl_init(); for (;;) { |
