aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-24Merge pull request #515 from errordeveloper/qemuDamien George
Qemu
2014-04-24py, vm: Fix recent bug where state is freed too early.Damien George
2014-04-24py, vm: Free heap-allocated state if it was allocated on the heap.Damien George
2014-04-24Merge pull request #519 from pfalcon/exc-no-ptr-to-fieldDamien George
objexcept: Don't store args tuple within exception object.
2014-04-24Merge pull request #518 from pfalcon/vm-traceDamien George
vm: Add rudimentary bytecode execution tracing capability.
2014-04-24Makefile: Allow to override "super optimization" options used for some files.Paul Sokolovsky
To help with debugging issue like #510 for example.
2014-04-23windows/README: Use CROSS_COMPILE instead of CC to cover other tools too.Paul Sokolovsky
Suggested by @lurch.
2014-04-23objexcept: Don't store args tuple within exception object.Paul Sokolovsky
To avoid pointer-to-field GC problem.
2014-04-23vm: Add rudimentary bytecode execution tracing capability.Paul Sokolovsky
2014-04-23showbc: MAKE_CLOSURE*: Update for new closed-over encoding.Paul Sokolovsky
2014-04-23emitglue: Typo fix in var name.Paul Sokolovsky
2014-04-22builtinimport: If there was error compiling imported module, raise exception.Paul Sokolovsky
2014-04-22unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues.Paul Sokolovsky
2014-04-22modsocket: Clean up OSError-like exception a bit.Paul Sokolovsky
Some BSD socket functions don't return error numbers in errno namespace, but rather in other error namespaces. CPython resolves this by using OSError subclasses for them. We don't do that so far, so there's ambiguity here.
2014-04-22unix: OSError's args[0] should be errno numeric value.Paul Sokolovsky
Well, Python3 also defines an attribute for that, but that's bloat.
2014-04-22objexcept: Add mp_obj_new_exception_arg1() convenience function.Paul Sokolovsky
2014-04-22modffi: Don't use OSError for clearly unrelated errors.Paul Sokolovsky
2014-04-22modffi: Describe typecodes where they differ from used by struct module.Paul Sokolovsky
Exact behavior of typecodes may be not yet enforced.
2014-04-21travis: should test building qemu-arm as well.Ilya Dmitrichenko
2014-04-21qemu-arm: update makefile (d553be5).Ilya Dmitrichenko
2014-04-21qemu-arm: more generic port name.Ilya Dmitrichenko
2014-04-21cortex-m3-qemu: refactor the port.Ilya Dmitrichenko
Switch from CodeSourcery to ARM GCC and clean-up some stale files, also copy `main.c` and `mpconfigport.h` from bare-arm.
2014-04-21cortex-m3-qemu: a working portIlya Dmitrichenko
2014-04-21tools: Update pyboard.py to work with latest changes to RTC.Damien George
2014-04-21stmhal: Update help text.Damien George
2014-04-21stmhal: Fix bug with pin GPIO reading.Damien George
2014-04-21stmhal, usrsw: Wrap usrsw.c in #if, for when switch is not available.Damien George
2014-04-21stmhal, accel: Add TODO comment.Damien George
2014-04-21stmhal, usrsw: Update comments for new switch API.Damien George
2014-04-21stmhal: Make switch a class, to follow suit of all other modules.Damien George
Instead of pyb.switch() as a function, it's more consistent (with respect to all the other modules and peripherals) to have pyb.Switch() create a switch object. This then generalises to having multiple switches. Call the object to get its state. Use sw.callback to set the callback function for when the switch is pressed.
2014-04-21stmhal, servo: Rename calibrate method to calibration.Damien George
It should be a noun, since it supports getting and setting depending on the number of arguments given.
2014-04-21stmhal, timer: Remove obsolete global variable.Damien George
2014-04-21stmhal: Add Timer class: simple TIM control, incl callback on IRQ.Damien George
Simple but functional timer control. More sophistication will eventually be added, or for now just use direct register access :) Also added pyb.freq() function to get MCU clock frequencies.
2014-04-21py: Add 'align' and 'data' meta-instructions to inline assembler.Damien George
2014-04-21stmhal: Make DAC dynamically allocate instances; rename dma->write_timed.Damien George
2014-04-21stmhal: Clean up rtc.c a bit.Damien George
2014-04-21stmhal: Rename USART to UART.Damien George
It's really a UART because there is no external clock line (and hence no synchronous ability, at least in the implementation of this module). USART should be reserved for a module that has "S"ynchronous capabilities. Also, UART is shorter and easier to type :)
2014-04-21py: Fix super() bug, where it didn't allow instance access.Damien George
This is a one-liner fix. It gets the class-super.py test passing, but is probably not a complete fix.
2014-04-21Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-21stmhal: Add some documentation to I2C, SPI and USART modules.Damien George
2014-04-21Merge pull request #513 from errordeveloper/misc_fix/modffi_pkg_configDamien George
modffi: Fix how we call `pkg-config`
2014-04-21Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-21stmhal: Improve USART class, to be more like SPI and I2C.Damien George
The three classes I2C, SPI and USART now have a fairly uniform (Python) API. All are constructed, initialised and deinitialised in the same way. They can have most of their parameters set, using keyword arguments. All have send and recv (although slightly different with I2C requiring an address in master mode). recv can do inplace receiving (ie store the data in a previously-created bytearray). It's just polling mode at the moment, but interrupt and DMA would be nice to add.
2014-04-21stmhal, SPI and I2C: Improvements to functionality and consistency.Damien George
2014-04-21py: Small change to mp_arg_parse_all.Damien George
2014-04-20windows: Add README with basic cross-compile instructions.Paul Sokolovsky
2014-04-20windows: Unbreak mingw32 build (cross-compiling under Linux).Paul Sokolovsky
2014-04-20unix windows: mingw32 doesn't have realpath(), use _fullpath() instead.Paul Sokolovsky
2014-04-20unix file: mingw32 has STDIN_FILENO and friends in stdio.h .Paul Sokolovsky
TODO: Never "optimize" includes any more!
2014-04-20py: Add win32-specific header for alloca().Paul Sokolovsky