Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

\Micrium\Software\uC-TCPIP
\Micrium\Software\uC-TCPIP\Dev\WiFi\<device_name>
\Micrium\Software\uC-TCPIP\Dev\WiFi\Manager\Generic

...

Since that, in this section, the example project we want to run is with a WiFi device, the configuration that interests us is beneath the section "EXAMPLE “EXAMPLE WIFI DEVICE CONFIGURATION"CONFIGURATION”.

Next, you need to modify the WiFi device configuration template as needed by your application. Refer to section Memory Configuration and  Wireless Interface Configuration for all the details on the parameters to configure.

...

As previously mentionned, the µC/TCP-IP static configurations are located in the net_cfg.h file. For this getting started guide, the template file without modification should be enough to get you started. Depending on your Interface device configuration, it is possible that you would need to ajust the µC/TCP-IP queues' configurations as listed in Listing - µC/TCP-IP Static Configuration Modifications. Refer to section Static Stack Configuration  for more details on the TCP-IP queues's configurations.

...

The net_cfg.c file includes the three network task configurations. You will need to defined the priority of each of those tasks. The priorities will depend on the other tasks already present in your applicaiton. Refer to section Network Tasks Configuration for all the details on configuring the network tasks and their priority. 

Example Project Setup

The purpose of this example project is to setup a network host on the target board to allow it to communicate with other hosts on the network. Figure - Example Application Setup shows the project test setup for a target board with a WiFi interface. The target board has WiFi interface that allows the board to connect to a WiFi access point. In this example, a router  acts as the access point and allows the PC to be on the same network as the board. The PC’s IP address is set to 10.10.10.111 and the target’s addresses wil be configure to 10.10.10.64 as it will be shown in the next section Running the Example Application.

...

After you have successfully completed and run the example project, you can use it as a starting point to run other µC/TCP-IP demos you may have purchased.

Adding

...

Additional includes

Since the µC/TCP-IP module was added to the example project, the following include must be added to the app.c file :

#include  <KAL/kal.h>
#include <Source/net.h>
#include <net_dev_????.h>
#include <net_wifi_mgr.h>
#include <net_dev_cfg.h>
#include <net_bsp.h>

...