Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHey Gizmo did you get your code working yet?
I know its an old topic but i need a code like yours.. can you maybe give me a little explanation of what your doing in this code? // Init the ringbuffers memset(&UART[UART_Number].RX_RingBuffer[0],0x00,UART_RX_RINGBUFFER_SIZE); UART[UART_Number].Rx_Counter = 0; UART[UART_Number].Rx_Rd_Index = 0; UART[UART_Number].Rx_Wr_Index = 0; UART[UART_Number].Rx_Buffer_Overflow = 0; memset(&UART[UART_Number].TX_RingBuffer[0],0x00,UART_TX_RINGBUFFER_SIZE); UART[UART_Number].Tx_Counter = 0; UART[UART_Number].Tx_Rd_Index = 0; UART[UART_Number].Tx_Wr_Index = 0; i kinda lost it in this part of code.. I'm just a newbie so i would apreciate the help when i try to build this i got a few errors and i got all of them away except the ones related to this piece of code..? is it something like a struct or a union? kind regards