Damien George
5be40afb4c
Merge pull request #515 from errordeveloper/qemu
Qemu
11 years ago
Damien George
c0dc7c3dfa
py, vm: Fix recent bug where state is freed too early.
11 years ago
Damien George
d5e8482c4a
py, vm: Free heap-allocated state if it was allocated on the heap.
11 years ago
Damien George
978939156d
Merge pull request #519 from pfalcon/exc-no-ptr-to-field
objexcept: Don't store args tuple within exception object.
11 years ago
Damien George
1cbb99d1db
Merge pull request #518 from pfalcon/vm-trace
vm: Add rudimentary bytecode execution tracing capability.
11 years ago
Paul Sokolovsky
1c1d902cd3
Makefile: Allow to override "super optimization" options used for some files.
To help with debugging issue like #510 for example.
11 years ago
Paul Sokolovsky
6c94abe347
windows/README: Use CROSS_COMPILE instead of CC to cover other tools too.
Suggested by @lurch .
11 years ago
Paul Sokolovsky
1acf22f17b
objexcept: Don't store args tuple within exception object.
To avoid pointer-to-field GC problem.
11 years ago
Paul Sokolovsky
c5e32c6995
vm: Add rudimentary bytecode execution tracing capability.
11 years ago
Paul Sokolovsky
4c6b375960
showbc: MAKE_CLOSURE*: Update for new closed-over encoding.
11 years ago
Paul Sokolovsky
5e3e2d00ea
emitglue: Typo fix in var name.
11 years ago
Paul Sokolovsky
20e9ed3916
builtinimport: If there was error compiling imported module, raise exception.
11 years ago
Paul Sokolovsky
fa6f0506c1
unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues.
11 years ago
Paul Sokolovsky
5d3a830171
modsocket: Clean up OSError-like exception a bit.
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.
11 years ago
Paul Sokolovsky
acb13886fc
unix: OSError's args[0] should be errno numeric value.
Well, Python3 also defines an attribute for that, but that's bloat.
11 years ago
Paul Sokolovsky
dec31bb872
objexcept: Add mp_obj_new_exception_arg1() convenience function.
11 years ago
Paul Sokolovsky
b418b6fb0d
modffi: Don't use OSError for clearly unrelated errors.
11 years ago
Paul Sokolovsky
88972b0d94
modffi: Describe typecodes where they differ from used by struct module.
Exact behavior of typecodes may be not yet enforced.
11 years ago
Ilya Dmitrichenko
6820937892
travis: should test building qemu-arm as well.
11 years ago
Ilya Dmitrichenko
b554bc5691
qemu-arm: update makefile ( d553be5
).
11 years ago
Ilya Dmitrichenko
2face99cfe
qemu-arm: more generic port name.
11 years ago
Ilya Dmitrichenko
ee857853d6
cortex-m3-qemu: refactor the port.
Switch from CodeSourcery to ARM GCC and clean-up some stale files,
also copy `main.c` and `mpconfigport.h` from bare-arm.
11 years ago
Ilya Dmitrichenko
5130b81eec
cortex-m3-qemu: a working port
11 years ago
Damien George
ca045d97b9
tools: Update pyboard.py to work with latest changes to RTC.
11 years ago
Damien George
5ea69859c9
stmhal: Update help text.
11 years ago
Damien George
350cb6bf20
stmhal: Fix bug with pin GPIO reading.
11 years ago
Damien George
ef255e47c1
stmhal, usrsw: Wrap usrsw.c in #if, for when switch is not available.
11 years ago
Damien George
b97c2f4c14
stmhal, accel: Add TODO comment.
11 years ago
Damien George
46e1f26615
stmhal, usrsw: Update comments for new switch API.
11 years ago
Damien George
6125ba4a7f
stmhal: Make switch a class, to follow suit of all other modules.
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.
11 years ago
Damien George
af797f476f
stmhal, servo: Rename calibrate method to calibration.
It should be a noun, since it supports getting and setting depending on
the number of arguments given.
11 years ago
Damien George
6691c9e655
stmhal, timer: Remove obsolete global variable.
11 years ago
Damien George
7fdfa93700
stmhal: Add Timer class: simple TIM control, incl callback on IRQ.
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.
11 years ago
Damien George
e5f8a77db6
py: Add 'align' and 'data' meta-instructions to inline assembler.
11 years ago
Damien George
764af4b7c5
stmhal: Make DAC dynamically allocate instances; rename dma->write_timed.
11 years ago
Damien George
83407ad082
stmhal: Clean up rtc.c a bit.
11 years ago
Damien George
7533700393
stmhal: Rename USART to UART.
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 :)
11 years ago
Damien George
806f4aef9a
py: Fix super() bug, where it didn't allow instance access.
This is a one-liner fix. It gets the class-super.py test passing, but
is probably not a complete fix.
11 years ago
Damien George
b33d72aa89
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
34f01c2ca1
stmhal: Add some documentation to I2C, SPI and USART modules.
11 years ago
Damien George
c7d2b10b85
Merge pull request #513 from errordeveloper/misc_fix/modffi_pkg_config
modffi: Fix how we call `pkg-config`
11 years ago
Damien George
0ae21a81f7
Merge branch 'master' of github.com:micropython/micropython
11 years ago
Damien George
3771a097da
stmhal: Improve USART class, to be more like SPI and I2C.
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.
11 years ago
Damien George
eb8bdf4df3
stmhal, SPI and I2C: Improvements to functionality and consistency.
11 years ago
Damien George
64ba6ca127
py: Small change to mp_arg_parse_all.
11 years ago
Paul Sokolovsky
521de04ce2
windows: Add README with basic cross-compile instructions.
11 years ago
Paul Sokolovsky
7f7c7aa76a
windows: Unbreak mingw32 build (cross-compiling under Linux).
11 years ago
Paul Sokolovsky
a196d08dfc
unix windows: mingw32 doesn't have realpath(), use _fullpath() instead.
11 years ago
Paul Sokolovsky
1f2ca1c1f9
unix file: mingw32 has STDIN_FILENO and friends in stdio.h .
TODO: Never "optimize" includes any more!
11 years ago
Paul Sokolovsky
353b0289f3
py: Add win32-specific header for alloca().
11 years ago