Progress with DM320
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@117 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
94f151c66b
commit
451503eeb5
@ -97,7 +97,6 @@ void up_doirq(int irq, uint32* regs)
|
|||||||
* disabled.
|
* disabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
current_regs = NULL;
|
|
||||||
up_enable_irq(irq);
|
up_enable_irq(irq);
|
||||||
}
|
}
|
||||||
up_ledoff(LED_INIRQ);
|
up_ledoff(LED_INIRQ);
|
||||||
|
@ -38,13 +38,12 @@
|
|||||||
# CONFIG_ARCH - identifies the arch subdirectory
|
# CONFIG_ARCH - identifies the arch subdirectory
|
||||||
# CONFIG_ARCH_name - for use in C code
|
# CONFIG_ARCH_name - for use in C code
|
||||||
# CONFIG_ROM_VECTORS - unique to dm320
|
# CONFIG_ROM_VECTORS - unique to dm320
|
||||||
# CONFIG_DRAM_START/SIZE - Describes the installed DRAM.
|
# CONFIG_DRAM_SIZE - Describes the installed DRAM.
|
||||||
# CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
|
# CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
|
||||||
#
|
#
|
||||||
CONFIG_ARCH=dm320
|
CONFIG_ARCH=dm320
|
||||||
CONFIG_ARCH_DM320=y
|
CONFIG_ARCH_DM320=y
|
||||||
CONFIG_ROM_VECTORS=n
|
CONFIG_ROM_VECTORS=n
|
||||||
CONFIG_DRAM_START=0x01000000
|
|
||||||
CONFIG_DRAM_SIZE=0x01000000
|
CONFIG_DRAM_SIZE=0x01000000
|
||||||
CONFIG_DRAM_NUTTXENTRY=0x01008000
|
CONFIG_DRAM_NUTTXENTRY=0x01008000
|
||||||
CONFIG_ARCH_STACKDUMP=y
|
CONFIG_ARCH_STACKDUMP=y
|
||||||
@ -117,7 +116,7 @@ CONFIG_START_YEAR=2007
|
|||||||
CONFIG_START_MONTH=2
|
CONFIG_START_MONTH=2
|
||||||
CONFIG_START_DAY=13
|
CONFIG_START_DAY=13
|
||||||
CONFIG_JULIAN_TIME=n
|
CONFIG_JULIAN_TIME=n
|
||||||
CONFIG_DEV_CONSOLE=n
|
CONFIG_DEV_CONSOLE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# The following can be used to disable categories of
|
# The following can be used to disable categories of
|
||||||
|
@ -39,7 +39,7 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
/* The OS entry point is here */
|
/* The OS entry point is here */
|
||||||
|
|
||||||
. = 0x01008000;
|
. = 0x00008000;
|
||||||
.text : {
|
.text : {
|
||||||
_stext = ABSOLUTE(.);
|
_stext = ABSOLUTE(.);
|
||||||
*(.text)
|
*(.text)
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
#include "dm320.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
@ -73,5 +74,5 @@
|
|||||||
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
|
||||||
{
|
{
|
||||||
*heap_start = (FAR void*)g_heapbase;
|
*heap_start = (FAR void*)g_heapbase;
|
||||||
*heap_size = (CONFIG_DRAM_START + CONFIG_DRAM_SIZE) - g_heapbase;
|
*heap_size = (DM320_SDRAM_VADDR + CONFIG_DRAM_SIZE) - g_heapbase;
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,6 @@ void up_doirq(int irq, uint32* regs)
|
|||||||
* disabled.
|
* disabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
current_regs = NULL;
|
|
||||||
up_enable_irq(irq);
|
up_enable_irq(irq);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
#undef CONFIG_SUPPRESS_TIMER_INTS /* No timer */
|
#undef CONFIG_SUPPRESS_TIMER_INTS /* No timer */
|
||||||
#undef CONFIG_SUPPRESS_SERIAL_INTS /* Console will poll */
|
#undef CONFIG_SUPPRESS_SERIAL_INTS /* Console will poll */
|
||||||
#undef CONFIG_SUPPRESS_UART_CONFIG /* Do not reconfig UART */
|
#undef CONFIG_SUPPRESS_UART_CONFIG /* Do not reconfig UART */
|
||||||
#undef CONFIG_DUMP_ON_EXIT /* Dump task state on exit */
|
#define CONFIG_DUMP_ON_EXIT 1 /* Dump task state on exit */
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
|
@ -281,7 +281,7 @@ static inline void up_enablebreaks(struct up_dev_s *priv, boolean enable)
|
|||||||
static int up_setup(struct uart_dev_s *dev)
|
static int up_setup(struct uart_dev_s *dev)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SUPPRESS_UART_CONFIG
|
#ifdef CONFIG_SUPPRESS_UART_CONFIG
|
||||||
struct up_dev_s *priv = (struct up_dev_s*)CONSOLE_DEV.priv;
|
struct up_dev_s *priv = (struct up_dev_s*)dev->priv;
|
||||||
uint16 brsr;
|
uint16 brsr;
|
||||||
|
|
||||||
/* Clear fifos */
|
/* Clear fifos */
|
||||||
@ -292,7 +292,7 @@ static int up_setup(struct uart_dev_s *dev)
|
|||||||
/* Set rx and tx triggers */
|
/* Set rx and tx triggers */
|
||||||
|
|
||||||
up_serialout(priv, UART_DM320_RFCR, UART_RFCR_RTL_1);
|
up_serialout(priv, UART_DM320_RFCR, UART_RFCR_RTL_1);
|
||||||
up_serialout(priv, UART_DM320_TFCR, UART_TFCR_TTL_1);
|
up_serialout(priv, UART_DM320_TFCR, UART_TFCR_TTL_16);
|
||||||
|
|
||||||
/* Set up the MSR */
|
/* Set up the MSR */
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ static int up_setup(struct uart_dev_s *dev)
|
|||||||
|
|
||||||
static void up_shutdown(struct uart_dev_s *dev)
|
static void up_shutdown(struct uart_dev_s *dev)
|
||||||
{
|
{
|
||||||
struct up_dev_s *priv = (struct up_dev_s*)CONSOLE_DEV.priv;
|
struct up_dev_s *priv = (struct up_dev_s*)dev->priv;
|
||||||
up_disableuartint(priv, NULL);
|
up_disableuartint(priv, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -414,7 +414,6 @@ static int up_interrupt(int irq, void *context)
|
|||||||
struct up_dev_s *priv;
|
struct up_dev_s *priv;
|
||||||
uint16 status;
|
uint16 status;
|
||||||
int passes;
|
int passes;
|
||||||
|
|
||||||
|
|
||||||
if (g_uart1port.irq == irq)
|
if (g_uart1port.irq == irq)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user