Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: lwIP_Demo_Rowley_ARM7 and CDC byte receiving
PostPosted: Thu Aug 14, 2008 8:40 am 
Offline

Joined: Wed Aug 13, 2008 8:45 pm
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: