When running a script with infinite recursion, micropython now throws an
error instead of aborting and rebooting the device.
Change-Id: Icd409e56de58a48b25b6bdb30eea1e70b344cc14
On the device, the stack is stored in reverse order, but it might not be
the case on other platforms, which changes stack length computation.
Change-Id: I0218224a77465b9672f137771c00f734fdfaea64
A script can now be imported in the console.
Moved all the MicroPython functions to python/port files.
Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7