Rev 362 | Rev 380 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 362 | Rev 378 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "fifo.h" |
1 | #include "fifo.h" |
2 | #include "main.h" |
2 | #include "main.h" |
- | 3 | #include "uart1.h" |
|
Line 3... | Line 4... | ||
3 | 4 | ||
4 | u8 fifo_init (fifo_t* f, u8* buffer, const u16 size, u16 putvicsource, u16 getvicsource) |
5 | u8 fifo_init (fifo_t* f, u8* buffer, const u16 size, u16 putvicsource, u16 getvicsource) |
5 | { |
6 | { |
6 | if(f == NULL) return(0); |
7 | if(f == NULL) return(0); |
Line 36... | Line 37... | ||
36 | return(1); |
37 | return(1); |
37 | } |
38 | } |
Line 38... | Line 39... | ||
38 | 39 | ||
39 | u8 fifo_get_wait (fifo_t *f, u8 *pdata) |
40 | u8 fifo_get_wait (fifo_t *f, u8 *pdata) |
40 | { |
41 | { |
41 | while (!f->count && (SD_WatchDog)); |
- | |
42 | 42 | while (!f->count); |
|
43 | return fifo_get(f, pdata); |
43 | return fifo_get(f, pdata); |
Line 44... | Line 44... | ||
44 | } |
44 | } |
45 | 45 |