]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Change MAC address
authorJakub NejedlĂ˝ <nejedjak@fel.cvut.cz>
Wed, 21 Aug 2019 07:42:01 +0000 (09:42 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sat, 31 Aug 2019 21:16:08 +0000 (23:16 +0200)
Unification of MAC addresses over project.
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.

rpp-test-sw/commands/cmd_emac.c

index c7edb82d7c454f8c5b9e1a8842fb2e460350fe65..4458729d98511a9537a04019b8227d6118943232 100644 (file)
@@ -73,7 +73,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 */