| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|\
| |
| | |
updated to use new pyb.Accel() object
|
|/ |
|
|\
| |
| | |
updated to fit new acceleration and time/millis
|
|/
|
|
| |
Changed pyb.accel() and pyb.time() to the new pyb.Accel() object and pyb.millis() function.
Also shortened the loop so the writing is finished before the USB connection messes things up.
|
| |
|
|
|
|
|
|
|
| |
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
|
|\
| |
| | |
Proposed license/copyright file header.
|
| | |
|
|\ \ |
|
| | | |
|
|/| |
| | |
| | |
| | | |
stinos-mingw-float-printf
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
By default mingw outputs 3 digits instead of the standard 2 so all float
tests using printf fail. Using setenv at the start of the program fixes this.
To accomodate calling platform specific initialization a
MICROPY_MAIN_INIT_FUNC macro is used which is called in mp_init()
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add device ID to deploy make target for stmhal.
|
| |/ / |
|
|/ / |
|
| | |
|
|\ \ |
|
| |\ \
| | | |
| | | | |
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.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
RTC doc fix
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
You can run a local script on the pyboard using:
python pyboard.py test.py
where test.py is the local script you want to run.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since firmware lives in a build directory which already specifies the
board name, no real reason to also have the firmware have the board
name.
|
| | | |
| | | |
| | | |
| | | | |
BUILD is build-$(BOARD) by default.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
This follows up 0a7e01ae3c529fddf79dc5c71bf7e43cff3f9fa0.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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/.
|
| | | |
|
|\ \ \
| |/ /
|/| | |
CPython compatibility: raise an error for operations on a closed file de...
|
| | |
| | |
| | |
| | |
| | | |
In CPython any operations on a file that has been closed already reaises
a ValueError with message "I/O operation on closed file"
|
| | |
| | |
| | |
| | |
| | | |
A negative ms/us is now treated as a delay of 0 ms/us. This patch also
improves the calibration of udelay.
|
|\ \ \
| | | |
| | | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
Make include dependencies neater, and adheres to the coding convention
that headers should not include headers.
|
|\ \ \
| | | |
| | | | |
Make pyboard.enter_raw_repl more robust
|
| | | |
| | | |
| | | | |
In case there's a program in the microcontroller's main.py running in an infinite loop
|
| | | | |
|
|\ \ \ \ |
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
py: Use <alloca.h> for alloca()
|