From 3cb4938c637290625d2fd71f7b4b94d385a4070b Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 24 Aug 2016 17:38:08 -0700 Subject: atmel-samd: Support Digital IO pins. Also bumps up the heap size. --- atmel-samd/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'atmel-samd/main.c') 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 (;;) { -- cgit v1.2.3