This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BOOSTXL-CC3135: Porting host driver query

Part Number: BOOSTXL-CC3135
Other Parts Discussed in Thread: CC3135

Hi,

While porting host driver to host MCU iMX RT1050, we are using porting files (user.h,cc_pal.c, cc_pal.h modified for MSP432) as an example.

In the definition of spi_open, a function wifi_init is used. We are using uart instead of spi, do we need to implement similar functionality. 

Kindly explain the functionality, in case we need to implement it. Following is the patch of code i was referring to. 

void WiFi_init()
{
/* We need to have at least one WiFi module. */
if(WiFi_count == 0)
{
return;
}

curDeviceConfiguration = (SIMPLELINKWIFI_HWAttrsV1*) WiFi_config[0].hwAttrs;
}

/****************************************************************************
LOCAL FUNCTION DEFINITIONS
****************************************************************************/
Fd_t spi_Open(char *ifName,
unsigned long flags)
{
void *lspi_hndl;
SPI_Params SPI_Config;

/* Initialize the WiFi driver */
WiFi_init();

/* If we could not initialize the device bail out with an error code */
if(curDeviceConfiguration == NULL)
{
return (-1);
}

Regards,

Aniket.

  • Hi Aniket,

    WiFi_init() is simply a helper function to retrieve the interface settings for the CC3135 in the pal. You are not needed to provide that function. Indeed, the CC3235 does not use this function in its porting layer.

    Instead of using WiFi_init() to provide the interface parameters such as baudrate, pin config, etc. you can provide them to the porting layer as you see fit.

    Let me know if you need more clarification or have further questions on porting the CC3135 host driver.

    Regards,

    Michael