]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Static IP configuration
authorJakub NejedlĂ˝ <nejedjak@fel.cvut.cz>
Mon, 19 Aug 2019 12:05:55 +0000 (14:05 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 29 Aug 2019 14:29:27 +0000 (16:29 +0200)
Values workcing on Ciirc network configured to
IP 10.35.95.25
Mask 255.255.255.0
GW 10.35.95.1

rpp/include/rpp/eth.h

index d38b6f2dff5c511b99cbcc49ebbb55d3bea19e0b..c43d46b43537daba31902484a4873e97d55105e2 100644 (file)
@@ -26,8 +26,9 @@
 #if STATIC_IP_ADDRESS
 /**
  * When static IP is configured in lwipopts.h, this IP address is used for interface.
+ * Static IP address is working only at Ciirc. Also mask and GW havo to be changet to work in different network. 
  */
-#define RPP_IP_ADDR               0xC0A8F701 /* 192.168.247.1   IP4_ADDR(rppip, 192,168,0,10);       */
+#define RPP_IP_ADDR               0x0A235F19 /* 10.35.95.25   IP4_ADDR(rppip, 10,35,95,25);       */
 /**
  * When static IP is configured in lwipopts.h, this NETMASK address is used for interface.
  */
@@ -35,7 +36,7 @@
 /**
  * When static IP is configured in lwipopts.h, this Gateway address is used for interface.
  */
-#define RPP_GW                    0xC0A8F7FE /* 192.168.247.254 IP4_ADDR(rppgw, 192,168,0,254);      */
+#define RPP_GW                    0x0A235F01 /* 10.35.95.1     IP4_ADDR(rppgw, 10,35,95,1);      */
 #endif
 
 /**