Damien George
eb380d7261
stm: Put TARGET in mpconfigport.h; support PYBv4.
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
mux
4578ced209
Add OSC_VALUE to Makefile
* Add the option to pass OSC frequency on command line.
11 years ago
Damien George
b2ebb161d4
stm: Upgrade ST peripheral library from 1.1.0 to 1.3.0.
11 years ago
Damien George
1277753812
stm: Upgrade to latest CMSIS libraries.
CMSIS V3.01 -> V3.20. Now in stm/cmsis to keep separate from ST
libraries.
11 years ago
Damien George
0367ad6214
stm: Include libgcc for __aeabi_d2f and __aeabi_f2d functions.
Thanks to Dave Hylands for this.
11 years ago
mux
3591285091
Implement initial ADC support
* Add simple ADC driver, with support for ADC1 and all channels.
* Export MicroPython ADC object with read_channel function.
* Add stm32f4xx_adc.c and adc.c to Makefile.
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
mux
e78e2dd305
Fix Makefile typo
11 years ago
mux
74269f86b9
Add DEBUG flag to Makefile
* Add a DEBUG flag to Makefile, enables: "-O0 -ggdb"
11 years ago
Dave Hylands
4646801181
Make build output quieter.
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
This should fix issue #117
11 years ago
Dave Hylands
c1db58799d
Update stm/Makeile to use OBJCOPY and SIZE macros
While updating the teensy Makfile, I noticed that the stm Makefile
was using calling arm-none-eabi-objcopy and size rather than
$(OBJCOPY) and $(SIZE), so I added these 2 for consistency.
11 years ago
Damien George
9193f89296
Move lexerstr to main py directory (everyone uses it).
11 years ago
Dave Hylands
9b7b947b01
Updated teensy to use common code from stm directory.
Updated mconfigport.h to enable GC
11 years ago
John R. Lenton
9c83ec0eda
Merge remote-tracking branch 'upstream/master' into dict_feats
11 years ago
Damien George
d3ebe4829d
Factor and simplify Makefile's and mpconfig, part 2.
11 years ago
mux
50d5420deb
Add Initial Support for STM32F4DISCOVERY Board
* Add a TARGET definition to Makefile (default PYBOARD).
* Add support for discovery LEDs in led module.
* Add support for discovery user switch in usersw
* Add EXTI interrupt handler for discovery user switch on (PA0).
* Parameterize led and usrsw modules pins and port.
* Issue #83
11 years ago
mux
de7fcc0c06
Move user switch code into a separate module
* Move user switch code from main.c into a separate module (usrsw)
* Add usrsw.c to Makefile
11 years ago
Damien George
71c5181a8d
Convert Python types to proper Python type hierarchy.
Now much more inline with how CPython does types.
11 years ago
Paul Sokolovsky
5830fae26f
Don't error out if build/ directory already exists.
11 years ago
Paul Sokolovsky
1c6de11f77
Add basic implementation of slice object.
So far, only start and stop integer indexes are supported. Step is
not supported, as well as objects of arbitrary types.
11 years ago
Paul Sokolovsky
b372bfca21
Rename default config file to mpconfig.h, and port's to mpconfigport.h.
mpconfig.h will automatically pull mpconfigport.h.
11 years ago
Damien George
66028ab6dc
Basic implementation of import.
import works for simple cases. Still work to do on finding the right
script, and setting globals/locals correctly when running an imported
function.
11 years ago
mux
1a1ba4d555
Change dfu.py to be Python 2/3 compatible
* Chane dfu.py to use Python 3 syntax to avoid dependency on Python 2.
* Update Makefile to call python instead of python2
* Fix #33
11 years ago
Damien George
aae7847508
Change old use of module creation to new proper use.
11 years ago
Damien George
2870862601
Add module object, to be used eventually for import.
11 years ago
Paul Sokolovsky
e1151e463d
Use rm -rf to remove build dir, so it doesn't error out if dir doesn't exist.
11 years ago
Damien George
8cc96a35e5
Put unicode functions in unicode.c, and tidy their names.
11 years ago
Damien George
212c296c0b
Make unix-cpy cross platform; remove dependency of asmx64 on mpconfig.
11 years ago
Hagen Kaye
07590c2739
changes to Makefile and main.c to add i2c.c
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
e2880aa2fd
Fix a few compiler warnings.
11 years ago
Damien
f0d0940638
Add tools/dfu.py, and use it in stm/Makefile.
11 years ago
Damien
8c3da5c2c5
stm: flush storage cache immediately; improve user interface.
11 years ago
Damien
065f8a5e0e
stm: initial commit of working CC3000 driver, based on Adafruit.
11 years ago
Damien
d3e59feb6b
stm: reorder things in Makefile.
11 years ago
Damien
5c13dbf6ee
STM: add RNG support.
11 years ago
Damien
bd8e110207
Add to STM code timer functionality to call Python on interrupt.
11 years ago
Damien
1c62d04e2e
Add DAC, and simple audio driver to STM code.
11 years ago
Damien
4c51cbdc0b
Add proper FPU compile flags; disable Python float support.
11 years ago
Damien
c1764e997c
Add syscfg and SPI libraries from STM.
11 years ago
Damien
8f7491a109
Add USART support, connected to stdio for REPL.
11 years ago
Damien
8128941e6c
Add support for RTC, used as a calendar.
11 years ago
Damien
58a1b4c6cf
Add USB HID support. Runs as an alternative to VCP+MSC.
11 years ago
Damien
7ee80bac8e
Add support for SD card (not working).
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
0c5827fc65
stm: improved GC, and cooked output for VCP.
11 years ago
Damien
3f69aca2e2
Make stm use garbage collector.
11 years ago
Damien
fa2162bc77
Integrate new lexer stream with stm framework.
11 years ago