Paul Sokolovsky
fe99ea9aab
README: Add quick information about builtin upip package manager.
Also, simplify dependencies info now that we no longer require GNU
readline.
10 years ago
Damien George
7f19a39a3b
py: Cast argument for printf to int, to be compatible with more ports.
This allows stmhal to be compiled with MICROPY_DEBUG_PRINTERS.
10 years ago
Paul Sokolovsky
a06c38b486
tests: Add testcase for open(..., "a").
10 years ago
Ari Suutari
63b9e598a3
unix: Add O_WRONLY | O_CREAT to open call when opening file for append ("a").
To comply with Python semantics.
10 years ago
Bill Owens
60ccb41fac
esp8266: Move status() from esp module to network
10 years ago
Damien George
06593fb0f2
py: Use a wrapper to explicitly check self argument of builtin methods.
Previous to this patch a call such as list.append(1, 2) would lead to a
seg fault. This is because list.append is a builtin method and the first
argument to such methods is always assumed to have the correct type.
Now, when a builtin method is extracted like this it is wrapped in a
checker object which checks the the type of the first argument before
calling the builtin function.
This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and
is enabled by default.
See issue #1216 .
10 years ago
Paul Sokolovsky
a193ced7fa
esp8266: README: Typo fix.
10 years ago
Damien George
c8870b7c69
py: Make showbc decode UNPACK_EX, and use correct range for unop/binop.
10 years ago
Paul Sokolovsky
b6a08208e1
esp8266: Explicit warning that port is experimental and subject to change.
10 years ago
Paul Sokolovsky
fb4b800820
README: Mention esp8266 port.
10 years ago
Radomir Dopieralski
0cba23716d
ESP8266: Update the README.md to reflect what works
10 years ago
Paul Sokolovsky
b85bf25e97
CODECONVENTIONS.md: 16-bit ports exist now.
10 years ago
Paul Sokolovsky
2474c2ae94
CODECONVENTIONS.md: Header files no longer follow Plan 9 conventions.
10 years ago
Daniel Campora
92d95cc9d3
cc3200: Remove --specs=nano.specs linker flag.
10 years ago
Bill Owens
7c61249ae6
esp8266: Updated documentation for scan() and moved to network
10 years ago
Bill Owens
686516f90a
esp8266: Move scan from esp module to network
10 years ago
Daniel Campora
ea2cc2b907
docs: Add more documentation for the CC3200 in the pyb module.
10 years ago
Daniel Campora
cdfa11f550
cc3200: In Timer.callback() only use value param if in edge count mode.
10 years ago
Damien George
e78a8c94b6
docs: Bump version to 1.4.4.
10 years ago
Damien George
f6518a7bd5
tests: Check that machine module exists and print SKIP if it doesn't.
10 years ago
Damien George
d59ca4efdb
tools/pyboard.py: Change logic for when raw ">" prompt is parsed.
In raw REPL ">" indicates the prompt. We originally read this character
upon entering the raw REPL, and after reading the last bit of the
output. This patch changes the logic so the ">" is read only just
before trying to send the next command. To make this work (and as an
added feature) the input buffer is now flushed upon entering raw REPL.
The main reason for this change is so that pyboard.py recognises the EOF
when sys.exit() is called on the pyboard. Ie, if you run pyboard.py
with a script that calls sys.exit(), then pyboard.py will exit after
the sys.exit() is called.
10 years ago
Bill Owens
3ce212e0a6
esp8266: Changed esp_scan to keep the current WiFi operating mode but throw an exception if WiFi is in AP only mode
10 years ago
Damien George
e9ce00d874
py: Implement divmod for mpz bignum.
10 years ago
Damien George
c5029bcbf3
py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin.
10 years ago
Damien George
6f49520042
py: Implement second arg for math.log (optional value for base).
10 years ago
Radomir Dopieralski
05c6fbcae6
esp8266: Fix the documentation for esp.connect() and esp.disconnect()
Since the commit that moved those two functions failed to update
the documentation, this is a fix for that.
10 years ago
Paul Sokolovsky
dd0e24f4b0
pip-micropython: Add deprecation notice, but still leave for reference.
10 years ago
Paul Sokolovsky
32eb4b9055
esp8266: Move connect/disconnect from "esp" module to network.
10 years ago
Paul Sokolovsky
ee3fec3167
esp8266: Add skeleton "network" module.
MicroPython "network" module interface requires it to contains classes
to instantiate. But as we have a static network interace, make WLAN()
"constructor" just return module itself, and just make all methods
module-global functions.
10 years ago
Paul Sokolovsky
431603ad69
esp8266: esp_connect(): The function is now vararg.
Fixes regression from a previous commit.
10 years ago
Paul Sokolovsky
a19ba5fea0
py: Rebuild port if mpconfigport.mk changed (if any).
mpconfigport.mk contains configuration options which affect the way
MicroPython is linked. In this regard, it's "stronger" configuration
dependency than even mpconfigport.h, so if we rebuild everything on
mpconfigport.h change, we certianly should of that on mpconfigport.mk
change too.
10 years ago
Daniel Campora
f28ed55aeb
cc3200/README.md: Specify the board name in the build command.
10 years ago
Daniel Campora
0a903be7d0
README.md: Correct port names in the documentation build command.
10 years ago
Daniel Campora
cfcf47c064
docs: Add initial draft documentation for the WiPy.
This makes all common files "port-aware" using the .. only directive.
10 years ago
Daniel Campora
b630de1103
cc3200: Rename os.mkdisk() to os.mkfs().
10 years ago
Daniel Campora
1811c6bccf
cc3200: Remove Timer.AB constant.
Timer.A and Timer.B can be ORed for this purpose.
10 years ago
Daniel Campora
e2dc7ac2a9
cc3200: Clarify notes about the extended functionality of uhashlib.
10 years ago
Daniel Campora
95cc1ff542
cc3200: Re-name pyb.hard_reset() to pyb.reset().
10 years ago
Daniel Campora
330e21c986
cc3200: Use the pull up/down resistors on the antenna selection pins.
10 years ago
Daniel Campora
f960d753e4
cc3200: Fix bootloader build error.
10 years ago
Daniel Campora
3319780e96
cc3200: Add sendbreak method to the UART.
10 years ago
Daniel Campora
8a6d93aeed
cc3200: Make UART API more similar to stmhal.
10 years ago
Daniel Campora
640d00ea9d
cc3200: Change MP_OBJ_NULL for mp_const_none in params default value.
10 years ago
Daniel Campora
071d47fa3b
cc3200: Only kick the WDT if it's actually running.
10 years ago
Daniel Campora
6148f8b7d2
cc3200: Add contructor to the HeartBeat class.
10 years ago
Damien George
76285469d3
stmhal: Make I2C use DMA when interrupts are enabled.
10 years ago
Damien George
3d30d605f5
stmhal: Factor out DMA initialisation code from spi.c.
This is so that the DMA can be shared by multiple peripherals.
10 years ago
Damien George
7ed58cb663
py: Support unicode (utf-8 encoded) identifiers in Python source.
Enabled simply by making the identifier lexing code 8-bit clean.
10 years ago
Damien George
6e56bb623c
py: Fallback to stack alloca for Python-stack if heap alloc fails.
If heap allocation for the Python-stack of a function fails then we may
as well allocate the Python-stack on the C stack. This will allow to
run more code without using the heap.
10 years ago
Daniel Campora
371f4ba6b3
cc3200: Wrap antenna_init0() with #if MICROPY_HW_ANTENNA_DIVERSITY.
10 years ago