Merge pull request #121 from oliverschmidt/master
Several minor adjustments.
This commit is contained in:
commit
c7f986faf5
|
@ -70,9 +70,9 @@ static struct ctk_button savebutton =
|
|||
static struct ctk_button cancelbutton =
|
||||
{CTK_BUTTON(20, 13, 6, "Cancel")};
|
||||
|
||||
PROCESS(dhcp_process, "IP Config");
|
||||
PROCESS(ipconfig_process, "IP config");
|
||||
|
||||
AUTOSTART_PROCESSES(&dhcp_process);
|
||||
AUTOSTART_PROCESSES(&ipconfig_process);
|
||||
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
static char *
|
||||
|
@ -170,15 +170,15 @@ static void
|
|||
app_quit(void)
|
||||
{
|
||||
ctk_window_close(&window);
|
||||
process_exit(&dhcp_process);
|
||||
process_exit(&ipconfig_process);
|
||||
LOADER_UNLOAD();
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
PROCESS_THREAD(dhcp_process, ev, data)
|
||||
PROCESS_THREAD(ipconfig_process, ev, data)
|
||||
{
|
||||
PROCESS_BEGIN();
|
||||
|
||||
ctk_window_new(&window, 29, 14, "IP Config");
|
||||
ctk_window_new(&window, 29, 14, "IP config");
|
||||
|
||||
CTK_WIDGET_ADD(&window, &requestbutton);
|
||||
CTK_WIDGET_ADD(&window, &statuslabel);
|
||||
|
@ -200,7 +200,7 @@ PROCESS_THREAD(dhcp_process, ev, data)
|
|||
ctk_window_open(&window);
|
||||
|
||||
/* Allow resolver to set DNS server address. */
|
||||
process_post(PROCESS_CURRENT(), PROCESS_EVENT_MSG, NULL);
|
||||
PROCESS_PAUSE();
|
||||
|
||||
dhcpc_init(uip_ethaddr.addr, sizeof(uip_ethaddr.addr));
|
||||
|
||||
|
|
|
@ -51,9 +51,9 @@ ifdef PLATFORM_BUILD
|
|||
CONTIKI_TARGET_SOURCEFILES += dll-loader.c
|
||||
CFLAGS += -DPLATFORM_BUILD -DWITH_GUI -DWITH_LOADER_ARCH -DAUTOSTART_ENABLE
|
||||
LDFLAGS += -Wl,--out-implib=contiki-main.$(TARGET).a \
|
||||
-u _cfs_open -u _cfs_opendir -u _uiplib_ipaddrconv
|
||||
-u _cfs_open -u _cfs_opendir -u _uiplib_ip4addrconv
|
||||
LINKFLAGS = -implib:contiki-main.$(TARGET).a $(OBJECTDIR)/program-handler.o \
|
||||
-include:_cfs_open -include:_cfs_opendir -include:_uiplib_ipaddrconv
|
||||
-include:_cfs_open -include:_cfs_opendir -include:_uiplib_ip4addrconv
|
||||
else
|
||||
CONTIKI_TARGET_SOURCEFILES += unload.c
|
||||
endif
|
||||
|
|
|
@ -50,7 +50,7 @@ typedef unsigned short uip_stats_t;
|
|||
|
||||
#define UIP_CONF_MAX_CONNECTIONS 40
|
||||
#define UIP_CONF_MAX_LISTENPORTS 40
|
||||
#define UIP_CONF_BUFFER_SIZE 420
|
||||
#define UIP_CONF_BUFFER_SIZE 1514
|
||||
#define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
|
||||
#define UIP_CONF_TCP_SPLIT 1
|
||||
#if UIP_CONF_IPV6
|
||||
|
@ -74,10 +74,10 @@ typedef unsigned short uip_stats_t;
|
|||
|
||||
#include "ctk/ctk-console.h"
|
||||
|
||||
#define CH_ULCORNER 0xDA
|
||||
#define CH_URCORNER 0xBF
|
||||
#define CH_LLCORNER 0xC0
|
||||
#define CH_LRCORNER 0xD9
|
||||
#define CH_ULCORNER '+'
|
||||
#define CH_URCORNER '+'
|
||||
#define CH_LLCORNER '+'
|
||||
#define CH_LRCORNER '+'
|
||||
#define CH_ENTER '\r'
|
||||
#define CH_DEL '\b'
|
||||
#define CH_CURS_UP -1
|
||||
|
|
|
@ -113,7 +113,7 @@ console_init(void)
|
|||
atexit(console_exit);
|
||||
|
||||
memset(blank, ' ', sizeof(blank));
|
||||
memset(hline, 0xC4, sizeof(hline));
|
||||
memset(hline, '-', sizeof(hline));
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
|
@ -264,7 +264,7 @@ cvline(unsigned char length)
|
|||
y = wherey();
|
||||
|
||||
for(i = 0; i < length; ++i) {
|
||||
cputcxy(x, (unsigned char)(y + i), (char)0xB3);
|
||||
cputcxy(x, (unsigned char)(y + i), '|');
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Reference in a new issue