Damien George
d38939e676
stmhal: Reset state of timer when deinit is called.
10 years ago
Dave Hylands
caf5c40c19
stmhal: Fix problem when passing callback= to timer init function.
In particular, make sure that the globals are all initialized
before enabling the interrupt, and also make sure that the timer
interrupt has been initialied before enabling the NVIC.
10 years ago
danicampora
44bb616b53
cc3200: Add simplelink non-os task calls.
10 years ago
danicampora
4bfc491753
cc3200: Add wlan_urn() thanks to Nadim El-Fata and Bryan Morrissey.
10 years ago
danicampora
0c11b167a7
cc3200: Add optimization flags to drivers/cc3100 in the debug build.
10 years ago
danicampora
5687ce7e35
drivers/cc3100: Remove simplelink trace messages completely.
Those trace messages have never proven to be useful and they make
the code 9K bigger.
10 years ago
danicampora
33ddb566a7
cc3200: Remove dependencies from FreeRTOS.
Use the simplelink wrappers instead. This is one step further
towards having a single module for the cc3200 and the cc3100.
10 years ago
Damien George
5c047b97f2
tests: Add test for math special functions.
10 years ago
Damien George
5cbeacebdb
py: Make math special functions configurable and disabled by default.
The implementation of these functions is very large (order 4k) and they
are rarely used, so we don't enable them by default.
They are however enabled in stmhal and unix, since we have the room.
10 years ago
Damien George
9ab94c468c
lib/libm: Add implementations of erf, erfc, lgamma, tgamma.
10 years ago
Paul Sokolovsky
3527085587
pyb.UART.rst: Clean up note about stream protocol support.
10 years ago
Damien George
77fc276c08
stmhal: For UART, check that baudrate is within 5% of desired value.
Also includes documentation about minimum baudrate.
Addresses issue #1090 .
10 years ago
Paul Sokolovsky
e06cf89f04
py: Add few more special methods.
10 years ago
Damien George
3611c1de14
drivers/cc3100: Remove dependence on debug.h.
10 years ago
danicampora
92ea99a0fb
cc3200: Add support for connecting to WEP secured networks.
10 years ago
danicampora
18605b36dc
cc3200: Rename SD.config() to SD.config_pins().
10 years ago
danicampora
7102e51506
cc3200: Add UART __del__ method.
10 years ago
danicampora
a7208bcc43
cc3200: Remove sd paths from sys path when disabling the sd card.
10 years ago
danicampora
1cf82a9800
drivers/cc3100: Make wlan.c closer to TI original file.
10 years ago
Damien George
5ca1f5f9d9
cc3200: Get compiling with CC3100 driver from drivers/ directory.
10 years ago
Damien George
49c2ad4fb4
cc3200: Move CC3100 driver from cc3200/simplelink to drivers/cc3100.
This commit will not build, it exists just to track changes.
10 years ago
Damien George
36e2845e36
cc3200: Replace physical tabs with spaces.
Preparing this to move to drivers/ directory, want to make it as similar
to original code from TI as possible.
10 years ago
Damien George
4a23a01945
cc3200: Add explicit py/ path-prefix for py includes.
This is how it should be, so one knows exactly where the includes are
coming from.
10 years ago
Damien George
eff359e114
py: Expose mp_obj_list_remove as a public function.
10 years ago
danicampora
59d14914cd
cc3200: Correct pybsd_config() params retrieval.
10 years ago
danicampora
c020109cfa
cc3200: Add SD module and disable SD card support for the LAUNCHXL.
10 years ago
danicampora
571e3f5804
cc3200: Add exit values to the shell scripts.
10 years ago
danicampora
a6862fc812
cc3200: Disable MICROPY_OPT_COMPUTED_GOTO.
Saves around 1.3K. At the same time re-enable MICROPY_PY_SYS_EXIT
since it doesn't take much space and might be useful for certain
scripts.
10 years ago
Damien George
4e3906d6b5
tests: Add tests for ure groups and named char classes.
Issue #1122 should now be fixed.
10 years ago
Damien George
d09a5b51c2
extmod: Pull in upstream changes to re1.5; fixes bug, adds named class.
10 years ago
Paul Sokolovsky
2e24034c3f
run-tests-exp.sh: Typo fix in comment.
10 years ago
danicampora
82fabf4e52
cc3200: Disable MICROPY_PY_SYS_EXIT and MICROPY_EMIT_INLINE_THUMB.
Disabling MICROPY_EMIT_INLINE_THUMB gives us back around 6K of
precious RAM.
10 years ago
danicampora
6b21c3fdd6
cc3200: Refactor UART and I2C object creation.
I2C objects can be freed by the GC and a __del__ method is provided
in order to de-init the peripheral prior to being garbage collected.
UART objects are now added to a local list and this list is now part
of the VM_STATE.
10 years ago
danicampora
7807da20ab
cc3200: Increase UART default read buffer size to 128 bytes.
10 years ago
danicampora
868fa82ea4
cc3200: Add ADC module.
10 years ago
danicampora
5d2344d009
cc3200: Change safe-boot pin to GPIO28.
10 years ago
danicampora
2b899b6708
cc3200: Remove asserts from sl_Stop() and reduce timeout to 250ms.
10 years ago
danicampora
6ff9a47255
cc3200: Move `closed` field in mod_network_socket_obj_t out of the union.
10 years ago
danicampora
e1dfc44178
cc3200: Disable FreeRTOS asserts. Optimize more files if BTYPE=debug.
10 years ago
Damien George
690458300b
extmod/modure: Make num_matches store actual number of matches.
10 years ago
Paul Sokolovsky
8c705233f3
py: Fix mp_obj_print() to work when Python streams are not used.
10 years ago
Paul Sokolovsky
1f91e92cc6
py: Revamp mp_obj_print() to use Python streams.
Most of printing infrastructure now uses streams, but mp_obj_print() used
libc's printf(), which led to weird buffering issues in output. So, switch
mp_obj_print() to streams too, even though it may make sense to move it to
a separate file, as it is purely a debugging function now.
10 years ago
Damien George
eff10f66a6
py: Implement bl/bx instructions for inline Thumb assembler.
10 years ago
Damien George
42495392da
py: Implement "it" instruction for inline Thumb assembler.
10 years ago
Damien George
3d7bf5d4b1
py: More robust checking in inline assembler compiler.
10 years ago
Damien George
b191038198
qemu-arm: Enable source line numbers, for easier debugging.
10 years ago
Paul Sokolovsky
ee831cafa9
tests: Add another testcase for relative imports.
10 years ago
Paul Sokolovsky
9e6c82960e
builtinimport: Revamp&refactor handling of relative imports.
Relative imports are based of a package, so we're currently at a module
within a package, we should get to package first.
Also, factor out path travsering operation, but this broke testing for
boundary errors with relative imports. TODO: reintroduce them, together
with proper tests.
10 years ago
Paul Sokolovsky
078172dcab
builtinimport: Improve debugging output.
10 years ago
Paul Sokolovsky
e8432b3c72
stackctrl: Encode "recursion depth exceeded" message as qstr.
So corresponding exception can be thrown even under tight memory conditions.
10 years ago