mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 09:51:36 +08:00
configs/z80sim/nsh and pashello converted to kconfig-frontends and Windows native build
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5418 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -104,18 +104,18 @@
|
||||
* Private Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
static int up_setup(struct uart_dev_s *dev);
|
||||
static void up_shutdown(struct uart_dev_s *dev);
|
||||
static int up_attach(struct uart_dev_s *dev);
|
||||
static void up_detach(struct uart_dev_s *dev);
|
||||
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
|
||||
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
|
||||
static void up_rxint(struct uart_dev_s *dev, bool enable);
|
||||
static bool up_rxavailable(struct uart_dev_s *dev);
|
||||
static void up_send(struct uart_dev_s *dev, int ch);
|
||||
static void up_txint(struct uart_dev_s *dev, bool enable);
|
||||
static bool up_txready(struct uart_dev_s *dev);
|
||||
static bool up_txempty(struct uart_dev_s *dev);
|
||||
static int up_setup(FAR struct uart_dev_s *dev);
|
||||
static void up_shutdown(FAR struct uart_dev_s *dev);
|
||||
static int up_attach(FAR struct uart_dev_s *dev);
|
||||
static void up_detach(FAR struct uart_dev_s *dev);
|
||||
static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg);
|
||||
static int up_receive(FAR struct uart_dev_s *dev, unsigned int *status);
|
||||
static void up_rxint(FAR struct uart_dev_s *dev, bool enable);
|
||||
static bool up_rxavailable(FAR struct uart_dev_s *dev);
|
||||
static void up_send(FAR struct uart_dev_s *dev, int ch);
|
||||
static void up_txint(FAR struct uart_dev_s *dev, bool enable);
|
||||
static bool up_txready(FAR struct uart_dev_s *dev);
|
||||
static bool up_txempty(FAR struct uart_dev_s *dev);
|
||||
|
||||
/****************************************************************************
|
||||
* Private Variables
|
||||
@@ -185,7 +185,7 @@ static uart_dev_t g_uartport =
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int up_setup(struct uart_dev_s *dev)
|
||||
static int up_setup(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
outp(RESET, 0);
|
||||
outp(CONTROL, ctrl);
|
||||
@@ -203,7 +203,7 @@ static int up_setup(struct uart_dev_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void up_shutdown(struct uart_dev_s *dev)
|
||||
static void up_shutdown(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ static void up_shutdown(struct uart_dev_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int up_attach(struct uart_dev_s *dev)
|
||||
static int up_attach(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
// SDCC complains here
|
||||
// *((void (*)()) XMIT_INT_VECTOR) = rs232_xmitisr;
|
||||
@@ -246,7 +246,7 @@ static int up_attach(struct uart_dev_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void up_detach(struct uart_dev_s *dev)
|
||||
static void up_detach(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
outp(WRINTMASK, *(char *)WRINTMASK_SHADOW &= ~(MASK_ERR_INT | MASK_RECV_INT | MASK_XMIT_INT));
|
||||
*((int *) XMIT_INT_VECTOR) = 0x35fa;
|
||||
@@ -261,7 +261,7 @@ static void up_detach(struct uart_dev_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
*get_errno_ptr() = ENOTTY;
|
||||
return ERROR;
|
||||
@@ -277,7 +277,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static int up_receive(struct uart_dev_s *dev, uint32_t *status)
|
||||
static int up_receive(FAR struct uart_dev_s *dev, unsigned int *status)
|
||||
{
|
||||
// uint8_t ch = z80_lowputc();
|
||||
|
||||
@@ -293,7 +293,7 @@ static int up_receive(struct uart_dev_s *dev, uint32_t *status)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void up_rxint(struct uart_dev_s *dev, bool enable)
|
||||
static void up_rxint(FAR struct uart_dev_s *dev, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ static void up_rxint(struct uart_dev_s *dev, bool enable)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static bool up_rxavailable(struct uart_dev_s *dev)
|
||||
static bool up_rxavailable(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -318,7 +318,7 @@ static bool up_rxavailable(struct uart_dev_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void up_send(struct uart_dev_s *dev, int ch)
|
||||
static void up_send(FAR struct uart_dev_s *dev, int ch)
|
||||
{
|
||||
z80_lowputc(ch);
|
||||
}
|
||||
@@ -331,7 +331,7 @@ static void up_send(struct uart_dev_s *dev, int ch)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void up_txint(struct uart_dev_s *dev, bool enable)
|
||||
static void up_txint(FAR struct uart_dev_s *dev, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static bool up_txready(struct uart_dev_s *dev)
|
||||
static bool up_txready(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -356,7 +356,7 @@ static bool up_txready(struct uart_dev_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static bool up_txempty(struct uart_dev_s *dev)
|
||||
static bool up_txempty(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user