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
Paul Sokolovsky
fa3b895145
objexcept: Optimize traceback allocation for exception.
Traceback allocation for exception will now never lead to recursive
MemoryError exception - if there's no memory for traceback, it simply
won't be created.
10 years ago
Paul Sokolovsky
29c4f92e13
objexcept: Optimize using messages without formatting substitutions.
They are directly cast to str object, skipping allocation of formatting
buffer.
10 years ago
Paul Sokolovsky
3077fbff26
nlr: Add even more optional debugging logging.
Has to be enabled by manual editing, but at least it's there, as debugging
NLR issues may be weird.
10 years ago
Paul Sokolovsky
e89cc13e5c
nlr: If DEBUG, guard against recursive nlr_push().
Pushing same NLR record twice would lead to "infinite loop" in nlr_jump
(but more realistically, it will crash as soon as NLR record on stack is
overwritten).
10 years ago
Paul Sokolovsky
53e5e0fa28
py: Make old_globals part of mp_code_state structure.
Conceptually it is part of code state, so let it be allocated in the same way
as the rest of state.
10 years ago
Damien George
e5039c6ff8
py: Use TextIOWrapper only if PY_IO_FILEIO def'd; cast size_t for print.
10 years ago
Henrik Sölver
f80f1a7077
stmhal: Add support for CAN rx callbacks.
10 years ago
Damien George
ed8b4da0db
tests: Remove obsolete test; don't use fp in micropython/ tests.
10 years ago
Damien George
f6532bb9e0
py: Simplify and remove redundant code for __iter__ method lookup.
10 years ago
Damien George
d1c3788375
py: Fix loading of immediate pointer in Thumb assembler.
Addresses issue #1117 .
10 years ago
Damien George
0868942e77
py: Check for valid file when creating lexer for execfile.
Addresses issue #1119 .
10 years ago
stijn
1b8e76b8e6
py: Cleanup duplication in instance_is_callable/instance_call.
10 years ago
stijn
c1832fd206
py: Add setattr builtin.
10 years ago
Damien George
aa730620bb
stmhal: Fix setting of VID.
10 years ago
Damien George
87c6250b4c
esp8266: Add basic pyb.Pin class; supports output mode only.
10 years ago
Damien George
baafb290ad
stmhal: Add uart.sendbreak() method, to send a break condition.
10 years ago
Paul Sokolovsky
089c3f321e
py/asm*.c: Typo fixes in comments.
10 years ago
danicampora
99f3f6b5de
cc3200: Add I2C module. Only master mode is currently supported.
10 years ago
Damien George
601c814603
minimal: Allow to compile without defining MICROPY_HAL_H.
10 years ago
Damien George
ccf45a4283
cc3200: Get bootloader compiling with changes to HAL.
10 years ago
Damien George
0b32e50365
stmhal: Make pybstdio usable by other ports, and use it.
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so
long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
10 years ago
Damien George
c385a639e6
stmhal: Remove obsolete usbdev file.
10 years ago
Damien George
b157a99a8b
stmhal: Coding style cleanup in usbd_cdc_msc_hid.c.
10 years ago
Damien George
55d6218b9a
stmhal: Properly define pyb.usb_mode() semantics.
10 years ago
Damien George
65af7ebdc5
stmhal: Put CDC last in config descriptors to match with iface nums.
Apparently the order of interface numbers should be sequential and
increasing in a config descriptor. So as to retain compatibility with
Windows drivers for the CDC+MSC and CDC+HID modes, we move the CDC
configs to the end of the descriptors, instead of changing the interface
numbers.
See PR #957 for background.
10 years ago
Damien George
39ce2db181
stmhal: Add "CDC" option to pyb.usb_mode, for CDC device only.
10 years ago
Damien George
d39c7aa517
stmhal: Add Python-configurable USB HID mode.
Different HID modes can be configured in Python. You can either use
predefined mouse or keyboard, or write your own report descriptor.
10 years ago
Damien George
b384bcc5de
stmhal: Remove unused usbdev files, and move used ones up a dir.
The unused files are from the ST demos for different USB classes and are
not needed for the stmhal port.
10 years ago
Damien George
fb2006cc69
tools: Make gen-changelog.sh sort version strings correctly.
10 years ago
Damien George
79dc0a0886
docs: Bump version to 1.3.10.
10 years ago
Damien George
418ec8bbba
stmhal: Properly deinit timer object.
Addresses issue #1113 .
10 years ago
Damien George
192d536fe4
py: Implement clz and rbit for inline Thumb assembler.
10 years ago