aboutsummaryrefslogtreecommitdiff
path: root/stmhal
AgeCommit message (Collapse)Author
2015-06-03stmhal: Fix slow SPI DMA transfers by removing wfi from DMA wait loop.Damien George
Addresses issue #1268.
2015-06-01stmhal: Add support for UART5Dave Hylands
I tested this on my CERB40 board and it seems to be working fine.
2015-05-28stmhal: Fix off-by-one error when checking for valid I2C and SPI bus.Damien George
2015-05-27stmhal: Allow to name SPI busses, and give them names for pyboard.Damien George
2015-05-27stmhal: Allow to name I2C busses, and give them names for pyboard.Damien George
2015-05-27stmhal: Remove PYBVxx defines and use config vars for UART/CAN names.Damien George
Now all stmhal-based boards can name their peripherals (if they want) to any string.
2015-05-24stmhal: Implement sys.std{in,out,err}.buffer, for raw byte mode.Damien George
It's configurable and only enabled for stmhal port.
2015-05-24stmhal: Detect disk full conditionDave Hylands
2015-05-23stmhal: Make pendsv variable non-static so gcc-5 doesn't opt it away.Damien George
2015-05-17py/binary: Make return type of mp_binary_get_size size_t instead of int.Kaspar Schleiser
Fixes sign-compare warning.
2015-05-13stmhal: Add readinto and readlines methods to sys.stdin, pyb.USB_VCP().Damien George
Addresses issue #1255.
2015-05-13lib: Move time utility functions to common library.Josef Gajdusek
2015-05-12stmhal: Add os.rename function.Steve Zatz
2015-05-12py: Add mp_obj_get_int_truncated and use it where appropriate.Damien George
mp_obj_get_int_truncated will raise a TypeError if the argument is not an integral type. Use mp_obj_int_get_truncated only when you know the argument is a small or big int.
2015-05-11sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value.blmorris
2015-05-06stmhal: Move debug UART repl to after uart_init0 call.Dave Hylands
2015-05-06pyexec: Make raw REPL work with event-driven version of pyexec.Damien George
esp8266 port now has working raw and friendly REPL, as well as working soft reset (CTRL-D at REPL, or raise SystemExit). tools/pyboard.py now works with esp8266 port.
2015-05-04modstruct: Rename module to "ustruct", to allow full Python-level impl.Paul Sokolovsky
2015-05-04lib: Move some common mod_network_* functions to lib/netutils.Josef Gajdusek
2015-05-03stmhal: Allow to configure UART pins completely via mpconfigboard.h.Eero af Heurlin
2015-04-29stmhal: Automatically re-enable IRQs on the USB REPL.Dave Hylands
This allows errors to be seen and prevents hanging the board from doing: pyb.disable_irq()
2015-04-29mp-readline: Save "prompt" string in readline state.Damien George
2015-04-28py: Replace py-version.sh with makeversionhdr.py, written in Python.Damien George
Also rename py-version.h to mpversion.h for consistency with mpconfig.h.
2015-04-28stmhal: Actually disable unhandled timer interrupts.Dave Hylands
2015-04-22stmhal: Reset the timer counter to zero after changing the auto reload.Dave Hylands
Because if the counter is above the new value of the auto-reload register then it may be a long time until the timer wraps around.
2015-04-21stmhal: Implement os.uname() to get details of OS and hardware.Damien George
2015-04-19stmhal/pyexec.c: Make raw REPL mode 8-bit clean.Damien George
2015-04-18stmhal: Provide ADC capabilities for F401 and F411 MCUs.Damien George
Simply needed to define which pins have which ADC channel on them.
2015-04-18stmhal: Add support for STM32F411 MCU.Damien George
2015-04-18stmhal: For flash storage use same params for F407 as F405.Damien George
2015-04-18stmhal: Add support for Espruino Pico board.Damien George
To build: make BOARD=ESPRUINO_PICO To deploy: short the BOOT0/BTN contact on the back of the board (eg by drawing over it with a graphite pencil), then hold down BTN while inserting the board into the USB port. The board should then enter DFU mode, and the firmware can be downloaded using: make BOARD=ESPRUINO_PICO deploy
2015-04-18stmhal: Add stm32f401.ld for linking F401 targets.Damien George
2015-04-18stmhal: Make ld and af files configurable within Makefile.Damien George
Each board now needs an mpconfigboard.mk file which defines AF_FILE and LD_FILE. Also moved stm32f405.ld to boards/ directory to keep things organised.
2015-04-18stmhal: Add stm32f401_af.csv, for AF definitions of F401 MCUs.Damien George
2015-04-18stmhal: Rename stm32f4xx_af.csv to stm32f405_af.csv.Damien George
Since this file is only valid for F405 MCUs, not generic F4xx.
2015-04-18stmhal: Add support for flash filesystem on F401 MCUs.Damien George
It uses a 16k cache buffer and so the filesystem size is limited.
2015-04-18stmhal: Allow extint.c to compile without USB HS support.Damien George
2015-04-18stmhal: Make I2C busses and their pins configurable in mpconfigboard.h.Damien George
2015-04-18stmhal: Exclude code for UARTs that don't exist in hardware.Damien George
2015-04-18stmhal: Exclude USB HS code when USB HS mode not enabled.Damien George
2015-04-18stmhal: Exclude code for those timers that don't exist in the hardware.Damien George
2015-04-18stmhal: Make LCD initialiser use board pin names instead of cpu names.Damien George
2015-04-18stmhal: For pins, define macros mapping board names to cpu names.Damien George
2015-04-18stmhal: Make a HW config option for LED4 being controlled by PWM.Damien George
2015-04-18stmhal: Make HSE PLL parameters configurable per board.Damien George
2015-04-18stmhal: Add support for sending and receiving CAN RTR messages.Henrik
2015-04-18stmhal: Remove std.h. It's not needed anymore.Damien George
2015-04-16stmhal: Allow sending CAN messages with timeout=0.Damien George
Thanks to Henrik Sölver for this patch.
2015-04-16stmhal: Use new %q format to print qstr's in a few more places.blmorris
Saves 68 bytes.
2015-04-16py: Overhaul and simplify printf/pfenv mechanism.Damien George
Previous to this patch the printing mechanism was a bit of a tangled mess. This patch attempts to consolidate printing into one interface. All (non-debug) printing now uses the mp_print* family of functions, mainly mp_printf. All these functions take an mp_print_t structure as their first argument, and this structure defines the printing backend through the "print_strn" function of said structure. Printing from the uPy core can reach the platform-defined print code via two paths: either through mp_sys_stdout_obj (defined pert port) in conjunction with mp_stream_write; or through the mp_plat_print structure which uses the MP_PLAT_PRINT_STRN macro to define how string are printed on the platform. The former is only used when MICROPY_PY_IO is defined. With this new scheme printing is generally more efficient (less layers to go through, less arguments to pass), and, given an mp_print_t* structure, one can call mp_print_str for efficiency instead of mp_printf("%s", ...). Code size is also reduced by around 200 bytes on Thumb2 archs.