RTOS_MSPM0  1.1
ECE445M starter code
Macros | Functions
RTOS_FIFO.h File Reference

Provide functions for a first in first out queue. More...

Go to the source code of this file.

Macros

#define TXFIFOSIZE   64
 TXFIFOSIZE the size of the transmit FIFO, which can hold 0 to TXFIFOSIZE-1 elements. The size must be a power of 2.
 
#define RXFIFOSIZE   16
 RXFIFOSIZE the size of the receive FIFO, which can hold 0 to RXFIFOSIZE-1 elements The size must be a power of 2.
 
#define AddIndexFifo(NAME, SIZE, TYPE, SUCCESS, FAIL)
 

Functions

void TxFifo_Init (void)
 Initialize FIFO. More...
 
int TxFifo_Put (char data)
 Put FIFO. More...
 
char TxFifo_Get (void)
 Get FIFO. More...
 
uint32_t TxFifo_Size (void)
 number of elements in FIFO More...
 
void RxFifo_Init (void)
 Initialize FIFO. More...
 
int RxFifo_Put (char data)
 Put FIFO. More...
 
char RxFifo_Get (void)
 Get FIFO. More...
 
uint32_t RxFifo_Size (void)
 number of elements in FIFO More...
 

Detailed Description

Provide functions for a first in first out queue.

Runs on any Microcontroller. Provide functions that initialize a FIFO, put data in, get data out, and return the current size. The file includes two FIFOs using index implementation.

Version
ECE445M v1.0
Author
Daniel Valvano and Jonathan Valvano
Warning
AS-IS
Note
For more information see http://users.ece.utexas.edu/~valvano/
Date
June 20, 2025