Jim Mussared
7ed99544e4
extmod/uasyncio: Add asyncio.current_task().
...
Matches CPython behavior.
Fixes #6686
2021-02-13 15:11:17 +11:00
Damien George
0e44587076
docs/library/machine.Pin.rst: Make it clear which methods are not core.
...
Signed-off-by: Damien George <damien@micropython.org >
2021-02-03 00:54:18 +11:00
Andrew Scheller
499e199add
docs,stm32: Fix minor typos in RTC docs, and->an.
2021-01-30 14:13:30 +11:00
iabdalkader
20f8ce1982
stm32/pyb_can: Add ability to calculate CAN bit timing from baudrate.
...
Calculate the bit timing from baudrate if provided, allowing sample point
override. This makes it a lot easier to make CAN work between different
MCUs with different clocks, prescalers etc.
Tested on F4, F7 and H7 Y/V variants.
2020-12-17 23:01:15 +11:00
Damien George
1719459c28
extmod/modubinascii: Update code, docs for hexlify now CPython has sep.
...
Since CPython 3.8 the optional "sep" argument to hexlify is officially
supported, so update comments in the code and the docs to reflect this.
Signed-off-by: Damien George <damien@micropython.org >
2020-12-14 14:35:29 +11:00
Jim Mussared
68136eb4ba
docs/library/ubluetooth.rst: Add passkey docs.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:44:36 +11:00
Jim Mussared
b799fe1421
docs/library/ubluetooth.rst: Add bonding docs.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:42:46 +11:00
Jim Mussared
fff634e031
docs/library/ubluetooth.rst: Add gap_pair() docs.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:41:36 +11:00
Jim Mussared
f822557cbb
docs/library/ubluetooth.rst: Add pairing/bonding config docs.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:41:21 +11:00
Andrew Leech
05fef8c6a4
extmod/modbluetooth: Add _IRQ_ENCRYPTION_UPDATE event.
...
This allows the application to be notified if any of encrypted,
authenticated and bonded state change, as well as the encryption key size.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:40:15 +11:00
Jim Mussared
5e20f689ad
docs/library/ubluetooth.rst: Update read request IRQ docs.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:39:17 +11:00
Jim Mussared
89553997b8
docs/library/ubluetooth.rst: Update char/desc flags.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:37:45 +11:00
Jim Mussared
7a9aa49595
docs/library/ubluetooth.rst: Add _IRQ_CONNECTION_UDPATE docs.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-12-02 14:36:41 +11:00
Jim Mussared
3795c71271
docs/library/ubluetooth.rst: Add docs for L2CAP channels.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com >
2020-11-24 01:07:17 +11:00
Howard Lovatt
4842060366
docs/library/machine.Timer.rst: Add mention of constructor arguments.
2020-10-20 17:23:54 +11:00
Howard Lovatt
cf6845b1cf
docs/library/machine.Signal.rst: Correct typo: usecases to use cases.
2020-10-20 17:21:30 +11:00
Howard Lovatt
23f9439f44
docs/library/machine.rst: Correct minor typo: timout to timeout.
2020-10-20 17:19:47 +11:00
Howard Lovatt
3bc0ecbcd9
docs/library/btree.rst: Correct method typo: __detitem__ to __delitem__.
2020-10-20 17:13:02 +11:00
Damien George
d4b61b0017
extmod/utime_mphal: Add generic utime.time_ns() function.
...
It requires mp_hal_time_ns() to be provided by a port. This function
allows very accurate absolute timestamps.
Enabled on unix, windows, stm32, esp8266 and esp32.
Signed-off-by: Damien George <damien@micropython.org >
2020-10-01 14:20:42 +10:00
Damien George
98182a97c5
docs: Update I2C and SPI docs to add reference to SoftI2C and SoftSPI.
...
Signed-off-by: Damien George <damien@micropython.org >
2020-10-01 12:57:10 +10:00
Damien George
81f2162ca0
extmod/modbluetooth: Change module-owned bytes objects to memoryview.
...
A read-only memoryview object is a better representation of the data, which
is owned by the ubluetooth module and may change between calls to the
user's irq callback function.
Signed-off-by: Damien George <damien@micropython.org >
2020-09-25 12:23:11 +10:00
Damien George
bd7af6151d
ports: Add utime.gmtime() function.
...
To portably get the Epoch. This is simply aliased to localtime() on ports
that are not timezone aware.
Signed-off-by: Damien George <damien@micropython.org >
2020-09-18 16:25:36 +10:00
Jim Mussared
f271b96b5c
docs/library/ubluetooth.rst: Add docs for MTU API.
2020-09-18 12:51:21 +10:00
Jim Mussared
c200759290
docs/library/ubluetooth.rst: Clarify peripheral/central vs server/client
...
Previously this documentation assumed peripheral=server and central=client,
but this is not accurate or true to the implementation.
2020-09-15 15:42:59 +10:00
Jim Mussared
19faf55090
docs/library/ubluetooth.rst: Clarify position/kw arguments.
...
Almost all ubluetooth functions are positional-only, but some have optional
args. Make this clearer and show what the defaults are.
2020-09-15 15:28:59 +10:00