summaryrefslogtreecommitdiff
path: root/nuttx/arch/dm320
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-26 16:47:17 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-26 16:47:17 +0000
commit899c7204851d44de519804af8a75e0b459012e9f (patch)
tree449ad4c5decd48591605264d1a881a4b81b9bdce /nuttx/arch/dm320
parent3a5002af1855fbc7989ea994301abaa420be6db3 (diff)
downloadpx4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.tar.gz
px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.tar.bz2
px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.zip
Create a place to hold board specific header files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@146 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/dm320')
-rw-r--r--nuttx/arch/dm320/src/dm320.h9
-rw-r--r--nuttx/arch/dm320/src/ntosd.h104
2 files changed, 8 insertions, 105 deletions
diff --git a/nuttx/arch/dm320/src/dm320.h b/nuttx/arch/dm320/src/dm320.h
index 7bfb845c6..6f0f89e16 100644
--- a/nuttx/arch/dm320/src/dm320.h
+++ b/nuttx/arch/dm320/src/dm320.h
@@ -40,12 +40,19 @@
* Included Files
************************************************************************************/
+#include <nuttx/config.h>
#ifndef __ASSEMBLY__
# include <sys/types.h>
#endif
#include "arm9.h"
-#include "ntosd.h"
+
+#if defined(CONFIG_BOARD_NTOSD_DM320)
+# include <arch/board/ntosd.h>
+#else
+# warning "Unknown DM320 board"
+#endif
+
#include "dm320-memorymap.h"
#include "dm320-uart.h"
#include "dm320-timer.h"
diff --git a/nuttx/arch/dm320/src/ntosd.h b/nuttx/arch/dm320/src/ntosd.h
deleted file mode 100644
index 271e04726..000000000
--- a/nuttx/arch/dm320/src/ntosd.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/************************************************************************************
- * ntosd.h
- *
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- ************************************************************************************/
-
-#ifndef __NTOSD_H
-#define __NTOSD_H
-
-/************************************************************************************
- * Included Files
- ************************************************************************************/
-
-#ifndef __ASSEMBLY__
-# include <sys/types.h>
-#endif
-
-/************************************************************************************
- * Definitions
- ************************************************************************************/
-
-/* This platform has the ARM at 175 MHz and the DSP at 101.25 MHz */
-
-#define DM320_ARM_CLOCK 175500000
-#define DM320_SDR_CLOCK 101250000
-#define DM320_DSP_CLOCK 101250000
-#define DM320_AXL_CLOCK 175500000
-#define DM320_AHB_CLOCK 87750000
-
-/*
- * configration for dm9000 network device
- */
-#define DM9000_BASE CONFIG_DM9000_BASE
-
-/* GIO keyboard (GIO 1-5) */
-
-#define KEY_MASK 0x003E
-#define KEY_SCAN0_BIT 0x0002
-#define KEY_SCAN1_BIT 0x0004
-#define KEY_SCAN2_BIT 0x0008
-#define KEY_SCAN3_BIT 0x0010
-#define KEY_SCAN4_BIT 0x0020
-
-#define KEY_GIO_DIR0_VAL KEY_MASK /* Configure as INPUT */
-#define KEY_GIO_INV0_VAL KEY_MASK /* All inverted */
-#define KEY_GIO_SET0_VAL (0) /* Initialized to zero */
-#define KEY_GIO_CLR0_VAL (0)
-
-#define GIO_KEY_SCAN0 1
-#define GIO_KEY_SCAN1 2
-#define GIO_KEY_SCAN2 3
-#define GIO_KEY_SCAN3 4
-#define GIO_KEY_SCAN4 5
-#define GIO_MS_DETECT 5
-#define GIO_MMC_DETECT 8
-#define GIO_CFC_DETECT 9
-#define GIO_VIDEO_IN 10
-#define GIO_LED_RED 16
-#define GIO_LED_GREEN 17
-#define GIO_CFC_ENABLE 25
-#define GIO_I2C_SCL 30
-#define GIO_I2C_SDA 31
-#define GIO_ENA_VIDEO 32
-#define GIO_CFC_RESET 36
-#define GIO_CFC_STSCHG 37
-
-/************************************************************************************
- * Inline Functions
- ************************************************************************************/
-
-#ifndef __ASSEMBLY__
-
-#endif
-
-#endif /* __NTOSD_H */