summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal
Commit message (Collapse)AuthorAge
...
* stmhal/pin: Add C-level pin ioctl method.Damien George2017-01-31
|
* stmhal/main: Put /sd directory before /flash in sys.path.Damien George2017-01-31
| | | | | If the SD card is mounted then its libraries (ie those that are imported) should override any in /flash.
* stmhal: On boot, mount all available partitions of the SD card.Damien George2017-01-31
| | | | | | | | The first partition is mounted as "/sd" and subsequent partitions are mounted as "/sd<part_num>". This is backwards compatible with the previous behaviour, which just mounted the first partition on "/sd". At this point, only FatFs filesystems are mounted.
* stmhal/README: Add paragraph about building mpy-cross.Damien George2017-01-31
|
* stmhal: Fix stack pointer initialisation for F411 and F429 boards.Damien George2017-01-30
| | | | | The stack pointer should start pointing 1 byte past the top of the end of RAM.
* stmhal: Set the FatFs partition number when initialising VFS object.Damien George2017-01-30
| | | | | stmhal has MULTI_PARTITION enabled for FatFs and so these values need to be initialised.
* stmhal: Use LED constants from PYBv4 onwards.Damien George2017-01-30
|
* extmod: Merge old fsusermount.h header into vfs.h and vfs_fat.h.Damien George2017-01-30
| | | | | vfs.h is for generic VFS declarations, and vfs_fat.h is for VfsFat specific things.
* extmod/vfs_fat: Remove MICROPY_FATFS_OO config option.Damien George2017-01-30
| | | | | Everyone should now be using the new ooFatFs library. The old one is no longer supported and will be removed.
* stmhal/moduos: Remove duplicated chdir.Damien George2017-01-29
|
* stmhal: Fix name of automatically created boot.py.Damien George2017-01-29
|
* stmhal: Convert to use VFS sub-system and new ooFatFs component.Damien George2017-01-27
| | | | | | | | | | | | This patch makes the following configuration changes: - MICROPY_FSUSERMOUNT is disabled, removing old mounting infrastructure - MICROPY_VFS is enabled, giving new VFS sub-system - MICROPY_VFS_FAT is enabled, giving uos.VfsFat type - MICROPY_FATFS_OO is enabled, to use new ooFatFs lib, R0.12b User facing API should be almost unchanged. Most notable changes are removal of os.mkfs (use os.VfsFat.mkfs instead) and pyb.mount doesn't allow unmounting by passing None as the device.
* stmhal/usbd_msc_storage: Use storage functions instead of disk ones.Damien George2017-01-27
|
* extmod/vfs: Add ability for VFS sub-system to import using VfsFat.Damien George2017-01-27
|
* extmod: Rename vfs_fat_file.h to vfs_fat.h.Damien George2017-01-27
| | | | And move declaration of mp_fat_vfs_type to this file.
* stmhal/mpconfigport.h: Reorganise the config options into groups.Damien George2017-01-24
| | | | | | The order now follows that in py/mpconfig.h and is a bit cleaner and easier to maintain. No options were changed/added/removed with this patch, it's just a reordering.
* stmhal/boards/STM32L476DISC: Use external SPI flash for filesystem.Damien George2017-01-24
|
* stmhal: Add ability to have filesystem stored on external SPI flash.Damien George2017-01-24
| | | | | | | | | To use this feature a port should define MICROPY_HW_SPIFLASH_SIZE_BITS along with x_CS, x_SCK, x_MOSI, x_MISO (x=MICROPY_HW_SPIFLASH). This will then use external SPI flash on those pins instead of the internal flash. The SPI is done using the software implementation. There is currently only support for standard SPI (ie not dual or quad mode).
* stmhal: Fix examples in openocd configs to include addresses.Pavol Rusnak2017-01-24
|
* stmhal: Add default frozen-bytecode directory and link lcd160cr driver.Damien George2017-01-23
| | | | | | | stmhal will now be built by default with frozen bytecode from scripts stored in the stmhal/modules/ directory. This can be disabled or changed to another directory by overridding the make variable FROZEN_MPY_DIR.
* stmhal: Enable help('modules') feature.Damien George2017-01-22
|
* stmhal: Convert to use builtin help function.Damien George2017-01-22
|
* stmhal: Implement SNAK/CNAK mechanism for USB HID receive.Pavol Rusnak2017-01-19
| | | | | This implements flow control in case user does not call recv method often enough (it tells host side to stop sending more data).
* stmhal: Implement ioctl for USB HID read.Pavol Rusnak2017-01-19
|
* stmhal: Fix USB HID receive not receiving the first packet.Pavol Rusnak2017-01-19
|
* stmhal: fix wrong usage of gcc -print-libgcc-file-namePavol Rusnak2017-01-12
|
* stmhal: Support PortG on STM32L476 and STM32L486.Dave Hylands2017-01-12
|
* all: Consistently update signatures of .make_new and .call methods.Paul Sokolovsky2017-01-04
| | | | | Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
* stmhal/uart: Increase inter-character timeout by 1ms.Damien George2016-12-28
| | | | | | Sys-tick resolution is 1ms and a value of 2 will give a delay between 1ms and 2ms (whereas a value of 1 gives a delay between 0ms and 1ms, which is too short).
* stmhal/uart: Provide a custom function to transmit over UART.Damien George2016-12-28
| | | | | | | | | | | The HAL_UART_Transmit function has changed in the latest HAL version such that the Timeout is a timeout for the entire function, rather than a timeout between characters as it was before. The HAL function also does not allow one to reliably tell how many characters were sent before the timeout (if a timeout occurred). This patch provides a custom function to do UART transmission, completely replacing the HAL version, to fix the above-mentioned issues.
* stmhal, esp8266: Enable utimeq module.Paul Sokolovsky2016-12-23
|
* stmhal: Add support for STM32 Nucleo64 L476RG.sergiuszm2016-12-22
|
* stmhal/sdcard: Use mp_hal_pin_config function instead of HAL_GPIO_Init.Damien George2016-12-22
| | | | | | There is a minor functional change with this patch, that the GPIO are now configured in fast mode, whereas they were in high speed mode before. But the SDIO should still work because SD CK frequency is at most 25MHz.
* stmhal/led: Use mp_hal_pin_config function instead of HAL_GPIO_Init.Damien George2016-12-22
|
* stmhal/usrsw: Use mp_hal_pin_config function instead of HAL_GPIO_Init.Damien George2016-12-22
|
* stmhal/mphalport.h: Explicitly use HAL's GPIO constants for pull modes.Damien George2016-12-22
| | | | | | | They are the same as the existing raw constants (namely 0, 1, 2) but we want to explicitly show that one can use the HAL's constants if necessary (eg the mpconfigboard.h files do use the HAL's constants to define the pull state of certain configurable pins).
* stmhal/led: Properly initialise timer handle to zero before using it.Damien George2016-12-22
| | | | | | | | | Without this the timer will have random values for its State and Lock entries. The object can then be in a locked state leading to some HAL functions returning immediately with an error code (which is unchecked). This patch fixes such a bug which did manifest itself as PWM not working correctly for LEDs.
* stmhal: Use core-provided keyboard exception object.Damien George2016-12-15
|
* stmhal/usb: Always use the mp_kbd_exception object for VCP interrupt.Damien George2016-12-15
| | | | There's no need to store a separate pointer to this object.
* stmhal: Rename mp_const_vcp_interrupt to mp_kbd_exception.Damien George2016-12-15
| | | | | | | | mp_kbd_exception is now considered the standard variable name to hold the singleton KeyboardInterrupt exception. This patch also moves the creation of this object from pyb_usb_init() to main().
* stmhal/mpconfigport: Add weak-module links for io, collections, random.Damien George2016-12-15
|
* py/runtime: Zero out fs_user_mount array in mp_init.Damien George2016-12-14
| | | | | There's no need to force ports to copy-and-paste this initialisation code. If FSUSERMOUNT is enabled then this zeroing out must be done.
* stmhal: Move PY_SYS_PLATFORM config from board to general config file.Damien George2016-12-13
| | | | It can be overridden by a board if needed.
* stmhal: Add STM32F769DISC board files.Rami Ali2016-12-13
| | | | With minor changes to adc.c and storage.c to support the F769.
* stmhal/cmsis: Add CMSIS file stm32f769xx.h, V1.1.2.Rami Ali2016-12-13
|
* stmhal: Add NUCLEO_F767ZI board, with openocd config for stm32f7.Rami Ali2016-12-13
|
* stmhal/cmsis: Add CMSIS file stm32f767xx.h, V1.1.2.Rami Ali2016-12-13
|
* stmhal: Refactor to use extmod implementation of software SPI class.Damien George2016-12-08
| | | | | | This is a pure refactoring (and simplification) of code so that stmhal uses the software SPI class provided in extmod, for the machine.SPI implementation.
* extmod/machine_spi: Provide reusable software SPI class.Damien George2016-12-08
| | | | | | So long as a port defines relevant mp_hal_pin_xxx functions (and delay) it can make use of this software SPI class without the need for additional code.
* stmhal/hal: Update HALCOMMITS due to change in f7 hal files.Damien George2016-12-07
|