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
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
Andrew Scheller
37067666ee
Fix the builtin min() and max() functions (and add tests).
Fixes #539
11 years ago
Dave Hylands
e911cfdb22
Fix pin initialization when a mode argument is provided
11 years ago
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
11 years ago
Paul Sokolovsky
1f85d6255d
py: Add tentative scheme for error messages configuration.
11 years ago
Paul Sokolovsky
68551a8428
objfun: Add function name accessor and .print slot method.
11 years ago
Damien George
dddf5bd330
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
f4b7e9bd2e
stmhal, docs: Small changes to URL links; adds list of files if none given.
This documentation is now available at micropython.org/doc/
11 years ago
Damien George
37977b7b27
Merge pull request #528 from pfalcon/native-subclass1
Initial support for subclassing native types
11 years ago
Damien George
4ae52d454c
stmhal: Reinstate CC3000 driver from old stm/ port.
It's not enabled by default because it doesn't fully work. It can
connect to an AP, get an IP address and do a host-lookup, but not yet do
send or recv on a socket.
11 years ago
Damien George
cab23051d9
stmhal: Make LED.intensity return the same value it was set to.
Also give proper error message when trying to construct a non-existent
LED.
Addresses issue #530 .
11 years ago
Paul Sokolovsky
22d0598818
objfun: Factor out function to report positional args mismatch.
11 years ago
Paul Sokolovsky
e908591baa
py: Abstract no-return attribute for functions a bit.
11 years ago
Paul Sokolovsky
b1ce37d32e
py: If setjmp NLR implementation is forced, omit native versions.
11 years ago
Paul Sokolovsky
851c856585
nlr.h: As we treat all warnings as errors, can't use #warning.
And this is not good.
11 years ago
Paul Sokolovsky
c963310123
tests: Add test for calling inherited native method on subclass.
11 years ago
Paul Sokolovsky
7f0419c0e5
objtype: Support calling normal methods inherited from native base class.
Biggest part of this support is refactoring mp_obj_class_lookup() to return
standard "bound member" pair (mp_obj_t[2]). Actual support of inherited
native methods is 3 lines then. Some inherited features may be not supported
yet (e.g. native class methods, native properties, etc., etc.). There may
be opportunities for further optimization too.
11 years ago
Damien George
da9f27103d
stmhal: Oops, typo.
11 years ago
Damien George
8d09640b22
stmhal: Add documentation in comments, and script to generate HTML.
Decided to write own script to pull documentation from comments in C code.
Style for writing auto generated documentation is: start line with ///
and then use standard markdown to write the comment. Keywords
recognised by the scraper begin with backslash. See code for examples.
Running: python gendoc.py modpyb.c accel.c adc.c dac.c extint.c i2c.c
led.c pin.c rng.c servo.c spi.c uart.c usrsw.c, will generate a HTML
structure in gendoc-out/.
gendoc.py is crude but functional. Needed something quick, and this was
it.
11 years ago