Damien George
51315614e1
stmhal: Default build directory now includes board name.
BUILD is build-$(BOARD) by default.
11 years ago
Andrew Scheller
b569d690f5
RTC doc fix
11 years ago
Damien George
ae8feac598
stmhal: Wrap CC3000 driver in MICROPY_HW_ENABLE_CC3K.
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.
11 years ago
Damien George
9c5fc83e6a
py, objtype.c: Rename class_ to instance_ following change of typedef.
This follows up 0a7e01ae3c
.
11 years ago
Damien George
e69b7e8288
unix, file.c: adhere to coding conventions.
11 years ago
Damien George
41f768f3f3
tests: Add a suite of tests specifically for the pyboard.
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/.
11 years ago
Damien George
baa2afbb58
stmhal: Fix typos in class documentation.
11 years ago
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.
11 years ago
Paul Sokolovsky
16d58fc787
Merge pull request #551 from stinos/closed-fd-err
CPython compatibility: raise an error for operations on a closed file de...
11 years ago
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.
11 years ago
Damien George
c12242e9df
Merge pull request #546 from stinos/relax-makeqstrdata
More relaxed parsing of preprocessed qstr header
11 years ago
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.
11 years ago
Damien George
e88814a274
Merge pull request #543 from lurch/patch-4
Make pyboard.enter_raw_repl more robust
11 years ago
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"
11 years ago
Damien George
ffaf8be1c6
stmhal: Add example use to RTC doc; add rtc.c to gendoc.py.
11 years ago
Damien George
3119b600d8
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Paul Sokolovsky
5ee1e0f534
windows: alloca.h: Add comment, fix line endings.
11 years ago
Damien George
451f78d156
stmhal: Add documentation for RTC class.
11 years ago
Paul Sokolovsky
7a14022604
Merge pull request #552 from stinos/mingw-alloca
py: Use <alloca.h> for alloca()
11 years ago
Paul Sokolovsky
d51dbeb190
Merge pull request #550 from stinos/mingw-open
mingw: Add 'open' as extra builtin
11 years ago
Paul Sokolovsky
a6cadadd06
Merge pull request #553 from stinos/ignore-exe
Ignore .exe files
11 years ago
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.
11 years ago
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.
11 years ago
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.
11 years ago
stijn
cdcd3de53f
Ignore .exe files
11 years ago
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.
11 years ago
Damien George
8f472ad577
Merge pull request #548 from dhylands/fix-pin-defn
Fix PB0 ADC typo.
11 years ago
Damien George
5d89c4022b
Merge pull request #549 from cjbarnes18/autoflash_device
Add device ID to autoflash script.
11 years ago
Damien George
d9f4deef8c
Merge pull request #547 from cjbarnes18/pyboard_module_fixes
Fix pyboard.py tests.
11 years ago
Craig Barnes
a0ddae86e5
Add device ID to autoflash script.
11 years ago
Dave Hylands
5788485cca
Fix PB0 ADC typo.
This also adds a bunch of slashes separating pin that have multiple functions.
11 years ago
Craig Barnes
71a1e35206
Fix pyboard.py tests.
11 years ago
Damien George
b37c0a116e
unix-cpy: Put mpconfig.h before all other headers.
11 years ago
Damien George
003977a70b
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
3eb8163b16
stmhal: Add documentation for DAC and Timer classes.
11 years ago
Paul Sokolovsky
26a9920735
bare-arm, qemu-arm: Make "mpconfig.h" be first included, as other headers depend on it.
11 years ago
Paul Sokolovsky
9b71b16a94
unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it.
11 years ago
Paul Sokolovsky
f54bcbf099
py, unix: Make "mpconfig.h" be first included, as other headers depend on it.
Specifically, nlr.h does.
11 years ago
Paul Sokolovsky
e0954d426f
objtype: Work around stupid strict aliasing check.
11 years ago
Damien George
ba742ed639
Add shell script to automatically build stmhal/ for all pyboards.
11 years ago
Paul Sokolovsky
e276753b45
tests: Add testcases for catching user Exception subclasses.
11 years ago
Paul Sokolovsky
91e556af23
objexcept: Support tracebacks for user Exception subclasses.
11 years ago
Paul Sokolovsky
0a7e01ae3c
objtype: Rename mp_obj_class_t -> mp_obj_instance_t and move to local header.
TODO: Rename methods.
11 years ago
Paul Sokolovsky
d8351ca8a0
objtype: .print() Exception instances in adhoc way.
This is ugly, just as expected.
11 years ago
Damien George
f2021ffe0f
Merge pull request #542 from dhylands/fix-pin
Fix pin initialization when a mode argument is provided
11 years ago
Damien George
20c23c31be
Merge pull request #536 from lurch/patch-1
Add flashboard target to the stmhal Makefile to run dfu-util
11 years ago
Paul Sokolovsky
28dfbc2ba2
Merge pull request #544 from lurch/fix-minmax
Fix the builtin min() and max() functions (and add tests).
11 years ago
Paul Sokolovsky
7917b731f6
objfun: More debug logging.
11 years ago
Paul Sokolovsky
5ba58f4a1a
objgenerator: Fix check for too few args passed to gen function.
11 years ago
Paul Sokolovsky
c3103b55c1
objgenerator: .print(): Output real underlying function name.
11 years ago