Pic32 example in c

Status
Not open for further replies.

laxmid

New Member
Hi,

can you please help me to code using pic32?

send me an example using pic32.

Thanks & Regards,
Laxmi
 
Here you go,

Code:
unsigned char GetFifo(void){
unsigned char chr;
    while(FifoStart==FifoEnd);      //if fifo empty then wait
    chr=*FifoStart++;
    if(FifoStart==FifoBuffer+16)    //wrapped?
        FifoStart=FifoBuffer;       //yes
    return(chr);
}

BTW, don't double post.

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…