summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* Merge pull request #324 from dhylands/board-checkDamien George2014-02-26
|\ | | | | Print an error if an invalid BOARD is specified
| * Print an error if a non-valid BOARD is specified.Dave Hylands2014-02-26
| |
* | Merge pull request #318 from dhylands/extiDamien George2014-02-26
|\| | | | | Add EXTI support
| * Add EXTI supportDave Hylands2014-02-23
| | | | | | | | | | Revamp usrsw to use new exti code. Add user switch callback function.
* | Merge pull request #323 from dhylands/fix-float-printDamien George2014-02-26
|\ \ | | | | | | Fix floating point printing of negative numbers in the range (0, -1.0)
| * | Fix floating point printing of negative numbers in the range (0, -1.0)Dave Hylands2014-02-25
|/ /
* | py: Fix mpn_sub, was increasing wrong source pointer.Damien George2014-02-24
| | | | | | | | Also change int -> machine_int_t where appropriate.
* | stm: Add option to pyb_usb_dev_init() to use USB HID interface.Damien George2014-02-24
|/ | | | With this option selected, only HID on its own works, not VCP+HID.
* stm: Make pendsv_nlr_jump work when debugging is enabled.Damien George2014-02-23
| | | | | Stack layout is different when -g used, so need to handle the pendsv jump differently. Addresses Issue #315.
* stm: Add USART enum for pyboard skin labels.Damien George2014-02-23
|
* Merge pull request #316 from iabdalkader/fatfs_lfnDamien George2014-02-22
|\ | | | | Add Configurable LFN support to FatFS
| * Add Configurable LFN support to FatFSmux2014-02-22
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-22
|\ \
| * | Add basic super() test.Paul Sokolovsky2014-02-22
| | |
* | | Add arbitrary precision integer support.Damien George2014-02-22
|/ / | | | | | | | | Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).
* / py: Put number parsing code together in parsenum.c.Damien George2014-02-22
|/
* py: Rename strtonum to mp_strtonum.Damien George2014-02-22
| | | | | strtonum clashes with BSD function of same name, and our version is different so warrants a unique name. Addresses Issue #305.
* py: Fix casting and printing of small int.Damien George2014-02-22
|
* Merge pull request #314 from pfalcon/parse-node-refactorDamien George2014-02-22
|\ | | | | parse: Refactor parse node encoding to support full range of small ints.
| * parse: Refactor parse node encoding to support full range of small ints.Paul Sokolovsky2014-02-22
|/ | | | | Based on suggestion by @dpgeorge at https://github.com/micropython/micropython/pull/313
* parse: Note that fact that parser's small ints are different than VM small int.Paul Sokolovsky2014-02-21
| | | | | | Specifically, VM's small ints are 31 bit, while parser's only 28. There's already MP_OBJ_FITS_SMALL_INT(), so, for clarity, rename MP_FIT_SMALL_INT() to MP_PARSE_FITS_SMALL_INT().
* showbc: Update for recent int varlen storage refactor.Paul Sokolovsky2014-02-21
| | | | TODO: De-duplicate DECODE_UINT, etc. definitions.
* __import__: Catch relative import attempts and throw NotImplementedError.Paul Sokolovsky2014-02-21
|
* emitbc: Correct buffer sizes for varlen int encoding.Paul Sokolovsky2014-02-20
| | | | | | | Assuming we have truncating (floor) division, way to do ceiling division by N is to use formula (x + (N-1)) / N. Specifically, 63 bits, if stored 7 bits per byte, require exactly 9 bytes. 64 bits overflow that and require 10 bytes.
* compile: Add comments ergarding non-implemented relative imports.Paul Sokolovsky2014-02-20
|
* py: Fix type of integer in decoding int.Damien George2014-02-20
|
* Merge pull request #312 from pfalcon/int-varlenDamien George2014-02-19
|\ | | | | Support varlen encoding for arbitrary int and uint numbers
| * Bytecode int varlen encoding: support arbitrary values for signed ints too.Paul Sokolovsky2014-02-19
| |
| * Bytecode uint varlen encoding: support arbitrary values.Paul Sokolovsky2014-02-19
| |
* | stm: Update PYBOARD4 pin mapping.Damien George2014-02-19
| |
* | Merge pull request #310 from dhylands/pin_mapDamien George2014-02-19
|\ \ | | | | | | Add pin mapping code.
| * | Add pin mapping code.Dave Hylands2014-02-17
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit also introduces board directories and moves board specific config into the appropriate board directory. boards/stm32f4xx-af.csv was extracted from the STM32F4xx datasheet and hand-tweaked. make-pins.py takes boards/stm32f4xx-af.csv, boards/stm32f4xx-prefix.c, and boards/BOARD-NAME/pins.csv as input and generates the file build/pins_BOARD_NAME.c The generated pin file for PYBOARD4 looks like this: https://gist.github.com/dhylands/9063231 The generated pins file includes all of the supported alternate functions, and includes upsupported alternate functions as comments. See the commnet block at the top of stm/pin_map.c for details on how to use the pin mapper. I also went ahead and modified stm/gpio.c to use the pin mapper.
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-19
|\ \
| * | import: Implement "from pkg.mod import sym" syntax properly.Paul Sokolovsky2014-02-20
| |/ | | | | | | | | | | | | | | http://docs.python.org/3.3/library/functions.html#__import__ : "When the name variable is of the form package.module, normally, the top-level package (the name up till the first dot) is returned, not the module named by name. However, when a non-empty fromlist argument is given, the module named by name is returned."
* / stm: Add RTC start-up info, and uPy bindings.Damien George2014-02-19
|/
* stm: Implement mp_import_stat.Damien George2014-02-17
| | | | To follow up pull request #309.
* objint_longlong: Don't assert on invalid syntax, raise SyntaxError instead.Paul Sokolovsky2014-02-18
|
* Merge pull request #309 from pfalcon/stm-sys-pathDamien George2014-02-17
|\ | | | | stm: Initialize sys.path with ["0:/", "0:/src", "0:/lib"].
| * stm: Initialize sys.path with ["0:/", "0:/src", "0:/lib"].Paul Sokolovsky2014-02-18
| | | | | | | | | | This is compatible with what search path was before sys.path refactor, with addition of module library path ("0:/lib").
* | Merge pull request #307 from iabdalkader/masterDamien George2014-02-17
|\ \ | | | | | | Fix usart_obj_tx_char
| * | Fix usart_obj_tx_charmux2014-02-17
|/ /
* | Merge pull request #303 from dhylands/fix-netduino-discDamien George2014-02-17
|\ \ | | | | | | Fix build for netduino and stm32f4disc
| * | Fix build for netduino and stm32f4discDave Hylands2014-02-16
| | |
* | | Merge pull request #302 from pfalcon/readme-updateDamien George2014-02-17
|\ \ \ | |/ / |/| / | |/ Update README to current state of affairs.
| * Update README to current state of affairs.Paul Sokolovsky2014-02-17
| | | | | | | | | | | | 1. Invite x86 (32-bit) users. 2. Update interpreter name. 3. Update dependency install instructions.
* | stm: Factor out GPIO code to its own file. Add functions to set GPIO mode.Damien George2014-02-16
|/ | | | GPIO functions are crude, and need to be replaced with better ones!
* stm: Rename mma -> accel.Damien George2014-02-16
|
* stm: Put REPL functions in own file; add raw REPL mode.Damien George2014-02-16
| | | | | | Raw REPL mode is activated by CTRL-A, and allows you to more easily communicate with the pyboard over the serial channel. In particular, automated communication using, eg, pyserial on the PC side.
* Merge pull request #301 from pfalcon/full-kwargsDamien George2014-02-16
|\ | | | | Support passing positional args as keywords to bytecode functions.
| * Support passing positional args as keywords to bytecode functions.Paul Sokolovsky2014-02-16
|/ | | | | For this, record argument names along with each bytecode function. The code still includes extensive debug logging support so far.