summaryrefslogtreecommitdiff
path: root/nuttx/drivers
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-09 17:34:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-09 17:34:53 +0000
commit248fef86608d465419947c9f442ecd5d88b60df8 (patch)
tree4fef4188983666292e6f47cc0833655f349c20f7 /nuttx/drivers
parent9085db20b3c7ce781f807e5570ed5c8dc84a66d7 (diff)
downloadpx4-nuttx-248fef86608d465419947c9f442ecd5d88b60df8.tar.gz
px4-nuttx-248fef86608d465419947c9f442ecd5d88b60df8.tar.bz2
px4-nuttx-248fef86608d465419947c9f442ecd5d88b60df8.zip
configs/xtrs/nsh and pashello now use kconfig-frontends and build Windows native
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5422 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rw-r--r--nuttx/drivers/loop.c2
-rw-r--r--nuttx/drivers/serial/Kconfig6
-rw-r--r--nuttx/drivers/serial/serial.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/drivers/loop.c b/nuttx/drivers/loop.c
index df96da59f..b5b5d82d8 100644
--- a/nuttx/drivers/loop.c
+++ b/nuttx/drivers/loop.c
@@ -215,7 +215,7 @@ static ssize_t loop_read(FAR struct inode *inode, unsigned char *buffer,
size_t start_sector, unsigned int nsectors)
{
FAR struct loop_struct_s *dev;
- size_t nbytesread;
+ ssize_t nbytesread;
off_t offset;
int ret;
diff --git a/nuttx/drivers/serial/Kconfig b/nuttx/drivers/serial/Kconfig
index 3dfd23dd1..a1e0dff49 100644
--- a/nuttx/drivers/serial/Kconfig
+++ b/nuttx/drivers/serial/Kconfig
@@ -3,10 +3,12 @@
# see misc/tools/kconfig-language.txt.
#
-config LOWLEVEL_CONSOLE
+config DEV_LOWCONSOLE
bool "Low-level console support"
default n
depends on ARCH_LOWPUTC
+ ---help---
+ Use the simple, low-level, write-only serial console driver (minimal support)
config 16550_UART
bool "16550 UART Chip support"
@@ -317,7 +319,7 @@ config STANDARD_SERIAL
bool "Enable standard \"upper-half\" serial driver"
default y if MCU_SERIAL
default n if !MCU_SERIAL
- depends on !LOWLEVEL_CONSOLE
+ depends on !DEV_LOWCONSOLE
---help---
Enable the standard, upper-half serial driver used by most MCU serial peripherals.
diff --git a/nuttx/drivers/serial/serial.c b/nuttx/drivers/serial/serial.c
index 9ffcd75dc..9708eb5bc 100644
--- a/nuttx/drivers/serial/serial.c
+++ b/nuttx/drivers/serial/serial.c
@@ -232,7 +232,9 @@ static int uart_putxmitchar(FAR uart_dev_t *dev, int ch)
}
}
- /* We won't get here */
+ /* We won't get here. Some compilers may complain that this code is
+ * unreachable.
+ */
return OK;
}