Commit Graph

8744 Commits

Author SHA1 Message Date
Daniel Tralamazza 5552864196 Merge pull request #66 from glennrub/ble_support_for_feather52
nrf5/boards/feather52: Update s132 target makefile with dfu-gen and d…
2017-06-07 18:24:57 +02:00
Daniel Tralamazza 0dbb06f9a5 Merge pull request #67 from glennrub/leds_update
Leds update
2017-06-07 18:24:06 +02:00
Daniel Tralamazza 277905534b Merge pull request #68 from glennrub/generic_frozen_module
Generic frozen module
2017-06-07 18:23:03 +02:00
Daniel Tralamazza 9de43eb545 Merge pull request #70 from glennrub/rename_examples
nrf5/examples: Renaming servo.py to nrf52_servo.py as it is only impl…
2017-06-07 18:19:47 +02:00
Daniel Tralamazza bc1aec8a0d Merge pull request #71 from glennrub/update_ssd1306_examples
nrf5/examples: Removing copy of ssd1306 driver, creating a new class …
2017-06-07 18:19:29 +02:00
Daniel Tralamazza 50a12a40a3 Merge pull request #72 from glennrub/sdcard_example
Sdcard example
2017-06-07 18:19:08 +02:00
Glenn Ruben Bakke 391cb3ebe8 nrf5/examples: Updating mountsd example with comment from deleted sdcard.py on how to wire SD directly to SPI. 2017-06-06 22:17:35 +02:00
Glenn Ruben Bakke d21b11fe0e nrf5/examples: Removing copy of sdcard.py also found in drivers/sdcard. 2017-06-06 22:16:49 +02:00
Glenn Ruben Bakke dbc184816a nrf5/examples: Removing copy of ssd1306 driver, creating a new class that overrides the needed function for i2c. Also adding some example usage in the comment in top of the file for both SPI and I2C variant. 2017-06-06 21:43:51 +02:00
Glenn Ruben Bakke de3a78a097 nrf5/hal/gpio: Updating toggle inline function to work correctly, currently only used by LED module. 2017-06-05 21:59:37 +02:00
Glenn Ruben Bakke e35a552f1f nrf5/examples: Renaming servo.py to nrf52_servo.py as it is only implemented machine.PWM for nrf52. 2017-06-05 21:38:41 +02:00
Glenn Ruben Bakke 56c28d2ba6 nrf5/freeze: Adding generic example to freeze. Hello world with board name as parameter. 2017-06-05 17:54:39 +02:00
Glenn Ruben Bakke 35a3abb998 nrf5/examples: Moving nrf52 specific HW example from freeze to examples to replace test.py with a more generic example. 2017-06-05 17:46:56 +02:00
Glenn Ruben Bakke 2f983d3ef9 nrf5: Update pyb module, and led module to only be compiled in if MICROPY_HW_HAS_LED is set to 1. 2017-06-05 17:39:47 +02:00
Glenn Ruben Bakke 9779910e3e nrf5/boards: Updating boards with correct LED count. Also adding new flag, MICROPY_HW_HAS_LED, to select whether the board has LED's at all. If not, this will unselect LED module from being compiled in. 2017-06-05 17:36:56 +02:00
Glenn Ruben Bakke 044e36f26f nrf5/boards: Updating pca10040 board header to set the LED count. 2017-06-05 15:30:45 +02:00
Glenn Ruben Bakke c4304d69e0 nrf5: Generalize script setting LED(1) on to be applied only when there are leds present on the board. 2017-06-05 15:29:55 +02:00
Glenn Ruben Bakke e645b0b425 nrf5: Updating mpconfigport.h to set default values for MICROPY_HW_LED_COUNT (0) and MICROPY_HW_LED_PULLUP (0). 2017-06-05 15:28:54 +02:00
Glenn Ruben Bakke 3996ed7183 nrf5/boards/feather52: Update s132 target makefile with dfu-gen and dfu-flash. This enables feather52 with Bluetooth LE. Features to be configured in bluetooth_conf.h. 2017-06-04 12:50:14 +02:00
Glenn Ruben Bakke 227eeb1408 Merge remote-tracking branch 'upstream/master' into nrf5_no_sdk 2017-06-03 23:23:08 +02:00
Daniel Tralamazza d83c4fa130 Merge pull request #51 from glennrub/ubluepy_char_write_with_response
Ubluepy char write with response
2017-06-03 22:58:40 +02:00
Daniel Tralamazza 5be53808c9 Merge pull request #57 from glennrub/make_use_of_music_pin_define
Make use of music pin define
2017-06-03 22:56:31 +02:00
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