Commit graph

72 commits

Author SHA1 Message Date
oliverschmidt
32ae3317a6 Several minor changes and reformatting. 2007-12-06 22:09:56 +00:00
oliverschmidt
171c84a9d9 Added some info on the win32 platform. 2007-11-28 17:12:11 +00:00
oliverschmidt
2e1b1acfaa Now that there's a Cygwin based build there's no more need to drive people to use Visual Studio - if they aren't already experienced and want to use it. 2007-11-28 16:51:17 +00:00
oliverschmidt
75c49f8d7b Added CTK_CONF_HYPERLINK in order to keep them ;-)) 2007-11-28 16:41:35 +00:00
oliverschmidt
e5f7fc8594 Made cfs implementation adhere to (new) cfs interface and streamlined implementation. 2007-11-22 12:03:54 +00:00
oliverschmidt
1c0aa8a0e4 Source reformatting only. 2007-11-18 13:24:34 +00:00
oliverschmidt
12c6074a75 Moved logically empty files to backyard. 2007-11-18 02:39:10 +00:00
oliverschmidt
c1e1249bc2 Removed compiler warnings. 2007-11-18 02:36:07 +00:00
oliverschmidt
6ab83029c3 Source reformatting only. 2007-11-18 02:17:33 +00:00
oliverschmidt
86a745f923 Removed compiler warnings. 2007-11-18 02:16:57 +00:00
oliverschmidt
d11e1e6fd2 Removed reference to logically empty file. 2007-11-18 01:13:56 +00:00
oliverschmidt
6d6edb418b Declare strcasecmp here as it isn't part of C99. 2007-11-18 00:55:19 +00:00
oliverschmidt
90edc773b0 Introduced C99 sized int types. 2007-11-17 22:40:33 +00:00
oliverschmidt
e54fb521e2 The Visual C++ project file is the first to go without service.c . 2007-05-23 23:42:42 +00:00
oliverschmidt
a300c31d7e Removed explicit shut down of network driver as it easily results in endless recursions on errors while network driver initialisation. 2007-05-23 22:01:14 +00:00
oliverschmidt
a22d2ecfef Changed packet drivers from services to plain processes.
Now tcpip_output() is a function pointer that is supposed to be set via the macro tcpip_set_outputfunc(). Packet drivers do so on process startup.

Thus if there are several packet drivers in a Contiki system the one started last is the one actually used. This behaviour is especially useful for the 'IP forwarding' "meta" packet driver.
2007-05-20 21:41:31 +00:00
oliverschmidt
0e023b328a Changed Contiki File System (cfs) from a service to a plain library.
This change means that one needs to select _ONE_ cfs implementation at Contiki library link time. But this doesn't appear to be an issue as all platforms have their "favorite" implementation anyway.
2007-05-19 21:37:54 +00:00
oliverschmidt
d4528e427f Changed Contiki File System (cfs) from a service to a plain library.
This change means that one needs to select _ONE_ cfs implementation at Contiki library link time. But this doesn't appear to be an issue as all platforms have their "favorite" implementation anyway.
2007-05-19 21:16:08 +00:00
oliverschmidt
1e372f13c6 Added new include directory to VC++ project files. 2007-05-19 13:38:25 +00:00
oliverschmidt
eaff19200b Added new header file to VC++ project file. 2007-05-19 13:37:16 +00:00
oliverschmidt
237b1617b5 Factored out setup directory search path for source files into Makefile.include.
- Search target specific directories before CPU specific directories.
- Search CPU specific directories before generic directories.

Note: I checked several builds but nevertheless one or the other might need some additional adjustsments. Sorry for the inconvenience.
2007-05-13 08:41:11 +00:00
oliverschmidt
4fd1e3ece0 Added signed 32 bit data type. 2007-05-12 20:58:12 +00:00
oliverschmidt
42d0fe9c18 Very minor beautification. 2007-04-21 22:17:22 +00:00
oliverschmidt
3b7c27b9e9 Use generally lowercase names for functin variables. 2007-04-21 15:11:21 +00:00
oliverschmidt
dba1672323 Make use of __inline (just as making use of __fastcall) in order to check that CC_CONF_INLINE (just as CC_CONF_FASTCALL) are used in a syntactically correct manner. 2007-04-18 21:36:44 +00:00
oliverschmidt
33eeb8ccbb - Switched from from a CTK draw service to a statically linked CTK draw implementation.
- Workarounded the following CTK glitch:

ctk.c calls ctk_arch_keyavail() and ctk_arch_getkey() and needs therefore appropriate declarations (or macros) but it doesn't include a ctk_arch.h or alike to bring those in. So it's necessary to bring those declarations in via contiki-conf.h.

But ctk_arch_getkey() is supposed to return a ctk_arch_key_t - and this typedef'ed in ctk.h which means that ctk.h would need to be included in contiki-conf.h before declaring ctk_arch_getkey().

