aboutsummaryrefslogtreecommitdiff
path: root/stmhal
AgeCommit message (Collapse)Author
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
2016-02-15extmod/vfs_fat_ffconf: Reusable FatFs module, move from stmhal/ffconf.Paul Sokolovsky
TODO: Probably merge into vfs_fat_diskio.
2016-02-15extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file.Paul Sokolovsky
2016-02-15extmod/vfs_fat_diskio: Reusable FatFs module, move from stmhal/diskio.Paul Sokolovsky
2016-02-15py/mpstate.h: fs_user_mount is now standard, reusable uPy functionality.Paul Sokolovsky
2016-02-14stmhal/diskio: Add provision for default returns for ioctl INIT/SEC_SIZE.Paul Sokolovsky
If None was returned for such requests (which likely means that user simply didn't handle them), it means successful init and default sector size of 512 bytes respectively. This makes only BP_IOCTL_SEC_COUNT a mandatory request, and thus re-establishes parity with old interface, where only .count() is mandatory().
2016-02-14stmhal/file: Paranoid compiler warnings cleanness.Paul Sokolovsky
2016-02-14stmhal/diskio,file: Nanbox cleanness.Paul Sokolovsky
2016-02-10stmhal: NUCLEO 401 - Add definitions for I2C2 and I2C3Dave Hylands
2016-02-10stmhal: CERB40 - Add pins defines for I2C3Dave Hylands
2016-02-10stmhal: NUCLEO 401 - Add a bunch of missing pins and reorder the pinsDave Hylands
This groups the pins for a port together and puts them in numerical order. It also adds ARDUINO pin names.
2016-02-10stmhal: Add a function for setting the pin alternate functionDave Hylands
mp_hal_gpio_set_af will search for a given function and unit and set the alternate function to the alternate function index found.
2016-02-10extmod/fsusermount: Move BP_IOCTL_xxx constants to fsusermount.h.Damien George
2016-02-10extmod/fsusermount: Support mounting of multiple block devices.Damien George
This patch adds support to fsusermount for multiple block devices (instead of just one). The maximum allowed is fixed at compile time by the size of the fs_user_mount array accessed via MP_STATE_PORT, which in turn is set by MICROPY_FATFS_VOLUMES. With this patch, stmhal (which is still tightly coupled to fsusermount) is also modified to support mounting multiple devices And the flash and SD card are now just two block devices that are mounted at start up if they exist (and they have special native code to make them more efficient).
2016-02-10stmhal: Add mount/umount/mkfs to os module.Damien George
2016-02-10stmhal: Expose flash and SD card as proper objects with block protocol.Damien George
You can now create (singleton) objects representing the flash and SD card, using: flash = pyb.Flash() sdcard = pyb.SDCard() These objects provide the block protocol.
2016-02-10stmhal: Improve NUCLEO-F401RE build, with UART2 as REPL.Dave Hylands
This enables MICROPY_HW_HAS_FLASH which got missed. The HW has UART2 on the 401 connected to the STLINK procesor which exposes it as USB serial. This connects that up so that you can get a REPL using the USB serial.
2016-02-10lib/fatfs: Add support for sector sizes larger than 512 bytes.Damien George
If MICROPY_FATFS_MAX_SS is defined to power of 2 value between 1024 and 4096, support for dynamic sector size in FatFs will be enabled. Note that FatFs reserves static buffer of MICROPY_FATFS_MAX_SS size for each filesystem in use, so that value should be set sparingly. Initial patch provided by @pfalcon.
2016-02-10extmod/fsusermount: Change block protocol to support ioctl method.Damien George
The new block protocol is: - readblocks(self, n, buf) - writeblocks(self, n, buf) - ioctl(self, cmd, arg) The new ioctl method handles the old sync and count methods, as well as a new "get sector size" method. The old protocol is still supported, and used if the device doesn't have the ioctl method.
2016-02-10extmod/fsusermount: Introduce separate mkfs() function.Paul Sokolovsky
Per the previously discussed plan. mount() still stays backward-compatible, and new mkfs() is rought and takes more args than needed. But is a step in a forward direction.
2016-02-07stmhal/file: For self-contained usecase, don't define global types.Paul Sokolovsky
If MICROPY_VFS_FAT is defined, mp_type_fileio & mp_type_textio won't be defined, as these may be alredy defined elsewhere. The idea is to have compartmentalized VFS FatFs class, which can work in parallel with some other "main" filesystem. E.g., for unix port, mp_type_fileio, etc. will be defined for the main POSIX filesystem, while stmhal/file.c will be a self-contained VFS file class.