Damien George
781687c772
stmhal: Remove unnecessary include.
11 years ago
Dave Hylands
9c122029ec
stmhal - Add usart support
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
Dave Hylands
f14b92b9e1
REPl working on UART6 with STMHAL
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
Dave Hylands
ca5a241e48
Add proper floating point printing support.
11 years ago
Damien George
01d50d0d58
stm: Wrap some functions in MICROPY_ENABLE_FLOAT.
11 years ago
Dave Hylands
49b5533000
Fix floating point printing of negative numbers in the range (0, -1.0)
11 years ago
Paul Sokolovsky
44739e280e
Make DEBUG_printf() a proper function, implementation is port-dependent.
In particular, unix outputs to stderr, to allow to run testsuite against
micropython built with debug output (by redirecting stderr to /dev/null).
11 years ago
Damien George
42647e64db
stm: Remove unneccesary include of mpconfigport (already in mpconfig).
11 years ago
mux
8d3b0a9f74
Add LCD check to stdout_print_strn
11 years ago
Damien George
55baff4c9b
Revamp qstrs: they now include length and hash.
Can now have null bytes in strings. Can define ROM qstrs per port using
qstrdefsport.h
11 years ago
Damien George
2300537c79
Cleanup built-ins, and fix some compiler warnings/errors.
11 years ago
Damien George
328708eb25
stm: Re-instate C debugging USART port (disabled by default).
See pyb_usart_global_debug variable.
Also did some work on USB OTG, but nothing working yet.
11 years ago
Dave Hylands
b5f458278c
Added a hacky implementation for %g
11 years ago
Dave Hylands
d80ee8bbfd
Added memzip filesystem support for teensy
You can now append a zipfile (containining uncomressed python sources)
to the micropython.hex file.
Use MEMZIP_DIR=directory when you call make, or set that in your
environment to include a different tree of source files.
Added sample /boot.py, /src/main.py, /test.py and /src/test.py files.
Added run command so that you can execute scripts from REPL (until import is implemented).
Added build directory to .gitignore
11 years ago
Damien George
2d45429122
Use memcpy instead of strncpy; add usart.status to stm.
11 years ago
mux
c70ac7bf71
Add USART Micro Python Bindings
* Add Micro Python bindings to usart.c
* Export USART python object to namespace pyb
11 years ago
ian-v
5fd8fd2c16
Revert MP_BOOL, etc. and use <stdbool.h> instead
11 years ago
ian-v
7a16fadbf8
Co-exist with C++ (issue #85 )
11 years ago
Damien
e8674399f1
Add vprintf, vsnprintf to STM code.
11 years ago
Damien
8f7491a109
Add USART support, connected to stdio for REPL.
11 years ago
Damien
58a1b4c6cf
Add USB HID support. Runs as an alternative to VCP+MSC.
11 years ago
Damien
0c5827fc65
stm: improved GC, and cooked output for VCP.
11 years ago
Damien
3f69aca2e2
Make stm use garbage collector.
11 years ago
Damien
f48cf67108
Implement crude but working REPL for board.
11 years ago
Damien
4b6e85ca26
Try to get REPL working, but bug with CDC VCP...
11 years ago
Damien
d7a7a30a4f
Make pfenv's const so they go in .text section.
11 years ago
Damien
4a175e1f11
Fix up linker script; improve startup code; printf to USB.
11 years ago
Damien
ed65605edc
Inital commit of stm32f4xx framework.
11 years ago