Damien George
a6787edcea
stmhal: Tidy up USB device configuration. Make it use less RAM.
2014-03-22 12:46:23 +00:00
Damien George
c2a4cb4f04
Merge branch 'master' of github.com:micropython/micropython
2014-03-22 12:33:20 +00:00
Damien George
fb25c2d95f
stmhal: USB CDC and MSC device work together.
2014-03-22 12:32:54 +00:00
Paul Sokolovsky
da8d21e0dd
showbc: Dump YIELD_FROM.
2014-03-22 13:52:08 +02:00
Damien George
b32db4e1ad
Merge branch 'master' of github.com:micropython/micropython
2014-03-21 23:32:59 +00:00
Damien George
8913c04831
stmhal: Add support for USB MSC device.
...
This gives a functioning, independent MSC device.
2014-03-21 23:32:01 +00:00
Damien George
093b8a5fa6
Merge pull request #355 from pfalcon/str-bytes-types
...
Make str and bytes be proper types
2014-03-21 23:17:07 +00:00
Paul Sokolovsky
1ecea7c753
py: Make 'bytes' be a proper type, support standard constructor args.
2014-03-22 00:07:04 +02:00
Paul Sokolovsky
be020c27a8
py: Make 'str' be a proper type, support standard constructor args.
2014-03-22 00:07:04 +02:00
Paul Sokolovsky
5972b4c05f
objstr: Switch from in-object string data to ptr to separate memory area.
...
This is pre-requisite for having efficient implementation of str<->bytes
conversion, and having that efficient is required with unfortunare
str vs bytes dichotomy in Python3.
2014-03-22 00:07:04 +02:00
Paul Sokolovsky
42901554db
objint_longlong: Add regression test for improper inplace op implementation.
2014-03-22 00:04:04 +02:00
Damien George
c070ff24a9
Disable some math functions until they work correctly.
2014-03-21 20:52:54 +00:00
Damien George
7b4b78bc33
py: Put back proper ValueError for badly parsed integers.
2014-03-21 20:46:38 +00:00
Damien George
b035db355a
py: Make str.[r]partition more efficient.
2014-03-21 20:39:40 +00:00
Damien George
e3e7c2bafb
Merge pull request #351 from xbe/str-partition
...
Implement str.partition and add tests for it.
2014-03-21 20:19:30 +00:00
Damien George
dfbafabf6f
py: Improve mp_parse_num_integer; make it self contained.
2014-03-21 12:15:59 +00:00
Damien George
6e48f7fa85
py: Allow 'complex()' to take a string as first argument.
2014-03-21 11:45:46 +00:00
Damien George
c06ea7abf2
py: Implement parsing of infinity and nan for floats.
2014-03-21 10:55:08 +00:00
xbe
0a6894c24b
str.(r)partition: factor out duplicate code.
...
Switch str.rpartition to search from left to right. Factor the
duplicate code into one helper function.
2014-03-21 03:17:09 -07:00
xbe
4504ea8007
Implement str.rpartition and add tests for it.
2014-03-21 02:58:09 -07:00
xbe
613a8e3edf
Implement str.partition and add tests for it.
2014-03-21 02:57:18 -07:00
Damien George
1609f85582
Rename test so that it doesn't clash with Python math module.
2014-03-20 23:41:04 +00:00
Damien George
56f02eacfe
Merge branch 'master' of github.com:micropython/micropython
2014-03-20 23:35:22 +00:00
Damien George
f78d9b1a72
stmhal: Add accelerometer driver; fix bug with LFN.
2014-03-20 23:33:30 +00:00
Damien George
7caa7e0501
Merge pull request #353 from rjdowdall/master
...
Some math functions
2014-03-20 22:06:23 +00:00
Rachel Dowdall
a2f2f734ed
Added various simple functions to math module.
2014-03-20 21:30:38 +00:00
Rachel Dowdall
5a14a1d690
Added various simple functions to math module.
2014-03-20 21:26:51 +00:00
Damien George
d02f6eaa10
py: Fix int-longlong binary operations.
2014-03-20 19:31:32 +00:00
Damien George
7f8be59111
py: Allow hashing of functions and tuples.
2014-03-20 19:20:59 +00:00
Damien George
a925639247
py: Add math.e constant.
2014-03-20 16:39:22 +00:00
Damien George
2d7ff07175
py: Add mpz modulo operation.
2014-03-20 16:28:41 +00:00
Damien George
c412998c49
py: Add comment about bugs in objint_longlong.c.
2014-03-19 23:17:23 +00:00
Damien George
cd8b2baf43
py: Fix bug in mpz int, where small int is on lhs, mpz on rhs.
2014-03-19 23:15:25 +00:00
Damien George
494600bc99
stmhal: Add lcd.c to Makefile, and init LCD in main.
2014-03-19 13:12:30 +00:00
Damien George
e2e9011253
stmhal: Add LCD driver.
2014-03-19 13:11:59 +00:00
Damien George
b92d3e1fde
stmhal: Add fatfs support, working with flash and SD card.
2014-03-17 14:04:19 +00:00
Damien George
9e5ea4d768
stmhal: Add flash write support and flash storage driver.
2014-03-17 13:31:35 +00:00
Damien George
8a9a31e57b
stmhal: Add autoflash script, to flash a DFU device automatically.
2014-03-17 13:04:51 +00:00
Damien George
fb431bf556
stmhal: Add SD card support.
...
Just low-level read/write support. No filesystem yet.
2014-03-17 13:03:41 +00:00
Damien George
c44115f831
Merge branch 'master' of github.com:xbe/micropython
2014-03-17 10:31:03 +00:00
Damien George
781687c772
stmhal: Remove unnecessary include.
2014-03-17 10:24:29 +00:00
Damien George
6b144f62be
Merge pull request #347 from dhylands/stmhal-usart
...
stmhal - Add usart support
2014-03-17 10:22:51 +00:00
xbe
c55388823f
objstr.c: Replace size_t with machine_uint_t.
2014-03-17 02:43:50 -07:00
xbe
efe3422394
py: Clean up includes.
...
Remove unnecessary includes. Add includes that improve portability.
2014-03-17 02:43:40 -07:00
xbe
c93a22197b
unix: Clean up includes.
...
Remove unnecessary includes. Add includes that improve portability.
2014-03-16 12:14:15 -07:00
Dave Hylands
9c122029ec
stmhal - Add usart support
2014-03-16 09:02:12 -07:00
Paul Sokolovsky
51bbf6a006
Implement support for __str__ and __repr__ special methods in classes.
2014-03-16 15:18:22 +02:00
Paul Sokolovsky
75488d5639
unix-cpy: Switch to use MICROPY_FLOAT_IMPL config define.
2014-03-16 11:49:03 +02:00
Damien George
02a8543841
stmhal: Check CDC tx buffer has free space before filling with data.
2014-03-15 16:54:23 +00:00
Damien George
ecd58aec08
py: Fix bug in vstr_ins_blank_bytes.
2014-03-15 16:54:06 +00:00