summaryrefslogtreecommitdiff
path: root/zephyr
AgeCommit message (Collapse)Author
2017-01-21zephyr: Remove deprecated .mdef file.Paul Sokolovsky
2017-01-20zephyr/help: Update n_args param type to size_t.Paul Sokolovsky
2016-12-18zephyr: Enable slice subscription.Paul Sokolovsky
Required for the testsuite.
2016-12-17zephyr/uart_core: Access console UART directly instead of printk() hack.Paul Sokolovsky
This is required to avoid extra level of output "cooking" ("\r\r\n") and make test infrastructure work. On the other hand, this breaks somewhat Zephyr console abstraction.
2016-12-16zephyr: Use core-provided keyboard exception object.Paul Sokolovsky
2016-12-16zephyr/main: Initialize sys.path and sys.argv.Paul Sokolovsky
2016-12-15zephyr: Implement soft reset feature.Paul Sokolovsky
2016-12-15zephyr: Support raw REPL.Paul Sokolovsky
2016-12-04zephyr: Switch to Zephyr 1.6 unified kernel API.Paul Sokolovsky
In 1.6, Zephyr switched to "unified kernel" and new API set. Older kernel API is supported, but marked as deprecated and leads to warnings.
2016-11-30zephyr/zephyr_getchar: Update to Zephyr 1.6 unified kernel API.Paul Sokolovsky
2016-11-30zephyr: Add .gitignore to ignore Zephyr's "outdir" directory.Paul Sokolovsky
That's where Zephyr keeps object files and produced executables.
2016-11-09zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions).Paul Sokolovsky
2016-11-05zephyr/Makefile: Add -fomit-frame-pointer.Paul Sokolovsky
Somehow, Zephyr uses -fno-omit-frame-pointer, whch bloats code size considerably (+5K for minimal ARM Thumb2 build).
2016-11-05zephyr/Makefile: Add minimal port.Paul Sokolovsky
2016-11-04zephyr/Makefile: Allow to override Zephyr config from make command line.Paul Sokolovsky
2016-11-04zephyr/Makefile: Update comments to the current state of affairs.Paul Sokolovsky
2016-11-04zephyr/Makefile: Allow to adjust heap size from make command line.Paul Sokolovsky
2016-11-04zephyr/mpconfigport.h: Move less important params to the bottom.Paul Sokolovsky
2016-10-29extmod/utime_mphal: Implement ticks_add(), add to all maintained ports.Paul Sokolovsky
2016-10-28zephyr/README: Update for the current featureset, add more info.Paul Sokolovsky
2016-10-28zephyr: Support time -> utime module "weaklink".Paul Sokolovsky
So, now it's possible to just do normal Python's "import time".
2016-10-28zephyr/zephyr_getchar: Update for recent Zephyr refactor of console hooks.Paul Sokolovsky
uart_irq_input_hook_set() was renamed to uart_console_in_debug_hook_install() and accepts different params.
2016-10-27zephyr: Initial implementation of machine.Pin.Daniel Thompson
The integration with Zephyr is fairly clean but as MicroPython Hardware API requires pin ID to be a single value, but Zephyr operates GPIO in terms of ports and pins, not just pins, a "hierarchical" ID is required, using tuple of (port, pin). Port is a string, effectively a device name of a GPIO port, per Zephyr conventions these are "GPIO_0", "GPIO_1", etc.; pin is integer number of pin with the port (supposed to be in range 0-31). Example of pin initialization: pin = Pin(("GPIO_1", 21), Pin.OUT) (an LED on FRDM-K64F's Port B, Pin 21). There is support for in/out pins and pull up/pull down but currently there is no interrupt support. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org> Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2016-10-26zephyr: Use board/SoC values for startup banner based on Zephyr config.Vincenzo Frascino
This patch modifies the HW macro definition in order to let micropython report correctly the BOARD and the SOC on which it is working on.
2016-10-26zephyr: Fix mp_hal_set_interrupt_char() declaration to be compatible.Paul Sokolovsky
With other ports. Other ports declare it in mphalport.h, it can be inline or macro.
2016-10-22zephyr: Implement utime module.Daniel Thompson
This provides time and sleep together with the usual ticks_us/_ms/_diff and sleep_us/ms family. We also provide access to Zephyr's high precision timer as ticks_cpu(). Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2016-10-21py/py.mk: Automatically add frozen.c to source list if FROZEN_DIR is defined.Paul Sokolovsky
Now frozen modules generation handled fully by py.mk and available for reuse by any port.
2016-10-12zephyr: Add copyright blurbs.Paul Sokolovsky
2016-10-12zephyr/mpconfigport.h: Fix rebasing artifacts.Paul Sokolovsky
2016-10-12zephyr: Implement the help() function.Daniel Thompson
The boot issue text mentions a help() function and encourages the user to run it. It is very disconcerting to find that the function does not exist... Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2016-10-12zephyr/Makefile: Be sure to extra qstr's from port sources.Paul Sokolovsky
2016-10-10zephyr: Add Ctrl+C handling.Paul Sokolovsky
2016-10-10zephyr/zephyr_getchar: Add support for Ctrl+C handling.Paul Sokolovsky
Patch on top of upstream Zephyr console helpers.
2016-10-10zephyr/main: Execute main.py frozen module on boot, if available.Paul Sokolovsky
2016-10-10zephyr: Enable frozen modules support.Paul Sokolovsky
2016-10-10zephyr: Enable stack checking and micropython.mem_info().Paul Sokolovsky
2016-10-10zephyr: Add README.Paul Sokolovsky
2016-10-10zephyr: Use recently added "make outputexports" Zephyr target.Daniel Thompson
The outputexpors target, which exports Zephyr environment variables, was recently added to Zephyr. By exploiting this feature we can hugely simplify the build system, improving robustness at the same time. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2016-10-10zephyr/Makefile: Automatically derive target-specific CFLAGS.Paul Sokolovsky
By tricking Zephyt arch Makefiles compute them for us (not just for Zephyr). This make potentially break as Zephyr evolves.
2016-10-10zephyr: Support extra make targetsDaniel Thompson
The two variables, GENERIC_TARGETS and CONFIG_TARGETS come, respectively, from the the lists shown during "make help" and "make kconfig-help". Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2016-10-10zephyr: Automatically derive ARCH.Daniel Thompson
Currently to compile for anything that except ARCH=x86 we have to provide ARCH via the environment or make arguments. We can do better than that! Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2016-10-10zephyr: Switch to microkernel, required for network to work in background.Paul Sokolovsky
2016-10-10zephyr: Add zephyr_getchar module to handle console input.Paul Sokolovsky
From https://github.com/pfalcon/zephyr_getchar .
2016-10-10zephyr: Initial Zephyr RTOS port, Zephyr part.Paul Sokolovsky
2016-10-10zephyr: Initial Zephyr RTOS port, MicroPython part.Paul Sokolovsky