- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 29 Dec, 2014 1 commit
-
-
Damien George authored
-
- 27 Dec, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
- 24 Dec, 2014 1 commit
-
-
Damien George authored
-
- 20 Dec, 2014 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Helps other ports.
-
- 19 Dec, 2014 1 commit
-
-
Damien George authored
Adds just 60 bytes to stmhal binary. Addresses issue #362.
-
- 18 Dec, 2014 1 commit
-
-
Damien George authored
acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!).
-
- 09 Dec, 2014 1 commit
-
-
Damien George authored
This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS) which, when enabled, allows to override all names within the builtins module. A builtins override dict is created the first time the user assigns to a name in the builtins model, and then that dict is searched first on subsequent lookups. Note that this implementation doesn't allow deleting of names. This patch also does some refactoring of builtins code, creating the modbuiltins.c file. Addresses issue #959.
-
- 08 Dec, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
This is useful if you need precise control over the speed of peripherals (eg SPI clock).
-
Paul Sokolovsky authored
The function is modeled after traceback.print_exception(), but unbloated, and put into existing module to save overhead on adding another module. Compliant traceback.print_exception() is intended to be implemented in micropython-lib in terms of sys.print_exception(). This change required refactoring mp_obj_print_exception() to take pfenv_t interface arguments. Addresses #751.
-
- 07 Dec, 2014 1 commit
-
-
Damien George authored
Remove include of stm32f4xx_hal.h, replace by include of MICROPY_HAL_H where needed, and make it compile without float support. This makes these 3 modules much more generic and usable by other ports.
-
- 06 Dec, 2014 1 commit
-
-
Damien George authored
Uses DMA if interrupts are enabled, polling if they are disabled.
-
- 05 Dec, 2014 2 commits
-
-
Damien George authored
mp_obj_int_get_truncated is used as a "fast path" int accessor that doesn't check for overflow and returns the int truncated to the machine word size, ie mp_int_t. Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word sized values. Addresses issues #779 and #998.
-
Damien George authored
mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer functions (like checking current token kind) are now inlined. This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460 bytes on bare-arm. It also saves a tiny bit of RAM since mp_lexer_t is a bit smaller. Also will run a bit more efficiently.
-
- 04 Dec, 2014 1 commit
-
-
Damien George authored
This patch overhauls the network driver interface. A generic NIC must provide a set of C-level functions to implement low-level socket control (eg socket, bind, connect, send, recv). Doing this, the network and usocket modules can then use such a NIC to implement proper socket control at the Python level. This patch also updates the CC3K and WIZNET5K drivers to conform to the new interface, and fixes some bugs in the drivers. They now work reasonably well.
-
- 02 Dec, 2014 1 commit
-
-
Damien George authored
So can remove unnecessary stm32f4xx_hal_msp.c file.
-
- 30 Nov, 2014 1 commit
-
-
Damien George authored
pyb.delay and pyb.udelay now use systick if IRQs are enabled, otherwise they use a busy loop. Thus they work correctly when IRQs are disabled. The busy loop is computed from the current CPU frequency, so works no matter the CPU frequency.
-
- 29 Nov, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
This is just a clean-up of the code. Generated code is exactly the same.
-
- 27 Nov, 2014 3 commits
-
-
Damien George authored
hashlib test passes on pyboard.
-
Damien George authored
The reason for having this delay is to reduce power consumption at the REPL (HAL_Delay calls __WFI to idle the CPU). But stdin_rx_chr has a __WFI in it anyway, so this delay call is not needed. By removing this call, the readline input can consume characters much more quickly (before was limited to 1000 chrs/s), and has much reduced dependency on the specific port.
-
Damien George authored
This makes it easier to re-use readline.c and pyexec.c from stmhal in other ports.
-
- 26 Nov, 2014 1 commit
-
-
Henrik Sölver authored
-
- 25 Nov, 2014 1 commit
-
-
Damien George authored
Addresses issue #987.
-
- 16 Nov, 2014 3 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This is more efficient, as allows to use register calling convention. If needed, a structure pointer can be passed as argument to pass more data.
-
- 15 Nov, 2014 2 commits
-
-
Damien George authored
Also update docs to explain how CAN baudrate is determined.
-
Damien George authored
Addresses issue #968.
-
- 05 Nov, 2014 2 commits
-
-
Sven Wegener authored
Else we end up with several instances of the variable. Signed-off-by:
Sven Wegener <sven.wegener@stealer.net>
-
Damien George authored
-
- 02 Nov, 2014 1 commit
-
-
Damien George authored
Also restrict higher frequencies to have a VCO_OUT frequency below 432MHz, as specified in the datasheet. Docs improved to list allowed frequencies, and explain about USB stability.
-
- 31 Oct, 2014 3 commits
-
-
Damien George authored
Addresses issue #950.
-
Damien George authored
Addresses issue #934.
-
Damien George authored
-