circuitpython/ports
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
..
atmel-samd Merge pull request #6069 from gamblor21/uzlib-module 2022-04-06 12:06:44 -04:00
broadcom Start of USB host API 2022-03-07 18:07:25 -08:00
cxd56 Canonical C style for half_duplex = true/false 2022-02-08 23:13:22 -05:00
espressif Force pin 21 high; patch; need to diagnose further 2022-04-09 22:03:16 -04:00
litex Board definition clean up 2022-03-21 17:58:43 -07:00
mimxrt10xx Fix PWM Support for the MIMXRT boards 2022-04-16 09:00:45 -07:00
nrf Merge pull request #6069 from gamblor21/uzlib-module 2022-04-06 12:06:44 -04:00
raspberrypi Merge pull request #6029 from jepler/pio-wrap 2022-04-06 11:55:02 -04:00
stm Merge branch 'main' into uzlib-module 2022-04-03 11:48:37 -05:00
unix Merge branch 'main' into uzlib-module 2022-04-03 11:48:37 -05:00