]> rtime.felk.cvut.cz Git - rpp-test-sw.git/blobdiff - rpp-test-sw/commands/cmd_emac.c
Change license to MIT
[rpp-test-sw.git] / rpp-test-sw / commands / cmd_emac.c
index c7edb82d7c454f8c5b9e1a8842fb2e460350fe65..210876678cfeaf67aae0ed5a114e45f97edc3680 100644 (file)
@@ -6,10 +6,26 @@
  * Authors:
  *     - Rostislav LisovĂ˝
  *
- * 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.
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
  *
  * File : cmd_emac.c
  *
@@ -73,7 +89,12 @@ unsigned int phylink;
 unsigned int intvect;
 unsigned int intvectraw;
 
-uint8_t emacAddress[6]  = {0x12, 0x34, 0x56, 0x78, 0x90, 0xab};
+/* 
+ * Emac address is used only in this debugging tool. During emac_test is't called rpp_init().
+ * MAC address defined in eth.h have no efect in this test file.
+ */
+uint8_t emacAddress[6]  = {0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc};
 uint32_t emacPhyAddress = 0x1;  /* Address of PHY on "MDIO bus"
                                    (depends on PHY configuration) */
 int channel = 0;    /* Emac has 8 RX and TX channels; we use only one */