Skip to content

Commit

Permalink
/rp2040 Rename the RP2040-specific PWM_MULTICHAN definition to avoid …
Browse files Browse the repository at this point in the history
…confusion with the global PWM_MULTICHAN
  • Loading branch information
GC-20-20 authored and xiaoxiang781216 committed Jul 16, 2024
1 parent ae0ef94 commit 8f243d3
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions arch/arm/src/rp2040/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,16 @@ config RP2040_PWM

if RP2040_PWM

config PWM_MULTICHAN
bool "Support Multi-Channel PWM"
config RP2040_PWM_MULTICHAN
bool "Support RP2040 Multi-Channel PWM"
default y
---help---
If support for multi-channel PWM is disabled, the generated code
will only support the A channel of the PWM slices.

if PWM_MULTICHAN
if RP2040_PWM_MULTICHAN

config PWM_NCHANNELS
config RP2040_PWM_NCHANNELS
int "Number of channels"
default 2
range 1 2
Expand All @@ -282,7 +282,7 @@ config PWM_NCHANNELS
only support the A channel of the PWM slices. This is functionally
identical to disabling multi-channel PWM support.

endif # PWM_MULTICHAN
endif # RP2040_PWM_MULTICHAN

config RP2040_PWM0
bool "PWM0"
Expand All @@ -298,7 +298,7 @@ config RP2040_PWM0A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM0B_INVERT
bool "PWM0 channel 2 invert"
Expand All @@ -307,7 +307,7 @@ if PWM_MULTICHAN && PWM_NCHANNELS > 1
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM0_PHASE_CORRECT
bool "PWM0 phase correct"
Expand All @@ -329,7 +329,7 @@ config RP2040_PWM1A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM1B_INVERT
bool "PWM1 channel 2 invert"
Expand All @@ -338,7 +338,7 @@ config RP2040_PWM1B_INVERT
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM1_PHASE_CORRECT
bool "PWM1 phase correct"
Expand All @@ -360,7 +360,7 @@ config RP2040_PWM2A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM2B_INVERT
bool "PWM2 channel 2 invert"
Expand All @@ -369,7 +369,7 @@ config RP2040_PWM2B_INVERT
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM2_PHASE_CORRECT
bool "PWM2 phase correct"
Expand All @@ -393,7 +393,7 @@ config RP2040_PWM3A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM3B_INVERT
bool "PWM3 channel 2 invert"
Expand All @@ -402,7 +402,7 @@ config RP2040_PWM3B_INVERT
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM3_PHASE_CORRECT
bool "PWM3 phase correct"
Expand All @@ -424,7 +424,7 @@ config RP2040_PWM4A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM4B_INVERT
bool "PWM4 channel 2 invert"
Expand All @@ -433,7 +433,7 @@ config RP2040_PWM4B_INVERT
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM4_PHASE_CORRECT
bool "PWM4 phase correct"
Expand All @@ -455,7 +455,7 @@ config RP2040_PWM5A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM5B_INVERT
bool "PWM5 channel 2 invert"
Expand All @@ -464,7 +464,7 @@ config RP2040_PWM5B_INVERT
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM5_PHASE_CORRECT
bool "PWM5 phase correct"
Expand All @@ -486,7 +486,7 @@ config RP2040_PWM6A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM6B_INVERT
bool "PWM6 channel 2 invert"
Expand All @@ -495,7 +495,7 @@ config RP2040_PWM6B_INVERT
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM6_PHASE_CORRECT
bool "PWM6 phase correct"
Expand All @@ -517,7 +517,7 @@ config RP2040_PWM7A_INVERT
If invert is enabled, the PWM on the A pin will idle high
with the pulse going low.

if PWM_MULTICHAN && PWM_NCHANNELS > 1
if RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM7B_GPIO

Expand All @@ -528,7 +528,7 @@ config RP2040_PWM7B_INVERT
If invert is enabled, the PWM on the B pin will idle high
with the pulse going low.

endif # PWM_MULTICHAN && PWM_NCHANNELS > 1
endif # RP2040_PWM_MULTICHAN && RP2040_PWM_NCHANNELS > 1

config RP2040_PWM7_PHASE_CORRECT
bool "PWM7 phase correct"
Expand Down

0 comments on commit 8f243d3

Please sign in to comment.