It might be worth looking at something like the EFM32 port - that's a very basic port of Espruino so there shouldn't be too much confusing in there... But basically you'll want:
main.c and jshardware.c in targets/samd
some more files in the make directory that handle any Atmel-specific files
Probably your own linker file in targetlibs/samd (as well as Atmel API files - if these are big you could load them in via provision.sh)
And that's it I think - probably the most important thing is to get your blink-prog working with the serial (or USB?) port... Once you can have access to the REPL on Espruino debugging will be a lot easier!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Nice, thanks!
It might be worth looking at something like the EFM32 port - that's a very basic port of Espruino so there shouldn't be too much confusing in there... But basically you'll want:
main.c
andjshardware.c
intargets/samd
make
directory that handle any Atmel-specific filestargetlibs/samd
(as well as Atmel API files - if these are big you could load them in via provision.sh)And that's it I think - probably the most important thing is to get your blink-prog working with the serial (or USB?) port... Once you can have access to the REPL on Espruino debugging will be a lot easier!