aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/RNDISEthernet
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-05-13 21:01:23 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-05-13 21:01:23 +0000
commite9e6730d4999bea6e0eaefc2fce062ef090388b8 (patch)
tree5daf1ada1335d2781e144548b55d8253adff0c05 /Demos/Device/LowLevel/RNDISEthernet
parentae6a51492948d621907d3e62c03c2854e6fcc19c (diff)
downloadlufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.tar.gz
lufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.tar.bz2
lufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.zip
AppConfigHeaders: Move out the last of the demo/app configurations into new AppConfig.h header files.
Diffstat (limited to 'Demos/Device/LowLevel/RNDISEthernet')
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/Config/AppConfig.h (renamed from Demos/Device/LowLevel/RNDISEthernet/Config/NetworkConfig.h)19
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.h6
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/Lib/IP.h3
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h3
-rw-r--r--Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.txt32
5 files changed, 35 insertions, 28 deletions
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Config/NetworkConfig.h b/Demos/Device/LowLevel/RNDISEthernet/Config/AppConfig.h
index e6ac093ad..3b1ca5366 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/Config/NetworkConfig.h
+++ b/Demos/Device/LowLevel/RNDISEthernet/Config/AppConfig.h
@@ -29,21 +29,26 @@
*/
/** \file
- * \brief Network Configuration Header File
+ * \brief Application Configuration Header File
*
- * This header file is used to configure various portions of the
- * network stack used by the application.
+ * This is a header file which is be used to configure some of
+ * the application's compile time options, as an alternative to
+ * specifying the compile time constants supplied through a
+ * makefile or build system.
*
- * For information on what each token does, refer to the LUFA
- * manual section "Summary of Compile Tokens".
+ * For information on what each token does, refer to the
+ * \ref Sec_Options section of the application documentation.
*/
-#ifndef _NETWORK_CONFIG_H_
-#define _NETWORK_CONFIG_H_
+#ifndef _APP_CONFIG_H_
+#define _APP_CONFIG_H_
#define CLIENT_IP_ADDRESS { 10, 0, 0, 1}
#define SERVER_IP_ADDRESS { 10, 0, 0, 2}
+ #define ADAPTER_MAC_ADDRESS {0x02, 0x00, 0x02, 0x00, 0x02, 0x00}
+ #define SERVER_MAC_ADDRESS {0x00, 0x01, 0x00, 0x01, 0x00, 0x01}
+
#define NO_DECODE_ETHERNET
#define NO_DECODE_ARP
#define NO_DECODE_IP
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.h b/Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.h
index 37d482de2..06be68926 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.h
+++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/Ethernet.h
@@ -50,12 +50,6 @@
#include "IP.h"
/* Macros: */
- /** Physical MAC address of the USB RNDIS network adapter. */
- #define ADAPTER_MAC_ADDRESS {0x02, 0x00, 0x02, 0x00, 0x02, 0x00}
-
- /** Physical MAC address of the virtual server on the network. */
- #define SERVER_MAC_ADDRESS {0x00, 0x01, 0x00, 0x01, 0x00, 0x01}
-
/** Physical MAC address of the network broadcast address. */
#define BROADCAST_MAC_ADDRESS {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/IP.h b/Demos/Device/LowLevel/RNDISEthernet/Lib/IP.h
index b878693bd..18c1c812b 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/Lib/IP.h
+++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/IP.h
@@ -43,8 +43,7 @@
#include "EthernetProtocols.h"
#include "Ethernet.h"
#include "ProtocolDecoders.h"
-
- #include "Config/NetworkConfig.h"
+ #include "Config/AppConfig.h"
/* Macros: */
/** Protocol IP address of the broadcast address. */
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
index b3ad1affd..bb640928d 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
+++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.h
@@ -45,8 +45,7 @@
#include "EthernetProtocols.h"
#include "Ethernet.h"
-
- #include "Config/NetworkConfig.h"
+ #include "Config/AppConfig.h"
/* Function Prototypes: */
void DecodeEthernetFrameHeader(void* InDataStart);
diff --git a/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.txt b/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.txt
index 08cb05324..a458370da 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.txt
+++ b/Demos/Device/LowLevel/RNDISEthernet/RNDISEthernet.txt
@@ -85,47 +85,57 @@
* </tr>
* <tr>
* <td>CLIENT_IP_ADDRESS</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>Configures the IP address given to the client (PC) via the DHCP server.</td>
* </tr>
* <tr>
- * <td>HOST_IP_ADDRESS</td>
- * <td>NetworkConfig.h</td>
- * <td>Configures the IP address used in the virtual server for communications to/from the client.</td>
+ * <td>SERVER_IP_ADDRESS</td>
+ * <td>AppConfig.h</td>
+ * <td>Configures the IP address of the virtual server.</td>
+ * </tr>
+ * <tr>
+ * <td>ADAPTER_MAC_ADDRESS</td>
+ * <td>AppConfig.h</td>
+ * <td>Configures the MAC address of the RNDIS adapter on the host (PC) side.</td>
+ * </tr>
+ * <tr>
+ * <td>SERVER_MAC_ADDRESS</td>
+ * <td>AppConfig.h</td>
+ * <td>Configures the MAC address of the virtual server on the network.</td>
* </tr>
* <tr>
* <td>NO_DECODE_ETHERNET</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>When defined, received Ethernet headers will not be decoded and printed to the device serial port.</td>
* </tr>
* <tr>
* <td>NO_DECODE_ARP</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>When defined, received ARP headers will not be decoded and printed to the device serial port.</td>
* </tr>
* <tr>
* <td>NO_DECODE_IP</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>When defined, received IP headers will not be decoded and printed to the device serial port.</td>
* </tr>
* <tr>
* <td>NO_DECODE_ICMP</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>When defined, received ICMP headers will not be decoded and printed to the device serial port.</td>
* </tr>
* <tr>
* <td>NO_DECODE_TCP</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>When defined, received TCP headers will not be decoded and printed to the device serial port.</td>
* </tr>
* <tr>
* <td>NO_DECODE_UDP</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>When defined, received UDP headers will not be decoded and printed to the device serial port.</td>
* </tr>
* <tr>
* <td>NO_DECODE_DHCP</td>
- * <td>NetworkConfig.h</td>
+ * <td>AppConfig.h</td>
* <td>When defined, received DHCP headers will not be decoded and printed to the device serial port.</td>
* </tr>
* </table>