summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Livingston2019-05-24 12:22:12 -0500
committerFrank Livingston2019-05-24 12:22:12 -0500
commit4366dbfe9761b4de298986d4665787b6fe0b6f15 (patch)
treeaf078130b2cabcba6add74cf31efffacb5ff1c77
parent7fa378b848dd7f72ee49cb6f19bd5cc1c50833a3 (diff)
downloadpruss-lld-4366dbfe9761b4de298986d4665787b6fe0b6f15.tar.gz
pruss-lld-4366dbfe9761b4de298986d4665787b6fe0b6f15.tar.xz
pruss-lld-4366dbfe9761b4de298986d4665787b6fe0b6f15.zip
PRSDK-5738:Add LHS actions for invalid DC count to PWM disabled
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
-rw-r--r--example/apps/icssg_pwm/firmware/src/iepPwm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/example/apps/icssg_pwm/firmware/src/iepPwm.c b/example/apps/icssg_pwm/firmware/src/iepPwm.c
index 50af566..a014647 100644
--- a/example/apps/icssg_pwm/firmware/src/iepPwm.c
+++ b/example/apps/icssg_pwm/firmware/src/iepPwm.c
@@ -1705,6 +1705,11 @@ static Int32 getInitLhsAction(
1705 } 1705 }
1706 else { 1706 else {
1707 /* Error, invalid DC count */ 1707 /* Error, invalid DC count */
1708
1709 /* PWM disabled in case of invalid DC count */
1710 *pActionLhs = LHS_ACTION_None;
1711 *pActionRhs = RHS_ACTION_None;
1712 /* Indicate error to caller */
1708 return IPE_STS_ERR_INV_DC_COUNT; 1713 return IPE_STS_ERR_INV_DC_COUNT;
1709 } 1714 }
1710 } 1715 }
@@ -1736,6 +1741,11 @@ static Int32 getInitLhsAction(
1736 } 1741 }
1737 else { 1742 else {
1738 /* Error, invalid DC count */ 1743 /* Error, invalid DC count */
1744
1745 /* PWM disabled in case of invalid DC count */
1746 *pActionLhs = LHS_ACTION_Set_CmpSr_GtPrd_And_DisableSrUpdate;
1747 *pActionRhs = RHS_ACTION_None;
1748 /* Indicate error to caller */
1739 return IPE_STS_ERR_INV_DC_COUNT; 1749 return IPE_STS_ERR_INV_DC_COUNT;
1740 } 1750 }
1741 } 1751 }