Damien George
42ef5a1567
docs: Allow list of versions to be specified by environment variable.
9 years ago
Damien George
5b74bba3a3
docs: Add versions.html template and support code for a version sidebar.
9 years ago
Damien George
4b6077b3fe
docs/esp8266: Minor tweaks to quickref, Timer and I2C classes.
9 years ago
Paul Sokolovsky
43d497592f
extmod/modlwip: Factor out "socket connected" check to a function.
Same code repeated for each send*() and recv*() function.
9 years ago
Paul Sokolovsky
fda874e406
extmod/modlwip: Support non-blocking recv().
9 years ago
Paul Sokolovsky
7379be3673
extmod/modlwip: Add .write() stream method.
9 years ago
Damien George
4f64f6bfd3
extmod/modlwip: Still process remaining incoming data of a closed socket.
It can happen that a socket gets closed while the pbuf is not completely
drained by the application. It can also happen that a new pbuf comes in
via the recv callback, and then a "peer closed" event comes via the same
callback (pbuf=NULL) before the previous event has been handled. In both
cases the socket is closed but there is remaining data. This patch makes
sure such data is passed to the application.
9 years ago
Damien George
6d2e9e70b3
extmod/modlwip: Check for state change during recv busy-wait loop.
For example, the peer may close the connection while recv is waiting for
incoming data.
9 years ago
Paul Sokolovsky
6185dc5f3d
extmod/modlwip: Add stream .read() and .readline() methods.
9 years ago
Paul Sokolovsky
f1919b7c98
extmod/modlwip: Add dummy .makefile() method.
9 years ago
Paul Sokolovsky
c7fb87caff
extmod/modlwip: Add stream protocol read method.
9 years ago
Damien George
f7be80398e
esp8266: Move pyb.freq to machine.freq.
9 years ago
Damien George
809fbeefb7
docs: Add esp8266 quick reference page, with basic info.
9 years ago
Damien George
dcdf8f2d14
py/objboundmeth: Allocate arg state on stack if heap alloc fails.
If the heap is locked, or memory allocation fails, then calling a bound
method will still succeed by allocating the argument state on the stack.
The new code also allocates less stack than before if less than 4
arguments are passed. It's also a tiny bit smaller in code size.
This was done as part of the ESA project.
9 years ago
Damien George
bb293e6bcf
stmhal: Add stmhal-specific README.md with extra details for this port.
9 years ago
Damien George
2c72ae5c29
stmhal: Switch from dfu-util to tools/pydfu.py for deflt deploy method.
tools/pydfu.py is now the recommended way of deploying a DFU file. Old
behaviour of dfu-util can be obtained by passing USE_PYDFU=0 when invoking
make.
The main README.md file has been updated to reflect this change.
9 years ago
Damien George
f0e2d13fd2
tests/run-tests: Simplify handling of newline in output from tests.
Now, all output has newlines converted to \n, regardless of port or
platform.
9 years ago
Paul Sokolovsky
ed593780bf
extmod/modlwip: Implement dummy setsockopt().
9 years ago
Paul Sokolovsky
a0cd118b14
esp8266/main: Module to run on boot is "boot", not "main".
9 years ago
Paul Sokolovsky
f8d42da104
extmod/modlwip: Add .print() method.
9 years ago
Damien George
3fbbbecec9
esp8266: Put more code in iROM section.
Also explicitly name the py/*.o files in the linker file, to enable easy
testing of putting certain ones in iRAM.
9 years ago
Paul Sokolovsky
04a9ac7f38
extmod/modlwip: Update make_new() arguments for recent refactor.
9 years ago
Paul Sokolovsky
d684f872bd
esp8266/Makefile: Add define for ESP8266 lwIP.
9 years ago
Damien George
05dda0ee9e
esp8266: Enable modlwip.
9 years ago
Paul Sokolovsky
88b0490945
esp8266: Don't gc-collect BSS.
None of the other ports do, since introduction of mp_state_ctx_t. In
the case of current esp8266 port, heap is inside BSS, so scanning it
picked up a lot of dead pointers.
9 years ago
Markus Fix
4f0080346b
py/emitglue: Get persistent bytecode working on Linux ARM platform.
9 years ago
Dave Hylands
484a471f9b
stmhal: Fix some typos in stm32f411 files, regarding FS layout and CSV.
9 years ago
Dave Hylands
367c084c4b
stmhal: Fix typo in stm32f401.ld file, regarding flash size.
9 years ago
Dave Hylands
0edfb7a115
stmhal: Make spi use mp_hal_gpio_set_af
9 years ago
Damien George
d964873e56
tests/run-tests: Fix logic when selecting test-dirs for a given target.
9 years ago
Pavol Rusnak
ce3beb1672
stmhal: Unify comments in stm32f4xx_hal_conf.h across all boards.
To make it easier to spot differences.
9 years ago
Paul Sokolovsky
b86c20676e
tests/recursive_iternext.py: Make low-heap friendly.
9 years ago
Paul Sokolovsky
db984b73f3
esp8266: Enable stack overflow checking.
9 years ago
Paul Sokolovsky
1d5d4f49d9
py/stackctrl: Add mp_stack_set_top() to explicitly set stack top value.
Useful for embedded targets with fixed stack layout.
9 years ago
Paul Sokolovsky
419bb26ddc
tests/print_exception: Use exception which prints the same regardless of config.
NameError may either include offending name or not. Unfortunately, this
change makes test float-dependent. And using integer division leads to
different error message than CPython.
9 years ago
Paul Sokolovsky
d973c1bc12
test/string_format_fp30: Variant of string_format for 30-bit stuffed float.
9 years ago
Paul Sokolovsky
50e0a7b9d4
test/float2int_fp30: Variant of float2int for 30-bit stuffed float.
9 years ago
Damien George
fbb3c190f9
tests: Remove commented out tests so test script is not too big.
9 years ago
Damien George
14848ffa12
tests: Reduce large object allocations so tests can run with small heap.
9 years ago
Damien George
52d7685d9a
esp8266: Allow Makefile's BAUD variable to be overridden.
9 years ago
Paul Sokolovsky
d9d4a72679
esp8266/uart: Add uart_flush() function.
9 years ago
Paul Sokolovsky
d3a4d39687
esp8266: Support raising KeyboardInterrupt on Ctrl+C.
9 years ago
Damien George
077448328a
esp8266/etshal.h: More prototypes of ESP8266 SDK/BootROM functions.
9 years ago
Paul Sokolovsky
26f0616e8f
esp8266/modmachine: Add Pin class from modpyb.
9 years ago
Paul Sokolovsky
eb247eacd8
esp8266/modpybpin: Add support for GPIO16.
GPIO16 is actually special-function I/O, though some boards have LED there.
9 years ago
Damien George
342d903a13
esp8266: Expose simple pin API at C level.
9 years ago
Damien George
cdad2b6f4d
esp8266: Implement Pin.__call__() and Pin.OPEN_DRAIN mode.
OPEN_DRAIN is of course synthesised. All pin modes are tested and
working.
9 years ago
Paul Sokolovsky
8ab16b6af0
esp8266: Add custom _assert() function.
Enabling standard assert() (by removing -DNDEBUG) produces non-bootable
binary (because all messages go to .rodata which silently overflows).
So, for once-off debugging, have a custom _assert().
9 years ago
Paul Sokolovsky
c70637bc00
esp8266/modmachine: Timer: Add ONE_SHOT and PERIODIC symbolic constants.
9 years ago
Paul Sokolovsky
98b727c931
esp8266/modmachine: Use etshal.h.
9 years ago