Rev 686 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 686 | Rev 895 | ||
---|---|---|---|
Line 502... | Line 502... | ||
502 | } |
502 | } |
503 | 503 | ||
504 | UBYTE zx_fifo_isfull(void) |
504 | UBYTE zx_fifo_isfull(void) |
505 | { |
505 | { |
506 | //always one byte unused, to distinguish between totally full fifo and empty fifo |
506 | //always one byte unused, to distinguish between totally full fifo and empty fifo |
507 | return( (zx_fifo_in_ptr+1)==zx_fifo_out_ptr ); |
507 | return( ((UBYTE)(zx_fifo_in_ptr+1))==zx_fifo_out_ptr ); |
508 | } |
508 | } |
509 | 509 | ||
510 | UBYTE zx_fifo_isempty(void) |
510 | UBYTE zx_fifo_isempty(void) |
511 | { |
511 | { |
512 | return (zx_fifo_in_ptr==zx_fifo_out_ptr); |
512 | return (zx_fifo_in_ptr==zx_fifo_out_ptr); |