aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-03Merge branch 'stinos-mingw-float-printf'Damien George
2014-05-03windows: Argument to () function should be (void).Damien George
2014-05-03Merge branch 'mingw-float-printf' of github.com:stinos/micropython into ↵Damien George
stinos-mingw-float-printf
2014-05-03py, stream: Implement readlines for a stream.Damien George
2014-05-03Merge pull request #557 from cjbarnes18/device_id_in_deployDamien George
Add device ID to deploy make target for stmhal.
2014-05-03py: Add --dirty flag to git describe.Damien George
2014-05-03Add device ID to deploy make target for stmhal.Craig Barnes
2014-05-03mingw: Fix number of exponent digits in floating point formattingstijn
By default mingw outputs 3 digits instead of the standard 2 so all float tests using printf fail. Using setenv at the start of the program fixes this. To accomodate calling platform specific initialization a MICROPY_MAIN_INIT_FUNC macro is used which is called in mp_init()
2014-05-03Don't print git hash as well as git tag in banner.Damien George
2014-05-03Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-05-03py: Print tag/version/git describe in uPy banner.Damien George
2014-05-03Merge pull request #554 from stinos/mingw-realpathPaul Sokolovsky
mingw: Add implementation of realpath()
2014-05-03Merge pull request #555 from lurch/patch-1Damien George
RTC doc fix
2014-05-03stmhal: Enable cmath module.Damien George
2014-05-03Fix incorrect fix ;)Andrew Scheller
2014-05-03stmhal: Add .gitignore to ignore the new build dir names.Damien George
2014-05-03tools: pyboard.py now acts as a command-line program to run scripts.Damien George
You can run a local script on the pyboard using: python pyboard.py test.py where test.py is the local script you want to run.
2014-05-03Updated doc fixAndrew Scheller
2014-05-03stmhal: Change names: flash to firmware, flashboard to deploy.Damien George
Since firmware lives in a build directory which already specifies the board name, no real reason to also have the firmware have the board name.
2014-05-03stmhal: Default build directory now includes board name.Damien George
BUILD is build-$(BOARD) by default.
2014-05-03RTC doc fixAndrew Scheller
2014-05-03stmhal: Wrap CC3000 driver in MICROPY_HW_ENABLE_CC3K.Damien George
This renames MICROPY_HW_HAS_WLAN to MICROPY_HW_ENABLE_CC3K (since it's a driver, not a board feature) and wraps all CC3000 code in this #if. It's disabled for all boards.
2014-05-03py, objtype.c: Rename class_ to instance_ following change of typedef.Damien George
This follows up 0a7e01ae3c529fddf79dc5c71bf7e43cff3f9fa0.
2014-05-03unix, file.c: adhere to coding conventions.Damien George
2014-05-03tests: Add a suite of tests specifically for the pyboard.Damien George
In tests/pyb is now a suite of tests that tests the pyb module on the pyboard. They include expected output files because we can't run CPython on the pyboard to compare against. run-tests script has now been updated to allow pyboard tests to be run. Just pass the option --pyboard. This runs all basic, float and pyb tests. Note that float/math-fun.py currently fails because not all math functions are implemented in stmhal/.
2014-05-03stmhal: Fix typos in class documentation.Damien George
2014-05-03mingw: Add implementation of realpath()stijn
The mingw port used _fullpath() until now, but the behaviour is not exactly the same as realpath()'s on unix; major difference being that it doesn't return an error for non-existing files, which would bypass main's error checking and bail out without any error message. Also realpath() will return forward slashes only since main() relies on that.
2014-05-03Merge pull request #551 from stinos/closed-fd-errPaul Sokolovsky
CPython compatibility: raise an error for operations on a closed file de...
2014-05-03stmhal: Fix bug where negative delay/udelay lead to huge delays.Damien George
A negative ms/us is now treated as a delay of 0 ms/us. This patch also improves the calibration of udelay.
2014-05-03Merge pull request #546 from stinos/relax-makeqstrdataDamien George
More relaxed parsing of preprocessed qstr header
2014-05-03stmhal: Remove #include <stdint.h> from mpconfigport.h.Damien George
Make include dependencies neater, and adheres to the coding convention that headers should not include headers.
2014-05-03Merge pull request #543 from lurch/patch-4Damien George
Make pyboard.enter_raw_repl more robust
2014-05-03CPython compatibility: raise an error for operations on a closed file descriptorstijn
In CPython any operations on a file that has been closed already reaises a ValueError with message "I/O operation on closed file"
2014-05-03stmhal: Add example use to RTC doc; add rtc.c to gendoc.py.Damien George
2014-05-03Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-05-03windows: alloca.h: Add comment, fix line endings.Paul Sokolovsky
2014-05-03stmhal: Add documentation for RTC class.Damien George
2014-05-03Merge pull request #552 from stinos/mingw-allocaPaul Sokolovsky
py: Use <alloca.h> for alloca()
2014-05-03Merge pull request #550 from stinos/mingw-openPaul Sokolovsky
mingw: Add 'open' as extra builtin
2014-05-03Merge pull request #553 from stinos/ignore-exePaul Sokolovsky
Ignore .exe files
2014-05-03objclosure, objcell: Print detailed representation if was requested.Paul Sokolovsky
Well, it is bound to "detailed error reporting", but that's closest what we have now without creating new entities.
2014-05-03mingw: Add 'open' as extra builtin and add define MICROPY_MOD_SYS_STDFILESstijn
This one was probable missed when creating mpconfigport.h, but the underlying code (file.c) gets compiled and works perfectly so no reason to omit it.
2014-05-03More relaxed parsing of preprocessed qstr headerstijn
The original parsing would error out on any C declarations that are not typedefs or extern variables. This limits what can go in mpconfig.h and mpconfigport.h, as they are included in qstr.h. For instance even a function declaration would be rejected and including system headers is a complete no-go. That seems too limiting for a global config header, so makeqstrdata now ignores everything that does not match a qstr definition.
2014-05-03Ignore .exe filesstijn
2014-05-03py: Use <alloca.h> for alloca()stijn
alloca() is declared in alloca.h which als happens to be included by stdlib.h. On mingw however it resides in malloc.h only. So if we include alloca.h directly, and add an alloca.h for mingw in it's port directory we can get rid of the mingw-specific define to include malloc.h and the other ports are happy as well.
2014-05-03Merge pull request #548 from dhylands/fix-pin-defnDamien George
Fix PB0 ADC typo.
2014-05-03Merge pull request #549 from cjbarnes18/autoflash_deviceDamien George
Add device ID to autoflash script.
2014-05-03Merge pull request #547 from cjbarnes18/pyboard_module_fixesDamien George
Fix pyboard.py tests.
2014-05-02Add device ID to autoflash script.Craig Barnes
2014-05-02Fix PB0 ADC typo.Dave Hylands
This also adds a bunch of slashes separating pin that have multiple functions.