Commit Graph

27505 Commits

Author SHA1 Message Date
KurtE 53b7caf13c
Update ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:15:01 -07:00
KurtE eab4867e61 Remove dead replaced code
As requested, I removed the dead code that was replaced
2022-04-18 15:46:36 -07:00
KurtE 02a0939d2e Fix PWM Support for the MIMXRT boards
There were two main issues with the PWM support.

The first is they would fail to work properly if the board goes
into low power mode, when you do things like:     time.sleep(0.25)
Can make partially work with this by turning on the proper flags
in each of the FlexPWMTimer Timers/sub-timers, but this did not
appear to work if for example you have both A and B channels
enabled.

Second main problem is that the code did not work with the X
channel of each timer/sub-timer.  It looks like someone had
earlier started support for this, But was not sufficient.

Needed to bypass the SDK code and get it closer to the PJRC code.

That is we set the PWM_CTRL_FULL_MASK, which then uses  base->SM[submodule].VAL1  to control
when the timer is reset, so it sets up your cycle/frequency.  But then this implies that X channel
which uses 0, 1 has to be handled specially. So for the different channels:
    A - Uses VAL2 to turn on (0) and VAL3=duty to turn off
    B - Uses VAL4 to turn on (0) and VAL5 to turn off
    X - As mentioned above VAL1 turns off, but its set to the timing for freqency. so
        VAL0 turns on, so we set it to VAL1 - duty
2022-04-16 09:00:45 -07:00
Dan Halbert 7be66a5733
Merge pull request #6265 from KurtE/teensyMM
Add Teensy MicroMod board
2022-04-11 12:31:42 -04:00
KurtE f95a68a37c Rename the board name
Renamed the board both name of directory within boards, but also the
name reported board name: board_id -- sparkfun_teensy_micromod

