代码如下:
int main()
{
#if 0
unsigned char RecordPlay;
#endif
long lRetVal = -1;
BoardInit();
//
// Pinmux Configuration
//
PinMuxConfig();
//
// Initialising the UART terminal
//
InitTerm();
//
// Start the simplelink thread
//
lRetVal = VStartSimpleLinkSpawnTask(9);
if (lRetVal < 0)
{
ERR_PRINT(lRetVal);
LOOP_FOREVER();
}
Report("Enter.");
lRetVal = sl_Start(0, 0, 0);
if (ROLE_STA != lRetVal)
{
Report("Failed to start the device, retval[%d].", lRetVal);
return -1;
}
sl_Stop(0xff);
{
#if 0
unsigned char RecordPlay;
#endif
long lRetVal = -1;
BoardInit();
//
// Pinmux Configuration
//
PinMuxConfig();
//
// Initialising the UART terminal
//
InitTerm();
//
// Start the simplelink thread
//
lRetVal = VStartSimpleLinkSpawnTask(9);
if (lRetVal < 0)
{
ERR_PRINT(lRetVal);
LOOP_FOREVER();
}
Report("Enter.");
lRetVal = sl_Start(0, 0, 0);
if (ROLE_STA != lRetVal)
{
Report("Failed to start the device, retval[%d].", lRetVal);
return -1;
}
sl_Stop(0xff);
}
代码运行到sl_Start不能继续执行,卡死在这里