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
Damien George
6c2455f481
stmhal: Put an array in ROM.
2014-03-15 14:46:35 +00:00
Damien George
fdbc22e4d2
stmhal: Disable redundant SystemCoreClockUpdate function.
2014-03-15 14:45:51 +00:00
Damien George
280e7208d8
Add vstr_ins and vstr_cut_out; improve stmhal readline.
2014-03-15 14:33:09 +00:00
Damien George
8b96af6907
stmhal: Get RTC working.
2014-03-15 12:54:48 +00:00
Damien George
07174c6fca
stmhal: Fix escape sequences in USB CDC input.
2014-03-15 12:53:51 +00:00
Damien George
e285511a23
stmhal: Get USB CDC REPL working.
...
New USB HAL is quite a bit improved over previous one. Now has better
callbacks and flow control.
REPL over USB CDC now works as before, except for soft-reset (since USB
driver uses malloc...).
2014-03-15 11:52:29 +00:00
Damien George
87e423b866
stmhal: Remove obsolete #defines from mpconfigport.h.
...
Either not needed anymore, or defined in the board/_hal_conf.h file.
2014-03-15 09:28:08 +00:00
Damien George
c2a3bd58ce
Merge pull request #346 from dhylands/stmhal-led
...
stmhal - add led support. Add netduino_plus_2 support
2014-03-15 09:20:49 +00:00
Dave Hylands
ca5444e6cd
stmhal - add pin mapping, gpio, exti, usrsw
2014-03-14 23:41:28 -07:00
Dave Hylands
0a64c92a9c
stmhal - add led support. Add netduino_plus_2 support
...
Tweaked a couple of the USB files to compile if neither dev nor host was defined.
Tested on netduiono plus 2 and stm32f4discovery boards
2014-03-14 09:48:49 -07:00
Damien George
33bdd2119d
Merge branch 'master' of github.com:micropython/micropython
...
Conflicts:
stmhal/main.c
2014-03-14 00:33:07 +00:00
Damien George
b30c02afa0
stmhal: Get USB enumerating a CDC device.
...
Enumerates CDC device over USB, but doesn't transmit/receive yet.
2014-03-14 00:30:37 +00:00
Damien George
deb413e8ba
Merge pull request #345 from dhylands/stmhal-systick-cleanup
...
stmhal - More systick cleanup. Fix HAL_Delay
2014-03-14 00:29:51 +00:00
Dave Hylands
9db719bb57
stmhal - More systick cleanup. Fix HAL_Delay
2014-03-13 16:17:01 -07:00
Damien George
536dde254b
py: In string.count, handle case of zero-length needle.
2014-03-13 22:07:55 +00:00
Damien George
de4d7aecc8
Merge pull request #343 from xbe/master
...
Implement str.count and add tests for it.
2014-03-13 21:53:36 +00:00
Damien George
aae40ee644
Merge pull request #344 from dhylands/stmhal-systick-cleanup
...
Cleanup systick for stmhal
2014-03-13 21:45:27 +00:00
Dave Hylands
ef39f2d9ca
Cleanup systick for stmhal
2014-03-13 14:40:49 -07:00
Damien George
659c19c67c
Merge pull request #342 from dhylands/stmhal-repl
...
REPL working on UART6 with STMHAL
2014-03-13 10:17:51 +00:00
xbe
c5d70ba48b
Fix issues in str.count implementation.
...
See pull request #343 .
2014-03-13 00:33:07 -07:00
xbe
9e1e8cd642
Implement str.count and add tests for it.
...
Also modify mp_get_index to accept:
1. Indices that are or evaluate to a boolean.
2. Slice indices.
Add tests for these two cases.
2014-03-12 22:57:16 -07:00
Dave Hylands
f14b92b9e1
REPl working on UART6 with STMHAL
2014-03-12 18:15:55 -07:00
Damien George
19438fd30a
windows: Change MICROPY_FLOAT config to new scheme.
2014-03-13 00:36:34 +00:00
Damien George
470184e2c3
py: Cosmetic changes.
2014-03-12 22:44:11 +00:00
Damien George
df02aaee4f
Merge pull request #340 from iabdalkader/realloc
...
Fix realloc
2014-03-12 22:42:33 +00:00
Damien George
849a0dda86
stm: Add some floating-point math functions.
...
These have been taken from the musl library. It's a bit of a hack for
now, just to get math functions working.
2014-03-12 22:33:22 +00:00
Damien George
f555d5deca
stmhal: Set SysTick priority to highest level.
2014-03-12 22:08:19 +00:00