Damien George
bfa7b480a7
stmhal: For spi_init, add argument to select if NSS pin is enabled.
Most of the time you don't use the NSS pin of the SPI bus, and so it
shouldn't be enabled by default (this gave some bugs in the past).
10 years ago
Damien George
ecc88e949c
Change some parts of the core API to use mp_uint_t instead of uint/int.
Addressing issue #50 , still some way to go yet.
10 years ago
Damien George
87bbb388db
stmhal: Add documentation for LCD; update docs for USB_VCP.
10 years ago
Damien George
c0711cbefa
stmhal: Fix type signatures on functions that take variable args.
11 years ago
Damien George
34ab8dd6dd
stmhal: Update and improve LCD driver.
Still some method names to iron out, and funtionality to add, but this
will do for the first, basic version.
11 years ago
Damien George
04b9147e15
Add license header to (almost) all files.
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
11 years ago
Paul Sokolovsky
9b71b16a94
unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it.
11 years ago
Damien George
d17926db71
Rename rt_* to mp_*.
Mostly just a global search and replace. Except rt_is_true which
becomes mp_obj_is_true.
Still would like to tidy up some of the names, but this will do for now.
11 years ago
Damien George
09d207785c
stmhal: Unify naming of HW config; make SD detect configurable.
All board config macros now begin with MICROPY_HW_.
Renamed PYBv10 to PYBV10, since macros should be all uppercase.
Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD
detect pin can be easily configured.
11 years ago
Damien George
bcc9298e5b
stmhal: Add TODO's to exti.c; fix delay in lcd.c.
11 years ago
Damien George
965e2bafea
stmhal: Improve LED intensity get/set method.
11 years ago
Damien George
e2e9011253
stmhal: Add LCD driver.
11 years ago
Damien George
a71c83a1d1
Change mp_obj_type_t.name from const char * to qstr.
Ultimately all static strings should be qstr. This entry in the type
structure is only used for printing error messages (to tell the type of
the bad argument), and printing objects that don't supply a .print method.
11 years ago
Damien George
698ec21e46
Make mp_obj_str_get_data return char* instead of byte*.
Can't decide which is better for string type, char or byte pointer.
Changing to char removes a few casts. Really need to do proper unicode.
11 years ago
Dave Hylands
1570a96cad
Initial support for Netduino
This also fixes up the IRQ for the PYBOARD4 USERSW
although I was unable to test that functionality.
11 years ago
mux
bd61a6cee8
Add missing LCD driver definitions for STM32F4DISC
* Add missing LCD definitions for STM32F4DISC target, current code
breaks build.
11 years ago
Damien George
75abee206d
stm: USB host mode working! Restructure stm library directories.
11 years ago
Damien George
51f3a6becd
stm: Improved ADC module; add BOARD_NAME config value.
11 years ago
Damien George
26a00085fe
stm: LCD support for PYBv4; fix MMA reading code.
11 years ago
Damien George
5fa93b6755
Second stage of qstr revamp: uPy str object can be qstr or not.
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
f62d33aa1d
Consolidate rt_make_function_[0123] to rt_make_function_n.
11 years ago
Damien George
1fb031744f
Change mp_compile so that it returns a function object for the module.
11 years ago
Damien George
aae7847508
Change old use of module creation to new proper use.
11 years ago
Damien
d99b05282d
Change object representation from 1 big union to individual structs.
A big change. Micro Python objects are allocated as individual structs
with the first element being a pointer to the type information (which
is itself an object). This scheme follows CPython. Much more flexible,
not necessarily slower, uses same heap memory, and can allocate objects
statically.
Also change name prefix, from py_ to mp_ (mp for Micro Python).
11 years ago
Damien
81cc0e8f00
stm: add function to LCD module to show text.
11 years ago
Damien
39c6c59868
STM: add LCD functions for pixel access; add RNG Py bindings.
11 years ago
Damien
fecee2b0ae
Floats work with MP on board; function for LCD pixel manipulation.
11 years ago
Damien
0f6545139b
Implement simple servo control using PWM.
11 years ago
Damien
e9f1e50be4
Board running boot.py, working REPL, soft reboot.
11 years ago
Damien
fb42ec17bc
Try to re-add USB support...
11 years ago
Damien
00ff04fc49
Working SysTick, code factoring, some boot-up code.
11 years ago