summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Konnur2020-02-03 06:14:43 -0600
committerPrasad Konnur2020-02-03 06:27:22 -0600
commit275c184433166a3c67d47addef9d99fad1ccb96c (patch)
tree5512a7d87434d4783962f2e6f459abe79498b037
parent0169b91b7fff4fbf6e4e09ba485da330ea5a7b2b (diff)
downloadpm-lld-275c184433166a3c67d47addef9d99fad1ccb96c.tar.gz
pm-lld-275c184433166a3c67d47addef9d99fad1ccb96c.tar.xz
pm-lld-275c184433166a3c67d47addef9d99fad1ccb96c.zip
- pm voltage read app crashes on j7 - Added apputils_init Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
-rwxr-xr-xexamples/voltage_read/main_dmsc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/voltage_read/main_dmsc.c b/examples/voltage_read/main_dmsc.c
index b593149..e2469dc 100755
--- a/examples/voltage_read/main_dmsc.c
+++ b/examples/voltage_read/main_dmsc.c
@@ -85,6 +85,7 @@ int32_t main(void)
85 uint32_t errCount = 0U; 85 uint32_t errCount = 0U;
86 int32_t voltVal = 0; 86 int32_t voltVal = 0;
87 87
88 AppUtils_defaultInit();
88 /*AVS is only available for VD 2*/ 89 /*AVS is only available for VD 2*/
89 vDomain = 2U; 90 vDomain = 2U;
90 91
@@ -106,7 +107,7 @@ int32_t main(void)
106 } 107 }
107 else 108 else
108 { 109 {
109 App_printf("Voltage value for voltage domain %d and OPP %d : %f\n", vDomain, opp, (float)(voltVal/1000.0)); 110 App_printf("Voltage value for voltage domain %d and OPP %d : %d mV\n", vDomain, opp, voltVal);
110 App_printf("Voltage Read Test App Passed!!\n"); 111 App_printf("Voltage Read Test App Passed!!\n");
111 } 112 }
112 return 0; 113 return 0;