source
x
user.h
ti
drivers
net
wifi
x
cc_pal.c
x
cc_pal.h
porting
Create Platform Porting File
233
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
Porting the Host Driver
17.2 Create Platform Porting File
The first step is to create a user.h file, which is tailored to the specific requirements of the target platform.
The file must be under the porting folder, as shown in
.
Figure 17-1. User.h Location
As a basis for this file, TI recommends using one of the porting layers provided with the SimpleLink Wi-Fi
SDKs and plug-ins.
17.3 Select Capabilities Set
The SimpleLink host driver supports different predefined sets of capabilities that can fit most target
platforms:
•
SL_TINY – Provides limited functionality set, compatible for platforms with very limited resources.
•
SL_FULL – Provides access to all SimpleLink functionality
TI recommends trying and choosing one of these predefined capabilities set before building a customized
set. To choose one of these sets, the set name must be defined in user.h (only one of them). For
example:
#define
SL_TINY
If any of these predefined sets do not provide the required functionality, it is possible to tailor the driver in
a more flexible way. This is done by enabling or disabling API groups (silos) and setting the APIs level.
The levels of the APIs are divided into two categories: normal and extended.
describes the
available groups and their relative macros.