Damien George
3b603f29ec
Use MP_DEFINE_CONST_DICT macro to define module dicts.
...
This is just a clean-up of the code. Generated code is exactly the
same.
2014-11-29 14:39:27 +00:00
Damien George
e636279fe0
esp8266: Move more rodata to irom section.
...
rodata can only go in iram/irom if it's accessed only using word loads
(ie no byte or half-word access).
2014-11-29 14:36:18 +00:00
Paul Sokolovsky
bfdc205934
modubinascii: Add, with hexlify() implementation.
2014-11-29 13:52:47 +00:00
Damien George
d96e6b14c9
esp8266: Make default ESP_SDK variable work correctly.
...
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-28 18:05:25 +00:00
Damien George
722fab7c2a
docs: Bump version to 1.3.7.
2014-11-28 17:48:48 +00:00
inaugurator
9aae41121b
Update uheapq.rst
...
Erratum in froh.
2014-11-28 17:32:29 +00:00
Damien George
fbea810043
esp8266: Change bignum from mpz to longlong; move some rodata to iram.
...
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-28 14:58:25 +00:00
Damien George
5f10065718
esp8266: Provide sensible default ESP_SDK; deploy 2 the images together.
2014-11-28 10:22:01 +00:00
Paul Sokolovsky
1bbc389d67
esp8266: Allow to override serial port.
2014-11-28 01:54:46 +02:00
Damien George
075d597464
esp8266: New port of Micro Python to ESP8266 wifi module.
2014-11-27 20:30:33 +00:00
Damien George
2399aa03b8
py: Add NLR support for xtensa CPU.
2014-11-27 20:29:33 +00:00
Damien George
92f1ed8f40
stmhal: Enable uhashlib module; add heapq, hashlib weak links.
...
hashlib test passes on pyboard.
2014-11-27 17:54:37 +00:00
Paul Sokolovsky
df732bb01b
pfenv_printf: Properly implement %p format specifier.
...
Previously, it truncated pointer value to 32 bits on 64-bit systems.
2014-11-27 17:38:03 +00:00
Paul Sokolovsky
1eca32836d
builtin: Reimplement __repl_print__() in terms of print().
...
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-27 17:38:03 +00:00
Paul Sokolovsky
e5dbe1e283
map: Add empty fixed map.
...
Useful when need to call kw-receiving functions without any keywords
from C, etc.
2014-11-27 17:37:07 +00:00
Damien George
317cf18486
stmhal: Remove unnecessary HAL_Delay in readline loop.
...
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-27 17:04:09 +00:00
Damien George
5cbc9e0db0
stmhal: Reduce coupling between USB driver and readline.
...
This makes it easier to re-use readline.c and pyexec.c from stmhal in
other ports.
2014-11-27 16:58:31 +00:00
Damien George
6f5eb84c19
py: #if guard str_make_new when not needed.
2014-11-27 16:55:47 +00:00
Henrik Sölver
acb92c186c
Adding CAN filter management
2014-11-26 18:52:33 +00:00
Damien George
20d239cb28
stmhal: Enable DAC on STM32F4DISC.
...
Addresses issue #987 .
2014-11-25 11:42:26 +00:00
Paul Sokolovsky
4a1c80c293
tests: Add test for hashlib.sha256 .
2014-11-22 14:54:02 +02:00
Paul Sokolovsky
a944183b35
moduhashlib: Integrate sha256 implementation.
2014-11-22 14:48:17 +02:00
Paul Sokolovsky
63e02e8cc0
moduhashlib: Add sha256 implementation from "crypto-algorithms" project.
...
https://github.com/B-Con/crypto-algorithms revision 100f4ff
2014-11-22 14:47:52 +02:00
Paul Sokolovsky
f4b19c873f
moduhashlib: Initial module skeleton.
2014-11-22 14:47:46 +02:00
Damien George
df242facdc
drivers, cc3000: Cleaning up, make local functions static.
2014-11-21 19:46:24 +00:00
stijn
b89eaaa2e2
windows: Update config with latest features
...
- update mpconfigport.h to reflect latest unix version
- fix compilation error in modure due to msvc not allowing dynamic arrays
2014-11-21 19:38:33 +00:00
Damien George
c9f8f653ad
py: Add support for float/double arrays in array module.
...
Addresses issue #981 .
2014-11-21 18:16:25 +00:00
blmorris
9d1ca65b59
Set PYTHONIOENCODING='utf-8' so that unicode tests can pass on CPython on
...
systems where another encoding is set in the locale
2014-11-19 10:44:31 -05:00
Damien George
3bdb23d4d3
README: Update link to logo.
2014-11-17 00:41:54 +00:00
Damien George
5694cc5490
py: Make stream seek correctly check for ioctl fn; add seek for textio.
2014-11-16 23:56:37 +00:00
Paul Sokolovsky
91386eee26
ports: Define mp_off_t.
2014-11-17 00:16:14 +02:00
Paul Sokolovsky
fa2edabc5c
stmhal: Switch to file.seek() implementation using stream ioctl.
2014-11-17 00:16:14 +02:00
Paul Sokolovsky
c7d5500142
tests: Add test for file.seek().
2014-11-17 00:16:14 +02:00
Paul Sokolovsky
838eb1fa2d
stream: Implement seek operation support via ioctl, wrapped in generic method.
...
Also, implement for unix port.
2014-11-17 00:16:14 +02:00
Paul Sokolovsky
f4a6a577ab
stream: Convert .ioctl() to take fixed number of args.
...
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-17 00:16:14 +02:00
Damien George
5228854f0e
docs: Fix RTD build configuration.
...
ReadTheDocs needs the root directory in its search path so it finds
topindex.html.
2014-11-15 21:33:07 +00:00
Damien George
d1b42d7b51
stmhal: Improve CAN init so that it can take sjw, bs1, bs2 args.
...
Also update docs to explain how CAN baudrate is determined.
2014-11-15 21:28:14 +00:00
Damien George
224fee0e10
stmhal: Fix HAL error raising; make test for it.
...
Addresses issue #968 .
2014-11-15 20:39:44 +00:00
evildmp
aec189a5ba
docs: Add optional sphinx_rtd_theme; add docs build instructions.
...
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-15 19:01:19 +00:00
Matthias
ca0b0cb83f
Document parameter "data" of i2c.mem_read() more clear
...
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-15 18:31:37 +00:00
Damien George
4df85e49d4
tests: Add test for hash of user defined class.
2014-11-15 18:30:01 +00:00
stijn
e00eeaf4cd
py: Use __hash__ method if a type defines it
2014-11-15 18:24:22 +00:00
Paul Sokolovsky
d8474d3617
docs: select: Describe extra details.
2014-11-09 01:48:05 +02:00
Sven Wegener
b98c162c52
py: Fix order-only dependencies in mkrules.mk and py.mk.
...
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-06 18:48:38 +00:00
Damien George
1e9a92f84f
py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled.
...
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-06 17:36:16 +00:00
Damien George
b6b34cd3f6
py: Remove obsolute function declaration.
2014-11-06 17:31:18 +00:00
Sven Wegener
bfb18a714b
py: Add order-only dependency for py-version.h
...
Else the directory might not exist.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-05 22:52:51 +00:00
Sven Wegener
0e0ae97975
stmhal: Declare variables extern in include files
...
Else we end up with several instances of the variable.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-05 22:52:51 +00:00
Sven Wegener
1a5a6d1403
bare-arm: Add dummy __assert_func and __fatal_error
...
Required to build bare-arm with debugging.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-11-05 22:52:51 +00:00
Sven Wegener
238ab5013b
py: Deactivate more code without MICROPY_PY_SYS
...
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-05 22:52:51 +00:00