Glenn Ruben Bakke
611b829138
nrf5/uart: Refactoring UART module and HAL driver
...
Facilitating for adding second HW uart. Moving pyb_uart into
machine_uart. Adding return error codes from hal_uart functions,
if the hardware detects an error.
2017-03-10 22:21:19 +01:00
Damien George
12d0731b91
extmod/vfs_fat: Remove obsolete and unused str/len members.
2017-03-10 19:09:42 +11:00
Damien George
70201f4038
cc3200/mptask: Allocate flash VFS struct on the heap to trace root ptrs.
2017-03-10 19:09:19 +11:00
Damien George
8236d18338
stmhal/main: Allocate flash's VFS struct on the heap to trace root ptrs.
2017-03-10 19:02:20 +11:00
Damien George
f07a56fa3b
tests/extmod: Rename websocket test to websocket_basic.
...
This is so that the filename of the test doesn't clash with the module name
itself (being "websocket"), and lead to potential problems executing the
test.
2017-03-10 15:05:08 +11:00
Damien George
4351d16e62
stmhal/mphalport: Get ticks_cpu() working on F7 MCUs.
2017-03-10 14:58:26 +11:00
Paul Sokolovsky
c9705cff68
tests/basics/fun_error: Split out skippable test.
2017-03-10 02:22:56 +01:00
Paul Sokolovsky
854bb322bf
tests/feature_check/int_big: Rework "big int" detection.
...
MICROPY_LONGINT_IMPL_LONGLONG doesn't have overflow detection, so just
parsing a large number won't give an error, we need to print it out
to check that the whole number was parsed.
2017-03-10 02:11:43 +01:00
Paul Sokolovsky
776883cb80
py/objint_longlong: Implement mp_obj_int_from_bytes_impl().
...
This makes int.from_bytes() work for MICROPY_LONGINT_IMPL_LONGLONG.
2017-03-10 00:22:53 +01:00
Paul Sokolovsky
bc5bffbf65
tests/micropython/opt_level: Clarify the expected output for opt_level == 3.
2017-03-09 23:22:31 +01:00
Paul Sokolovsky
53018d5ad2
tests/micropython/heapalloc_traceback: Fix backtrace line # after refactor.
2017-03-09 12:51:45 +01:00
Paul Sokolovsky
1a71d30fb8
tests/micropython: Make uio-using tests skippable.
2017-03-09 10:26:31 +01:00
Paul Sokolovsky
e8d4527996
zephyr/modzephyr: Fix typo in identifier.
2017-03-09 10:18:21 +01:00
Paul Sokolovsky
ce63a95a85
tests/dict_fromkeys: Split out skippable part.
2017-03-09 08:31:35 +01:00
Alex March
ce0b5e078b
tests/extmod: Add websocket tests.
...
These short unit tests test the base uPy methods as well as parts of the
websocket protocol, as implemented by uPy.
@dpgeorge converted the original socket based tests by @hosaka to ones
that only require io.BytesIO.
2017-03-09 16:47:41 +11:00
Damien George
38f063ea72
tests/extmod: Add very basic feature test for ussl module.
...
This test just tests that the basic functions/methods can be called with
the appropriate arguments. There is no real test of underlying
functionality.
Thanks to @hosaka for the initial implementation of this test.
2017-03-09 13:42:34 +11:00
Paul Sokolovsky
a0cbc108ba
tests/float: Make various tests skippable.
2017-03-09 00:11:05 +01:00
Paul Sokolovsky
983144404b
tests/basic: Make various tests skippable.
2017-03-09 00:07:19 +01:00
Damien George
52b6764894
py/nlrx64: Fixes to support Mac OS.
...
Two independent fixes:
- need to prefix symbols referenced from asm with underscore;
- need to undo the C-function prelude.
2017-03-08 22:36:02 +11:00
Paul Sokolovsky
a64a0276b3
zephyr/modzephyr: Add a module for Zephyr-specific things.
...
Mostly intended to ease experimentation, no particular plans for APIs
so far (far less their stability), is_preempt_thread() provided is
mostly an example.
2017-03-08 08:55:50 +01:00
Paul Sokolovsky
ddb56a0a84
README: Explicitly mention "await" support, and formatting for keywords.
2017-03-08 00:29:08 +01:00
Glenn Ruben Bakke
f8d1ea80ae
nrf5/modules: Updating uart object to allow baudrate configuration.
2017-03-07 23:18:03 +01:00
Glenn Ruben Bakke
99f5ecdfad
nrf5/bluetooth: Moving bluetooth_conf.h to port root folder to make it more exposed.
2017-03-07 23:15:59 +01:00
Glenn Ruben Bakke
3b2ca64738
nrf5/boards: Remove define of machine PWM module configuration in nrf51 targets, as the device does not have a HW PWM peripheral.
2017-03-07 18:05:38 +01:00
Glenn Ruben Bakke
5f9b070f6d
nrf5: Disable machine PWM module by default if board does not define it.
2017-03-07 18:04:54 +01:00
Glenn Ruben Bakke
9689aae45b
nrf5/boards: Disable all display modules in pca10028 board config.
2017-03-07 18:01:13 +01:00
Glenn Ruben Bakke
9d2a2d227c
nrf5: Updated after merge with master. Updating nlr_jump_fail to call __fatal_error in order to provide a non-returning function call.
2017-03-07 17:53:10 +01:00
Glenn Ruben Bakke
fd8f2c36f5
Merge branch 'master' into nrf5_no_sdk
2017-03-07 17:46:34 +01:00
Glenn Ruben Bakke
5f705adae0
nrf5/boards: Adding more heap memory to the nrf51 256k/32k s110 linker script. Leaving 2k for stack.
2017-03-07 17:41:46 +01:00
Paul Sokolovsky
fd49ff9917
py/nlrx86: Add workaround for Zephyr.
...
Actually, this removes -fno-omit-frame-pointer workaround for Zephyr.
2017-03-07 16:48:09 +01:00
Paul Sokolovsky
830ce74f32
extmod/modutimeq: Make scheduling fair (round-robin).
...
By adding back monotonically increasing field in addition to time field.
As heapsort is not stable, without this, among entried added and readded
at the same time instant, some might be always selected, and some might
never be selected, leading to scheduling starvation.
2017-03-07 09:34:09 +01:00
Paul Sokolovsky
bdd48e67ee
tests/uctypes_array_assign_native_le: Split off intbig part.
2017-03-07 08:40:03 +01:00
James Ouyang
e73a0b944f
docs/esp8266/tutorial: Update since esptool 1.3 added Python 3 support.
...
esptool 1.3 now supports both Python 2.7 and 3.4+.
Updated github link to now-official espressif repo.
2017-03-07 18:23:24 +11:00
Rami Ali
2646b9e022
docs/library/lcd160cr: Add link to framebuf page.
2017-03-07 18:17:40 +11:00
Rami Ali
f9d18d96b7
docs/library: Add framebuf documentation.
2017-03-07 18:16:46 +11:00
Paul Sokolovsky
c98d7461a1
tests/micropython/: Split off intbig tests.
2017-03-07 07:12:58 +01:00
Krzysztof Blazewicz
1bd17de4b7
tests/basics/unpack1.py: Test if *a, = b copies b when b is a list.
2017-03-07 16:48:16 +11:00
Krzysztof Blazewicz
38c3778b27
tests/basics/string_join.py: Add test case where argument is not iterable.
2017-03-07 16:48:16 +11:00
Krzysztof Blazewicz
7e480e8a30
py: Use mp_obj_get_array where sequence may be a tuple or a list.
2017-03-07 16:48:16 +11:00
Krzysztof Blazewicz
1215dc47e2
py/runtime.c: Remove optimization of '*a,=b', it caused a bug.
...
*a, = b should always make a copy of b, instead, before this patch
if b was a list it would copy only a reference to it.
2017-03-07 16:48:16 +11:00
Paul Sokolovsky
88ffe0d5cc
tests/string_format_modulo2: Split off intbig test.
2017-03-07 00:13:36 +01:00
Glenn Ruben Bakke
2e1335b051
nrf5/modules/machine: Adding __WFI() on machine.deepsleep()
2017-03-06 23:36:36 +01:00
Glenn Ruben Bakke
4e1b9aca79
nrf5/modules/machine: Adding __WFE() on machine.sleep()
2017-03-06 23:35:32 +01:00
Glenn Ruben Bakke
4afa41ac36
nrf5/modules/machine: Adding enable_irq() and disable_irq() method to the machine module. No implementation yet for the case where bluetooth stack is used.
2017-03-06 23:30:56 +01:00
Glenn Ruben Bakke
5acba015ef
nrf5/modules/rtc: Adding support for stopping and restarting rtc (if periodic) for all the instances of RTC.
2017-03-06 23:05:03 +01:00
Glenn Ruben Bakke
7c50cd26a2
nrf5/modules: Updating RTC kwarg from type to mode to set ONESHOT or PERIODIC mode.
2017-03-06 22:59:43 +01:00
Paul Sokolovsky
320099aab9
tools/tinytest-codegen: Update for recent test renaming ("intbig" suffix).
2017-03-06 22:40:04 +01:00
Glenn Ruben Bakke
3debb43e83
nrf5/modules: Adding support for periodic RTC callback.
2017-03-06 21:33:29 +01:00
Glenn Ruben Bakke
c301cca2a4
nrf5/hal: hal_rtc update. Adding current counter value to period value before setting it in the compare register.
2017-03-06 20:52:09 +01:00
Glenn Ruben Bakke
f50a56dbb5
nrf5/modules: Updating rtc module with non-const machine object list in order to allow setting callback function in constructor.
2017-03-06 20:09:04 +01:00