aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/simulator/console.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-02-02 11:28:02 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-02-02 11:28:02 +0000
commit07fc57b2c8e748cacfc80a319127224dbba4c3a5 (patch)
tree8f581cab2498fcc5cf449a1b07fb519b83bd04f0 /os/hal/ports/simulator/console.c
parente3498cf0825e1ca9f5cbad0cee4cdb090964baf2 (diff)
downloadChibiOS-07fc57b2c8e748cacfc80a319127224dbba4c3a5.tar.gz
ChibiOS-07fc57b2c8e748cacfc80a319127224dbba4c3a5.tar.bz2
ChibiOS-07fc57b2c8e748cacfc80a319127224dbba4c3a5.zip
Simulator compiles, to be tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10078 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/simulator/console.c')
-rw-r--r--os/hal/ports/simulator/console.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/ports/simulator/console.c b/os/hal/ports/simulator/console.c
index 1be915a66..c4ff21f9d 100644
--- a/os/hal/ports/simulator/console.c
+++ b/os/hal/ports/simulator/console.c
@@ -43,7 +43,7 @@ BaseChannel CD1;
/* Driver local functions. */
/*===========================================================================*/
-static size_t write(void *ip, const uint8_t *bp, size_t n) {
+static size_t _write(void *ip, const uint8_t *bp, size_t n) {
size_t ret;
(void)ip;
@@ -53,14 +53,14 @@ static size_t write(void *ip, const uint8_t *bp, size_t n) {
return ret;
}
-static size_t read(void *ip, uint8_t *bp, size_t n) {
+static size_t _read(void *ip, uint8_t *bp, size_t n) {
(void)ip;
return fread(bp, 1, n, stdin);
}
-static msg_t put(void *ip, uint8_t b) {
+static msg_t _put(void *ip, uint8_t b) {
(void)ip;
@@ -69,14 +69,14 @@ static msg_t put(void *ip, uint8_t b) {
return MSG_OK;
}
-static msg_t get(void *ip) {
+static msg_t _get(void *ip) {
(void)ip;
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 time) {
(void)ip;
(void)time;
@@ -86,7 +86,7 @@ static msg_t putt(void *ip, uint8_t b, systime_t time) {
return MSG_OK;
}
-static msg_t gett(void *ip, systime_t time) {
+static msg_t _gett(void *ip, systime_t time) {
(void)ip;
(void)time;
@@ -94,7 +94,7 @@ static msg_t gett(void *ip, systime_t time) {
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 time) {
size_t ret;
(void)ip;
@@ -105,7 +105,7 @@ static size_t writet(void *ip, const uint8_t *bp, size_t n, systime_t time) {
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 time) {
(void)ip;
(void)time;
@@ -114,8 +114,8 @@ static size_t readt(void *ip, uint8_t *bp, size_t n, systime_t time) {
}
static const struct BaseChannelVMT vmt = {
- write, read, put, get,
- putt, gett, writet, readt
+ _write, _read, _put, _get,
+ _putt, _gett, _writet, _readt
};
/*===========================================================================*/