Glenn Ruben Bakke
147d03feff
nrf5/boards/microbit: Enable music module by default. However, timer and rtc module has to be disabled. Bluetooth support broken. Optimization needed.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
952c14c4bf
nrf5/modules/machine: Quickfix. Update timer object to not allow instanciation of Timer(0) if SOFT_PWM is enabled by board.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
6f72e73137
nrf5/hal/timer: Quickfix. Disable IRQ handler if SOFT_PWM is configured to be enabled. Ticker driver has in current driver a seperate IRQ handler for this timer instance.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
086d79fbad
nrf5/drivers/ticker: Add compile config guard in ticker.c to only include the driver if SOFT_PWM is configured in by board.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
234c9f3688
nrf5/drivers/softpwm: Renaming pwm_init to softpwm_init to not collide on symbol name with pwm_init in nrf52 machine PWM object.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
2584684e06
nrf5: Add modmusic QSTR definition of notes to qstrdefsport.h.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
c6b36ad4ca
nrf5: Update Makefile to include ticker.c and renamed softpwm. Updating also include paths to include modules/music and drivers/.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
52be9eec9d
nrf5: Adding include of modmusic.h in main.c.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
4c5c83567e
nrf5: Call microbit_music_init0() if enabled in main.c.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
6330fd4f31
nrf5/modules/music: Expose public init function for music module.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
d412241143
nrf5/modules/music: Update modmusic to use updated includes. Add extern ticks. Add function which implements initialization of pwm and ticker, register ticker callback, and start the pwm and ticker. This corresponds to microbit port main.cpp init.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
a0ad7ce0b4
nrf5/drivers/softpwm: Enable use of ticker in softpwm driver.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
cab515a022
nrf5/drivers/ticker: Adding ticker.c/.h from microbit port.
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
3bc8309dab
nrf5/drivers/pwm: Renaming pwm.c/.h to softpwm.c/.h
2017-05-18 23:11:41 +02:00
Glenn Ruben Bakke
226d872d11
nrf5/drivers/pwm: Expose pwm_init() as public function.
2017-05-18 23:11:41 +02:00
Damien George
218a876f97
tests/basics/builtin_range: Add tests for negative slicing of range.
2017-05-18 17:32:42 +10:00
Damien George
03659c51ca
py/objrange: Fix slicing of range when step of slice is negative.
2017-05-18 17:32:42 +10:00
Damien George
e1b0f2a16f
tests/basics/list_slice_3arg: Add more tests for negative slicing.
2017-05-18 17:32:42 +10:00
Damien George
eb4c37f7a4
py/sequence: Fix boundary errors when slicing with a negative step.
2017-05-18 17:32:42 +10:00
Damien George
d007351b33
docs/library/micropython: Document the newer micropython functions.
2017-05-18 00:25:09 +10:00
Damien George
55dd83a7ba
drivers/display/lcd160cr_test: Allow test to take orientation parameter.
2017-05-17 19:54:38 +10:00
Damien George
f351c6db5e
drivers/display/lcd160cr: Fix get_line method and enhance screen_dump.
...
The docs are updated and describe the new behaviour of these methods.
2017-05-17 19:53:13 +10:00
Damien George
e4a53570d0
docs: Change single occurrence of "Micropython" to "MicroPython".
2017-05-17 12:38:33 +10:00
Paul Sokolovsky
0af974b777
examples/hwapi/soft_pwm2_uasyncio: Update for call_later_ms().
...
Following finalized naming in uasyncio.
2017-05-17 00:44:00 +03:00
Paul Sokolovsky
0912334f54
zephyr/modusocket: getaddrinfo: Use RAISE_ERRNO for proper error decoding.
2017-05-17 00:21:22 +03:00
Paul Sokolovsky
5f648ff60e
zephyr/main: Check default netif before applying operations to it.
...
If no network driver is enabled (e.g., it doesn't exist for a particular
board), it will be NULL.
2017-05-17 00:17:53 +03:00
Paul Sokolovsky
aa9ce283c2
zephyr/modusocket: Get rid of cur_pkt object member.
...
Instead, just peek a packet at the head of the queue and work with it.
2017-05-16 13:46:54 +03:00
Paul Sokolovsky
a3008e447c
zephyr/modusocket: First step to switch to alternative FIFO processing.
...
Here we wait for non-empty FIFO, and then directly access/drop its head
element.
2017-05-16 13:43:06 +03:00
Damien George
88c51c3592
tools/mpy-tool.py: Fix regression with freezing floats in obj repr C.
...
Regression was introduced by ec534609f6
2017-05-16 18:53:02 +10:00
Damien George
a004554dc1
stmhal/modmachine: Remove TODO comment that is now implemented.
2017-05-16 17:44:14 +10:00
Damien George
37bd3b4f4c
stmhal/modmachine: Add machine.UART class, linking to pyb.UART.
...
pyb.UART has a superset of machine.UART functionality so can be used to
provide compatibility with other ports that also implement machine.UART.
2017-05-16 17:40:22 +10:00
puuu
4b235800a4
esp8266/modnetwork: In connect, fix potential buffer overflows.
2017-05-16 17:30:45 +10:00
Glenn Ruben Bakke
02e215dc59
nrf5/modules/ubluepy: Making peripheral conn_handle volatile. Upon connection event, the variable is accessed in thread mode. However, the main-loop is blocking on conn_handle != 0xFFFF. If this is not volatile, optimized code will not exit the loop.
2017-05-15 23:01:29 +02:00
Glenn Ruben Bakke
36d9c0cb83
nrf5/drivers/bluetooth: As callback functions are in most usecases are set to NULL upon last event to get public API function out of blocking mode, these function pointers has to be set as volatile, as they are updated to NULL in interrupt context, but read in blocking main-thread.
2017-05-15 23:01:10 +02:00
Tom Collins
162a0f942b
tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.
2017-05-15 23:58:06 +03:00
Tom Collins
53461deb04
py/objstringio: Fix StringIO reads at or beyond EOF.
...
Existing code failed if seek() went past EOF (which is acceptable when writing).
2017-05-15 23:58:04 +03:00
Glenn Ruben Bakke
e6b49af27e
nrf5/examples: Fixing overlapping function names and variable names inside the object. Also removing some print statements. Tuning max angle from -7/7 to -25/25.
2017-05-15 21:59:00 +02:00
Glenn Ruben Bakke
acce3a59d5
Merge remote-tracking branch 'upstream/master' into nrf5_no_sdk
2017-05-15 20:15:32 +02:00
Paul Sokolovsky
d5713c8618
docs/library/index: Add important summary of the intro section as warning.
...
To make them harder to miss.
2017-05-15 00:26:44 +03:00
glennrub
9b76983af9
Powerup ( #26 )
...
* nrf5/examples: Adding python example template for PowerUp 3.0 Bluetooth LE controlled Paper Airplane.
* nrf5: Enable bluetooth le central while developing powerup 3.0 example.
* nrf5/examples: Backing up powerup 3.0 progress.
* nrf5/examples: Adding working example on how to control PowerUp 3.0 paper airplane using bluetooth le.
* nrf5/bluetooth: Disable central role.
2017-05-14 23:02:10 +02:00
Paul Sokolovsky
0ba136fbe9
docs/machine.Signal: Add initial draft description of Signal class.
2017-05-14 23:12:06 +03:00
Paul Sokolovsky
c19f07bd52
docs/machine.Pin: There's no toggle() method in MicroPython hardware API.
...
May be a port-specific method, not portable, not part of the official
specification.
2017-05-14 22:52:16 +03:00
Glenn Ruben Bakke
63805bac9c
nrf5/modules/ubluepy: Correcting alignment of enum values in modubluepy.h.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
d96e2a3e08
nrf5/drivers/bluetooth: Add implementation of client attribute write without response.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
8f423c26d0
nrf5/modules/ubluepy: Pass on buffer to write in characteristic write central mode.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
ceb2602005
nrf5/modules/ubluepy: Updating characteristic object write function to be role aware. Either peripheral or central (gatts or gattc). Adding dummy call to attr_c_write if central is compiled in. Still in progress to be implemented.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
1f8ceaa6fb
nrf5/drivers/bluetooth: Adding template function for attr_c_write.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
fd52691f02
nrf5/drivers/bluetooth: Renaming attr_write and attr_notify to attr_s_write and attr_s_notify to prepare for introduction of attribute write for gatt client.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
5d9c191a19
nrf5/modules/ubluepy: Fixing type in ubluepy_peripheral.c.
2017-05-14 19:58:10 +02:00
Glenn Ruben Bakke
cf0d2bb457
nrf5/modules/ubluepy: Setting peripheral role upon advertise() or connect().
2017-05-14 19:58:10 +02:00