Subversion Repositories NaviCtrl

Rev

Rev 378 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 378 Rev 380
Line 11... Line 11...
11
        f->getvicsource = getvicsource;
11
        f->getvicsource = getvicsource;
12
        fifo_purge(f);
12
        fifo_purge(f);
13
        return(1);
13
        return(1);
14
}
14
}
Line 15... Line 15...
15
 
15
 
16
u8 fifo_put (fifo_t *f, const u8 data)
16
u8 fifo_put(fifo_t *f, const u8 data)
17
{
17
{
18
        if(f->buffer == 0) return(0);
18
        if(f->buffer == 0) return(0);
19
        if (f->count >= f->size) return(0);     // return 0 in case of FIFO overflow.
19
        if (f->count >= f->size) return(0);     // return 0 in case of FIFO overflow.
20
        if(f->putvicsource != NO_ITLine) VIC_ITCmd(f->putvicsource, DISABLE);
20
        if(f->putvicsource != NO_ITLine) VIC_ITCmd(f->putvicsource, DISABLE);