aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
AgeCommit message (Collapse)Author
2016-05-23stmhal: Support frozen packages using .mpy files.Damien George
See issue #1814.
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-19stmhal: Update Makefile dependencies.Paul Sokolovsky
2016-04-16stmhal: L4: Add line to Makefile for building L4 series.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-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-03-09stmhal: Add makefile target and configuration to deploy via OpenOCD.Christopher Arndt
2016-03-09stmhal: Add makefile target to deploy stmhal build via ST-LINK.Christopher Arndt
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-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-07stmhal/file: Recast as "FatFs file" class, to support other VFS types.Paul Sokolovsky
Move definition of mp_builtin_open_obj to a separate module, then file.c becomes more or less compartmentalized FatFs file class, which can be used together with file class implementations for other (V)FSes.
2016-02-06stmhal: Move stmhal-specific FatFs routines/structs to fatfs_port.c.Paul Sokolovsky
2016-01-23stmhal: Add support for building frozen files.Dave Hylands
This allows FROZEN_DIR=some-directory to be specified on the make command line, which will then add all of the files contained within the indicated frozen directory as frozen files in the image. There is no change in flash/ram usage if not using the feature. This is especially useful on smaller MCUs (like the 401) which only has 64K flash file system.
2016-01-07stmhal: Make stm constants big ints when they don't fit in a small int.Damien George
Adds 924 bytes of code, but means that no more hacks and work-arounds are needed due to large constants becoming negative.
2015-12-10stmhal: add order-only dependency on build directorySven Wegener
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2015-11-26stmhal: Allow make DEBUG=1 to buildDave Hylands
2015-11-25extmod: Move fsusermount.c from stmhal for cross-port reuse.Paul Sokolovsky
2015-11-10lib/utils/printf: Move from stmhal/ .Paul Sokolovsky
This file contains various MicroPython-specific helper functions, so isn't good fit for lib/libc/.
2015-10-31stmhal: pyexec.c is common module, move to lib/utils/ .Paul Sokolovsky
2015-10-31all: Add py/mphal.h and use it in all ports.Damien George
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
2015-10-24Makefiles: Remove duplicate object files when linking.Paul Sokolovsky
Scenario: module1 depends on some common file from lib/, so specifies it in its SRC_MOD, and the same situation with module2, then common file from lib/ eventually ends up listed twice in $(OBJ), which leads to link errors. Make is equipped to deal with such situation easily, quoting the manual: "The value of $^ omits duplicate prerequisites, while $+ retains them and preserves their order." So, just use $^ consistently in all link targets.
2015-10-19stmhal: Early version of machine module for stmhal.Dave Hylands
2015-10-19all: Make netutils.h available to all ports by default.Paul Sokolovsky
Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too.
2015-10-09stmhal: Fix USB CDC-only mode under Windows.Dave Hylands
This fix adds PIDs 9801 and 9802 to the pybcdc.inf file. When in CDC only mode, it presents itself as a Communcations device rather than as a composite device. Presenting as a composite device with only the CDC interface seems to confuse windows. To test and make sure that the correct pybcdc.inf was being used, I used USBDeview from http://www.nirsoft.net/utils/usb_devices_view.html to uninstall any old pyboard drivers (Use Control-F and search for pyboard). I found running USBDeview as administrator worked best. Installing the driver in CDC+MSC mode first is recommended (since the pybcdc.inf file in on the internal flash drive). Then when you switch modes everything seems to work properly. I used https://github.com/dhylands/upy-examples/blob/master/boot_switch.py to easily switch the pyboard between the various USB modes for testing.
2015-08-07stmhal: Use CMSIS_MCU definition from mpconfigboard.mkDave Hylands
This needs to land afte #1407 lands, since #1407 is where the CMSIS_MCU was defined.
2015-08-07stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7Dave Hylands
2015-08-07stmhal: Generate modstm constants per buildDave Hylands
This causes unnecessary constants to no longer be generated. Some constants (like UART_BRR) are different between the F4 and F7
2015-08-03stmhal: Add support for USART1 and conditional pins in make-pins.py.Damien George
Thanks to Dave Hylands for the patch.
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-20stmhal: Update Makefile and board configs to compile with relocated hal.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-05-13lib: Move time utility functions to common library.Josef Gajdusek
2015-05-04lib: Move some common mod_network_* functions to lib/netutils.Josef Gajdusek
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-05string0.c: Move from stmhal/ to lib/.Paul Sokolovsky
2015-03-22stmhal: Put flash in deep power-down mode when entering stop mode.Damien George
This can get PYBv1.0 stop current down to around 290uA.
2015-03-04stmhal: Include fatfs headers using lib/fatfs prefix.Damien George
This helps make files reusable across other ports.
2015-02-22lib/libm: Add implementations of erf, erfc, lgamma, tgamma.Damien George
2015-02-13stmhal: Add "CDC" option to pyb.usb_mode, for CDC device only.Damien George
2015-02-13stmhal: Remove unused usbdev files, and move used ones up a dir.Damien George
The unused files are from the ST demos for different USB classes and are not needed for the stmhal port.
2015-01-22lib/libm: Add frexp and modf functions; use in stmhal; add tests.Damien George
Addresses issue #1081.
2015-01-12stmhal: Move readline code to lib/mp-readline/.Paul Sokolovsky
2015-01-01stmhal: Prefix includes with py/; remove need for -I../py.Damien George
2014-12-27stmhal: Add ability to mount custom block device.Damien George