Skip to content

Conversation

@alin724
Copy link
Contributor

@alin724 alin724 commented Nov 12, 2023

This commit will add support for up to 16 PWM output channels and update to the corresponding [period,width,offset] regs' addresses.
HDL repo PR;

Add support for up to 16 PWM output channels and update
to the corresponding [period,width,offset] regs' addresses

Signed-off-by: Alin-Tudor Sferle <Alin-Tudor.Sferle@analog.com>
@alin724 alin724 force-pushed the update_pwm_gen_16ch branch from e84fbb4 to 0f81415 Compare November 12, 2023 11:28
@nunojsa nunojsa requested a review from a team November 13, 2023 08:15

pwm->chip.npwm = axi_pwmgen_read(pwm, AXI_PWMGEN_REG_NPWM);
if (pwm->chip.npwm > 4)
if (pwm->chip.npwm > 16)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit: Maybe add a define for the number of channels since you're doing this change...

Copy link
Contributor

@amiclaus amiclaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ltgm, after rest of the comments are addressed.

@nunojsa
Copy link
Collaborator

nunojsa commented Nov 13, 2023

Well, 6h went so I will merge this... If you want to make the change to have a #define, we can always have a follow up PR

@nunojsa nunojsa merged commit 25afd8b into master Nov 13, 2023
@nunojsa nunojsa deleted the update_pwm_gen_16ch branch November 13, 2023 14:29
@alin724
Copy link
Contributor Author

alin724 commented Nov 16, 2023

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants