WS2812 PWM: prefix for DMA defines (#23111)
* WS2812 PWM: prefix for DMA defines * Add backward compatibility defines
This commit is contained in:
parent
3bf1ce5cf8
commit
569b0c70be
98 changed files with 246 additions and 234 deletions
|
|
@ -208,9 +208,9 @@ The following `#define`s apply only to the `pwm` driver:
|
|||
|`WS2812_PWM_DRIVER` |`PWMD2` |The PWM driver to use |
|
||||
|`WS2812_PWM_CHANNEL` |`2` |The PWM channel to use |
|
||||
|`WS2812_PWM_PAL_MODE` |`2` |The pin alternative function to use |
|
||||
|`WS2812_DMA_STREAM` |`STM32_DMA1_STREAM2`|The DMA Stream for `TIMx_UP` |
|
||||
|`WS2812_DMA_CHANNEL` |`2` |The DMA Channel for `TIMx_UP` |
|
||||
|`WS2812_DMAMUX_ID` |*Not defined* |The DMAMUX configuration for `TIMx_UP` - only required if your MCU has a DMAMUX peripheral|
|
||||
|`WS2812_PWM_DMA_STREAM` |`STM32_DMA1_STREAM2`|The DMA Stream for `TIMx_UP` |
|
||||
|`WS2812_PWM_DMA_CHANNEL` |`2` |The DMA Channel for `TIMx_UP` |
|
||||
|`WS2812_PWM_DMAMUX_ID` |*Not defined* |The DMAMUX configuration for `TIMx_UP` - only required if your MCU has a DMAMUX peripheral|
|
||||
|`WS2812_PWM_COMPLEMENTARY_OUTPUT`|*Not defined* |Whether the PWM output is complementary (`TIMx_CHyN`) |
|
||||
|
||||
?> Using a complementary timer output (`TIMx_CHyN`) is possible only for advanced-control timers (1, 8 and 20 on STM32), and the `STM32_PWM_USE_ADVANCED` option in `mcuconf.h` must be set to `TRUE`. Complementary outputs of general-purpose timers are not supported due to ChibiOS limitations.
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
||||
// If this is defined, the caps lock LED will turn on and off according to the state of caps lock. If not, the LED will shine like all other LEDs despite the caps lock state.
|
||||
#define CAPSLOCK_INDICATOR
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
||||
// If this is defined, the caps lock LED will turn on and off according to the state of caps lock. If not, the LED will shine like all other LEDs despite the caps lock state.
|
||||
#define CAPSLOCK_INDICATOR
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
||||
#define EEPROM_I2C_24LC256
|
||||
|
|
|
|||
|
|
@ -24,5 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
|
|
|||
|
|
@ -24,5 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
|
|
|||
|
|
@ -24,5 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 6
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 6
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
/* RGB Light */
|
||||
#define WS2812_PWM_DRIVER PWMD1
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 5
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 5
|
||||
|
||||
#define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_RGB
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 2
|
||||
#define WS2812_PWM_COMPLEMENTARY_OUTPUT
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM5
|
||||
#define WS2812_DMA_CHANNEL 5
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM5
|
||||
#define WS2812_PWM_DMA_CHANNEL 5
|
||||
#define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_RGB
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@
|
|||
#define WS2812_PWM_CHANNEL 2
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_EXTERNAL_PULLUP
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_TARGET_PERIOD 800000
|
||||
|
||||
/* Serial configuration for split keyboard. */
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
#define WS2812_PWM_DRIVER PWMD2
|
||||
#define WS2812_PWM_CHANNEL 4
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
|
||||
/* CRC. */
|
||||
#define CRC8_USE_TABLE
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
#define WS2812_PWM_CHANNEL 2
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_EXTERNAL_PULLUP
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_TARGET_PERIOD 800000
|
||||
|
||||
/* Serial configuration for split keyboard. */
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
#define WS2812_PWM_DRIVER PWMD2
|
||||
#define WS2812_PWM_CHANNEL 4
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
|
||||
/* CRC. */
|
||||
#define CRC8_USE_TABLE
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@
|
|||
#define WS2812_PWM_CHANNEL 2
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_EXTERNAL_PULLUP
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_TARGET_PERIOD 800000
|
||||
|
||||
/* Serial configuration for split keyboard. */
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
#define WS2812_PWM_DRIVER PWMD2
|
||||
#define WS2812_PWM_CHANNEL 4
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
|
||||
/* CRC. */
|
||||
#define CRC8_USE_TABLE
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@
|
|||
#define WS2812_PWM_CHANNEL 2
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_EXTERNAL_PULLUP
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM1
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_TARGET_PERIOD 800000
|
||||
|
||||
/* Serial configuration for split keyboard. */
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@
|
|||
#define WS2812_PWM_DRIVER PWMD2
|
||||
#define WS2812_PWM_CHANNEL 4
|
||||
#define WS2812_PWM_PAL_MODE 1
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_DMA_CHANNEL 3
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_PWM_DMA_CHANNEL 3
|
||||
|
||||
/* CRC. */
|
||||
#define CRC8_USE_TABLE
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue