]> 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 63bc1d7cfe474539c656ede4857c76cc07915f50..c7edb82d7c454f8c5b9e1a8842fb2e460350fe65 100644 (file)
@@ -6,18 +6,10 @@
  * Authors:
  *     - Rostislav LisovĂ˝
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * This document contains proprietary information belonging to Czech
+ * Technical University in Prague. Passing on and copying of this
+ * document, and communication of its contents is not permitted
+ * without prior written authorization.
  *
  * File : cmd_emac.c
  *
@@ -117,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();
@@ -124,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;