On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTIP-32 Programming Manual
Introduction
TCP/IP Networking
Programming with RTIP-32
Initialization
Berkeley Socket API
RTIP-32 Native API
Winsock 1.1 Compatibility
Diagnostics and Callbacks
Device Drivers
Recompiling RTIP-32 Driver Source Files
Using Jumbo Ethernet Frames
Encrypted (SSL/TLS) Network Communication
Demo Programs
PPP
DHCP Client
DHCP Server
FTP Client
FTP Server
TFTP Client
TFTP Server
Telnet Client
Telnet Server
Web Server
SNMP Agent
POP3 Client
SMTP Client
SNTP Client
SMB Server
SMB Client
SMB3 Server
SMB3 Client
WLAN Driver
RTIP-32 Reference Manual
RTPEG-32
RTUSB-32
|
Recompiling RTIP-32 Driver Source Files
The source code of all RTIP-32 drivers is included in directory %RTTARGET%\Driver\Rtip. To diagnose driver problems, it may be useful to recompile a driver with debug information turned on. To do so, follow these steps:
- Copy the driver's source file and header file (if any) from directory %RTTARGET%\Driver\Rtip to your project directory.
- Modify the copied driver as needed (e.g., enable debug features, if any).
- The driver sources require the additional include path %RTTARGET%\Source\Rtip.
- To compile the driver source file, define preprocessor symbol RTKMSP3=1 for Microsoft compilers or RTKBCP3=1 for Borland compilers.
- If the compiler used is Borland C++ 5.5 or higher or Borland C++ Builder 3.0 or higher (preprocessor symbol __BORLANDC__ >= 0x530), set the default structure alignment to 1 (compiler option -a1). For all other compilers, the compiler's default structure alignment must be used (8 for Microsoft, 1 for Borland).
- Compile and link the copied/modified driver source file with your application.
- Link the RTIP-32 library Rtip.lib unmodified. The local copy of the driver will automatically supersede the version in the library.
Note that the same method can be applied to recompile selected source files from directory %RTTARGET%\Source\Rtip if the RTIP-32 source code has been purchased.
Complete command lines to compile any On Time RTOS-32 source file can be found in files %RTTARGET%\Libmsvc\Makefile and %RTTARGET%\Libbc\Makefile.
Device Drivers
Using Jumbo Ethernet Frames
|