This website requires JavaScript.
56402796d8
Fixed floor division on mp ints and small ints. Added a floordivide test case.
Rachel Dowdall
2014-03-22 20:19:24 +00:00
0119fc7532
stmhal: Servo driver can move at a given speed.
Damien George
2014-03-22 18:34:16 +00:00
463997f638
Merge pull request #358 from pfalcon/gen-exc-stack
Damien George
2014-03-22 17:46:53 +00:00
cde8631f15
Fixed modulo operator on ints and mp ints to agree with python. Added intdivmod.c and tests/basics/modulo.py.
Rachel Dowdall
2014-03-22 17:29:27 +00:00
48caa09a9d
objgenerator: Implement .throw() method to throw exceptions into generator.
Paul Sokolovsky
2014-03-22 17:50:12 +02:00
61fd20f168
objgenerator: Implement throwing exceptions out of generator.
Paul Sokolovsky
2014-03-22 16:44:58 +02:00
c0abc28aa1
objgenerator: Keep exception stack within generator object, like value stack.
Paul Sokolovsky
2014-03-22 13:49:31 +02:00
626f6b8133
stmhal: Add servo driver.
Damien George
2014-03-22 15:52:33 +00:00
721c55dced
Added exception hierarchy except for OSError and UnicodeError (requires arguments). Comment out the errors that aren't needed if memory becomes an issue.
Rachel Dowdall
2014-03-22 15:28:16 +00:00
d311655655
stmhal: Add time module with sleep function.
Damien George
2014-03-22 15:06:29 +00:00
ad7b84a7b9
stmhal: Add os module with a few basic functions.
Damien George
2014-03-22 14:56:32 +00:00
249b9c761d
Fixed broken math functions that return bool and added some more.
Rachel Dowdall
2014-03-22 14:39:33 +00:00
684164a8cf
stmhal: Add PYBv10 config; add RNG support.
Damien George
2014-03-22 13:41:02 +00:00
2fb37847a7
stmhal: Tidy up USB CDC+MSC device some more.
Damien George
2014-03-22 13:21:58 +00:00
fb1d6d097e
sthmal: Remove obsolete files.
Damien George
2014-03-22 12:51:10 +00:00
a6787edcea
stmhal: Tidy up USB device configuration. Make it use less RAM.
Damien George
2014-03-22 12:46:23 +00:00
c2a4cb4f04
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-03-22 12:33:20 +00:00
fb25c2d95f
stmhal: USB CDC and MSC device work together.
Damien George
2014-03-22 12:32:54 +00:00
17f45d41fe
Merge remote-tracking branch 'upstream/master'
Rachel Dowdall
2014-03-22 12:17:36 +00:00
da8d21e0dd
showbc: Dump YIELD_FROM.
Paul Sokolovsky
2014-03-22 13:47:06 +02:00
5b6008ddb9
Implement __aeabi_f2d and __aeabi_d2f
mux
2014-03-22 02:08:01 +02:00
b32db4e1ad
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-03-21 23:32:59 +00:00
8913c04831
stmhal: Add support for USB MSC device.
Damien George
2014-03-21 23:32:01 +00:00
093b8a5fa6
Merge pull request #355 from pfalcon/str-bytes-types
Damien George
2014-03-21 23:17:07 +00:00
1ecea7c753
py: Make 'bytes' be a proper type, support standard constructor args.
Paul Sokolovsky
2014-03-21 23:46:59 +02:00
be020c27a8
py: Make 'str' be a proper type, support standard constructor args.
Paul Sokolovsky
2014-03-21 11:39:01 +02:00
5972b4c05f
objstr: Switch from in-object string data to ptr to separate memory area.
Paul Sokolovsky
2014-03-20 16:47:44 +02:00
42901554db
objint_longlong: Add regression test for improper inplace op implementation.
Paul Sokolovsky
2014-03-22 00:02:32 +02:00
c070ff24a9
Disable some math functions until they work correctly.
Damien George
2014-03-21 20:52:54 +00:00
7b4b78bc33
py: Put back proper ValueError for badly parsed integers.
Damien George
2014-03-21 20:46:38 +00:00
b035db355a
py: Make str.[r]partition more efficient.
Damien George
2014-03-21 20:39:40 +00:00
e3e7c2bafb
Merge pull request #351 from xbe/str-partition
Damien George
2014-03-21 20:19:30 +00:00
dfbafabf6f
py: Improve mp_parse_num_integer; make it self contained.
Damien George
2014-03-21 12:15:59 +00:00
6e48f7fa85
py: Allow 'complex()' to take a string as first argument.
Damien George
2014-03-21 11:45:46 +00:00
c06ea7abf2
py: Implement parsing of infinity and nan for floats.
Damien George
2014-03-21 10:55:08 +00:00
0a6894c24b
str.(r)partition: factor out duplicate code.
xbe
2014-03-21 01:12:26 -07:00
4504ea8007
Implement str.rpartition and add tests for it.
xbe
2014-03-19 00:46:14 -07:00
613a8e3edf
Implement str.partition and add tests for it.
xbe
2014-03-18 00:06:29 -07:00
1609f85582
Rename test so that it doesn't clash with Python math module.
Damien George
2014-03-20 23:41:04 +00:00
56f02eacfe
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-03-20 23:35:22 +00:00
f78d9b1a72
stmhal: Add accelerometer driver; fix bug with LFN.
Damien George
2014-03-20 23:33:30 +00:00
300c8bd4c2
Added ZeroDivisionError to float division.
Rachel Dowdall
2014-03-20 22:40:38 +00:00
7caa7e0501
Merge pull request #353 from rjdowdall/master
Damien George
2014-03-20 22:06:23 +00:00
a2f2f734ed
Added various simple functions to math module.
Rachel Dowdall
2014-03-20 21:30:38 +00:00
5a14a1d690
Added various simple functions to math module.
Rachel Dowdall
2014-03-20 21:26:51 +00:00
d02f6eaa10
py: Fix int-longlong binary operations.
Damien George
2014-03-20 19:31:32 +00:00
7f8be59111
py: Allow hashing of functions and tuples.
Damien George
2014-03-20 19:20:59 +00:00
a925639247
py: Add math.e constant.
Damien George
2014-03-20 16:39:22 +00:00
2d7ff07175
py: Add mpz modulo operation.
Damien George
2014-03-20 16:28:41 +00:00
c412998c49
py: Add comment about bugs in objint_longlong.c.
Damien George
2014-03-19 23:17:23 +00:00
cd8b2baf43
py: Fix bug in mpz int, where small int is on lhs, mpz on rhs.
Damien George
2014-03-19 23:15:25 +00:00
494600bc99
stmhal: Add lcd.c to Makefile, and init LCD in main.
Damien George
2014-03-19 13:12:30 +00:00
e2e9011253
stmhal: Add LCD driver.
Damien George
2014-03-19 13:11:59 +00:00
b92d3e1fde
stmhal: Add fatfs support, working with flash and SD card.
Damien George
2014-03-17 14:04:19 +00:00
9e5ea4d768
stmhal: Add flash write support and flash storage driver.
Damien George
2014-03-17 13:31:35 +00:00
8a9a31e57b
stmhal: Add autoflash script, to flash a DFU device automatically.
Damien George
2014-03-17 13:04:51 +00:00
fb431bf556
stmhal: Add SD card support.
Damien George
2014-03-17 13:03:41 +00:00
c44115f831
Merge branch 'master' of github.com:xbe/micropython
Damien George
2014-03-17 10:31:03 +00:00
781687c772
stmhal: Remove unnecessary include.
Damien George
2014-03-17 10:24:29 +00:00
6b144f62be
Merge pull request #347 from dhylands/stmhal-usart
Damien George
2014-03-17 10:22:51 +00:00
c55388823f
objstr.c: Replace size_t with machine_uint_t.
xbe
2014-03-16 17:58:35 -07:00
efe3422394
py: Clean up includes.
xbe
2014-03-16 00:14:26 -07:00
c93a22197b
unix: Clean up includes.
xbe
2014-03-15 23:24:34 -07:00
9c122029ec
stmhal - Add usart support
Dave Hylands
2014-03-16 00:22:22 -07:00
51bbf6a006
Implement support for __str__ and __repr__ special methods in classes.
Paul Sokolovsky
2014-03-16 15:16:54 +02:00
75488d5639
unix-cpy: Switch to use MICROPY_FLOAT_IMPL config define.
Paul Sokolovsky
2014-03-16 11:47:49 +02:00
02a8543841
stmhal: Check CDC tx buffer has free space before filling with data.
Damien George
2014-03-15 16:54:23 +00:00
ecd58aec08
py: Fix bug in vstr_ins_blank_bytes.
Damien George
2014-03-15 16:54:06 +00:00
6c2455f481
stmhal: Put an array in ROM.
Damien George
2014-03-15 14:46:35 +00:00
fdbc22e4d2
stmhal: Disable redundant SystemCoreClockUpdate function.
Damien George
2014-03-15 14:45:51 +00:00
280e7208d8
Add vstr_ins and vstr_cut_out; improve stmhal readline.
Damien George
2014-03-15 14:33:09 +00:00
8b96af6907
stmhal: Get RTC working.
Damien George
2014-03-15 12:54:48 +00:00
07174c6fca
stmhal: Fix escape sequences in USB CDC input.
Damien George
2014-03-15 12:53:51 +00:00
e285511a23
stmhal: Get USB CDC REPL working.
Damien George
2014-03-15 11:52:29 +00:00
87e423b866
stmhal: Remove obsolete #defines from mpconfigport.h.
Damien George
2014-03-15 09:28:08 +00:00
c2a3bd58ce
Merge pull request #346 from dhylands/stmhal-led
Damien George
2014-03-15 09:20:49 +00:00
ca5444e6cd
stmhal - add pin mapping, gpio, exti, usrsw
Dave Hylands
2014-03-14 23:41:28 -07:00
0a64c92a9c
stmhal - add led support. Add netduino_plus_2 support
Dave Hylands
2014-03-14 00:51:26 -07:00
33bdd2119d
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-03-14 00:33:07 +00:00
b30c02afa0
stmhal: Get USB enumerating a CDC device.
Damien George
2014-03-14 00:30:37 +00:00
deb413e8ba
Merge pull request #345 from dhylands/stmhal-systick-cleanup
Damien George
2014-03-14 00:29:51 +00:00
9db719bb57
stmhal - More systick cleanup. Fix HAL_Delay
Dave Hylands
2014-03-13 15:40:34 -07:00
536dde254b
py: In string.count, handle case of zero-length needle.
Damien George
2014-03-13 22:07:55 +00:00
de4d7aecc8
Merge pull request #343 from xbe/master
Damien George
2014-03-13 21:53:36 +00:00
aae40ee644
Merge pull request #344 from dhylands/stmhal-systick-cleanup
Damien George
2014-03-13 21:45:27 +00:00
ef39f2d9ca
Cleanup systick for stmhal
Dave Hylands
2014-03-13 14:40:49 -07:00
659c19c67c
Merge pull request #342 from dhylands/stmhal-repl
Damien George
2014-03-13 10:17:51 +00:00
c5d70ba48b
Fix issues in str.count implementation.
xbe
2014-03-13 00:29:15 -07:00
9e1e8cd642
Implement str.count and add tests for it.
xbe
2014-03-12 22:57:16 -07:00
f14b92b9e1
REPl working on UART6 with STMHAL
Dave Hylands
2014-03-12 18:06:26 -07:00
19438fd30a
windows: Change MICROPY_FLOAT config to new scheme.
Damien George
2014-03-13 00:36:34 +00:00
470184e2c3
py: Cosmetic changes.
Damien George
2014-03-12 22:44:11 +00:00
df02aaee4f
Merge pull request #340 from iabdalkader/realloc
Damien George
2014-03-12 22:42:33 +00:00
849a0dda86
stm: Add some floating-point math functions.
Damien George
2014-03-12 22:33:22 +00:00
f555d5deca
stmhal: Set SysTick priority to highest level.
Damien George
2014-03-12 22:08:19 +00:00
4ef1dbcbf6
stmhal: Get SysTick and HSE working.
Damien George
2014-03-12 21:59:33 +00:00
8854e1fa05
py: Add expm1 to math module.
Damien George
2014-03-12 21:31:41 +00:00
8782676514
Fix realloc
mux
2014-03-12 21:00:23 +02:00
8cc50d348d
Merge pull request #339 from dhylands/stmhal
Damien George
2014-03-12 15:43:42 +00:00
b068b21742
Add more tests for multi-precision integers.
Damien George
2014-03-12 15:39:51 +00:00