- 21 Sep, 2016 1 commit
-
-
Stefan Agner authored
Use MP_NOINLINE macro to avoid inlining of init_flash_fs. This helps to keep stack usage of main() low.
-
- 06 Sep, 2016 1 commit
-
-
Damien George authored
-
- 29 Aug, 2016 1 commit
-
-
Philip Potter authored
-
- 05 May, 2016 1 commit
-
-
Tobias Badertscher authored
-
- 15 Feb, 2016 1 commit
-
-
Dave Hylands authored
- Put the I2C bus on the corect pins - Add the appropriate board_init to power the shield
-
- 10 Feb, 2016 1 commit
-
-
Damien George authored
This patch adds support to fsusermount for multiple block devices (instead of just one). The maximum allowed is fixed at compile time by the size of the fs_user_mount array accessed via MP_STATE_PORT, which in turn is set by MICROPY_FATFS_VOLUMES. With this patch, stmhal (which is still tightly coupled to fsusermount) is also modified to support mounting multiple devices And the flash and SD card are now just two block devices that are mounted at start up if they exist (and they have special native code to make them more efficient).
-
- 29 Jan, 2016 2 commits
-
-
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.
-
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)).
-
- 07 Dec, 2015 2 commits
-
-
Dave Hylands authored
Currently nlr_jump_fail prints that there was an uncaught exception but nothing about the exception. This patch causes nlr_jump_failed to try to print the exception. Given that printf was called on the line above, I think that the call to mp_obj_print_exception has about as much likelyhood of succeeding as the printf does.
-
Dave Hylands authored
When you use the USER button to perform a filesystem reset at boot time then it wipes out the filesystem and creates a new boot.py and main.py. With this patch these files are executed after formatting, ensuring that pyb and machine modules get imported.
-
- 04 Dec, 2015 2 commits
-
-
Damien George authored
This is a hack to free up TIM3 so that it can be used by the user. Instead we use the PVD irq to call the USB VCP polling function, and trigger it from SysTick (so SysTick itself does not do any processing). The feature is enabled for pyboard lite only, since it lacks timers.
-
Damien George authored
-
- 23 Nov, 2015 1 commit
-
-
T S authored
If RTC is already running at boot then it's left alone. Otherwise, RTC is started at boot but startup function returns straight away. RTC startup is then finished the first time it is used. Fallback to LSI if LSE fails to start in a certain time. Also included: MICROPY_HW_CLK_LAST_FREQ hold pyb.freq() parameters in RTC backup reg MICROPY_HW_RTC_USE_US option to present datetime sub-seconds in microseconds MICROPY_HW_RTC_USE_CALOUT option to enable RTC calibration output CLK_LAST_FREQ and RTC_USE_CALOUT are enabled for PYBv1.0.
-
- 09 Nov, 2015 1 commit
-
-
Damien George authored
-
- 31 Oct, 2015 1 commit
-
-
Damien George authored
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
-
- 19 Oct, 2015 1 commit
-
-
Dave Hylands authored
-
- 11 Oct, 2015 1 commit
-
-
Damien George authored
-
- 12 Sep, 2015 1 commit
-
-
Tom Soulanille authored
Use this to set the global optimisation value when executing the main script (and all scripts it imports).
-
- 05 Aug, 2015 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 02 Aug, 2015 1 commit
-
-
Damien George authored
Thanks to Dave Hylands for the patch.
-
- 29 Jul, 2015 1 commit
-
-
Dave Hylands authored
-
- 06 May, 2015 1 commit
-
-
Dave Hylands authored
-
- 04 Mar, 2015 1 commit
-
-
Damien George authored
This helps make files reusable across other ports.
-
- 15 Feb, 2015 1 commit
-
-
Henrik Sölver authored
-
- 13 Feb, 2015 4 commits
-
-
Damien George authored
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Different HID modes can be configured in Python. You can either use predefined mouse or keyboard, or write your own report descriptor.
-
- 09 Jan, 2015 1 commit
-
-
Damien George authored
-
- 07 Jan, 2015 1 commit
-
-
Damien George authored
A GC in stmhal port now only scans true root pointers, not entire BSS. This reduces base GC time from 1700ms to 900ms.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 25 Oct, 2014 1 commit
-
-
Damien George authored
This is so it's compatible with Windows.
-
- 22 Oct, 2014 1 commit
-
-
Dave Hylands authored
-
- 21 Oct, 2014 1 commit
-
-
Damien George authored
UART object now uses a stream-like interface: read, readall, readline, readinto, readchar, write, writechar. Timeouts are configured when the UART object is initialised, using timeout and timeout_char keyword args. The object includes optional read buffering, using interrupts. You can set the buffer size dynamically using read_buf_len keyword arg. A size of 0 disables buffering.
-
- 06 Oct, 2014 1 commit
-
-
Damien George authored
-
- 30 Sep, 2014 1 commit
-
-
Damien George authored
As per issue #876, the network module is used to configure NICs (hardware modules) and configure routing. The usocket module is supposed to implement the normal Python socket module and selects the underlying NIC using routing logic. Right now the routing logic is brain dead: first-initialised, first-used. And the routing table is just a list of registered NICs. cc3k and wiznet5k work, but not at the same time due to C name clashes (to be fixed). Note that the usocket module has alias socket, so that one can import socket and it works as normal. But you can also override socket with your own module, using usocket at the backend.
-
- 29 Sep, 2014 1 commit
-
-
Damien George authored
-
- 23 Sep, 2014 1 commit
-
-
Damien George authored
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).
-
- 15 Sep, 2014 1 commit
-
-
Damien George authored
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.
-