Damien George
ccf45a4283
cc3200: Get bootloader compiling with changes to HAL.
2015-02-13 15:26:22 +00:00
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.
2015-02-13 15:04:53 +00:00
Damien George
c385a639e6
stmhal: Remove obsolete usbdev file.
2015-02-13 14:03:44 +00:00
Damien George
b157a99a8b
stmhal: Coding style cleanup in usbd_cdc_msc_hid.c.
2015-02-13 14:02:51 +00:00
Damien George
55d6218b9a
stmhal: Properly define pyb.usb_mode() semantics.
2015-02-13 14:02:51 +00:00
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.
2015-02-13 14:02:51 +00:00
Damien George
39ce2db181
stmhal: Add "CDC" option to pyb.usb_mode, for CDC device only.
2015-02-13 14:02:51 +00:00
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.
2015-02-13 14:02:51 +00:00
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.
2015-02-13 14:02:51 +00:00
Damien George
fb2006cc69
tools: Make gen-changelog.sh sort version strings correctly.
2015-02-13 13:31:02 +00:00
Damien George
79dc0a0886
docs: Bump version to 1.3.10.
2015-02-13 13:26:44 +00:00
Damien George
418ec8bbba
stmhal: Properly deinit timer object.
...
Addresses issue #1113 .
2015-02-13 11:57:29 +00:00
Damien George
192d536fe4
py: Implement clz and rbit for inline Thumb assembler.
2015-02-13 11:06:23 +00:00
Damien George
32f0b7942c
py: Implement sdiv/udiv for inline Thumb assembler.
2015-02-13 10:43:05 +00:00
Damien George
0d967b8ae4
py: Implement push/pop for inline Thumb assembler.
2015-02-13 02:30:35 +00:00
Damien George
dfe944c3e5
py: Expose compile.c:list_get as mp_parse_node_extract_list.
2015-02-13 02:29:46 +00:00
Damien George
8dfbd2d589
py: Make inline assembler raise proper SyntaxError exception on error.
...
Also gives line number of location of error. Very useful!
2015-02-13 01:00:51 +00:00
Damien George
1bf5a022fe
py: Add ldrex and strex to thumb2 inline assembler.
...
These are useful for implementing atomic lock operations.
2015-02-12 22:52:42 +00:00
Damien George
91fc4a9ce1
stmhal: Fix ADC multiplier from 4096 to 4095; optimise fp operation.
2015-02-11 00:25:22 +00:00
Paul Sokolovsky
99bcaa2fb6
modffi: Add toplevel func() function to create a function by pointer.
2015-02-11 07:21:03 +08:00
Damien George
891e444fec
stmhal: Add boot.py and main.py to qstr definitions, to save some RAM.
2015-02-10 22:27:47 +00:00
Damien George
596f41da04
py: Reuse value stack in VM WITH_CLEANUP opcode to reduce C-stack size.
...
Saves 8 bytes C-stack on stmhal and 16 bytes on unix x86.
2015-02-10 13:21:42 +00:00
Damien George
ea0461dcd3
py: Add option to micropython.qstr_info() to dump actual qstrs.
2015-02-10 11:02:28 +00:00
danicampora
53716fcc3e
cc3200: Rename GPIO module to Pin.
...
This change helps making the cc3200 port API a bit closer to stmhal.
The ramaining differences are due to the specific hardware details
of each chip. One feature that has been deliberately disabled is the
possibility to add custom names and custom pin mappings. Those
features are nice and convenient, but in this port, code size is a
major concern.
2015-02-09 20:01:54 +01:00
Damien George
d0df10b2c6
py: Don't unnecessarily create a bound method.
2015-02-09 16:59:15 +00:00