Commit Graph

9947 Commits

Author SHA1 Message Date
Sylvain Pelissier
3bb69f645a stmhal/usb: Use local USB handler variable in Start-of-Frame handler. 2017-06-07 16:03:19 +10:00
Sylvain Pelissier
6adcf7bb82 stmhal: Pass USB handler as parameter to allow more than one USB handler 2017-06-07 15:50:26 +10:00
Damien George
7ecfbb8267 extmod/vfs: Allow "buffering" and "encoding" args to VFS's open().
These args are currently ignored but are parsed to make it easier to
write portable scripts between CPython and MicroPython.
2017-06-07 15:29:53 +10:00
Damien George
f6ef8e3f17 extmod/vfs: Allow to statvfs the root directory. 2017-06-07 15:17:45 +10:00
Dave Hylands
551a731755 stmhal: Add support for NUCLEO_F446RE board. 2017-06-07 13:14:40 +10:00
Scott Shawcroft
c0e1f58b67 shared-bindings: Allow for switching direction with the attribute. 2017-06-06 17:45:39 -07:00
Scott Shawcroft
c8dc091288 shared-bindings: Fix duty_cycle parameter description and error message. 2017-06-06 16:23:06 -07:00
Scott Shawcroft
b5f50fadf9 atmel-samd: Change Metro PID to 0x8014 so it doesn't conflict with Arduino's PID. 2017-06-06 16:18:34 -07: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
Paul Sokolovsky
9db1c50f18 qemu-arm: Enable micropython.mem_*() functions to allow more tests. 2017-06-06 00:23:48 +03: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
Scott Shawcroft
9805abd858 Merge pull request #146 from dhalbert/stack_check-fix
Fix broken mp_stack_check() when using -flto
2017-06-05 11:51:27 -07: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
Dan Halbert
88b449a8cd Fix broken mp_stack_check: force mp_stack_ctrl_init() and mp_stack_usage() not to be inlined even with -flto 2017-06-04 22:05:55 -04:00
Paul Sokolovsky
cd64b3082e docs/network: First step to describe standard network class interface.
This adds description of implied AbstractNIC base class, which should be
"subclasses" and implemented by a particular network device class.

This is just an initial step in that direction, the API and description
will be elabotated further.
2017-06-04 21:25:23 +03: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
Paul Sokolovsky
50de6d2fab extmod/modlwip: accept: Fix error code for non-blocking mode.
In non-blocking mode, if no pending connection available, should return
EAGAIN, not ETIMEDOUT.
2017-06-04 13:45:37 +03:00
Paul Sokolovsky
5da8de2b66 extmod/modlwip: Fix error codes for duplicate calls to connect().
If socket is already connected, POSIX requires returning EISCONN. If
connection was requested, but not yet complete (for non-blocking
socket), error code is EALREADY.

http://pubs.opengroup.org/onlinepubs/7908799/xns/connect.html
2017-06-04 12:30:41 +03: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