Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | examples: Rename unix socket examples to have more precise naming (http). | Paul Sokolovsky | 2014-10-09 |
| | |||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-10-09 |
|\ | |||
| * | Merge pull request #897 from tomvonclef/master | Damien George | 2014-10-09 |
| |\ | | | | | | | Updating README.md. The Unix build requires pkg-config for FFI. | ||
| | * | Updating README.md to include the fact that the Unix build requires ↵ | Tom von Clef | 2014-10-08 |
| | | | | | | | | | | | | pkg-config to build the FFI module. | ||
* | | | Merge branch 'dhylands-lexer-crash' | Damien George | 2014-10-09 |
|\ \ \ | |/ / |/| | | |||
| * | | py: Add further checks for failed malloc in lexer init functions. | Damien George | 2014-10-09 |
| | | | |||
| * | | Merge branch 'lexer-crash' of https://github.com/dhylands/micropython into ↵ | Damien George | 2014-10-09 |
|/| | | | | | | | | | | | dhylands-lexer-crash | ||
| * | | Make lexer fail gracefully when memory can't be allocated. | Dave Hylands | 2014-10-08 |
| |/ | |||
* | | Merge branch 'dhylands-memory-error' | Damien George | 2014-10-09 |
|\ \ | |/ |/| | |||
| * | py: Add #if guard around gc-specific code. | Damien George | 2014-10-09 |
| | | |||
| * | Allow real memory errors (from locked gc) to be reported with traceback. | Dave Hylands | 2014-10-07 |
|/ | |||
* | travis: Install realpath, required for teensy build. | Paul Sokolovsky | 2014-10-06 |
| | |||
* | windows: mingw32 gcc doesn't define endianness macros, so just assume little. | Paul Sokolovsky | 2014-10-06 |
| | | | | | | | | Specifically, at least Ubuntu's i586-mingw32msvc-gcc doesn't supply __LITTLE_ENDIAN__ and friends. And as it's safe enough to assume that Windows is only little-endian, then it's defined unconditionally, instead of duplicating detection logic in py/mpconfig.h (or adding windows-specific defines to it). | ||
* | tests: Skip ffi_float.py if module ffi is not available. | Paul Sokolovsky | 2014-10-06 |
| | |||
* | tests: Add missing "import sys". | Paul Sokolovsky | 2014-10-06 |
| | |||
* | tests: Force skip of LE test on non-LE arch; improve run-tests-exp.sh. | Damien George | 2014-10-06 |
| | |||
* | tests: Make run-tests-exp.sh skip tests that fail due to invalid decorator. | Damien George | 2014-10-06 |
| | | | | Should address issue #856. | ||
* | py: Extra autodetect for little endianness using __LITTLE_ENDIAN__. | Damien George | 2014-10-06 |
| | |||
* | stmhal: Remove long-obsolete pybwlan.[ch] files from old CC3k driver. | Damien George | 2014-10-06 |
| | |||
* | py: Make mp_binary_set_val work on big endian machine. | Damien George | 2014-10-06 |
| | |||
* | py: Make int.to_bytes work on big endian machine. | Damien George | 2014-10-06 |
| | | | | Partly addresses issue #856. | ||
* | py: Try to autodetect machine endianness when not defined by port. | Damien George | 2014-10-06 |
| | |||
* | tests: Add check for micropython.native and then skip relevant tests. | Damien George | 2014-10-05 |
| | | | | | | | | | If micropython.native decorator doesn't compile, then we skill all native/viper tests. This patch also re-enables the ujson_loads test on NT. Addresses issue #861, and partially addresses issue #856. | ||
* | unix: Detect and print compile error. | Damien George | 2014-10-05 |
| | |||
* | stmhal: Use mp_uint_t where appropriate. | Damien George | 2014-10-05 |
| | | | | | | Found these by compiling stmhal with mp_uint_t of type uint32_t instead of unsigned int. This actually makes a difference to the code, but just a curiosity. | ||
* | py: Implement proper context save/restore for eval/exec; factor code. | Damien George | 2014-10-05 |
| | | | | | | | | | This has benefits all round: code factoring for parse/compile/execute, proper context save/restore for exec, allow to sepcify globals/locals for eval, and reduced ROM usage by >100 bytes on stmhal and unix. Also, the call to mp_parse_compile_execute is tail call optimised for the import code, so it doesn't increase stack memory usage. | ||
* | py: Make compiler return a proper exception on SyntaxError. | Damien George | 2014-10-05 |
| | |||
* | stmhal: Add config option to disable/enable CAN driver. | Damien George | 2014-10-05 |
| | |||
* | stmhal, timer: Fix timer.chanel so mode can be a keyword. | Damien George | 2014-10-05 |
| | |||
* | stmhal, timer: Improve accuracy of freq computation. | Damien George | 2014-10-05 |
| | |||
* | stmhal, timer: Set freq from float; get timer source freq. | Damien George | 2014-10-05 |
| | | | | | | | | Timers now have the following new features: - can init freq using floating point; eg tim.init(freq=0.1) - tim.source_freq() added to get freq of timer clock source - tim.freq() added to get/set freq - print(tim) now prints freq | ||
* | tests: Make printing of floats hopefully more portable. | Damien George | 2014-10-05 |
| | |||
* | Merge pull request #891 from stinos/windows-tests | Damien George | 2014-10-05 |
|\ | | | | | windows tests fixes | ||
| * | Exclude some tests which always fail on windows | stijn | 2014-10-05 |
| | | |||
| * | Enable unicode for Windows port so unicode tests give correct uPy output | stijn | 2014-10-04 |
|/ | |||
* | stmhal: Allow pyb.freq() function to change SYSCLK frequency. | Damien George | 2014-10-04 |
| | | | | | | | | | | | | | Eg pyb.freq(120000000) sets the CPU to 120MHz. The frequency can be set at any point in the code, and can be changed as many times as you like. Note that any active timers will need to be reconfigured after a freq change. Valid range is 24MHz to 168MHz (but not all freqs are supported). The code maintains a 48MHz clock for the USB at all times and it's possible to change the frequency at a USB REPL and keep the REPL alive (well, most of the time it stays, sometimes it resets the USB for some reason). Note that USB does not work with pyb.freq of 24MHz. | ||
* | stmhal: Adjust computation of SYSCLK to retain precision. | Damien George | 2014-10-04 |
| | |||
* | Merge pull request #889 from Vogtinator/master | Damien George | 2014-10-04 |
|\ | | | | | Implement missing ARM emitter functions for viper | ||
| * | Implement missing ARM emitter functions for viper | Fabian Vogt | 2014-10-04 |
|/ | |||
* | py: Fix unix-cpy to compile with uint->mp_uint_t changes. | Damien George | 2014-10-03 |
| | |||
* | py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. | Damien George | 2014-10-03 |
| | | | | This should pretty much resolve issue #50. | ||
* | py: Use UINT_FMT instead of %d. | Damien George | 2014-10-03 |
| | |||
* | py: Convert [u]int to mp_[u]int_t where appropriate. | Damien George | 2014-10-03 |
| | | | | Addressing issue #50. | ||
* | drivers: Add NRF24L01 driver (written in pure Python). | Damien George | 2014-10-02 |
| | | | | | Comes with test script. Copy both files to pyboard and run "import nrf24l01test". | ||
* | tests: Add simple CAN test. | Damien George | 2014-10-02 |
| | |||
* | stmhal: Add basic CAN bus support. | Damien George | 2014-10-02 |
| | |||
* | stmhal: Set is_enabled=false when creating UART object; fix doc typo. | Damien George | 2014-10-02 |
| | |||
* | stmhal: Update help text.v1.3.3 | Damien George | 2014-10-02 |
| | | | | | | | | | Remove reference to pyb.gc; add reference to pyb.millis. There are lots of functions not listed when you run help(), but it would be too much to list them all, so we list only some basic, useful ones. Addresses issue #846. | ||
* | Enable device keyword option when running pyboard.py --tests and run-tests ↵ | blmorris | 2014-10-01 |
| | | | | --pyboard | ||
* | unix: Do a proper clean-up on sys.exit/SystemExit. | Damien George | 2014-10-01 |
| | | | | Addresses issue #859. |