PDK-5115: Board: Updated gpio mapping for am64x expansion header test
authorM V Pratap Reddy <x0257344@ti.com>
Fri, 27 Nov 2020 04:02:23 +0000 (09:32 +0530)
committerSivaraj R <sivaraj@ti.com>
Fri, 27 Nov 2020 06:28:10 +0000 (00:28 -0600)
packages/ti/board/diag/exp_header/build/am64x_evm/gpio_test_header_config.c
packages/ti/board/diag/exp_header/src/gpio_test_header.c

index 82f3ba199b665d6b5d3ff8a78e739f7726aa1c9b..61f48f95f285704301c79a1006ee0be0ef6e54ee 100755 (executable)
 #define PIN81      (0x0140)  /* GPIO1_64/GPIO1_65 */\r
 #define PIN82      (0x0141)\r
 \r
-#define PIN83      (0x012F)  /* GPIO1_27/GPIO0_41/GPIO1_9 */\r
+#define PIN83      (0x011B)  /* GPIO1_27/GPIO0_41/GPIO1_9 */\r
 #define PIN84      (0x0029)\r
 #define PIN85      (0x0109)\r
 /* Safety Connector Pins  */\r
index 9381b0a76e1af1a2ce3d4074d2c80be237038fab..fa583666658e0bcfb7167db7b005b7583b00d984 100755 (executable)
@@ -360,6 +360,17 @@ static int8_t BoardDiag_runGpioTestHeaderVerification(uint8_t index,
                 retVal = -1;
             }
         }
+        else
+        {
+            if(gpioSignalLevel == GPIO_PIN_VAL_HIGH)
+            {
+                UART_printf("Looping back the signal high Passed for pin %d \n\r", pinIndex);
+            }
+            else
+            {
+                UART_printf("Looping back the signal low Passed for pin %d \n\r", pinIndex);
+            }
+        }
     }
 
     return retVal;
@@ -686,9 +697,6 @@ int main(void)
     Board_STATUS status;
     Board_initCfg boardCfg;
     int8_t ret = 0;
-#if defined(SOC_AM64X)
-    char p = 'n';
-#endif
 #if (defined(SOC_J721E) || defined(SOC_AM64X))
     Board_I2cInitCfg_t i2cCfg;
 #endif
@@ -824,18 +832,6 @@ int main(void)
     GPIO_write(0, GPIO_PIN_VAL_HIGH);
 #endif
 
-#if defined(SOC_AM64X)
-    UART_printf("\nPress 'y' if Test Jig Connected");
-
-    UART_scanFmt("%c", &p);
-    if ( (p != 'Y') || (p != 'y') )
-    {
-        UART_printf("\nPlease Connect the HSE test Jig");
-        UART_printf("\nTest Failed");
-               return 0;
-       }
-#endif
-
 #ifdef DIAG_STRESS_TEST
     ret = BoardDiag_expHeaderStressTest();
 #else