This IS rather undesirable so the current workaround is to declare ctk_arch_getkey() as returning a char - this is btw done similiar in platform/gtk as well. See ctk/ctk-gtksim.h:

guint ctk_arch_getkey(void);
2007-04-15 13:30:16 +00:00
oliverschmidt
f16d041476 Provided a meaningful clock_time() implementation - which btw. makes the Cygwin variant finally work :-) 2007-04-14 23:23:15 +00:00
oliverschmidt
3a8fb3ad9f Initializing the console Just-In-Time on CTK startup and starting up the WinPcap before CTK allows WinPcap to print initialization errors (especially a missing command line arg) without clearing the shell output. 2007-04-14 14:57:19 +00:00
oliverschmidt
c1b0a3f0d3 Cygin (in opposite to VC++) doesn't call exit() - and thus our atexit function - on Ctrl-C. Therefore we install an explict ConsoleCtrlHandler which calls exit(). For the sake of simplicity it's not #ifdef'ed _CYGWIN_. 2007-04-14 14:28:19 +00:00
oliverschmidt
766878f5c9 Added the shell server to the Win32 platform. 2007-04-13 21:55:55 +00:00
oliverschmidt
59c2158274 Removed minor redundancy. 2007-04-13 21:47:09 +00:00
oliverschmidt
7aae71934d Providing a dummy program_handler_load() made made the telnet server work without program-handler but on the other hand incompatible with an exsistng program handler :-(
Therefore I replaced that hack with a clean CONF macro, which by the way really removes the run() and exec() functionality instead of just implementing it empty.
2007-04-13 21:04:52 +00:00
oliverschmidt
36f6efd21c Build the web server with CTK support. 2007-04-11 01:08:46 +00:00
oliverschmidt
743ec10b21 Added copyright notice. 2007-04-11 01:07:47 +00:00
oliverschmidt
902e2226b6 Use the cpu/native/net WinPcap driver for platform/win32 as well. 2007-04-11 00:33:08 +00:00
oliverschmidt
0b140bdec4 Integrated WinPcap driver into platform/win32 Cygwin build. 2007-04-11 00:32:31 +00:00
oliverschmidt
ee6180dec6 Use the cpu/native/net WinPcap driver for platform/win32 as well. 2007-04-11 00:17:25 +00:00
oliverschmidt
38c3950d66 Link WinPcap packet driver statically into the main binary in preparation of removing the services. 2007-04-09 11:57:15 +00:00
oliverschmidt
9cc1871810 Fixed stupid bug. I have no idea how I didn't run into this one for months ! The development platforms have 400-600 bytes buffer size. So every incoming 1500 packet overwrote ~ 1000 bytes of uIP variables. And this happens very easily as every packet coming in for the Windows IP stack is seen by uIP as well (and discarded because of the wrong IP address). 2007-04-08 20:06:56 +00:00
oliverschmidt
d0e75920f1 Moved VC++ project files into vcproj subdirectory. 2007-04-06 23:53:59 +00:00
oliverschmidt
5653794966 Allow to build platform/win32 using Cygwin and the Contiki build system. The WinPcap driver is missing as it is about to be changed from dynamic to static loading anyway. 2007-04-06 23:09:32 +00:00
oliverschmidt
5532354cd8 Now that Contiki has a htonl() we need the same workaround here that we already have for htons(). 2007-04-06 22:36:31 +00:00
oliverschmidt
52da435b27 Made import library consistent with header file. 2007-03-27 20:01:35 +00:00
oliverschmidt
fe0e9fde11 Updated VC++ project file. 2007-03-27 19:59:06 +00:00
oliverschmidt
75f4408119 Autoload the WinPcap driver now that I consider it fully functional. 2007-01-03 10:36:58 +00:00
oliverschmidt
3229e5fa9d Minor source consistency improvement. 2006-12-29 00:06:32 +00:00
oliverschmidt
8b319eef83 Updated/improved documentation. 2006-10-14 23:48:51 +00:00
oliverschmidt
ca05ae80a5 Added automatic detection of Ethernet address - this makes the WinPcap packet driver service kind of working :-)
First the WinPcap library is used to enumerate the existing interfaces to make sure that only those are taken into account which the WinPcap library is able to actually work with. Their IP addresses are compaired against the one on the cmdline to find the desired interface.

Then the IP Helper API is used to enumerate the existing adapters to find out the the Ethernet address of the desired adapter. This Ethernet address is then used by Contiki too.
2006-10-06 22:39:31 +00:00
oliverschmidt
50fda17c3e Moved error_exit() to the Win32 Contiki Core. 2006-10-03 11:27:51 +00:00
oliverschmidt
58be00541d Added the CCIF (Contiki Core InterFace) declarations necessary for fatal error display on Win32. 2006-10-03 00:30:42 +00:00