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
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
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
d32bab27bb
py: Add copyright/license header to each file.
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
Paul Sokolovsky
5a12137c3e
tests: Add test for accessing attribute of inherited native type.
11 years ago
Paul Sokolovsky
443857de98
objtype: Add support for looking up non-method attrs in native base class.
11 years ago
Paul Sokolovsky
4f46c441ef
tests: Add basic tests for subclassing native types and using special methods.
Even of these, some features do not yet work as expected.
11 years ago
Paul Sokolovsky
6ead0d2fbc
objtype: Implement basic framework for subclassing native types.
This implements checking of base types, allocation and basic initialization,
and optimized support for special method lookups. Other features are not yet
supported.
11 years ago
Damien George
186e463a9e
py: Fix bug in map lookup of interned string vs non-interned.
Had choice of either interning or forcing full equality comparison, and
chose latter. See comments in mp_map_lookup.
Addresses issue #523 .
11 years ago
Damien George
185f9c1c46
py: Fix lexerunix, where not all data may be read from a file.
Addresses issue #526 .
11 years ago