diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-18 18:22:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-18 18:22:06 +0000 |
commit | 13ecead34f2276518c3d4fe9a3b99799a147f429 (patch) | |
tree | 9e60886f83d6d329848e95ffe76ad6c78cbba115 /nuttx/configs/z80sim/src | |
parent | 8951e208d178ae12913a1598d887555d736da978 (diff) | |
download | px4-nuttx-13ecead34f2276518c3d4fe9a3b99799a147f429.tar.gz px4-nuttx-13ecead34f2276518c3d4fe9a3b99799a147f429.tar.bz2 px4-nuttx-13ecead34f2276518c3d4fe9a3b99799a147f429.zip |
Still detangling lowuart stuff
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@709 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/z80sim/src')
-rw-r--r-- | nuttx/configs/z80sim/src/z80_lowputc.c | 8 | ||||
-rw-r--r-- | nuttx/configs/z80sim/src/z80_serial.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/configs/z80sim/src/z80_lowputc.c b/nuttx/configs/z80sim/src/z80_lowputc.c index 4996272f9..269d37f92 100644 --- a/nuttx/configs/z80sim/src/z80_lowputc.c +++ b/nuttx/configs/z80sim/src/z80_lowputc.c @@ -69,13 +69,13 @@ ********************************************************************************/ /******************************************************************************** - * Name: up_lowputc + * Name: z80_lowputc * * Data sent to port 0xbe are echoed on stdout by the simulation * ********************************************************************************/ -void up_lowputc(char ch) __naked +void z80_lowputc(char ch) __naked { _asm ld hl, #2 @@ -87,13 +87,13 @@ void up_lowputc(char ch) __naked } /******************************************************************************** - * Name: up_lowgetc + * Name: z80_lowgetc * * Data from stdin can be received on port 0xbe in the simulation * ********************************************************************************/ -char up_lowgetc(void) __naked +char z80_lowgetc(void) __naked { _asm in a, (0xbe) diff --git a/nuttx/configs/z80sim/src/z80_serial.c b/nuttx/configs/z80sim/src/z80_serial.c index 42b0eecc1..974b51b8f 100644 --- a/nuttx/configs/z80sim/src/z80_serial.c +++ b/nuttx/configs/z80sim/src/z80_serial.c @@ -227,7 +227,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) static int up_receive(struct uart_dev_s *dev, uint32 *status) { - uint8 ch = up_lowgetc(); + uint8 ch = z80_getputc(); *status = 0; return ch; } @@ -267,7 +267,7 @@ static boolean up_rxavailable(struct uart_dev_s *dev) static void up_send(struct uart_dev_s *dev, int ch) { - up_lowputc(ch); + z80_lowputc(ch); } /**************************************************************************** @@ -358,7 +358,7 @@ void up_serialinit(void) int up_putc(int ch) { - up_lowputc(ch); + z80_lowputc(ch); return 0; } |