summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* modffi: Describe typecodes where they differ from used by struct module.Paul Sokolovsky2014-04-22
| | | | Exact behavior of typecodes may be not yet enforced.
* tools: Update pyboard.py to work with latest changes to RTC.Damien George2014-04-21
|
* stmhal: Update help text.Damien George2014-04-21
|
* stmhal: Fix bug with pin GPIO reading.Damien George2014-04-21
|
* stmhal, usrsw: Wrap usrsw.c in #if, for when switch is not available.Damien George2014-04-21
|
* stmhal, accel: Add TODO comment.Damien George2014-04-21
|
* stmhal, usrsw: Update comments for new switch API.Damien George2014-04-21
|
* stmhal: Make switch a class, to follow suit of all other modules.Damien George2014-04-21
| | | | | | | | 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.
* stmhal, servo: Rename calibrate method to calibration.Damien George2014-04-21
| | | | | It should be a noun, since it supports getting and setting depending on the number of arguments given.
* stmhal, timer: Remove obsolete global variable.Damien George2014-04-21
|
* stmhal: Add Timer class: simple TIM control, incl callback on IRQ.Damien George2014-04-21
| | | | | | | 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.
* py: Add 'align' and 'data' meta-instructions to inline assembler.Damien George2014-04-21
|
* stmhal: Make DAC dynamically allocate instances; rename dma->write_timed.Damien George2014-04-21
|
* stmhal: Clean up rtc.c a bit.Damien George2014-04-21
|
* stmhal: Rename USART to UART.Damien George2014-04-21
| | | | | | | | 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 :)
* py: Fix super() bug, where it didn't allow instance access.Damien George2014-04-21
| | | | | This is a one-liner fix. It gets the class-super.py test passing, but is probably not a complete fix.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-21
|\
| * Merge pull request #513 from errordeveloper/misc_fix/modffi_pkg_configDamien George2014-04-21
| |\ | | | | | | modffi: Fix how we call `pkg-config`
| | * modffi: Fix how we call `pkg-config`Ilya Dmitrichenko2014-04-20
| | |
* | | stmhal: Add some documentation to I2C, SPI and USART modules.Damien George2014-04-21
|/ /
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-21
|\ \
| * | windows: Add README with basic cross-compile instructions.Paul Sokolovsky2014-04-20
| | |
| * | windows: Unbreak mingw32 build (cross-compiling under Linux).Paul Sokolovsky2014-04-20
| | |
| * | unix windows: mingw32 doesn't have realpath(), use _fullpath() instead.Paul Sokolovsky2014-04-20
| | |
| * | unix file: mingw32 has STDIN_FILENO and friends in stdio.h .Paul Sokolovsky2014-04-20
| | | | | | | | | | | | TODO: Never "optimize" includes any more!
| * | py: Add win32-specific header for alloca().Paul Sokolovsky2014-04-20
| | |
| * | nlrx86.S: Another ifdef for win32 symbol underscoring issues.Paul Sokolovsky2014-04-20
| | |
| * | unix mem_info(): Dump GC info only if it's enabled.Paul Sokolovsky2014-04-20
| | |
* | | stmhal: Improve USART class, to be more like SPI and I2C.Damien George2014-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | stmhal, SPI and I2C: Improvements to functionality and consistency.Damien George2014-04-21
| | |
* | | py: Small change to mp_arg_parse_all.Damien George2014-04-21
|/ /
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-20
|\ \
| * | objarray: Slice subscription operation: properly test for op subtype.Paul Sokolovsky2014-04-20
| | | | | | | | | | | | | | | Also, checked that both bytearray and array.array actually support generic (a-la list) slice assignment and deletion. Added TODOs.
| * | gc: gc_realloc(): Fix byte-to-block calculation.Paul Sokolovsky2014-04-20
| | |
* | | stmhal: Improved configurability for I2C and SPI busses.Damien George2014-04-20
| | | | | | | | | | | | | | | The HAL handles for the I2C/SPI objects are rather large, so we don't want to unnecessarily include them.
* | | Merge branch 'fix-netduino-i2c-spi' of github.com:dhylands/micropython into ↵Damien George2014-04-20
|\ \ \ | |/ / |/| | | | | dhylands-fix-netduino-i2c-spi
| * | Fix i2c and spi to compile for Netduino Plus 2Dave Hylands2014-04-20
| |/
* | py, gc: Further simplify coding-style of gc_realloc.Damien George2014-04-20
| | | | | | | | No logic changes, just coding style to make it easy to read.
* | py: Wrap #if's around emitter functions that are used only by emitcpy.Damien George2014-04-20
| | | | | | | | | | | | | | 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.
* | py: Making closures now passes pointer to stack, not a tuple for vars.Damien George2014-04-20
| | | | | | | | | | | | | | 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.
* | objclosure: Store reference to entire closed variables tuple.Paul Sokolovsky2014-04-20
| | | | | | | | Avoids pointer-to-field garbage collection issue. Fixes #510.
* | objcell: Add disabled by default print method for debugging.Paul Sokolovsky2014-04-20
| |
* | gc: "new" gc_realloc: Rewrite in plain C, fixing bunch of bugs.Paul Sokolovsky2014-04-20
| | | | | | | | | | | | 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.
* | gc: Recover simple gc_realloc implementation, make easier to switch between.Paul Sokolovsky2014-04-20
| |
* | modsocket: Add setblocking() method.Paul Sokolovsky2014-04-20
| |
* | modstruct: Add 'O' typecode for passing mp_obj_t.Paul Sokolovsky2014-04-20
| | | | | | | | Useful as callback data, etc.
* | modstruct: Use proper int accessor which checks input value type.Paul Sokolovsky2014-04-20
|/
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-20
|\
| * test/class-super: Expose super() breakage.Paul Sokolovsky2014-04-19
| |
| * objarray: Implement slice subscription.Paul Sokolovsky2014-04-19
| |