stijn
4cd21deebc
mingw: Add implementation of realpath()
...
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-03 17:38:08 +02:00
Paul Sokolovsky
16d58fc787
Merge pull request #551 from stinos/closed-fd-err
...
CPython compatibility: raise an error for operations on a closed file de...
2014-05-03 18:02:47 +03:00
Damien George
bff1ff28ee
stmhal: Fix bug where negative delay/udelay lead to huge delays.
...
A negative ms/us is now treated as a delay of 0 ms/us. This patch also
improves the calibration of udelay.
2014-05-03 14:11:56 +01:00
Damien George
c12242e9df
Merge pull request #546 from stinos/relax-makeqstrdata
...
More relaxed parsing of preprocessed qstr header
2014-05-03 13:27:04 +01:00
Damien George
5874c1c92b
stmhal: Remove #include <stdint.h> from mpconfigport.h.
...
Make include dependencies neater, and adheres to the coding convention
that headers should not include headers.
2014-05-03 13:24:21 +01:00
Damien George
e88814a274
Merge pull request #543 from lurch/patch-4
...
Make pyboard.enter_raw_repl more robust
2014-05-03 13:09:16 +01:00
stijn
a89e93e050
CPython compatibility: raise an error for operations on a closed file descriptor
...
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-03 14:05:56 +02:00
Damien George
ffaf8be1c6
stmhal: Add example use to RTC doc; add rtc.c to gendoc.py.
2014-05-03 12:02:21 +00:00
Damien George
3119b600d8
Merge branch 'master' of github.com:micropython/micropython
2014-05-03 12:45:01 +01:00
Paul Sokolovsky
5ee1e0f534
windows: alloca.h: Add comment, fix line endings.
2014-05-03 14:42:39 +03:00
Damien George
451f78d156
stmhal: Add documentation for RTC class.
2014-05-03 12:40:53 +01:00
Paul Sokolovsky
7a14022604
Merge pull request #552 from stinos/mingw-alloca
...
py: Use <alloca.h> for alloca()
2014-05-03 14:39:47 +03:00
Paul Sokolovsky
d51dbeb190
Merge pull request #550 from stinos/mingw-open
...
mingw: Add 'open' as extra builtin
2014-05-03 14:18:48 +03:00
Paul Sokolovsky
a6cadadd06
Merge pull request #553 from stinos/ignore-exe
...
Ignore .exe files
2014-05-03 14:16:45 +03:00
Paul Sokolovsky
418aca976c
objclosure, objcell: Print detailed representation if was requested.
...
Well, it is bound to "detailed error reporting", but that's closest what we
have now without creating new entities.
2014-05-03 14:16:11 +03:00
stijn
5513194273
mingw: Add 'open' as extra builtin and add define MICROPY_MOD_SYS_STDFILES
...
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-03 10:46:21 +02:00
stijn
1dc7f0427b
More relaxed parsing of preprocessed qstr header
...
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-03 10:26:31 +02:00
stijn
cdcd3de53f
Ignore .exe files
2014-05-03 10:21:07 +02:00
stijn
98e2ee0ec1
py: Use <alloca.h> for alloca()
...
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-03 10:14:53 +02:00
Damien George
8f472ad577
Merge pull request #548 from dhylands/fix-pin-defn
...
Fix PB0 ADC typo.
2014-05-03 00:16:48 +01:00
Damien George
5d89c4022b
Merge pull request #549 from cjbarnes18/autoflash_device
...
Add device ID to autoflash script.
2014-05-03 00:14:14 +01:00
Damien George
d9f4deef8c
Merge pull request #547 from cjbarnes18/pyboard_module_fixes
...
Fix pyboard.py tests.
2014-05-03 00:11:43 +01:00
Craig Barnes
a0ddae86e5
Add device ID to autoflash script.
2014-05-02 23:03:23 +01:00
Dave Hylands
5788485cca
Fix PB0 ADC typo.
...
This also adds a bunch of slashes separating pin that have multiple functions.
2014-05-02 14:01:23 -07:00
Craig Barnes
71a1e35206
Fix pyboard.py tests.
2014-05-02 21:36:07 +01:00