Damien George
baa2afbb58
stmhal: Fix typos in class documentation.
2014-05-03 16:42:27 +01: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
Damien George
b37c0a116e
unix-cpy: Put mpconfig.h before all other headers.
2014-05-02 16:24:31 +00:00
Damien George
003977a70b
Merge branch 'master' of github.com:micropython/micropython
2014-05-02 16:58:32 +01:00
Damien George
3eb8163b16
stmhal: Add documentation for DAC and Timer classes.
2014-05-02 16:58:15 +01:00
Paul Sokolovsky
26a9920735
bare-arm, qemu-arm: Make "mpconfig.h" be first included, as other headers depend on it.
2014-05-02 18:23:23 +03:00
Paul Sokolovsky
9b71b16a94
unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it.
2014-05-02 18:08:16 +03:00
Paul Sokolovsky
f54bcbf099
py, unix: Make "mpconfig.h" be first included, as other headers depend on it.
...
Specifically, nlr.h does.
2014-05-02 17:48:40 +03:00
Paul Sokolovsky
e0954d426f
objtype: Work around stupid strict aliasing check.
2014-05-02 17:48:40 +03:00
Damien George
ba742ed639
Add shell script to automatically build stmhal/ for all pyboards.
2014-05-02 13:49:44 +00:00
Paul Sokolovsky
e276753b45
tests: Add testcases for catching user Exception subclasses.
2014-05-02 02:31:30 +03:00
Paul Sokolovsky
91e556af23
objexcept: Support tracebacks for user Exception subclasses.
2014-05-02 02:31:30 +03:00
Paul Sokolovsky
0a7e01ae3c
objtype: Rename mp_obj_class_t -> mp_obj_instance_t and move to local header.
...
TODO: Rename methods.
2014-05-02 02:14:38 +03:00
Paul Sokolovsky
d8351ca8a0
objtype: .print() Exception instances in adhoc way.
...
This is ugly, just as expected.
2014-05-02 02:00:47 +03:00
Damien George
f2021ffe0f
Merge pull request #542 from dhylands/fix-pin
...
Fix pin initialization when a mode argument is provided
2014-05-01 23:26:28 +01:00
Damien George
20c23c31be
Merge pull request #536 from lurch/patch-1
...
Add flashboard target to the stmhal Makefile to run dfu-util
2014-05-01 23:25:57 +01:00
Paul Sokolovsky
28dfbc2ba2
Merge pull request #544 from lurch/fix-minmax
...
Fix the builtin min() and max() functions (and add tests).
2014-05-01 23:42:18 +03:00
Paul Sokolovsky
7917b731f6
objfun: More debug logging.
2014-05-01 23:22:11 +03:00
Paul Sokolovsky
5ba58f4a1a
objgenerator: Fix check for too few args passed to gen function.
2014-05-01 23:22:11 +03:00
Paul Sokolovsky
c3103b55c1
objgenerator: .print(): Output real underlying function name.
2014-05-01 23:22:11 +03:00
Andrew Scheller
37067666ee
Fix the builtin min() and max() functions (and add tests).
...
Fixes #539
2014-05-01 21:21:43 +01:00
Andrew Scheller
1f740bdaf4
Make pyboard.enter_raw_repl more robust
...
In case there's a program in the microcontroller's main.py running in an infinite loop
2014-05-01 20:42:23 +01:00
Dave Hylands
e911cfdb22
Fix pin initialization when a mode argument is provided
2014-05-01 12:15:37 -07:00
Andrew Scheller
ed9d8d6354
Add flashboard target to the stmhal Makefile to run dfu-util
...
Which allows you to run "make -C stmhal flashboard" from the top-level directory.
Also ties in nicely with my configurable BUILD directory from #506
2014-05-01 02:51:29 +01:00
Paul Sokolovsky
1f85d6255d
py: Add tentative scheme for error messages configuration.
2014-05-01 01:50:35 +03:00
Paul Sokolovsky
68551a8428
objfun: Add function name accessor and .print slot method.
2014-05-01 01:50:35 +03:00
Damien George
dddf5bd330
Merge branch 'master' of github.com:micropython/micropython
2014-04-30 23:34:25 +01:00