aboutsummaryrefslogtreecommitdiff
path: root/stm/Makefile
AgeCommit message (Collapse)Author
2014-05-21stm: Remove long-obsolete stm/ port.Damien George
2014-04-17build: Simplify build directory layout by putting all headers in genhdr.Damien George
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
2014-04-16build directory can now be renamedAndrew Scheller
The autogenerated header files have been moved about, and an extra include dir has been added, which means you can give a custom BUILD=newbuilddir option to make, and everything "just works" Also tidied up the way the different Makefiles build their include- directory flags
2014-04-07Replace some Makefile commands with variables in py/mkenv.mkAndrew Scheller
2014-03-08stm: Put pyb module in ROM.Damien George
2014-03-08Implement ROMable modules. Add math module.Damien George
mp_module_obj_t can now be put in ROM. Configuration of float type is now similar to longint: can now choose none, float or double as the implementation. math module has basic math functions. For STM port, these are not yet implemented (they are just stub functions).
2014-02-26Print an error if a non-valid BOARD is specified.Dave Hylands
2014-02-23Add EXTI supportDave Hylands
Revamp usrsw to use new exti code. Add user switch callback function.
2014-02-23stm: Make pendsv_nlr_jump work when debugging is enabled.Damien George
Stack layout is different when -g used, so need to handle the pendsv jump differently. Addresses Issue #315.
2014-02-22Add Configurable LFN support to FatFSmux
2014-02-17Add pin mapping code.Dave Hylands
This commit also introduces board directories and moves board specific config into the appropriate board directory. boards/stm32f4xx-af.csv was extracted from the STM32F4xx datasheet and hand-tweaked. make-pins.py takes boards/stm32f4xx-af.csv, boards/stm32f4xx-prefix.c, and boards/BOARD-NAME/pins.csv as input and generates the file build/pins_BOARD_NAME.c The generated pin file for PYBOARD4 looks like this: https://gist.github.com/dhylands/9063231 The generated pins file includes all of the supported alternate functions, and includes upsupported alternate functions as comments. See the commnet block at the top of stm/pin_map.c for details on how to use the pin mapper. I also went ahead and modified stm/gpio.c to use the pin mapper.
2014-02-17stm: Implement mp_import_stat.Damien George
To follow up pull request #309.
2014-02-16stm: Factor out GPIO code to its own file. Add functions to set GPIO mode.Damien George
GPIO functions are crude, and need to be replaced with better ones!
2014-02-16stm: Rename mma -> accel.Damien George
2014-02-16stm: Put REPL functions in own file; add raw REPL mode.Damien George
Raw REPL mode is activated by CTRL-A, and allows you to more easily communicate with the pyboard over the serial channel. In particular, automated communication using, eg, pyserial on the PC side.
2014-02-15Change mp_obj_type_t.name from const char * to qstr.Damien George
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
2014-02-12stm: Copy COPT style from unix port.Damien George
2014-02-11Enable link map file generation.Paul Sokolovsky
2014-02-08stm: Mount SD card on 1:/ if present.Damien George
If SD card is present on (soft) reset then it's mounted on 1:/ and files can be openned using, eg, open('1:/test.txt', 'r'), or 'w' for writing.
2014-02-01stm: Add support for ctrl-C to interrupt running Python.Damien George
Using PendSV interrupt at lowest priority, code can now raise an exception during an interrupt by calling pendsv_nlr_jump. The exception will be raised when all interrupts are finished. This is used to trap ctrl-C from the USB VCP to break out of running Python code.
2014-01-30Fix Makefiles: -O3 option was not being applied; mkdir for STM.Damien George
2014-01-26stm: USB host mode working! Restructure stm library directories.Damien George
2014-01-25stm: Put gc_collect code in separate file; define _ram_start in .ld.Damien George
To partly address Issue #220.
2014-01-24Merge pull request #219 from dhylands/add-depsDamien George
Rework makefiles. Add proper dependency checking.
2014-01-24Rework makefiles. Add proper dependency checking.Dave Hylands
2014-01-24Move file obj to separate modulemux
2014-01-23stm: Remove unnecessary #includes; small other changes.Damien George
2014-01-23Move RTC to Separate Modulemux
* Move RTC code from main to a separate module.
2014-01-22stm: Fix USART3 init. Small edits to Makefile and other things.Damien George
2014-01-21stm: Clean up main.c; disable libgcc by default.Damien George
f2d and d2f functions from libgcc does not work correctly, most likely due to the ABI being incorrect. libgcc disabled for now.
2014-01-21stm: Put HSE_VALUE and other defines in mpconfigport.h.Damien George
mpconfigport.h is now included by stm32f4xx.h so that all STM files have access to these defines.
2014-01-21stm: Put TARGET in mpconfigport.h; support PYBv4.Damien George
2014-01-21Merge pull request #202 from iabdalkader/masterDamien George
Remove hardcoded PLL_M value
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-21Add OSC_VALUE to Makefilemux
* Add the option to pass OSC frequency on command line.
2014-01-19stm: Upgrade ST peripheral library from 1.1.0 to 1.3.0.Damien George
2014-01-19stm: Upgrade to latest CMSIS libraries.Damien George
CMSIS V3.01 -> V3.20. Now in stm/cmsis to keep separate from ST libraries.
2014-01-14stm: Include libgcc for __aeabi_d2f and __aeabi_f2d functions.Damien George
Thanks to Dave Hylands for this.
2014-01-14Implement initial ADC supportmux
* Add simple ADC driver, with support for ADC1 and all channels. * Export MicroPython ADC object with read_channel function. * Add stm32f4xx_adc.c and adc.c to Makefile.
2014-01-13stm: Re-instate C debugging USART port (disabled by default).Damien George
See pyb_usart_global_debug variable. Also did some work on USB OTG, but nothing working yet.
2014-01-09Fix Makefile typomux
2014-01-09Add DEBUG flag to Makefilemux
* Add a DEBUG flag to Makefile, enables: "-O0 -ggdb"
2014-01-08Make build output quieter.Dave Hylands
Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
2014-01-08Update stm/Makeile to use OBJCOPY and SIZE macrosDave Hylands
While updating the teensy Makfile, I noticed that the stm Makefile was using calling arm-none-eabi-objcopy and size rather than $(OBJCOPY) and $(SIZE), so I added these 2 for consistency.
2014-01-08Move lexerstr to main py directory (everyone uses it).Damien George
2014-01-08Updated teensy to use common code from stm directory.Dave Hylands
Updated mconfigport.h to enable GC
2014-01-07Factor and simplify Makefile's and mpconfig, part 2.Damien George
2014-01-05Add Initial Support for STM32F4DISCOVERY Boardmux
* Add a TARGET definition to Makefile (default PYBOARD). * Add support for discovery LEDs in led module. * Add support for discovery user switch in usersw * Add EXTI interrupt handler for discovery user switch on (PA0). * Parameterize led and usrsw modules pins and port. * Issue #83
2014-01-05Move user switch code into a separate modulemux
* Move user switch code from main.c into a separate module (usrsw) * Add usrsw.c to Makefile
2014-01-04Convert Python types to proper Python type hierarchy.Damien George
Now much more inline with how CPython does types.