- 30 Jan, 2016 2 commits
-
-
Damien George authored
-
Damien George authored
Previous to this patch the DMA was setup and then the I2C address sent. If the I2C address sending failed (eg no I2C device on the bus) then the DMA was left in an inconsistent state. This patch moves the DMA setup to after a successful sending of the I2C address(es). See issue #1765.
-
- 29 Jan, 2016 7 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
USB CDC no longer needs TIM3 (which was originally used for LED(4) PWM) and so TIM3 has been freed for general purpose use by the user. Hence LED(4) lost its PWM capabilities. This patch reinstates the PWM capabilities using a semi-generic piece of code which allows to configure a timer and PWM channel to use for any LED. But the PWM capability is only configured if the LED is set to an intensity between 1 and 254 (ie only when needed). In that case the relevant timer is configured for PWM. It's up to the user to make sure the timers are not used if PWM is active. This patch also makes sure that PWM LEDs are turned off using standard GPIO when calling led.off() or led.intensity(0), instead of just setting the PWM counter to zero.
-
Damien George authored
TIM3 is no longer used by USB CDC for triggering outgoing data, so we can now make it available to the user. PWM fading on LED(4) is now gone, but will be reinstated in a new way.
-
Damien George authored
Previous to this patch the USB CDC driver used TIM3 to trigger the sending of outgoing data over USB serial. This patch changes the behaviour so that the USB SOF interrupt is used to trigger the processing of the sending. This reduces latency and increases bandwidth of outgoing data. Thanks to Martin Fischer, aka @hoihu, for the idea and initial prototype. See PR #1713.
-
Damien George authored
For single prec, exponents never get larger than about 37. For double prec, exponents can be larger than 99 and need 3 bytes to format. This patch makes the number of bytes needed configurable. Addresses issue #1772.
-
Paul Sokolovsky authored
Calling it from mp_init() is too late for some ports (like Unix), and leads to incomplete stack frame being captured, with following GC issues. So, now each port should call mp_stack_ctrl_init() on its own, ASAP after startup, and taking special precautions so it really was called before stack variables get allocated (because if such variable with a pointer is missed, it may lead to over-collecting (typical symptom is segfaulting)).
-
- 28 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Dave Hylands authored
When using newer glibc's the compiler automatically sets _FORTIFY_SOURCE when building with -O1 and this causes a special inlined version of printf to be declared which then bypasses our version of printf.
-
Damien George authored
MP_BC_NOT was removed and the "not" operation made a proper unary operator, and the opcode format table needs to be updated to reflect this change (but actually the change is only cosmetic).
-
- 27 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Supported return types are: object, bool, int, uint. For example: @micropython.asm_thumb def foo(r0, r1) -> uint: add(r0, r0, r1)
-
Carmine Noviello authored
Includes full version of pins.csv file with correct mapping of the Nucleo STM32F401RE chip (LQFP64 package).
-
- 26 Jan, 2016 5 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Functions added are: - randint - randrange - choice - random - uniform They are enabled with configuration variable MICROPY_PY_URANDOM_EXTRA_FUNCS, which is disabled by default. It is enabled for unix coverage build and stmhal.
-
- 24 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
SHA1 is used in a number of protocols and algorithm originated 5 years ago or so, in other words, it's in "wide use", and only newer protocols use SHA2. The implementation depends on axTLS enabled. TODO: Make separate config option specifically for sha1().
-
Damien George authored
micropython.stack_use() returns an integer being the number of bytes used on the stack. micropython.heap_lock() and heap_unlock() can be used to prevent the memory manager from allocating anything on the heap. Calls to these are allowed to be nested.
-
- 23 Jan, 2016 2 commits
-
-
Dave Hylands authored
This allows FROZEN_DIR=some-directory to be specified on the make command line, which will then add all of the files contained within the indicated frozen directory as frozen files in the image. There is no change in flash/ram usage if not using the feature. This is especially useful on smaller MCUs (like the 401) which only has 64K flash file system.
-
Paul Sokolovsky authored
-
- 21 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
By reserving enough space for peer address.
-
- 19 Jan, 2016 2 commits
-
-
Dave Hylands authored
Implement enough of statvfs to determine the amount of free space on a volume.
-
Dave Hylands authored
-
- 17 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
This allows to cut number of packages installed from 3rd-party package repos, and otherwise cut number of overrides and hacks.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Seedable and reproducible pseudo-random number generator. Implemented functions are getrandbits(n) (n <= 32) and seed(). The algorithm used is Yasmarang by Ilya Levin: http://www.literatecode.com/yasmarang
-
- 16 Jan, 2016 1 commit
-
-
Damien George authored
-
- 15 Jan, 2016 5 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
This will help make sure new commits work with OBJ_REPR_D.
-
Damien George authored
Build using: make nanbox
-
Damien George authored
-
- 14 Jan, 2016 2 commits
-
-
chrysn authored
this allows python code to use property(lambda:..., doc=...) idiom. named versions for the fget, fset and fdel arguments are left out in the interest of saving space; they are rarely used and easy to enable when actually needed. a test case is included.
-
stijn authored
This is essentially a duplicate of obj_dict.py
-
- 13 Jan, 2016 1 commit
-
-
Peter Hinch authored
-