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.