aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2014-04-20nlrx86.S: Another ifdef for win32 symbol underscoring issues.Paul Sokolovsky
2014-04-20unix mem_info(): Dump GC info only if it's enabled.Paul Sokolovsky
2014-04-20Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-20stmhal: Improved configurability for I2C and SPI busses.Damien George
The HAL handles for the I2C/SPI objects are rather large, so we don't want to unnecessarily include them.
2014-04-20objarray: Slice subscription operation: properly test for op subtype.Paul Sokolovsky
Also, checked that both bytearray and array.array actually support generic (a-la list) slice assignment and deletion. Added TODOs.
2014-04-20gc: gc_realloc(): Fix byte-to-block calculation.Paul Sokolovsky
2014-04-20Merge branch 'fix-netduino-i2c-spi' of github.com:dhylands/micropython into ↵Damien George
dhylands-fix-netduino-i2c-spi
2014-04-20py, gc: Further simplify coding-style of gc_realloc.Damien George
No logic changes, just coding style to make it easy to read.
2014-04-20py: Wrap #if's around emitter functions that are used only by emitcpy.Damien George
3 emitter functions are needed only for emitcpy, and so we can #if them out when compiling with emitcpy support. Also remove unused SETUP_LOOP bytecode.
2014-04-20py: Making closures now passes pointer to stack, not a tuple for vars.Damien George
Closed over variables are now passed on the stack, instead of creating a tuple and passing that. This way memory for the closed over variables can be allocated within the closure object itself. See issue #510 for background.
2014-04-20objclosure: Store reference to entire closed variables tuple.Paul Sokolovsky
Avoids pointer-to-field garbage collection issue. Fixes #510.
2014-04-20objcell: Add disabled by default print method for debugging.Paul Sokolovsky
2014-04-20gc: "new" gc_realloc: Rewrite in plain C, fixing bunch of bugs.Paul Sokolovsky
There were typos, various rounding errors trying to do concurrent counting in bytes vs blocks, complex conditional paths, superfluous variables, etc., etc., all leading to obscure segfaults.
2014-04-20gc: Recover simple gc_realloc implementation, make easier to switch between.Paul Sokolovsky
2014-04-20modsocket: Add setblocking() method.Paul Sokolovsky
2014-04-20modstruct: Add 'O' typecode for passing mp_obj_t.Paul Sokolovsky
Useful as callback data, etc.
2014-04-20modstruct: Use proper int accessor which checks input value type.Paul Sokolovsky
2014-04-20modffi: Fix how we call `pkg-config`Ilya Dmitrichenko
2014-04-20Fix i2c and spi to compile for Netduino Plus 2Dave Hylands
2014-04-20Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-04-20stmhal: Small bug fixes and simplifications.Damien George
2014-04-20py: Fix mp_arg_parse_all.Damien George
2014-04-20stmhal: Only init RNG if it's used.Damien George