Daniel Tralamazza
bbd778c690
Merge pull request #63 from glennrub/dfu_serial_flag
...
nrf5/boards/feather52: Add SERIAL makeflag if dfu-flash target is used.
2017-06-03 22:56:05 +02:00
Daniel Tralamazza
e619b837c0
Merge pull request #62 from glennrub/raw_repl_support
...
nrf5: Updating main.c to support RAW REPL.
2017-06-03 22:53:16 +02:00
Daniel Tralamazza
baedc380bf
Merge pull request #55 from glennrub/align_rtc_and_timer
...
nrf5/hal/rtc: Aligning RTC (real-time counter) HAL driver with Timer …
2017-06-03 22:52:35 +02:00
Daniel Tralamazza
f22639d9b0
Merge pull request #59 from tralamazza/readme_updates
...
Update README.md.
We can open an issue, maybe an ongoing one for our documentation
2017-06-03 22:52:14 +02:00
Paul Sokolovsky
a0dbbbebb8
extmod/modlwip: connect: For non-blocking mode, return EINPROGRESS.
...
Instead of ETIMEDOUT. This is consistent with POSIX:
http://pubs.opengroup.org/onlinepubs/7908799/xns/connect.html
2017-06-03 22:48:31 +03:00
Glenn Ruben Bakke
235e848ea7
nrf5/boards/feather52: Add SERIAL makeflag if dfu-flash target is used.
2017-06-03 21:42:42 +02:00
Glenn Ruben Bakke
dbf33fdc46
nrf5: Updating readme.md file based on review comments.
2017-06-03 20:20:38 +02:00
Glenn Ruben Bakke
a2a8115ed4
nrf5: Update help.c with documentation of CTRL-A and CTRL-B to enter and exit raw REPL mode.
2017-06-03 19:56:30 +02:00
Glenn Ruben Bakke
a37416dc2d
nrf5: Updating main.c to support RAW REPL.
2017-06-03 19:34:05 +02:00
Paul Sokolovsky
43f58386e0
zephyr/modusocket: getaddrinfo: Fix mp_obj_len() usage.
...
Return value is mp_obj_t, so needs to be accessed using
MP_OBJ_SMALL_INT_VALUE().
2017-06-03 16:11:53 +03:00
Paul Sokolovsky
f245f5d7cc
docs/machine: Sort machine classes in logical order, not alphabetically.
...
The list starts with the simplest functionality - GPIO, proceeds to
communication interfaces (UART, SPI, I2C), the to time(r) related
things, then everything else.
2017-06-03 14:50:54 +03:00
Paul Sokolovsky
e91b1cdae3
docs/uos: Move cc3200 port legacy VFS mounting functions to its ref doc.
...
This patch also unconditionalizes uos.dupterm(), though exact interface
and semantics is yet to be defined.
2017-06-03 14:19:53 +03:00
Paul Sokolovsky
1ce44f3046
docs/uos: Deconditionalize, remove minor port-specific details.
...
For a couple of ports, there was information which directory is set
as current after boot. This information doesn't belong to "uos" module,
and is moved to boards' references (which actually already contained
information on which directory is chosen for boot, even if without
explicit mentioning that it becomes current directory, which is now
done).
2017-06-03 13:51:13 +03:00
Paul Sokolovsky
92206a78ae
docs/network: Move confusingly-named cc3200 Server class to its reference.
...
cc3200 port has network.Server class to control behavior of builtin
Telnet/FTP server of that port.
2017-06-03 13:34:28 +03:00
glennrub
65b3e9875d
Update README.md
2017-06-03 00:16:31 +02:00
Glenn Ruben Bakke
db0fa6aafb
nrf5/modules/music: Updating pitch method to also use configured pin from mpconfigboard.h if set, in the case of lacking kwarg for pin. Also removing some commented out arguments to remove some confusion in the argument list. Done for both play() and pitch().
2017-06-02 21:18:28 +02:00
Glenn Ruben Bakke
d5acc13d5e
nrf5/modules/music: Correct parameter checking of pin argument to deside whether to use MUSIC_PIN define or throw an error. If MUSIC_PIN define is configured the pin argument to music module play() can be elided.
2017-06-02 21:06:36 +02:00
Paul Sokolovsky
22ca5390f7
docs/esp8266/quickref: Polish Pin.on()/off() examples.
2017-06-02 21:08:23 +03:00
Glenn Ruben Bakke
db0f4963b7
nrf5/modules/machine: Update timer init to set default IRQ priority before initializing Timer instance.
2017-06-02 19:21:51 +02:00
Glenn Ruben Bakke
ea95dcba4d
nrf5/hal/timer: Update timer hal to use value provided in init to configure the irq_priority.
2017-06-02 19:21:51 +02:00
Glenn Ruben Bakke
c28e94b534
nrf5/modules/machine: Reserving timer0 instance for bluetooth if compiled in. Leaving timer1 and timer2 for application. Note that music module soft-pwm will also occupy timer1 if enabled.
2017-06-02 19:21:51 +02:00
Glenn Ruben Bakke
6ddaba532a
nrf5/modules/machine: Updating timer module to use new hal. Adding new parameters to the init to set period, mode and callback.
2017-06-02 19:21:51 +02:00
Glenn Ruben Bakke
f49f20a24e
nrf5/hal/timer: Implementing hal_timer to 1us prescaler. Multiplier inside to get to millisecond resolution. Callback must be registered before starting a timer.
2017-06-02 19:21:51 +02:00
Glenn Ruben Bakke
ac7fae2e0a
nrf5: Makefile cleanup. Removing duplicate include and unused netutils.c used by BLE 6lowpan network which has been removed for now.
2017-06-02 19:19:55 +02:00
Glenn Ruben Bakke
daf3474247
nrf5/modules/machine: Indention fix in uart module.
2017-06-02 19:18:21 +02:00
Glenn Ruben Bakke
ad1076b206
nrf5/modules/machine: Removing unused code from uart module.
2017-06-02 19:18:21 +02:00
Glenn Ruben Bakke
45303796d7
nrf5/hal/rtc: Updating hal driver to calculate prescaler a bit more verbose. Using 1 second interval ticks.
2017-06-02 19:04:19 +02:00
Glenn Ruben Bakke
b785e145d2
nrf5/modules/machine: Fixing type in RTC.
2017-06-02 18:41:13 +02:00
Glenn Ruben Bakke
5cfd6d166c
nrf5/modules/machine: Update rtc init to set default IRQ priority before initializing RTC instance.
2017-06-02 18:35:04 +02:00
Damien George
7400d88762
tests/basics/string_rsplit: Add tests for negative "maxsplit" argument.
2017-06-02 13:08:18 +10:00
Damien George
9f85c4fe48
py/objstr: Catch case of negative "maxsplit" arg to str.rsplit().
...
Negative values mean no limit on the number of splits so should delegate to
the .split() method.
2017-06-02 13:07:22 +10:00
Damien George
ab954ed513
lib/utils/interrupt_char: Remove support for KBD_EXCEPTION disabled.
...
If a port is using interrupt_char.c then it must enable
MICROPY_KBD_EXCEPTION. This is the case for all official ports.
2017-06-02 12:03:57 +10:00
Glenn Ruben Bakke
147e579e28
nrf5/hal/rtc: Aligning RTC (real-time counter) HAL driver with Timer HAL driver. To make api's symetric. Also updating modules/rtc to get aligned with new HAL api.
2017-06-01 23:05:42 +02:00
Damien George
00e4f05907
windows: Convert to use core-provided version of built-in import().
2017-06-01 16:29:02 +10:00
Damien George
d92898a35a
unix: Convert to use core-provided version of built-in import().
2017-06-01 16:02:49 +10:00
Damien George
6ff0ecfffc
ports: Convert from using stmhal's input() to core provided version.
2017-06-01 16:02:49 +10:00
Damien George
bc76302eab
py/modbuiltins: Add core-provided version of input() function.
...
The implementation is taken from stmhal/input.c, with code added to handle
ctrl-C. This built-in is controlled by MICROPY_PY_BUILTINS_INPUT and is
disabled by default. It uses readline() to capture input but this can be
overridden by defining the mp_hal_readline macro.
2017-06-01 16:02:49 +10:00
Damien George
b53a63517a
lib/libm: Use isfinite instead of finitef, for C99 compatibility.
2017-05-31 11:34:29 +10:00
Glenn Ruben Bakke
a81de242c5
nrf5/drivers/bluetooth: Moving stop condition initialization before call to bluetooth stack write function is done, to make sure that its not overwritten after reception of the write event in case of with_response writes.
2017-05-30 23:23:31 +02:00
Glenn Ruben Bakke
b17665b8ad
nrf5/drivers/bluetooth: Removing duplicate static variable declaration.
2017-05-30 23:19:34 +02:00
Glenn Ruben Bakke
1eb8792fa5
nrf5/modules/ubluepy: Updating characteristic write method to take in an additional keyword, 'with_response'. Default value is False. Only activated in central role.
2017-05-30 19:32:26 +02:00
Glenn Ruben Bakke
66db079192
nrf5/drivers/bluetooth: Updating ble_drv_attr_c_write with possibility to do client write with response. Blocking call.
2017-05-30 19:29:46 +02:00
Damien George
821dc27eec
stmhal/boards: Enable DAC for NUCLEO_F767ZI board.
2017-05-30 18:31:55 +10:00
Paul Sokolovsky
272a5d95e0
docs/esp8266: Consistently replace Pin.high/low methods with .on/off.
2017-05-30 07:36:25 +03:00
Glenn Ruben Bakke
e07088ce23
nrf5/examples: Adding some notes on which pin layout that has been used in the seeed_tft.py ILI9341 driver for driving the display.
2017-05-29 23:09:53 +02:00
Glenn Ruben Bakke
94b94d7ff4
nrf5/examples: Shorten name on seeedstudio_tft_shield_v2.py to seeed_tft.py.
2017-05-29 23:09:53 +02:00
Glenn Ruben Bakke
0bce2ea74a
nrf5/examples: Updating ili9341 example to use new Frambuffer object instead of legacy Framebuffer1.
2017-05-29 23:09:53 +02:00
Glenn Ruben Bakke
8b9f14244d
nrf5/examples: Removing seeed.py which used a lcd mono framebuffer has been removed.
2017-05-29 22:03:18 +02:00
Matt Trentini
7dac28575d
Adding a README for the nRF5 port
2017-05-29 21:37:39 +02:00
Paul Sokolovsky
d5b8825d5f
docs/machine.Pin: Add on() and off() methods.
2017-05-29 20:56:13 +03:00