Paul Sokolovsky
4352b944d2
zephyr: Define MICROPY_PY_SYS_PLATFORM (to "zephyr").
8 years ago
Paul Sokolovsky
e094200750
tests/float/builtin_float_minmax: PEP8 fixes.
8 years ago
Damien George
fde54350a8
tests/float: Convert "sys.exit()" to "raise SystemExit".
The latter is shorter and simpler because it doesn't require importing the
sys module.
8 years ago
Tamas TEVESZ
d80c951f71
unix/Makefile: replace references to make with $(MAKE)
make is not always GNU make; the latter may go by different names.
This helps builds on systems where the default make is not GNU make.
8 years ago
Tamas TEVESZ
1dd18c5260
esp8266/Makefile: replace references to make with $(MAKE)
make is not always GNU make; the latter may go by different names.
This helps builds on systems where the default make is not GNU make.
8 years ago
Damien George
22cedef95f
stmhal/usbdev: For MSC implement SCSI SYNCHRONIZE_CACHE command.
Currently just a dummy command that returns "success", but it's needed for
some O/S's to correctly talk with the SCSI layer.
8 years ago
Damien George
e1cda00387
py/modsys: Allow to compile with obj-repr D and PY_ATTRTUPLE disabled.
8 years ago
Damien George
326e8860ab
py/objstr: Allow to compile with obj-repr D, and unicode disabled.
8 years ago
Damien George
72732fea1a
py/persistentcode: Allow to compile with complex numbers disabled.
8 years ago
Damien George
4d2778c9fb
examples/embedding: Use core-provided KeyboardInterrupt object.
8 years ago
Damien George
f86c57fedf
stmhal/usb: Make state for USB device private to top-level USB driver.
8 years ago
Sylvain Pelissier
3bb69f645a
stmhal/usb: Use local USB handler variable in Start-of-Frame handler.
8 years ago
Sylvain Pelissier
6adcf7bb82
stmhal: Pass USB handler as parameter to allow more than one USB handler
8 years ago
Damien George
7ecfbb8267
extmod/vfs: Allow "buffering" and "encoding" args to VFS's open().
These args are currently ignored but are parsed to make it easier to
write portable scripts between CPython and MicroPython.
8 years ago
Damien George
f6ef8e3f17
extmod/vfs: Allow to statvfs the root directory.
8 years ago
Dave Hylands
551a731755
stmhal: Add support for NUCLEO_F446RE board.
8 years ago
Paul Sokolovsky
9db1c50f18
qemu-arm: Enable micropython.mem_*() functions to allow more tests.
8 years ago
Paul Sokolovsky
cd64b3082e
docs/network: First step to describe standard network class interface.
This adds description of implied AbstractNIC base class, which should be
"subclasses" and implemented by a particular network device class.
This is just an initial step in that direction, the API and description
will be elabotated further.
8 years ago
Paul Sokolovsky
50de6d2fab
extmod/modlwip: accept: Fix error code for non-blocking mode.
In non-blocking mode, if no pending connection available, should return
EAGAIN, not ETIMEDOUT.
8 years ago
Paul Sokolovsky
5da8de2b66
extmod/modlwip: Fix error codes for duplicate calls to connect().
If socket is already connected, POSIX requires returning EISCONN. If
connection was requested, but not yet complete (for non-blocking
socket), error code is EALREADY.
http://pubs.opengroup.org/onlinepubs/7908799/xns/connect.html
8 years ago
Paul Sokolovsky
a0dbbbebb8
extmod/modlwip: connect: For non-blocking mode, return EINPROGRESS.
Instead of ETIMEDOUT. This is consistent with POSIX:
http://pubs.opengroup.org/onlinepubs/7908799/xns/connect.html
8 years ago
Paul Sokolovsky
43f58386e0
zephyr/modusocket: getaddrinfo: Fix mp_obj_len() usage.
Return value is mp_obj_t, so needs to be accessed using
MP_OBJ_SMALL_INT_VALUE().
8 years ago
Paul Sokolovsky
f245f5d7cc
docs/machine: Sort machine classes in logical order, not alphabetically.
The list starts with the simplest functionality - GPIO, proceeds to
communication interfaces (UART, SPI, I2C), the to time(r) related
things, then everything else.
8 years ago
Paul Sokolovsky
e91b1cdae3
docs/uos: Move cc3200 port legacy VFS mounting functions to its ref doc.
This patch also unconditionalizes uos.dupterm(), though exact interface
and semantics is yet to be defined.
8 years ago
Paul Sokolovsky
1ce44f3046
docs/uos: Deconditionalize, remove minor port-specific details.
For a couple of ports, there was information which directory is set
as current after boot. This information doesn't belong to "uos" module,
and is moved to boards' references (which actually already contained
information on which directory is chosen for boot, even if without
explicit mentioning that it becomes current directory, which is now
done).
8 years ago
Paul Sokolovsky
92206a78ae
docs/network: Move confusingly-named cc3200 Server class to its reference.
cc3200 port has network.Server class to control behavior of builtin
Telnet/FTP server of that port.
8 years ago
Paul Sokolovsky
22ca5390f7
docs/esp8266/quickref: Polish Pin.on()/off() examples.
8 years ago
Damien George
7400d88762
tests/basics/string_rsplit: Add tests for negative "maxsplit" argument.
8 years ago
Damien George
9f85c4fe48
py/objstr: Catch case of negative "maxsplit" arg to str.rsplit().
Negative values mean no limit on the number of splits so should delegate to
the .split() method.
8 years ago
Damien George
ab954ed513
lib/utils/interrupt_char: Remove support for KBD_EXCEPTION disabled.
If a port is using interrupt_char.c then it must enable
MICROPY_KBD_EXCEPTION. This is the case for all official ports.
8 years ago
Damien George
00e4f05907
windows: Convert to use core-provided version of built-in import().
8 years ago
Damien George
d92898a35a
unix: Convert to use core-provided version of built-in import().
8 years ago
Damien George
6ff0ecfffc
ports: Convert from using stmhal's input() to core provided version.
8 years ago
Damien George
bc76302eab
py/modbuiltins: Add core-provided version of input() function.
The implementation is taken from stmhal/input.c, with code added to handle
ctrl-C. This built-in is controlled by MICROPY_PY_BUILTINS_INPUT and is
disabled by default. It uses readline() to capture input but this can be
overridden by defining the mp_hal_readline macro.
8 years ago
Damien George
b53a63517a
lib/libm: Use isfinite instead of finitef, for C99 compatibility.
8 years ago
Damien George
821dc27eec
stmhal/boards: Enable DAC for NUCLEO_F767ZI board.
8 years ago
Paul Sokolovsky
272a5d95e0
docs/esp8266: Consistently replace Pin.high/low methods with .on/off.
8 years ago
Paul Sokolovsky
d5b8825d5f
docs/machine.Pin: Add on() and off() methods.
8 years ago
Paul Sokolovsky
3496d9e4bd
docs/machine.Pin: Remove out_value() method.
This method isn't implemented in any port. It seemed to have originated
in cc3200 port, but actually never was implemented there either. In
general case, it's impossible to implement this method (for example, for
a perfect GPO, which has only output latch without any feedback look
into a CPU).
8 years ago
Ville Skyttä
ca16c38210
various: Spelling fixes
8 years ago
Damien George
e5e49bedcb
qemu-arm/Makefile: Adjust object-file lists to get correct dependencies.
With this change both the "run" and "test" targets can be built with -j
passed to make.
8 years ago
Damien George
825460a093
docs: Bump version to 1.9.
8 years ago
Damien George
d77862279e
unix/Makefile: Don't add frozen bytecode to minimal build.
8 years ago
Paul Sokolovsky
011684bd4f
zephyr/modusocket: Use DEBUG_PRINT macro name as other modules do.
Indeed, just "DEBUG" is too generic.
8 years ago
Damien George
22fdb91571
esp8266/mpconfigport.h: Remove duplicate link to lwip module.
It's already included in the core when MICROPY_PY_LWIP is defined.
8 years ago
Damien George
eea584860d
esp8266/modules: Mount filesystem at root when creating for first time.
8 years ago
Tom Collins
e26fb3ad73
py/objstringio: Catch mp_uint_t overflow of stream position in write().
8 years ago
Damien George
ed6d2547df
mpy-cross/Makefile: Guard "override undefine" by test for make feature.
make v3.81 doesn't have "undefine" so we can't use it with that version.
8 years ago
Damien George
85f7b0b468
py/mkrules.mk: Fix auto-qstr generation when "make -B" is used.
For make v3.81, using "make -B" can set $? to empty and in this case the
auto-qstr generation needs to pass all args (ie $^) to cpp. The previous
fix for this (which was removed in 23a693ec2d
)
used if statements in the shell command, which gave very long lines that
didn't work on certain systems (eg cygwin).
The fix in this patch is to use an $if(...) expression, which will evaluate
to $? (only newer prerequisites) if it's non empty, otherwise it will use
$^ (all prerequisites).
8 years ago
Damien George
8b13cd7e19
tests/basics: Add more tests for unwind jumps from within a try-finally.
These tests excercise cases that are fixed by the previous two commits.
8 years ago