summaryrefslogtreecommitdiff
path: root/stmhal
AgeCommit message (Collapse)Author
2015-07-30stmhal: Add STM32F7DISC and associated changes.Dave Hylands
2015-07-30stmhal: Renamed startup/system/_it.[ch] file to generic names.Dave Hylands
2015-07-30stmhal: Replace #include "stm32f4xx_hal.h" with #include STM32_HAL_H.Dave Hylands
2015-07-30stmhal: Expose uwTick in f7 hal.Damien George
2015-07-30stmhal: Add hal and cmsis files from STM32Cube_FW_F7_V1.1.0.Dave Hylands
All files were converted to linux line endings. All trailing whitespace was removed using: for f in f7/inc/* f7/src/*; do sed --in-place 's/[[:space:]]\+$//' $f; done All non-ascii chars in comments were replaced with ascii equivalents or removed.
2015-07-27stmhal: Put fs_user_mount pointer in root ptr section of global state.Damien George
Should fix issue #1393.
2015-07-27stmhal: Check if user block device is mounted before accessing it.Damien George
In particular this fixes a bug where pyb.sync (and os.sync) fail because they try to sync the user mounted device even if it's not mounted.
2015-07-26lib/mp-readline: Add emacs-style control characters for cursor movement.Tom Soulanille
Disabled by default. Adds 108 bytes to Thumb2 arch when enabled.
2015-07-22stmhal: Allow ADC.read_timed to take Timer object in place of freq.Damien George
This allows a user-specified Timer for the triggering of the ADC read, mirroring the new behaviour of DAC.write_timed. Addresses issue #1129.
2015-07-21stmhal: Add stm32fxxx_hal_i2s_ex.c to hal/f2 (dummy) and hal/f4.Damien George
2015-07-21stmhal: Allow DAC.write_timed to take Timer object in place of freq.Damien George
This allows the DAC to use a user-specified Timer for the triggering (instead of the default Timer(6)), while still supporting original behaviour. Addresses issues #1129 and #1388.
2015-07-21stmhal: Clean up DAC code a little.Damien George
2015-07-20stmhal/boards/stm32fxx_prefix.c: Fix alt function number calculationblmorris
This prevented pin_find_af* functions from being able to find some of the alternate functions in the pin struct
2015-07-20stmhal: Add CMSIS device header files for STM32F2xx series.Damien George
2015-07-20stmhal: Add STM32CubeF2 version 1.1.0, in hal/f2 directory.Wojtek Siudzinski
Only those files which are needed by the stmhal port are added. Also includes a dummy file (stm32f2xx_hal_pcd_ex.c) to keep the build system the same for f4 and f2 MCU series.
2015-07-20stmhal: Update Makefile and board configs to compile with relocated hal.Damien George
2015-07-20stmhal: Move HAL Cube files to f4/ subdir, keeping only those we use.Damien George
This is in preparation for supporting other MCU series, such as STM32F2xx. Directory structure for the HAL is now hal/f4/{inc,src}, where "f4" will in the future be different for other series. HAL source/header files that are not use are removed to reduce the size of the code.
2015-07-14stmhal: Add qstr definition for ifconfig when building for WizNetDave Hylands
2015-07-07stmhal: Add I2S support to make-pins.pyDave Hylands
2015-06-27stmhal: Add config option for storage to use second flash segment.Damien George
When enabled this allows the internal storage to be split over 2 contiguous regions of flash (two segments), and so the storage can be increased. This option is disabled by default, giving original behaviour.
2015-06-24stmhal/dma.c: Modify dma_init() to accept init struct as an argumentblmorris
This removes hard-coded DMA init params from dma_init(), instead defining these parameters in a DMA_InitTypeDef struct that gets passed as an argument to dma_init() This makes dma_init more generic so it can be used for I2S and SD Card, which require different initialization parameters.
2015-06-22stmhal: Reorganise code for parsing keyword args in I2C methods.Damien George
To make it the same as SPI and UART.
2015-06-10stmhal: Make I2C use DMA when interrupts are enabled.Damien George
2015-06-10stmhal: Factor out DMA initialisation code from spi.c.Damien George
This is so that the DMA can be shared by multiple peripherals.
2015-06-07stmhal: Break immediately from USB CDC busy wait loop if IRQs disabled.Damien George
If IRQs are disabled then the USB CDC buffer will never be drained/filled and the sys-tick timer will never increase, so we should not busy wait in this case.
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.