Commit Graph

1061 Commits

Author SHA1 Message Date
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
Damien George
4ef1dbcbf6 stmhal: Get SysTick and HSE working. 2014-03-12 21:59:33 +00:00
Damien George
8854e1fa05 py: Add expm1 to math module. 2014-03-12 21:31:41 +00:00
mux
8782676514 Fix realloc 2014-03-12 21:00:23 +02:00
Damien George
8cc50d348d Merge pull request #339 from dhylands/stmhal
Initial checkin with STM HAL
2014-03-12 15:43:42 +00:00
Damien George
b068b21742 Add more tests for multi-precision integers. 2014-03-12 15:39:51 +00:00
Damien George
9d68e9ccdd py: Implement integer overflow checking for * and << ops.
If operation will overflow, a multi-precision integer is created.
2014-03-12 15:38:15 +00:00
Damien George
bb4a43f35c py: Fix some bugs in mpz; add mpz_from_ll and mpz_set_from_ll.
A couple of bugs in mpn_shl, and overflow bug in mpz_set_from_int.
2014-03-12 15:36:06 +00:00
Dave Hylands
dd38d90724 Initial checkin with STM HAL
This compiles and links, but hasn't been tested on a board
yet and even if it was run, it doesn't currently do anything.
2014-03-11 23:55:41 -07:00
Damien George
8bfec2b538 Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h.
MICROPY_ENABLE_FLOAT is automatically set in mpconfig.h if MICROPY_FLOAT_IMPL
is set to a non-zero value.
2014-03-10 13:27:02 +00:00
Damien George
0a8458c353 Merge branch 'format-float' of github.com:dhylands/micropython into dhylands-format-float 2014-03-10 13:19:55 +00:00