git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6775 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-03-16 10:13:44 +00:00
parent 422c66c794
commit c476cc79ff
1 changed files with 8 additions and 8 deletions

View File

@ -74,36 +74,36 @@ static msg_t get(void *ip) {
return fgetc(stdin); return fgetc(stdin);
} }
static msg_t putt(void *ip, uint8_t b, systime_t time) { static msg_t putt(void *ip, uint8_t b, systime_t timeout) {
(void)ip; (void)ip;
(void)time; (void)timeout;
fputc(b, stdout); fputc(b, stdout);
fflush(stdout); fflush(stdout);
return RDY_OK; return RDY_OK;
} }
static msg_t gett(void *ip, systime_t time) { static msg_t gett(void *ip, systime_t timeout) {
(void)ip; (void)ip;
(void)time; (void)timeout;
return fgetc(stdin); return fgetc(stdin);
} }
static size_t writet(void *ip, const uint8_t *bp, size_t n, systime_t time) { static size_t writet(void *ip, const uint8_t *bp, size_t n, systime_t timeout) {
size_t ret; size_t ret;
(void)ip; (void)ip;
(void)time; (void)timeout;
ret = fwrite(bp, 1, n, stdout); ret = fwrite(bp, 1, n, stdout);
fflush(stdout); fflush(stdout);
return ret; return ret;
} }
static size_t readt(void *ip, uint8_t *bp, size_t n, systime_t time) { static size_t readt(void *ip, uint8_t *bp, size_t n, systime_t timeout) {
(void)ip; (void)ip;
(void)time; (void)timeout;
return fread(bp, 1, n, stdin); return fread(bp, 1, n, stdin);
} }