Adafruit CircuitPython 7.3.0-beta.0-10-g2a3eb49da-dirty on 2022-04-10; SparkFun Teensy MicroMod Processor with IMXRT1062DVL6A
2022-04-10 16:56:51 -07:00
Limor "Ladyada" Fried df74c681d2
Merge pull request #6273 from KurtE/t4x_board_dir_add_txrx_names
Add to board object other Serial and I2c pin names
2022-04-10 12:08:41 -04:00
KurtE ecf2f1c80c Add to board object other Serial and I2c pin names
While testing out this and the new MicroMod Teensy port, @mjs513
and myself found it desirable to have logical pin names for the
different Serial UART objects.  It is a lot easier and clearer
to use and maintain to do something
like: uart4 = busio.UART(board.TX4, board.RX4)
than have to go look up the pin numbers for each board.
2022-04-10 05:39:43 -07:00
Dan Halbert 4a65664c98
Merge pull request #6272 from dhalbert/feather_esp32_s2_tft-fix
Force pin 21 high; patch; need to diagnose further
2022-04-09 23:21:44 -04:00
Dan Halbert 7d4bb12f97
Merge pull request #6266 from ladyada/main
msys at least breaks elsewhere now
2022-04-09 23:21:25 -04:00
Dan Halbert c3cfbc1259 Force pin 21 high; patch; need to diagnose further 2022-04-09 22:03:16 -04:00
lady ada e5a613ba13 Revert "try reducing freq"
This reverts commit a9713b773f.
2022-04-09 11:39:09 -04:00
lady ada 3699cc7663 Merge branch 'main' of github.com:ladyada/circuitpython into main 2022-04-09 11:34:09 -04:00
lady ada a9713b773f try reducing freq 2022-04-09 11:34:04 -04:00
Jeff Epler b5ab73b111
whole conditional block no longer needed 2022-04-09 09:55:10 -05:00
Jeff Epler 3c70aa8845
Revert "fix paths with ('s or spaces"
This reverts commit f7b3247deb.
2022-04-09 08:49:26 -05:00
lady ada f7b3247deb fix paths with ('s or spaces 2022-04-08 17:44:28 -04:00
lady ada d3a989f274 not sure why this changed...but it changed in mingw64? 2022-04-08 16:55:49 -04:00
lady ada 1f3dadcbb9 ok other waythen 2022-04-08 16:43:15 -04:00
lady ada ea3dfa444a msys at least breaks elsewhere now 2022-04-08 16:39:47 -04:00
KurtE 2a3eb49da7 Update the pins.c
I fixed a couple issues in the pin name definitions.

The pin names are sort of Teensy centric in that the priority is given
to the pin names you would use in Arduino like D0, D1, ...

But also added names for the MicroMod names in particular the names
on the front of the ATP carrier board

Also updated manufacturer to be both PJRC and Sparkfun
2022-04-08 07:41:51 -07:00
KurtE 93e9e3ad90 Fix end of line 2022-04-07 15:52:01 -07:00
KurtE 03e0acde94 Trying to cleanup the pre build messages 2022-04-07 14:11:22 -07:00
KurtE 83ffc617ba Merge branch 'teensyMM' of https://github.com/kurte/circuitpython into teensyMM 2022-04-07 14:08:31 -07:00
KurtE 2cb422fb19 Create W25Q128JV.ld
Add flash file needed for Teensy MicroMod,
2022-04-07 12:09:56 -07:00
Dan Halbert 1f5744377c
Merge pull request #6262 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-04-06 21:40:02 -04:00
Hosted Weblate 9ec589ef0f
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-04-07 03:35:12 +02:00
Dan Halbert d5deddcaf5
Merge pull request #6207 from domdfcoding/esp32-rotaryio
Add espressif rotaryio divisor support.
2022-04-06 21:35:02 -04:00
KurtE a74ec22aa4 Start setting up a Teensy MicroMod port
I have done a first pass through the files
this also includes a new VID/PID from sparkfun
2022-04-06 17:58:22 -07:00
KurtE ef9f9c8bf0 Update PID/VID and Flash 2022-04-06 15:22:24 -07:00
KurtE a69738c592 Start setting up a Teensy MicroMod port 2022-04-06 14:19:38 -07:00
Dan Halbert b0bb5ff5d3
Merge pull request #6253 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-04-06 13:26:02 -04:00
Hosted Weblate 67dea13392
Merge remote-tracking branch 'origin/main' 2022-04-06 19:22:08 +02:00
Dan Halbert dbb6f5f16c
Merge pull request #6246 from DavePutz/issue_6148
Don't reset GPIO4 on the MagTag (used for voltage monitoring)
2022-04-06 13:22:01 -04:00
Dominic Davis-Foster f297e872d6
Account for divisor when overriding position. 2022-04-06 18:13:59 +01:00
Hosted Weblate 84e77ef89c
Merge remote-tracking branch 'origin/main' 2022-04-06 19:13:45 +02:00
Dan Halbert 742c05db28
Merge pull request #6226 from EmergReanimator/fs_stub_build_fix
Fixed internal flash filesystem stub build issue
2022-04-06 13:13:36 -04:00
Hosted Weblate 4a2b68000e
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-04-06 18:06:54 +02:00
Hosted Weblate 3ba81c344f
Merge remote-tracking branch 'origin/main' 2022-04-06 18:06:51 +02:00
Dan Halbert 2693a4cfe1
Merge pull request #6069 from gamblor21/uzlib-module
zlib Module
2022-04-06 12:06:44 -04:00
Hosted Weblate d0da2de999
Merge remote-tracking branch 'origin/main' 2022-04-06 17:55:11 +02:00
Dan Halbert 1a329cfd11
Merge pull request #6029 from jepler/pio-wrap
raspberry: StateMachine: Add support for wrap=, wrap_target=
2022-04-06 11:55:02 -04:00
Dan Halbert 99dc4029dc Espressif: disable pull-up on AnalogIn creation 2022-04-06 11:33:56 -04:00
Hosted Weblate 45a66c65ca
Merge remote-tracking branch 'origin/main' 2022-04-06 16:37:27 +02:00
Dan Halbert 1cd3e222f5
Merge pull request #6251 from PontusO/main
Added support for 4MB flash.
2022-04-06 10:37:17 -04:00
Jeff Epler b8d0aadf54
Merge remote-tracking branch 'origin/main' into fs_stub_build_fix 2022-04-06 09:26:39 -05:00
Hosted Weblate dbe929d7f1
Merge remote-tracking branch 'origin/main' 2022-04-06 15:40:46 +02:00
Dan Halbert 85ce1610ea
Merge pull request #6245 from jepler/document-tilegrid-8bit
Document TileGrid limitation to tile values 0..255 & improve mp3 doc
2022-04-06 09:40:41 -04:00
Hosted Weblate 0c97ac041b
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-04-06 15:37:52 +02:00
Hosted Weblate d8af5edff1
Merge remote-tracking branch 'origin/main' 2022-04-06 15:37:49 +02:00
Jeff Epler b7acdee226
Translated using Weblate (Russian)
Currently translated at 37.7% (398 of 1053 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2022-04-06 15:37:49 +02:00