aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-12-05unix-cpy: Fix build due to change in lexer API.Damien George
2014-12-05py: Optimise lexer by exposing lexer type.Damien George
mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer functions (like checking current token kind) are now inlined. This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460 bytes on bare-arm. It also saves a tiny bit of RAM since mp_lexer_t is a bit smaller. Also will run a bit more efficiently.
2014-12-05docs: uzlib: Typo fix.Paul Sokolovsky
2014-12-05docs: Add quick docs for uzlib.Paul Sokolovsky
2014-12-04docs: Update network docs to reflect changes to code.Damien George
2014-12-04stmhal: Overhaul network drivers; has generic network protocol in C.Damien George
This patch overhauls the network driver interface. A generic NIC must provide a set of C-level functions to implement low-level socket control (eg socket, bind, connect, send, recv). Doing this, the network and usocket modules can then use such a NIC to implement proper socket control at the Python level. This patch also updates the CC3K and WIZNET5K drivers to conform to the new interface, and fixes some bugs in the drivers. They now work reasonably well.
2014-12-04drivers, wiznet5k: Add socket_reset; fix orderly shutdown in recv.Damien George
2014-12-04py: Allow bytes/bytearray/array to be init'd by buffer protocol objects.Damien George
Behaviour of array initialisation is subtly different for bytes, bytearray and array.array when argument has buffer protocol. This patch gets us CPython conformant (except we allow initialisation of array.array by buffer with length not a multiple of typecode).
2014-12-04docs: Add skeleton docs for ure module.Paul Sokolovsky
2014-12-02py, vm: Make unum a local variable for each opcode that uses it.Damien George
This makes no change to the generated code, but it's now easier to understand since unum is not a "global" variable anymore.
2014-12-02stmhal: Move RTC HAL init functions to rtc.c, where they belong.Damien George
So can remove unnecessary stm32f4xx_hal_msp.c file.
2014-12-02docs: Add links to LCD and AMP skin schematics.Damien George
2014-12-02docs: Add quick docs for ubinascii.Paul Sokolovsky
2014-12-02docs: Add quick docs for uhashlib.Paul Sokolovsky
2014-12-01docs: Sort "micro-library" module list alphabetically.Paul Sokolovsky
2014-12-01modmicropython: Move mem_info() and qstr_info() functions from unix port.Paul Sokolovsky
TODO: Merge useful functionality from modpyb too.
2014-11-30tools: Make pyboard.py have infinite timeout when running script.Damien George
This makes pyboard.py much more useful for long running scripts. When running a script via pyboard.py, it now waits until the script finishes, with no timeout. CTRL-C can be used to break out of the waiting if needed.
2014-11-30stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise.Damien George
pyb.delay and pyb.udelay now use systick if IRQs are enabled, otherwise they use a busy loop. Thus they work correctly when IRQs are disabled. The busy loop is computed from the current CPU frequency, so works no matter the CPU frequency.
2014-11-30py: Generalise and reduce code size of array +, += and .extend().Damien George
By using the buffer protocol for these array operations, we now allow addition of memoryview objects, and objects with "incompatible" typecodes (in this case it just adds bytes naively). This is an extension to CPython which seems sensible. It also reduces the code size.
2014-11-30Update documentation for the CAN classHenrik Sölver
2014-11-30py: Implement +, += and .extend for bytearray and array objs.Damien George
Addresses issue #994.
2014-11-29stmhal: Add USB_VCP.setinterrupt method, to disable CTRL-C.Damien George
2014-11-29esp8266: Add README.md.Damien George
2014-11-29tests: Split out float test from builtin_round.py.Damien George
2014-11-29Use MP_DEFINE_CONST_DICT macro to define module dicts.Damien George
This is just a clean-up of the code. Generated code is exactly the same.
2014-11-29esp8266: Move more rodata to irom section.Damien George
rodata can only go in iram/irom if it's accessed only using word loads (ie no byte or half-word access).
2014-11-29modubinascii: Add, with hexlify() implementation.Paul Sokolovsky
2014-11-28esp8266: Make default ESP_SDK variable work correctly.Damien George
When esp-open-sdk is built with STANDALONE=y (the default) then ESP_SDK is set to the correct value, so that "make" just works.
2014-11-28docs: Bump version to 1.3.7.Damien George
2014-11-28Update uheapq.rstinaugurator
Erratum in froh.
2014-11-28esp8266: Change bignum from mpz to longlong; move some rodata to iram.Damien George
Some rodata items can go in iram/irom segment, but not others. With this patch ESP now has 24256 bytes of heap ram. It passes 228 out of 248 tests from tests/basics directory.
2014-11-28esp8266: Provide sensible default ESP_SDK; deploy 2 the images together.Damien George
2014-11-28esp8266: Allow to override serial port.Paul Sokolovsky
2014-11-27esp8266: New port of Micro Python to ESP8266 wifi module.Damien George
2014-11-27py: Add NLR support for xtensa CPU.Damien George
2014-11-27stmhal: Enable uhashlib module; add heapq, hashlib weak links.Damien George
hashlib test passes on pyboard.
2014-11-27pfenv_printf: Properly implement %p format specifier.Paul Sokolovsky
Previously, it truncated pointer value to 32 bits on 64-bit systems.
2014-11-27builtin: Reimplement __repl_print__() in terms of print().Paul Sokolovsky
Before, __repl_print__() used libc printf(), while print() used uPy streams and own printf() implementation. This led to subtle, but confusing differences in output when just doing "foo" vs "print(foo)" on interactive prompt.
2014-11-27map: Add empty fixed map.Paul Sokolovsky
Useful when need to call kw-receiving functions without any keywords from C, etc.
2014-11-27stmhal: Remove unnecessary HAL_Delay in readline loop.Damien George
The reason for having this delay is to reduce power consumption at the REPL (HAL_Delay calls __WFI to idle the CPU). But stdin_rx_chr has a __WFI in it anyway, so this delay call is not needed. By removing this call, the readline input can consume characters much more quickly (before was limited to 1000 chrs/s), and has much reduced dependency on the specific port.
2014-11-27stmhal: Reduce coupling between USB driver and readline.Damien George
This makes it easier to re-use readline.c and pyexec.c from stmhal in other ports.
2014-11-27py: #if guard str_make_new when not needed.Damien George
2014-11-26Adding CAN filter managementHenrik Sölver
2014-11-25stmhal: Enable DAC on STM32F4DISC.Damien George
Addresses issue #987.
2014-11-22tests: Add test for hashlib.sha256 .Paul Sokolovsky
2014-11-22moduhashlib: Integrate sha256 implementation.Paul Sokolovsky
2014-11-22moduhashlib: Add sha256 implementation from "crypto-algorithms" project.Paul Sokolovsky
https://github.com/B-Con/crypto-algorithms revision 100f4ff
2014-11-22moduhashlib: Initial module skeleton.Paul Sokolovsky
2014-11-21drivers, cc3000: Cleaning up, make local functions static.Damien George
2014-11-21windows: Update config with latest featuresstijn
- update mpconfigport.h to reflect latest unix version - fix compilation error in modure due to msvc not allowing dynamic arrays