Damien George
c44115f831
Merge branch 'master' of github.com:xbe/micropython
11 years ago
Damien George
781687c772
stmhal: Remove unnecessary include.
11 years ago
Damien George
6b144f62be
Merge pull request #347 from dhylands/stmhal-usart
stmhal - Add usart support
11 years ago
xbe
c55388823f
objstr.c: Replace size_t with machine_uint_t.
11 years ago
xbe
efe3422394
py: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
11 years ago
xbe
c93a22197b
unix: Clean up includes.
Remove unnecessary includes. Add includes that improve portability.
11 years ago
Dave Hylands
9c122029ec
stmhal - Add usart support
11 years ago
Paul Sokolovsky
51bbf6a006
Implement support for __str__ and __repr__ special methods in classes.
11 years ago
Paul Sokolovsky
75488d5639
unix-cpy: Switch to use MICROPY_FLOAT_IMPL config define.
11 years ago
Damien George
02a8543841
stmhal: Check CDC tx buffer has free space before filling with data.
11 years ago
Damien George
ecd58aec08
py: Fix bug in vstr_ins_blank_bytes.
11 years ago
Damien George
6c2455f481
stmhal: Put an array in ROM.
11 years ago
Damien George
fdbc22e4d2
stmhal: Disable redundant SystemCoreClockUpdate function.
11 years ago
Damien George
280e7208d8
Add vstr_ins and vstr_cut_out; improve stmhal readline.
11 years ago
Damien George
8b96af6907
stmhal: Get RTC working.
11 years ago
Damien George
07174c6fca
stmhal: Fix escape sequences in USB CDC input.
11 years ago
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...).
11 years ago
Damien George
87e423b866
stmhal: Remove obsolete #defines from mpconfigport.h.
Either not needed anymore, or defined in the board/_hal_conf.h file.
11 years ago
Damien George
c2a3bd58ce
Merge pull request #346 from dhylands/stmhal-led
stmhal - add led support. Add netduino_plus_2 support
11 years ago
Dave Hylands
ca5444e6cd
stmhal - add pin mapping, gpio, exti, usrsw
11 years ago
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
11 years ago
Damien George
33bdd2119d
Merge branch 'master' of github.com:micropython/micropython
Conflicts:
stmhal/main.c
11 years ago
Damien George
b30c02afa0
stmhal: Get USB enumerating a CDC device.
Enumerates CDC device over USB, but doesn't transmit/receive yet.
11 years ago
Damien George
deb413e8ba
Merge pull request #345 from dhylands/stmhal-systick-cleanup
stmhal - More systick cleanup. Fix HAL_Delay
11 years ago
Dave Hylands
9db719bb57
stmhal - More systick cleanup. Fix HAL_Delay
11 years ago
Damien George
536dde254b
py: In string.count, handle case of zero-length needle.
11 years ago
Damien George
de4d7aecc8
Merge pull request #343 from xbe/master
Implement str.count and add tests for it.
11 years ago
Damien George
aae40ee644
Merge pull request #344 from dhylands/stmhal-systick-cleanup
Cleanup systick for stmhal
11 years ago
Dave Hylands
ef39f2d9ca
Cleanup systick for stmhal
11 years ago
Damien George
659c19c67c
Merge pull request #342 from dhylands/stmhal-repl
REPL working on UART6 with STMHAL
11 years ago
xbe
c5d70ba48b
Fix issues in str.count implementation.
See pull request #343 .
11 years ago
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.
11 years ago
Dave Hylands
f14b92b9e1
REPl working on UART6 with STMHAL
11 years ago
Damien George
19438fd30a
windows: Change MICROPY_FLOAT config to new scheme.
11 years ago
Damien George
470184e2c3
py: Cosmetic changes.
11 years ago
Damien George
df02aaee4f
Merge pull request #340 from iabdalkader/realloc
Fix realloc
11 years ago
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.
11 years ago
Damien George
f555d5deca
stmhal: Set SysTick priority to highest level.
11 years ago
Damien George
4ef1dbcbf6
stmhal: Get SysTick and HSE working.
11 years ago
Damien George
8854e1fa05
py: Add expm1 to math module.
11 years ago
mux
8782676514
Fix realloc
11 years ago
Damien George
8cc50d348d
Merge pull request #339 from dhylands/stmhal
Initial checkin with STM HAL
11 years ago
Damien George
b068b21742
Add more tests for multi-precision integers.
11 years ago
Damien George
9d68e9ccdd
py: Implement integer overflow checking for * and << ops.
If operation will overflow, a multi-precision integer is created.
11 years ago
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.
11 years ago
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.
11 years ago
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.
11 years ago
Damien George
0a8458c353
Merge branch 'format-float' of github.com:dhylands/micropython into dhylands-format-float
11 years ago
Damien George
0527f0c338
Merge pull request #335 from dhylands/fix-makeqstrdata
Fix makeqstrdata.py to work in Python 2.7
11 years ago
Dave Hylands
ca5a241e48
Add proper floating point printing support.
11 years ago