Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
5323b511
Commit
5323b511
authored
Aug 16, 2015
by
Jeroen Vreeken
Browse files
Fix output B
parent
e96335d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
controller/am335x/block_am335x_pwm.c
View file @
5323b511
...
...
@@ -103,6 +103,21 @@ static void set_freq(struct controller_block *pwm)
AM335X_PWMSS_EPWM_AQCTLA_PRD_CLR
;
}
am335x_write16
(
base
,
AM335X_PWMSS_REG_EPWM_AQCTLA
,
aqctl
);
if
(
priv
->
sym
)
{
aqctl
=
AM335X_PWMSS_EPWM_AQCTLA_CAD_NOP
|
AM335X_PWMSS_EPWM_AQCTLA_CAU_NOP
|
AM335X_PWMSS_EPWM_AQCTLA_CBD_SET
|
AM335X_PWMSS_EPWM_AQCTLA_CBU_CLR
|
AM335X_PWMSS_EPWM_AQCTLA_PRD_NOP
;
}
else
{
aqctl
=
AM335X_PWMSS_EPWM_AQCTLA_CAD_NOP
|
AM335X_PWMSS_EPWM_AQCTLA_CAU_NOP
|
AM335X_PWMSS_EPWM_AQCTLA_CBD_SET
|
AM335X_PWMSS_EPWM_AQCTLA_CBU_CLR
|
AM335X_PWMSS_EPWM_AQCTLA_PRD_CLR
;
}
am335x_write16
(
base
,
AM335X_PWMSS_REG_EPWM_AQCTLB
,
aqctl
);
am335x_write16
(
base
,
AM335X_PWMSS_REG_EPWM_AQSFRC
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment