Jeff Epler
231cb1ffd9
mimxrt10xx: Use the proper "betweenTransferDelay" (et al) values
...
Set the betweenTransferDelay to the SCK low-time, to avoid long pauses
between bytes (transfers) while preventing the last SCK cycle in a byte
from being a runt pulse.
Compared to an earlier revision of this change, which just set the delays
all to zero, this doesn't break using an AirLift, which was sensitive
to the runt pulses (the simple loopback-wire test didn't detect the problem)
2021-03-26 10:54:13 -05:00
Jeff Epler
1d48054aea
mimxrt10xx: Factor out "transfer_common"
...
.. and set the "MasterPcsContinuous" flag, which removes some of the
gap between bytes of a single SPI transaction
2021-03-26 10:04:35 -05:00
Jeff Epler
9e110f120a
mimxrt10xx: busio: cap SPI baudrate at 30MHz per datasheet
2021-03-26 10:01:53 -05:00
Jeff Epler
b440883fe5
mimxrt: SPI: Set the TCR value returned by MasterBaudSetRate
...
without this, the baud rate could be wrong; in my testing, it was
low by a factor of 2 when requesating baudrate=1_000_000 (1MHz).
When passing the baudrate in to LPSPI_MasterInit, the setting is made
automatically, but LPSPI_MAster_SetBaudRate just returns it via the
out-parameter tcrPrescaleValue.
2021-03-24 13:33:21 -05:00
Jeff Epler
06743d91ed
mimxrt1011: Fix reset-to-bootloader
...
The definition of DBL_TAP_REG must match tinyuf2
2021-03-19 10:11:45 -05:00
gamblor21
fb437d8280
Formatting fixes
2021-03-16 08:22:02 -05:00
Mark
e326d7ca80
Merge branch 'main' into rp_dp_parallel
2021-03-15 20:00:13 -05:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
gamblor21
56a219911f
Add frequency support to parallel bus
2021-03-11 19:32:43 -06:00
Scott Shawcroft
3f08cb47b8
Merge remote-tracking branch 'adafruit/main' into busio-uart-rp
2021-02-25 16:59:15 -08:00
microDev
5d7fdafcde
implement suggested changes
...
- add internal buffering
- rtc initialization fix
2021-02-25 00:48:36 +05:30
Dan Halbert
f0564b4986
merge from upstream; complicated webusb merge
2021-02-11 18:50:02 -05:00
Philip Jander
5bf08c503b
adds: maximum retries on SPI busy
2021-02-07 17:06:46 +01:00
Philip Jander
ae91b12aea
chore: whitespace fixed
2021-02-07 16:59:11 +01:00
Philip Jander
127cc6204a
adds: idle loop to wait for SPI not busy (mimxrt10xx)
2021-02-07 16:59:11 +01:00
BiffoBear
2656c84b01
Initial commit. Edited error messages in .c files
2021-02-03 05:49:40 +07:00
microDev
dc332baa87
update common_hal_reset_pin()
2020-12-28 20:04:00 +05:30
Dan Halbert
8b7c23c1ee
address review comments
2020-12-01 20:01:14 -05:00
Dan Halbert
104a089677
deep sleep working; deep sleep delay when connected
2020-11-26 22:06:37 -05:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
Dan Halbert
ffff02c053
Merge remote-tracking branch 'adafruit/main' into sleep
2020-11-16 12:06:11 -05:00
Scott Shawcroft
68eb809fbf
Update parallel bus signatures
2020-11-13 18:57:52 -08:00
microDev
930cf14dce
Add check for invalid io, function to disable all alarms
2020-10-27 16:17:26 -07:00
microDev
e35938971a
Add description of alarm modules
2020-10-27 16:16:55 -07:00
Scott Shawcroft
83deea0e03
Fix copy pasta and stub build
2020-08-21 11:17:42 -07:00
Scott Shawcroft
a5b01f7361
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-21 11:13:53 -07:00
Scott Shawcroft
6857f98426
Split pulseio.PWMOut into pwmio
...
This gives us better granularity when implementing new ports because
PWMOut is commonly implemented before PulseIn and PulseOut.
Fixes #3211
2020-08-18 13:08:33 -07:00
Lucian Copeland
0fc730bc5a
Expand PulseOut API, debug cleanup
2020-08-14 16:36:02 -04:00
Jeff Epler
93b373d617
"pop from empty %q"
...
Saves 12 bytes code on trinket m0
2020-08-04 18:42:09 -05:00
Jeff Epler
c849b781c0
Combine 'index out of range' messages
2020-08-04 14:45:45 -05:00
Jeff Epler
dddd25a776
Combine similar strings to reduce size of translations
...
This is a slight trade-off with code size, in places where a "_varg"
mp_raise variant is now used. The net savings on trinket_m0 is
just 32 bytes.
It also means that the translation will include the original English
text, and cannot be translated. These are usually names of Python
types such as int, set, or dict or special values such as "inf" or
"Nan".
2020-08-04 13:34:29 -05:00
Jeff Epler
1df48176ce
supervisor: factor supervisor_background_tasks from sundry ports
2020-07-15 11:49:44 -05:00
Diego Elio Pettenò
34b4993d63
Add license to some obvious files.
2020-07-06 19:16:25 +01:00
Scott Shawcroft
c5fa9730a8
Compiles!
2020-06-24 12:47:59 -07:00
Scott Shawcroft
a26102607e
Add UART support
2020-06-24 12:47:58 -07:00
Diego Elio Pettenò
dd5d7c86d2
Fix up end of file and trailing whitespace.
...
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-06-03 10:56:35 +01:00
Lucian Copeland
a59798ed49
Merge branch 'mimxrt-uart-oneway' into mimxrt-busio-cleanup
2020-05-27 12:31:16 -04:00
Lucian Copeland
9f5520135c
translations
2020-05-27 11:54:52 -04:00
Lucian Copeland
a25e10ed59
Merge branch 'mimxrt-uart-oneway' of https://github.com/hierophect/circuitpython into mimxrt-uart-oneway
2020-05-27 11:49:11 -04:00
Lucian Copeland
1e914ac2b0
Change exception text and type
2020-05-27 11:48:52 -04:00
Lucian Copeland
53fb699436
Add pin resetting across boards, fix array size detection issue
2020-05-27 11:45:15 -04:00
arturo182
ad988013f0
Merge pull request #2961 from arturo182/i2c-exception
...
mimxrt10xx: Change exception type to match other ports
2020-05-27 11:24:46 +02:00
arturo182
d6c59c4de0
mimxrt10xx: Change exception type to match other ports
2020-05-26 22:36:30 +02:00
Lucian Copeland
d95022f7bb
Merge remote-tracking branch 'upstream/master' into mimxrt-busio-cleanup
2020-05-22 13:33:08 -04:00
hierophect
fe10a45533
Merge branch 'master' into mimxrt-uart-oneway
2020-05-22 11:32:41 -04:00
Lucian Copeland
75b5142954
Minor style changes and translations
2020-05-22 11:31:52 -04:00
Scott Shawcroft
3bb6a32a20
Merge branch 'master' into esp32s2_digitalio
2020-05-21 08:52:39 -07:00
Scott Shawcroft
0af5dd59f2
Merge pull request #2898 from hierophect/mimxrt-claiming
...
MIMXRT: Implement pin claiming, pin reset, and pin protections
2020-05-20 11:32:22 -07:00
Scott Shawcroft
ba724fffb4
Merge remote-tracking branch 'adafruit/master' into esp32s2_digitalio
2020-05-20 10:48:27 -07:00