]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Guard tms570_rpp-specific code with #ifdef
authorJakub NejedlĂ˝ <nejedjak@fel.cvut.cz>
Wed, 21 Aug 2019 07:26:57 +0000 (09:26 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sat, 31 Aug 2019 21:16:08 +0000 (23:16 +0200)
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

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;