MDK-ARM Keil, MDK-ARM Datasheet - Page 110

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
110
We must also replace the Ethernet driver with a serial driver. Serial drivers for
supported microcontrollers are located in
The serial driver contains four functions. The first, init_serial(), initializes the
selected UART to a defined baud rate. The next two functions, com_getchar()
and com_putchar(), are used to read and write a single character to the UART.
These are both interrupt-driven functions, whose purpose is to ensure that there is
no loss of data at high data rates. The final function is com_tx_active(), which is
used to check if the UART is transmitting data.
Once the serial driver has been added, we can use RL-TCPnet in exactly the
same way as we would use an Ethernet-based system. However, there are some
dedicated SLIP and PPP functions, which are used to establish the serial
connection. If the RL-TCPnet application is acting as a client, it must actively
open a connection to the server. In this case there are two functions,
ppp_connect() and slip_connect(), which dial up a remote system.
ppp_listenconnect ("024345667", "<user>", "<password>");
slip_connect ("024345667");
In the case of the PPP protocol, we must also pass a username and a password.
For a server application, there are two listen functions that initialize the
connection and wait for a client to connect.
ppp_listen();
Once connected, we can monitor the state of the SLIP or PPP link using the two
functions below:
ppp_is_up();
Both these functions return TRUE if the serial link is working, or FALSE if it has
been lost. Once we have finished with the serial connection, it must be closed
using the either of the functions below:
ppp_close();
Exercise: PPP Connection
This exercise demonstrates replacing the Ethernet driver with a serial driver
configured for the Point-to-Point protocol.
slip_listen();
slip_is_up();
slip_close();
C:\KEIL\ARM\RL\TCPNET\DRIVERS
Chapter 4. RL-TCPnet Introduction
.

Related parts for MDK-ARM