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
Damien George
181adc6a4e
unix: Update .gitignore; now ignores coverage build.
10 years ago
Paul Sokolovsky
c36635c112
unix: Prepare upip frozen modules under build/.
10 years ago
Paul Sokolovsky
f8a39e3bb1
tools/make-frozen.py: Handle trailing slash in argument more reliably.
10 years ago
Damien George
0e6c89a5c8
tools: Add codestats.sh to compute code statistics such as size, speed.
10 years ago
Daniel Campora
cc20482aa9
cc3200: Add method to configure the servers timeout.
With network.server_timeout(secs) the timeout can be changed.
The default value is 300 secs. Minimmum accpeted is 5 secs.
Without params the function returns the current configured timeout.
10 years ago
Paul Sokolovsky
a546acda8c
unix: Uncompress upip tarball to build directory.
10 years ago
Paul Sokolovsky
a32538bb66
esp8266: Do not call espconn_create in constructor of esp.socket.
Turns out this is supposed to be called only for UDP connections.
Patch by Josef Gajdusek.
10 years ago
Daniel Campora
2ffb6e1b15
cc3200: Fix 'MP_QSTR_sd' undeclared error when building for the LAUNCHXL.
10 years ago
Paul Sokolovsky
32ce72cb9e
docs/uctypes: Typo fix.
10 years ago
Paul Sokolovsky
f8bce131c0
docs/uctypes: Fix API description errors.
"Structure class" is its descriptor, encoded as a dictionary. Then,
uctypes.struct() instantiates an actual object, and thus requires memory
address.
10 years ago