SWRA704 June   2021 CC3120 , CC3130 , CC3135

 

  1.   Trademarks
  2. 1Introduction
  3. 2Porting the Host Driver
    1. 2.1 Porting Layer Files
    2. 2.2 Driver Enable/Disable
    3. 2.3 SPI Interface
      1. 2.3.1 Hardware Setup and Configuring Clocks
    4. 2.4 Memory Management
    5. 2.5 OS Abstraction: FreeRTOS
    6. 2.6 Timestamp Mechanism
    7. 2.7 Asynchronous Event Handler Routines
  4. 3Tips for Porting
    1. 3.1 Hardware Setup
    2. 3.2 Servicepack
    3. 3.3 Starting the Wi-Fi Driver in the Application Code
    4. 3.4 Configuring Clocks on the STM32L4
    5. 3.5 Terminal I/O Printing
    6. 3.6 Location of the Host Driver and Porting Files
    7. 3.7 Updating to the Latest Host Driver Version
  5. 4References
  6. 5License Information

Porting Layer Files

The SimpleLink Wi-Fi host driver contains a porting layer that should be used as the adaptation layer for the host platform. In the SimpleLink Wi-Fi CC32xx SDK, this porting layer is implemented for the on-chip ARM M4 application microcontroller. The porting layer distributed in the and SimpleLink SDK Wi-Fi Plugin is implemented for other microcontrollers in the SimpleLink platform family.

This porting layer is in the folder source/ti/drivers/net/wifi/porting, and consists of user.h, cc_pal.c, and cc_pal.h. The user.h is a required file and acts as the interface between the SimpleLink Wi-Fi host driver APIs and the target platform. The cc_pal files contain the target-specific implementations used by user.h. The following sections will walk through each of the requirements in detail for the STMicrocontroller STM32L4xxx target platform and FreeRTOS.

The porting layer in the Wi-Fi Plugin also includes the file SIMPLELINKWIFI.h, which can be ignored for non-TI applications.

GUID-3F84775A-EC42-4C3E-92D8-2CDECA2C97BB-low.gif

Since the Wi-Fi host driver is executed on the host MCU, the host driver source code (including porting files) should be added to a STM32 application. The edits to the porting files discussed in this guide use STM32L4xx HAL APIs and FreeRTOS APIs provided in the STM32Cube software packages.