aboutsummaryrefslogtreecommitdiff
path: root/stmhal
AgeCommit message (Collapse)Author
2014-06-30Merge pull request #710 from iabdalkader/assertDamien George
Fix assert_func warning/error
2014-06-29stmhal: pyb.adc: Clarify that buffer with elements of any size can be used.Paul Sokolovsky
Based on forum post: http://forum.micropython.org/viewtopic.php?f=6&t=193
2014-06-28stmhal: Include mpconfig.h before all other includes.Paul Sokolovsky
It defines types used by all other headers. Fixes #691.
2014-06-28unix, stmhal: Add option for STR_UNICODE to mpconfigport.h.Damien George
Unicode is disabled by default for now, since FileIO.read(n) is currently not implemented for text-mode files, and this is an often function.
2014-06-27py: Move stack_ctrl_init() to mp_init().Paul Sokolovsky
As stack checking is enabled by default, ports which don't call stack_ctrl_init() are broken now (report RuntimeError on startup). Save them trouble and just init stack control framework in interpreter init.
2014-06-27Change MCU name config micromux
2014-06-27Merge pull request #703 from iabdalkader/micro_namesPaul Sokolovsky
Add MICROPY_HW_MICRO_NAME to boards config
2014-06-27stmhal: Use stackctrl framework.Paul Sokolovsky
2014-06-25Use mp_const_none to initialize mapper and map_dictDave Hylands
2014-06-21Add NORETURN to __fatal_errormux
2014-06-21Fix asser_func warning/errormux
* Add while(1) to assert_func to avoid func returns warning * Define a weak attr in mpconfig.h
2014-06-20Merge pull request #707 from eblot/master-v1.1.1-build-fixesPaul Sokolovsky
Fix missing declaration of assert() Replace ARRAY_SIZE with MP_ARRAY_SIZE
2014-06-19Prefix ARRAY_SIZE with micropython prefix MP_Emmanuel Blot
2014-06-19Add MICROPY_HW_MICRO_NAME to boards configmux
2014-06-18bare-arm, stmhal, teensy: Duplicate -nostdlib to CFLAGSSven Wegener
As we are building with -nostdlib gcc features like the stack protector will fail linking, because the failure handlers are in gcc's internal libs. Such features are implicitly disabled during compilation when -nostdlib is used in CFLAGS too. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-06-18bare-arm, stmhal: Fix --nostdlib to -nostdlibSven Wegener
-nostdlib is the correct option, gcc recognizes the double dash version when in link-only mode, but not when compiling. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-06-17Merge pull request #698 from dhylands/adc-fixDamien George
Fix problem with ADC reads and multiple channels
2014-06-17stmhal: Toggle LED using ODR ^= pin_mask.Damien George
2014-06-16Fix problem with ADC reads and multiple channelsDave Hylands
2014-06-15stmhal: Add Python function to set UART for REPL.Damien George
This adds a hook to get/set pyb_uart_global_debug from Python, using pyb.repl_uart(). You can set it to an arbitrary UART object, and then the REPL (in and out) is repeated on this UART object (as well as on USB CDC). Ultimately, this will be replaced with a proper Pythonic interface to set sys.stdin and sys.stdout.
2014-06-15stmhal: Fix type signatures on functions that take variable args.Damien George
2014-06-15stmhal: Fix file print methods to use print instead of printf.Damien George
Also make stdout_print_strn static (ultimately this function needs to be merged with stdout_tx_strn).
2014-06-15stmhal: Update and improve LCD driver.Damien George
Still some method names to iron out, and funtionality to add, but this will do for the first, basic version.
2014-06-14Make __assert_func weakmux
2014-06-14Add __assert_func only if DEBUG=1mux
2014-06-14Add __assert_funcmux
* issue #692
2014-06-11stmhal, file: Seek to end of file if opened in 'a' mode.Damien George
2014-06-11stmhal, file: Implement a,x,+ open modes, seek and tell.Damien George
Also now returns correct POSIX errno when an IO operation fails. Addresses issues #516 and #676.
2014-06-08stmhal: Fix pyb.bootloader so it works for gcc-4.9.0.Damien George
See PR #618.
2014-06-08Provide definition of alloca() in mpconfigport.h.Damien George
2014-06-03Merge branch 'master' of https://github.com/micropython/micropythonbvernoux
2014-06-03Cleanup/removed specific stuff specific to HydraBus (except board).bvernoux
2014-06-02Add missing commas to stm32f4xx-af.csvDave Hylands
2014-06-02micropython port for HydraBusbvernoux
2014-06-01stmhal: Document pyb.Accel() constructor, that it takes time to start.Damien George
2014-06-01Rename bultins config variables to MICROPY_PY_BUILTINS_*.Damien George
This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion.
2014-05-30Add a comma to make the .csv look proper in githubDave Hylands
2014-05-25Change const byte* to const char* where sensible.Damien George
This removes need for some casts (at least, more than it adds need for new casts!).
2014-05-24Add SystemExit exception and use it in unix/ and stmhal/ ports.Damien George
Addresses issue #598.
2014-05-24Rename configuration variables controling Python features.Damien George
Now of the form MICROPY_PY_*. See issue #35.
2014-05-21Tidy up some configuration options.Damien George
MP_ALLOC_* -> MICROPY_ALLOC_* MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX MICROPY_EXTRA_* -> MICROPY_PORT_* See issue #35.
2014-05-21py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL.Damien George
See issue #608 for justification.
2014-05-21stmhal: Stop USB before entering DFU by software.Damien George
2014-05-19py: Implement proper separation between io.FileIO and io.TextIOWrapper.Paul Sokolovsky
io.FileIO is binary I/O, ans actually optional. Default file type is io.TextIOWrapper, which provides str results. CPython3 explicitly describes io.TextIOWrapper as buffered I/O, but we don't have buffering support yet anyway.
2014-05-19stmhal: Fix DAC documentation: need to convert float to int for buf.Damien George
2014-05-19stmhal: Fix write_timed function for DAC(2).Damien George
Addresses issue #617.
2014-05-19stmhal: Make pyb.bootloader take no arguments.Damien George
2014-05-18stmhal: Remap system flash and adjust addressesSven Wegener
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-05-18stmhal: Activate bootloader with pyb.bootloader()Sven Wegener
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
2014-05-11py: Rename MICROPY_SYS_EXIT to MICROPY_MOD_SYS_EXIT.Damien George
For consistency with MICROPY_MOD_SYS_STDFILES, etc.