Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ste_config.h
- Revision:
- 2:35f2cc8b05fa
- Parent:
- 0:11bc39d0f367
- Child:
- 7:cbb5a2a2a0d2
--- a/ste_config.h Fri Sep 01 02:30:10 2017 +0000
+++ b/ste_config.h Wed Sep 27 07:38:37 2017 +0000
@@ -16,31 +16,34 @@
#include "FATFileSystem.h"
#include "NuSDBlockDevice.h"
+/* Define ENABLE_WEB_CONFIG to active a simple web server for
+ UART ports and Ethernet port configuration. */
+#define ENABLE_WEB_CONFIG
-//#define ENABLE_WEB_CONFIG // Define this to active a simple web sever for
- // UART ports and Ethernet port parameters configuration.
-
-/* Maximum UART ports supported */
+/* Maximum UART ports supported.
+ It should be 1, 2, or 3. Please also define
+ mapping table "port_config[]" in main.c */
#define MAX_UART_PORTS 2
/* Default UART baud */
#define DEFAULT_UART_BAUD 115200
/* Network base port number to listen.
- So the base port maps to the 1st UART port,
+ The base port maps to the 1st UART port,
the (base port + 1) maps to the 2nd UART port, etc. */
#define NET_PORT_BASE 10001
-/* Path and Filename of configuration files */
+/* Files in SD card to store settings via web configuration */
#define SER_CONFIG_FILE "/fs/STE_SER.TXT" // for serial ports
#define NET_CONFIG_FILE "/fs/STE_NET.TXT" // for network
-/* Maximum size of server address */
+/* Maximum size of server address for web configuration */
#define MAX_SERVER_ADDRESS_SIZE 63
-/* Maximum size of IP address */
+/* Maximum size of IP address for web configuration */
#define MAX_IPV4_ADDRESS_SIZE 15
+
/* Functions and global variables declaration. */
typedef enum {