summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: f68baa0)
raw | patch | inline | side by side (from parent 1: f68baa0)
author | Sinthu Raja M <x0257345@ti.com> | |
Tue, 27 Feb 2018 16:57:28 +0000 (22:27 +0530) | ||
committer | Sinthu Raja M <x0257345@ti.com> | |
Tue, 27 Feb 2018 16:57:28 +0000 (22:27 +0530) |
Klocwork error fix for EDMA3 examples
examples/edma3_driver/src/main.c | patch | blob | history |
index 37796a698bcec45a6c773bb79dab03d476e2a152..30062047f3f2afcc136d3fbe3e04df2acdb0083f 100644 (file)
if (hndEdma)
{
printf("edma3init() Passed\n");
- }
- else
- {
- printf("edma3init() Failed, error code: %d\n", (int)edmaResult);
- }
- /* User request PaRAMId test */
- if (edmaResult == EDMA3_DRV_SOK)
- {
- edmaResult = edma3_test_user_req_paRAMId(hndEdma, edmaInstance,
+ /* User request PaRAMId test */
+ if (edmaResult == EDMA3_DRV_SOK)
+ {
+ edmaResult = edma3_test_user_req_paRAMId(hndEdma, edmaInstance,
MAX_ACOUNT, MAX_BCOUNT, MAX_CCOUNT, EDMA3_DRV_SYNC_A);
- }
+ }
- if (edmaResult == EDMA3_DRV_SOK)
- {
- printf ("edma3_test_user_req_paRAMId Passed\r\n");
- }
- else
- {
- printf ("edma3_test_user_req_paRAMId Failed\r\n");
- }
+ if (edmaResult == EDMA3_DRV_SOK)
+ {
+ printf ("edma3_test_user_req_paRAMId Passed\r\n");
+ }
+ else
+ {
+ printf ("edma3_test_user_req_paRAMId Failed\r\n");
+ }
- /*EDMA3 deinitialization */
- edmaResult = edma3deinit(edmaInstance, hndEdma);
- if (edmaResult != EDMA3_DRV_SOK)
- {
- printf("edma3deinit() Failed, error code: %d\n", (int)edmaResult);
+ /*EDMA3 deinitialization */
+ edmaResult = edma3deinit(edmaInstance, hndEdma);
+ if (edmaResult != EDMA3_DRV_SOK)
+ {
+ printf("edma3deinit() Failed, error code: %d\n", (int)edmaResult);
+ }
+ else
+ {
+ printf("edma3deinit() Passed\n");
+ }
}
else
{
- printf("edma3deinit() Passed\n");
+ printf("edma3init() Failed, error code: %d\n", (int)edmaResult);
}
+
/* Start the Heart Beat Print */
tskHeartBit();