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
Damien George
0aa5e75000
stmhal: Break immediately from USB CDC busy wait loop if IRQs disabled.
If IRQs are disabled then the USB CDC buffer will never be
drained/filled and the sys-tick timer will never increase, so we should
not busy wait in this case.
10 years ago
Daniel Campora
491c321720
cc3200: Re-config antenna selection when waking from suspended mode.
10 years ago
Daniel Campora
b4a41a8f70
cc3200: Add missing antenna diversity source files.
10 years ago
Daniel Campora
a3acaa000c
cc3200: Add antenna selection feature to WLAN.
10 years ago
Paul Sokolovsky
098f5ae221
micropython-upip: Mark as binary file and re-commit.
10 years ago
Paul Sokolovsky
1406d9ccde
upip: Upgrade to 0.5.3 to follow uctypes.struct() signature change.
10 years ago
Paul Sokolovsky
06e85ecfa6
docs/uctype: Update for constructor argument order changes.
Also, other small cleanups/improvements.
10 years ago
Paul Sokolovsky
1679696612
moductypes: Swap address and descriptor args in constructor.
Now address comes first, and args related to struct type are groupped next.
Besides clear groupping, should help catch errors eagerly (e.g. forgetting
to pass address will error out).
Also, improve args number checking/reporting overall.
10 years ago
Paul Sokolovsky
07408cbd1f
unix: Make micropython -m <module> work for frozen modules.
This requires some special handling, which was previosuly applied only to
the main code path.
10 years ago
Damien George
d7192fe68c
py: Expose KeyboardInterrupt in builtins module.
10 years ago
Damien George
3eece29807
docs: Change "Micro Python" to "MicroPython" in all places in docs.
10 years ago
Damien George
601cfea6a3
docs: Update license date range to include 2015.
10 years ago
Daniel Campora
7ca1bd314b
docs: Generate a separate docs build for each port.
Using Damien's approach where conf.py and topindex.html are
shared by all ports.
10 years ago
Damien George
031278f661
unix: Allow to cat a script into stdin from the command line.
See issue #1306 .
10 years ago
Paul Sokolovsky
9724a0538b
windows/README: Add notes on running under Wine.
After enabling line editing support on Windows console, this is no longer
trivial.
10 years ago
stijn
87ad80edf9
windows: Implement the mp_hal_xxx functions and enable mp-readline
10 years ago
Damien George
567b349c2b
py: Implement native multiply operation in viper emitter.
10 years ago
Damien George
4d9cad180d
py: Implement implicit cast to obj for viper load/store index/value.
This allows to do "ar[i]" and "ar[i] = val" in viper when ar is a Python
object and i and/or val are native viper types (eg ints).
Patch also includes tests for this feature.
10 years ago
Daniel Campora
a3cf4ea2f6
cc3200: Do not kick the watchdog inside the idle task.
10 years ago
Daniel Campora
71f85cc330
cc3200: Close ftp and telnet server sockets if listening fails.
10 years ago
Damien George
53a8aeb6e7
stmhal: Fix slow SPI DMA transfers by removing wfi from DMA wait loop.
Addresses issue #1268 .
10 years ago
Damien George
80f638fe19
tests: Add test for recursive iternext stack overflow.
10 years ago
Damien George
953c23b1bc
py: Add stack check to mp_iternext, since it can be called recursively.
Eg, builtin map can map over a map, etc, and call iternext deeply.
Addresses issue #1294 .
10 years ago