]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - rpp-test-sw/commands/cmd_emac.c
Guard tms570_rpp-specific code with #ifdef
[pes-rpp/rpp-test-sw.git] / rpp-test-sw / commands / cmd_emac.c
index 89350cd38824223d53110044b7817a1644760581..c7edb82d7c454f8c5b9e1a8842fb2e460350fe65 100644 (file)
@@ -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;