|
Hi,
I am new to AT91 and want to use FreeRTOS on a AT91SAM7x256.
I try to modify the demo code to have a simple ping-pong over the CDC.
I add the following lines to several files :
* lwIP_Demo_Rowley_ARM7\USB\USB-CDC.c:262
unsigned vUSBReceiveByte( portCHAR * cByte )
{
if ( uxQueueMessagesWaiting( xRxCDC ) != 0 )
{
xQueueReceive( xRxCDC, cByte, usbNO_BLOCK );
return 1;
}
return 0;
}
/*------------------------------------------------------------*/
* lwIP_Demo_Rowley_ARM7\USB\USB-CDC.h:99
unsigned vUSBReceiveByte( portCHAR * cByte );
* lwIP_Demo_Rowley_ARM7\main.c:313
if ( vUSBReceiveByte( &cTxByte ))
{
vUSBSendByte( cTxByte );
}
With this code the OS seems to be completly frozen.
I hope that some people on this forum use FreeRTOS.
Has someone experience or a working code around send byte over the CDC layer ?
Thanks in advance.
Steve
P.S. : I use the V5.0.2 of FreeRTOS.
|