Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: For malloc and vstr functions, use size_t exclusively for int type. | Damien George | 2014-09-25 |
| | | | | | | It seems most sensible to use size_t for measuring "number of bytes" in malloc and vstr functions (since that's what size_t is for). We don't use mp_uint_t because malloc and vstr are not Micro Python specific. | ||
* | stmhal: Enable 8-byte stack alignment for IRQ handlers. | Damien George | 2014-09-25 |
| | |||
* | stmhal, timer: Factor code to compute PWM percent; improve 32bit case. | Damien George | 2014-09-25 |
| | | | | Also do the same for teensy timer code. | ||
* | Merge pull request #868 from dhylands/fix-teensy-float | Damien George | 2014-09-25 |
|\ | | | | | Add pulse_width_percent to teensy. | ||
| * | Add pulse_width_percent to teensy. | Dave Hylands | 2014-09-23 |
| | | | | | | | | | | | | Fix stmhal and teensy print routines to report actual prescaler an period. Fix teensy build to use soft-float Add USE_ARDUINO_TOOLCHAIN option to teensy build | ||
* | | py: Free non-interned strings in the parser when not needed. | Damien George | 2014-09-23 |
| | | | | | | | | | | | | | | | | | | | | | | mp_parse_node_free now frees the memory associated with non-interned strings. And the parser calls mp_parse_node_free when discarding a non-used node (such as a doc string). Also, the compiler now frees the parse tree explicitly just before it exits (as opposed to relying on the caller to do this). Addresses issue #708 as best we can. | ||
* | | py: Make native emitter handle multi-compare and not/is not/not in ops. | Damien George | 2014-09-23 |
| | | |||
* | | tests: Fix uctypes tests to run on 64bit arch; enable more native tests. | Damien George | 2014-09-23 |
| | | |||
* | | Merge pull request #869 from stinos/windows-up | Damien George | 2014-09-23 |
|\ \ | | | | | | | windows: Enable input(), sys.maxsize(), ujson module, emergency exceptio... | ||
| * | | windows: Enable input(), sys.maxsize(), ujson module, emergency exception ↵ | stijn | 2014-09-22 |
| | | | | | | | | | | | | buf, os module | ||
* | | | Merge pull request #871 from blmorris/osx_build_fix | Damien George | 2014-09-23 |
|\ \ \ | | | | | | | | | Fix unix/Makefile to build on OSX | ||
| * | | | Clean up logical flow for setting LDFLAGS to build for Linux and OSX | blmorris | 2014-09-23 |
| | | | | | | | | | | | | | | | | Add more specific comments describing what is going on. | ||
| * | | | Incorporate change in assignment logic suggested by dhylands | blmorris | 2014-09-22 |
| | | | | |||
| * | | | Fix unix/Makefile to build on OSX | blmorris | 2014-09-22 |
| | |/ | |/| | | | | | | | | | | | | | | | | Force OSX to compile with clang even if gcc is available Change LDFLAGS syntax to be compatible with clang Fix questionable syntax on line 90 Remove extraneous tab character | ||
* / | | stmhal: Initialise stack pointer correctly. | Damien George | 2014-09-23 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | Stack is full descending and must be 8-byte aligned. It must start off pointing to just above the last byte of RAM. Previously, stack started pointed to last byte of RAM (eg 0x2001ffff) and so was not 8-byte aligned. This caused a bug in combination with alloca. This patch also updates some debug printing code. Addresses issue #872 (among many other undiscovered issues). | ||
* | | extmod, ujson: Add test and comment for loads. | Damien George | 2014-09-21 |
| | | |||
* | | extmod, ujson: Add \uxxxx parsing in json strings. | Damien George | 2014-09-21 |
| | | |||
* | | extmod, ujson: Slight reduction in code size. | Damien George | 2014-09-21 |
| | | |||
* | | extmod: Add loads to ujson module. | Damien George | 2014-09-21 |
| | | |||
* | | Merge branch 'dhylands-timer-pwm2' | Damien George | 2014-09-21 |
|\ \ | |/ |/| | |||
| * | stmhal: Add pulse_width_ratio to timer channel object. | Damien George | 2014-09-21 |
| | | | | | | | | | | | | | | This allows to set the pulse width (for PWM mode) as a ratio relative to the period of the timer. Eg, 0.5 is a 50% duty cycle. You can set the ratio in the channel init, or using channel.pulse_width_ratio; the latter can also read the pulse width as a ratio. | ||
| * | Add Timer support (PWM, OC, IC) for stmhal and teensy | Dave Hylands | 2014-09-19 |
|/ | |||
* | stmhal: Fix bugs in documentation so it compiles. | Damien George | 2014-09-17 |
| | |||
* | lib: Add basic README. | Damien George | 2014-09-18 |
| | |||
* | py: Add 'builtins' module. | Damien George | 2014-09-17 |
| | |||
* | py: Add native json printing using existing print framework. | Damien George | 2014-09-17 |
| | | | | | Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both. | ||
* | py: Make dict use a bit less RAM when iterating; properly del values. | Damien George | 2014-09-17 |
| | | | | | | | | Heap RAM was being allocated to print dicts and do some other types of iterating. Now these iterations use 1 word of state on the stack. Deleting elements from a dict was not allowing the value to be reclaimed by the GC. This is now fixed. | ||
* | stmhal: Change 64-bit arithmetic to 32-bit for SD card block addressing. | Damien George | 2014-09-15 |
| | | | | | | | | | By measuring SD card addresses in blocks and not bytes, one can get away with using 32-bit numbers. This patch also uses proper atomic lock/unlock around SD card read/write, adds SD.info() function, and gives error code for failed read/writes. | ||
* | stmhal/sdcard.c: add pyb.SD.write | Felix Domke | 2014-09-15 |
| | |||
* | stmhal/hal/src/stm32f4xx_hal_sd.c: fix SDHC card capacity | Felix Domke | 2014-09-15 |
| | |||
* | py: Make asm_arm_less_op take destination register as first arg. | Damien George | 2014-09-15 |
| | | | | This gets ARM native emitter working againg and addresses issue #858. | ||
* | py: Move definition of mp_sys_exit to core. | Damien George | 2014-09-15 |
| | | | | | | | | sys.exit always raises SystemExit so doesn't need a special implementation for each port. If C exit() is really needed, use the standard os._exit function. Also initialise mp_sys_path and mp_sys_argv in teensy port. | ||
* | py: Fix build error when float disabled; add test for divmod. | Damien George | 2014-09-13 |
| | |||
* | py: Implement divmod, % and proper // for floating point. | Damien George | 2014-09-13 |
| | | | | Tested and working on unix and pyboard. | ||
* | Merge branch 'iabdalkader-memcpy' | Damien George | 2014-09-13 |
|\ | |||
| * | stmhal: Slightly improved memcpy; memset uses word store when aligned. | Damien George | 2014-09-13 |
| | | |||
| * | Merge branch 'memcpy' of github.com:iabdalkader/micropython into ↵ | Damien George | 2014-09-12 |
|/| | | | | | | | iabdalkader-memcpy | ||
| * | Optimize memcpy more | iabdalkader | 2014-09-11 |
| | | |||
| * | Memcpy: copy words | iabdalkader | 2014-09-11 |
| | | |||
* | | py: Load strings as objects when compiling viper. | Damien George | 2014-09-12 |
| | | | | | | | | | | | | | | | | | | Eventually, viper wants to be able to use raw pointers to strings and arrays for efficient access. But for now, let's just load strings as a Python object so they can be used as normal. This will anyway be compatible with eventual intended viper behaviour. Addresses issue #857. | ||
* | | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-09-11 |
|\ \ | |||
| * \ | Merge pull request #852 from techno/staccel_LIS3DSH | Damien George | 2014-09-11 |
| |\ \ | | |/ | |/| | Add LIS3DSH accelometer support to staccel.py | ||
| | * | Add LIS3DSH accelometer support to staccel.py | Hirotaka Kawata | 2014-09-11 |
| |/ | |||
* / | py and libm: Add asinf,acosf; print higher precision for float. | Damien George | 2014-09-11 |
|/ | | | | | | Also use less stack space when printing single precision float. Addition of asinf and acosf addresses issue #851. | ||
* | py: Enable struct/binary-helper to parse q and Q sized ints. | Damien George | 2014-09-10 |
| | | | | Addresses issue #848. | ||
* | py: Put define of x86 argument registers in asmx86.h. | Damien George | 2014-09-08 |
| | |||
* | py: Convert [u]int to mp_[u]int_t in emit.h and associated .c files. | Damien George | 2014-09-08 |
| | | | | Towards resolving issue #50. | ||
* | py: Print imported module's location (__file__) if available. | Damien George | 2014-09-08 |
| | |||
* | stmhal: uart ioctl uses EINVAL, and checks TXE bit for write-ability. | Damien George | 2014-09-07 |
| | |||
* | Remove skeletal modselect from extmod and just put it in stmhal. | Damien George | 2014-09-07 |
| |