Damien George
4f7f2e04a3
Merge pull request #497 from lurch/build-32bit
New config option MICROPY_FORCE_32BIT (defaulted to 0)
11 years ago
Damien George
ecdf6cdc5b
tools: Fix up pybcdc.inf generation: new lines and hex digits.
Using Python's file open in 'r' mode opens it for text reading, which
converts all new lines to \n. Could use 'rb' binary mode, but then
don't have access to the string Template replacement functions. Thus,
force the output to have '\\r\\n' ending.
Also fix regex to match hex digits.
11 years ago
Damien George
bda2f70964
Merge pull request #498 from lurch/create-headers-from-files
Auto-generate the stmhal/pybcdc_inf header file from static files
11 years ago
Damien George
8a919fb051
Merge pull request #499 from lurch/skip-travis-tests
run-tests can now skip certain tests when run under Travis CI
11 years ago
Damien George
1381146382
stmhal: Fix C bindings of I2C.read/write.
11 years ago
Andrew Scheller
1b997d5244
run-tests can now skip certain tests when run under Travis CI
See the `skip_travis_tests` variable. Fixes #495
(also tidied up usage of os.path.basename() function)
11 years ago
Andrew Scheller
1452221aca
Auto-generate the stmhal/pybcdc_inf header file from static files
The USB VID&PID are automatically extracted from usbd_desc_cdc_msc.c
and inserted into pybcdc_inf.template, ensuring that the same USB
IDs get used everywhere
11 years ago
Andrew Scheller
571d5a3363
New config option MICROPY_FORCE_32BIT (defaulted to 0)
Makes it easier for 64-bit unix hosts to build 32-bit unix
binaries (for testing)
11 years ago
Damien George
2822d4e6ce
stmhal: Add I2C functions for pure master read/write.
11 years ago
Damien George
ee01411036
py: Add len(bytes).
11 years ago
Damien George
897fe0c0d0
py: Add builtin functions bin and oct, and some tests for them.
11 years ago
Damien George
d5323f07ff
Merge pull request #496 from dhylands/fix-debug-usart
Fix call to enable pyb_usart_global_debug.
11 years ago
Dave Hylands
00adf67179
Fix call to enable pyb_usart_global_debug.
11 years ago
Damien George
c58c1191b2
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
9699ea6a2f
stmhal: Fix USB MSC so that it unmounts correctly on Mac OS X.
Mac OS X sends a SCSI command to remove the medium when it unmounts a
drive. If this command is not honoured, then OS X will automatically
remount the drive, making it impossible to eject. This patch disables
the USB MSC when the right SCSI command is sent.
11 years ago
Damien George
4d7f4eb6a9
stmhal: Add ADC function to read data at a given frequency.
Reads ADC values into a bytearray (or similar) at a fixed rate. Needs a
better name and improved API. Also fix up DAC dma function (which also
needs a better name and API).
11 years ago
Damien George
e95da5b784
stmhal: Add I2C.scan method, to scan all devices on the bus.
Simple way to find the address of an attached I2C device.
11 years ago
Damien George
f6d25ecf7b
stmhal: Add simple README.txt to freshly-created filesystem.
11 years ago
Damien George
3b108e7699
Merge pull request #493 from aitjcize/patch
Move entry_table to separated header file.
11 years ago
AZ Huang
9413ca02fb
Rename header file.
11 years ago
Damien George
203bc98804
travis: Move diffing back to after_failure command.
Need to click on icon at right to see the output.
11 years ago
Damien George
b013aea809
py: Fix builtin hex to print prefix.
I was too hasty. Still a one-liner though.
11 years ago
Damien George
5805111732
py: Add hex builtin function.
A one-liner, added especially for @pfalcon :)
11 years ago
Damien George
256b319d56
tests: Disable memoryerror.py test, since it fails on travis.
Would be good to test this, but need to find a way to optionally not
running it when on travis.
11 years ago
Damien George
48aaa27c6a
travis: Diff output, hopefully this works.
11 years ago
Damien George
fd1c7b9d48
travis: Continue to debug tests output.
Seems that any commands in after_failure do not have stdout...
11 years ago
Damien George
e8ecca21ff
travis: More tests output debugging.
11 years ago
Damien George
c13d0b3304
stmhal: Wrap skin-named-usarts in PYBV10 #if.
11 years ago
Damien George
35443610b1
travis: More tests debugging.
11 years ago
Damien George
45b4cc77dd
travis: Debugging failing tests.
11 years ago
Damien George
9e2890bb00
travis: On fail, cd to tests directory before diffing.
11 years ago
Damien George
2f930fa0cb
Merge pull request #490 from redteam316/master
Fixed Travis-CI Build Status Link in README.md
11 years ago
AZ Huang
9309d9982f
Move entry_table to separated header file.
11 years ago
Andrew Scheller
11559cff38
travis: only build unix with gcc-4.7
11 years ago
Andrew Scheller
f0777d1c2c
travis: build unix targets first
because @pfalcon says so
11 years ago
Jonathan Greig
e71311ed87
Fixed Travis-CI Build Status Link in README.md
11 years ago
Andrew Scheller
499d50be98
Merge remote-tracking branch 'upstream/master' into patch-1
Conflicts:
.travis.yml
11 years ago
Paul Sokolovsky
8c1bec4ae7
.travis.yml: Use gcc-4.7 to avoid broken codegeneration and failed tests.
11 years ago
Andrew Scheller
16fecc0a84
Update .travis.yml
Check that the bare-arm, stmhal and unix-cpy ports at least remain compilable, even if we can only actually run tests against the unix port.
11 years ago
Paul Sokolovsky
c1cc4a68bc
Merge pull request #486 from lurch/patch-1
Update .travis.yml to use python3.3
11 years ago
Andrew Scheller
c29a0ac56a
Update .travis.yml
Seems like I'd inadvertently created invalid YAML!
11 years ago
Andrew Scheller
9b5a9d41dc
Update .travis.yml
Add diffing of failure logs
11 years ago
Andrew Scheller
e31a8222f2
Update .travis.yml
Doh, the shebang line for run-tests itself relies on `python3`
11 years ago
Andrew Scheller
0388b2ea78
Update .travis.yml
This *might* fix it enough for all tests to run (maybe?)
11 years ago
Paul Sokolovsky
cc8c0882a0
pip-micropython: Fix inverted condition.
11 years ago
Damien George
e10da77a5c
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
8341725b65
travis: Only run some tests, to work around CPython version issues.
Needs a proper fix, to install/configure CPython 3.3.x (or 3.4.0) on
Travis CI.
11 years ago
Damien George
3683789207
py: Clean up and add comments to makeqstrdata.
11 years ago
Paul Sokolovsky
a5854d2bc5
builtinimport: Add basic support for namespace packages.
That was easy - just avoid erroring out on seeing candidate dir for namespace
package. That's far from being complete though - namespace packages should
support importing portions of package from different sys.path entries, here
we require first matching entry to contain all namespace package's portions.
And yet, that's a way to put parts of the same Python package into multiple
installable package - something we really need for *Micro*Python.
11 years ago
Paul Sokolovsky
75ffcaeace
py: Implement __delitem__ method for classes.
11 years ago