aboutsummaryrefslogtreecommitdiff
path: root/windows/windows_mphal.c
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-05-29various: Spelling fixesVille Skyttä
2017-04-11unix, windows: Use core-provided KeyboardInterrupt exception object.Damien George
2016-11-03windows: Implement mp_hal_ticks_cpu in terms of QueryPerformanceCounterstijn
2016-11-03windows: Fix utime_mphal compilation for msvcstijn
2016-10-29windows: Enable utime_mphal following unix, define mp_hal_ticks_*.Paul Sokolovsky
mp_hal_ticks_ms, mp_hal_ticks_us taken from unix port, mp_hal_ticks_cpu dummy.
2015-12-21windows: Better handling of Ctrl-Cstijn
This builds upon the changes made in 2195046365c. Using signal() does not produce reliable results so SetConsoleCtrlHandler is used, and the handler is installed only once during initialization instead of removing it in mp_hal_set_interrupt_char when it is not strictly needed anymore, since removing it might lead to Ctrl-C events being missed because they are fired on a seperate thread which might only become alive after the handler was removed.
2015-12-18windows/windows_mphal: Add basic support for raising KeyboardInterrupt.Paul Sokolovsky
Compiles with mingw32, tested to work erratically under Wine due to not fully implemented emulation in it.
2015-10-31all: Add py/mphal.h and use it in all ports.Damien George
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
2015-10-26windows: Erase pre-calc'd number of chars instead of clearing whole line.stijn
2015-10-20lib/mp-readline: Add n_chars argument to mp_hal_erase_line_from_cursor.Damien George
If VT100 support is not available then a given implementation of mp_hal_erase_line_from_cursor might need to know the number of characters to erase. This patch does not change generated code when VT100 is supported, since compiler can optimise away the argument.
2015-06-04windows: Implement the mp_hal_xxx functions and enable mp-readlinestijn