summaryrefslogtreecommitdiff
path: root/stmhal
AgeCommit message (Collapse)Author
2016-05-02stmhal, cc3200: Change i2c.scan() method to scan addresses 0x08-0x77.Damien George
A standard I2C address is 7 bits but addresses 0b0000xxx and 0b1111xxx are reserved. The scan() method is changed to reflect this, along with the docs.
2016-04-29stmhal/accel: Raise an exception if the accel couldn't be initialised.Damien George
On PYBLITEv1.0 there is no accelerometer and in this case the Accel() constructor should not silently succeed.
2016-04-26extmod, stmhal: Fix typo of macro that detects if float is enabled.Damien George
2016-04-25cc3200, stmhal, teensy: Use pyhelp_print_obj function.Colin Hogben
Update the help() implementations in the cc3200, stmhal and teensy ports to use the pyhelp_print_obj function.
2016-04-22extmod/machine_i2c: Allow mp_hal_pin_obj_t to be any type, not a ptr.Damien George
2016-04-21stmhal: L4: Add support for external interrupts/events.Tobias Badertscher
The L4 MCU supports 40 Events/IRQs lines of the type configurable and direct. But this L4 port only supports configurable line types which are already supported by uPy. For details see page 330 of RM0351, Rev 1. The USB_FS_WAKUP event is a direct type and there is no support for it.
2016-04-21stmhal: L4: Modify flash.c and storage.c to support L4 MCU.Tobias Badertscher
The way to lookup the flash sector now uses a much simpler table for all MCUs.
2016-04-21stmhal: L4: Modify mphalport to support L4 MCU.Tobias Badertscher
__GPIOI_CLK_ENABLE is defined in hal/l4/inc/Legacy/stm32_hal_legacy.h as __HAL_RCC_GPIOI_CLK_ENABLE, and that latter macro is not defined anywhere else (because the L4 does not have port GPIOI). So the test for GPIOI is needed, along with the test for the CLK_ENABLE macro.
2016-04-19stmhal: Update Makefile dependencies.Paul Sokolovsky
2016-04-17stmhal: Fix machine.unique_id() function to work for all MCUs.Damien George
2016-04-17stmhal: L4: Modify timer.c to support L4 MCU.Tobias Badertscher
2016-04-17stmhal: L4: Modify rtc.c to support L4 MCU.Tobias Badertscher
2016-04-17stmhal: L4: Modify usbd_conf.c to support L4 MCU.Damien George
Original patch was authored by Tobias Badertscher / @tobbad, but it was reworked to split UART edits from USB edits.
2016-04-17stmhal: L4: Modify uart.c to support L4 MCU.Damien George
L4 does not have UART6, and has similar registers to the F7. Original patch was authored by Tobias Badertscher / @tobbad, but it was reworked to split UART edits from USB edits.
2016-04-16stmhal: L4: Modify adc.c to add support for STM32L4 series.Tobias Badertscher
2016-04-16stmhal: L4: Add line to Makefile for building L4 series.Tobias Badertscher
2016-04-16stmhal: L4: Add board definition files for STM32L476DISC.Tobias Badertscher
2016-04-16stmhal: Update HALCOMMITS due to change to hal.Damien George
2016-04-16stmhal: L4: Adapt UART HAL to avoid 64-bit integer division.Tobias Badertscher
64-bit integer division brings a dependency on library functions. It is avoided here by dividing fck and baud by a common divisior. The error is the better (1/(2*0x300)) as with 64 bit division (1/(0x300)).
2016-04-16stmhal: L4: Add basic STM32L4xx HAL files.Tobias Badertscher
These files come from STM32Cube_FW_L4_V1.3.0, with Windows line endings converted to unix. Only basic HAL files are added. In addition the QSPI support is included to support later external QSPI flash as mass storage.
2016-04-16stmhal: L4: Add CMSIS files to support STM32L476.Tobias Badertscher
2016-04-16stmhal: For frozen bytecode generation, add dependency of qstr file.Damien George
2016-04-16py: Add rules for automated extraction of qstrs from sources.Jan Čapek
- add template rule that converts a specified source file into a qstring file - add special rule for generating a central header that contains all extracted/autogenerated strings - defined by QSTR_DEFS_COLLECTED variable. Each platform appends a list of sources that may contain qstrings into a new build variable: SRC_QSTR. Any autogenerated prerequisities are should be appened to SRC_QSTR_AUTO_DEPS variable. - remove most qstrings from py/qstrdefs, keep only qstrings that contain special characters - these cannot be easily detected in the sources without additional annotations - remove most manual qstrdefs, use qstrdef autogen for: py, cc3200, stmhal, teensy, unix, windows, pic16bit: - remove all micropython generic qstrdefs except for the special strings that contain special characters (e.g. /,+,<,> etc.) - remove all port specific qstrdefs except for special strings - append sources for qstr generation in platform makefiles (SRC_QSTR)
2016-04-15py: Declare help, input, open builtins in core.Paul Sokolovsky
These are *defined* per-port, but why redeclare them again and again.
2016-04-13stmhal: Add Makefile option FROZEN_MPY_DIR to support frozen bytecode.Damien George
2016-04-13py: Add ability to have frozen persistent bytecode from .mpy files.Damien George
The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
2016-04-13stmhal: Properly handle RTS/CTS flow control for buf/unbuf transfers.Peter Hinch
Fixes issues #1912 and #1913. UART documentation is also updated.
2016-04-12stmhal: Enable framebuf module.Damien George
2016-04-12stmhal: Use new generic I2C object in machine module.Damien George
2016-04-12stmhal: Implement basic C-level pin HAL.Damien George
2016-04-12extmod: Add initial framebuf module.Damien George
2016-04-07stmhal: Consistently enable USB SOF Irqs for all USB modes (FS and HS).Martin Fischer
SOF irqs are now standard for rx/tx USB transfers, so enable them for both FS and HS modes. Fixes #1944.
2016-03-13stmhal: NUCELO_F401RE cleanupDave Hylands
Added definitions for SPI1, SPI2, and SPI3 Removed USB stuff (that could be removed) Updated BOARD name defintion
2016-03-13stmhal: Rename STM32F401NUCLEO to NUCLEO_F401REDave Hylands
This makes the board match the name printed on the board (and agree with the documentation)
2016-03-12stmhal: Add board definition files for NUCLEO_F411REDave Hylands
2016-03-09stmhal: Add makefile target and configuration to deploy via OpenOCD.Christopher Arndt
2016-03-09stmhal: Add support for generic STM32F439 board (non DISCO).Ryan Shaw
2016-03-09stmhal: Add makefile target to deploy stmhal build via ST-LINK.Christopher Arndt
2016-03-08stmhal: Add stmhal-specific README.md with extra details for this port.Damien George
2016-03-08stmhal: Switch from dfu-util to tools/pydfu.py for deflt deploy method.Damien George
tools/pydfu.py is now the recommended way of deploying a DFU file. Old behaviour of dfu-util can be obtained by passing USE_PYDFU=0 when invoking make. The main README.md file has been updated to reflect this change.
2016-03-07stmhal: Fix some typos in stm32f411 files, regarding FS layout and CSV.Dave Hylands
2016-03-07stmhal: Fix typo in stm32f401.ld file, regarding flash size.Dave Hylands
2016-03-07stmhal: Make spi use mp_hal_gpio_set_afDave Hylands
2016-03-07stmhal: Unify comments in stm32f4xx_hal_conf.h across all boards.Pavol Rusnak
To make it easier to spot differences.
2016-03-03extmod/vfs_fat: Add lexer, move from stmhal port for reuse.Paul Sokolovsky
2016-02-29extmod/vfs_fat: Add fat_vfs_import_stat(), reusable import stat routine.Paul Sokolovsky
Moved from stmhal.
2016-02-28extmod/vfs_fat: Move listdir() method from stmhal for reuse.Paul Sokolovsky
2016-02-25stmhal: Enabled importing of persistent bytecode (.mpy files).Damien George
2016-02-15stmhal: Improvements to the STM32F4DISC UART config settings.Dave Hylands
2016-02-15stmhal: Some NETDUINO_PLUS_2 cleanupDave Hylands
- Put the I2C bus on the corect pins - Add the appropriate board_init to power the shield