From a3d618642f56fba6963a559454eae2689f98b561 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jakub=20Nejedl=C3=BD?= Date: Wed, 21 Aug 2019 09:26:57 +0200 Subject: [PATCH] Guard tms570_rpp-specific code with #ifdef Due migration ethernet to common board version is nessesary to exclude this pin setup from non-RPP builds. --- rpp-test-sw/commands/cmd_emac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpp-test-sw/commands/cmd_emac.c b/rpp-test-sw/commands/cmd_emac.c index 89350cd..c7edb82 100644 --- a/rpp-test-sw/commands/cmd_emac.c +++ b/rpp-test-sw/commands/cmd_emac.c @@ -109,6 +109,7 @@ int emac_test(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[]) unsigned short data; int j; +#ifdef TARGET_TMS570_RPP /* Deactivate reset pin of PHY */ dmmREG->PC4 = (1 << DMM_CLK); /* Set to H */ dummy_wait(); @@ -116,6 +117,7 @@ int emac_test(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[]) dummy_wait(); dmmREG->PC4 = (1 << DMM_CLK); /* Set to H */ dummy_wait(); +#endif /* Prepare RX Packet buffer descriptor */ rx_desc->pBuffer = rx_buff; -- 2.39.2