configs/z80sim/nsh and pashello converted to kconfig-frontends and Windows native build

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5418 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-12-07 22:02:51 +00:00
parent a7c72cc182
commit 8f160ad344
12 changed files with 1094 additions and 568 deletions
+38 -2
View File
@@ -12,10 +12,10 @@ Contents
o Getting a TRS80 emulator and DOS disks
o Loading an executable into xtrs
o Configuring NuttX
o Reconfiguring NuttX
o Reconfiguring for Linux, OSX, or Cygwin
o SDCC
o Building the SDCC toolchain
o SDCC Update
o Newer SDCC Versions
Getting a TRS80 emulator and DOS disks
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -85,6 +85,42 @@ Configuring NuttX
cd -
. ./setenv.sh
Reconfiguring NuttX
^^^^^^^^^^^^^^^^^^^
These configurations all use the kconfig-frontends, mconf-based configuration
tool. To change this configuration using that tool, you should:
a. Build and install the mconf tool. See nuttx/README.txt and
misc/tools/README.txt
b. Execute 'make menuconfig' in nuttx/ in order to start the reconfiguration
process.
Reconfiguring for Linux, OSX, or Cygwin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
All of the z80 configurations in this this directory are set up to build in a
Windows CMD.exe shell. This configuration requires the MinGW host compiler
and severl GNUWin32 tools (see discussion in the top-level NuttX/README.txt
file).
These configurations can be converted to run under Linux (or Cygwin or OSX),
by modifying the configuration file as follows:
-CONFIG_HOST_WINDOWS=y
-CONFIG_WINDOWS_NATIVE=y
+CONFIG_HOST_LINUX=y
-CONFIG_Z80_TOOLCHAIN_SDCCW=y
+CONFIG_Z80_TOOLCHAIN_SDCCL=y
You may need to first manually change the CONFIG_APPS_DIR="..\apps" definition
in the .config file because the backslash may upset some Unix-based tools.
You cannot use the default setenv.bat in these Unix-like enviroments because
that is a Windows batch file. Use configs/z80sim/script/setenv.sh instead.
SDCC
^^^^
+24 -24
View File
@@ -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;
}