summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2014-11-21py: Add support for float/double arrays in array module.Damien George
Addresses issue #981.
2014-11-19Set PYTHONIOENCODING='utf-8' so that unicode tests can pass on CPython onblmorris
systems where another encoding is set in the locale
2014-11-17README: Update link to logo.Damien George
2014-11-16py: Make stream seek correctly check for ioctl fn; add seek for textio.Damien George
2014-11-17ports: Define mp_off_t.Paul Sokolovsky
2014-11-17stmhal: Switch to file.seek() implementation using stream ioctl.Paul Sokolovsky
2014-11-17tests: Add test for file.seek().Paul Sokolovsky
2014-11-17stream: Implement seek operation support via ioctl, wrapped in generic method.Paul Sokolovsky
Also, implement for unix port.
2014-11-17stream: Convert .ioctl() to take fixed number of args.Paul Sokolovsky
This is more efficient, as allows to use register calling convention. If needed, a structure pointer can be passed as argument to pass more data.
2014-11-15docs: Fix RTD build configuration.Damien George
ReadTheDocs needs the root directory in its search path so it finds topindex.html.
2014-11-15stmhal: Improve CAN init so that it can take sjw, bs1, bs2 args.Damien George
Also update docs to explain how CAN baudrate is determined.
2014-11-15stmhal: Fix HAL error raising; make test for it.Damien George
Addresses issue #968.
2014-11-15docs: Add optional sphinx_rtd_theme; add docs build instructions.evildmp
The sphinx_rtd_theme is used by ReadTheDocs to render a pretty looking documentation. If you have this theme installed locally then your locally-compiled docs will look exactly like the published documentation. Otherwise it falls back to the default theme.
2014-11-15Document parameter "data" of i2c.mem_read() more clearMatthias
Hi, i would like to add a little clarification to the parameter "data" of i2c.mem_read(): I misunderstood ``data`` can be an integer or a buffer to read into as "i can give a integer variable to read a integer into" . This pull-request adds the following clarification: ``data`` can be an integer (number of bytes to read) or a buffer to read into Thanks for your great work! Best wishes, Matthias
2014-11-15tests: Add test for hash of user defined class.Damien George
2014-11-15py: Use __hash__ method if a type defines itstijn
2014-11-09docs: select: Describe extra details.Paul Sokolovsky
2014-11-06py: Fix order-only dependencies in mkrules.mk and py.mk.Sven Wegener
Currently compilation sporadically fails, because the automatic dependency gets created *during* the compilation of objects. OBJ is a auperset of PY_O and the dependencies apply to all objects. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-06py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled.Damien George
Going from MICROPY_ERROR_REPORTING_NORMAL to MICROPY_ERROR_REPORTING_TERSE now saves 2020 bytes ROM for ARM Thumb2, and 2200 bytes ROM for 32-bit x86. This is about a 2.5% code size reduction for bare-arm.
2014-11-06py: Remove obsolute function declaration.Damien George
2014-11-05py: Add order-only dependency for py-version.hSven Wegener
Else the directory might not exist. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-05stmhal: Declare variables extern in include filesSven Wegener
Else we end up with several instances of the variable. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-05bare-arm: Add dummy __assert_func and __fatal_errorSven Wegener
Required to build bare-arm with debugging. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-05py: Deactivate more code without MICROPY_PY_SYSSven Wegener
When compiler optimization has been turned on, gcc knows that this code block is not going to be executed. But with -O0 it complains about path_items being used uninitialized. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-05unix: Allow -X heapsize number take 'w' specifier for word size adjustment.Paul Sokolovsky
The specifier should go after the number, before size suffix like 'k' or 'm'. E.g.: "-X heapsize=100wk" will use 100K heap on 32-bit system and 200K - on 64-bit.
2014-11-05py: Fix some macros defines; cleanup some includes.Damien George
2014-11-05py: Allow bytes object as argument to some str methods.Damien George
This turns failing assertions to type exceptions for things like b"123".find(...). We still don't support operations like this on bytes objects (unlike CPython), but at least it no longer crashes.
2014-11-05py: Allow +, in, and compare ops between bytes and bytearray/array.Damien George
Eg b"123" + bytearray(2) now works. This patch actually decreases code size while adding functionality: 32-bit unix down by 128 bytes, stmhal down by 84 bytes.
2014-11-05unix: fast: Set initial module dict size big to have high pystone score.Paul Sokolovsky
For this, introduce MICROPY_MODULE_DICT_SIZE config setting.
2014-11-04docs: Bump version to 1.3.6.v1.3.6Damien George
This needs to be done before actually tagging the new version.
2014-11-04docs: Update front page to display date of last update.Damien George
2014-11-04docs: Add links from quickref to pyb classes.Damien George
2014-11-04docs: Add debounce tutorial; order Pin methods; add pull resistor info.Damien George
2014-11-03docs: Add pdf size info to datasheet links.Damien George
2014-11-03docs: Add skin imgs; change external links to micropython.org/resources.Damien George
2014-11-03docs: Adjust table spacing in topindex page.Damien George
2014-11-03py: Explicitly set uninitialised struct member to false.Damien George
Uninitialised struct members get a default value of 0/false, so this is not strictly needed. But it actually decreases code size because when all members are initialised the compiler doesn't need to insert a call to memset to clear everything. In other words, setting 1 extra member to 0 uses less code than calling memset. ROM savings in bytes: 32-bit unix: 100; bare-arm: 44; stmhal: 52.
2014-11-03py: Fix builtin callable so it checks user-defined instances correctly.Damien George
Addresses issue #953.
2014-11-03Merge branch 'szinya-master'Damien George
2014-11-03docs: Fix typo in Fading LEDsMárton Szinovszki
2014-11-02docs: Disable logo and add spacing to top index.Damien George
2014-11-02docs: Make custom index page; add more docs.Damien George
2014-11-02unix: Provide "fast" target to build interpreter for benchmarking.Paul Sokolovsky
This build is primarily intended for benchmarking, and may have random features enabled/disabled to get high scores in synthetic benchmarks. The intent is to show/prove that MicroPython codebase can compete with CPython, when configured appropriately. But the main MicroPython aim still remains to optimize for memory usage (which inevitibly leads to performance degradation in some areas on some workloads).
2014-11-02stmhal: Improve pyb.freq to allow 8 and 16MHz (not usable with USB).Damien George
Also restrict higher frequencies to have a VCO_OUT frequency below 432MHz, as specified in the datasheet. Docs improved to list allowed frequencies, and explain about USB stability.