Add z180 system timer
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5438 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
07d0fe58fc
commit
a7456c5bd8
@ -41,8 +41,14 @@
|
|||||||
************************************************************/
|
************************************************************/
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************/
|
************************************************************/
|
||||||
|
/* The Z180 is driven by a 16MHz crystal. The system clock
|
||||||
|
* is equal to the crystal frequency.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define Z180_BOARD_XTAL 16000000 /* 16 MHz */
|
||||||
|
#define Z180_SYSCLOCK Z180_BOARD_XTAL /* 16 MHz */
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
|
@ -140,7 +140,7 @@ CONFIG_Z180_PHYSHEAP_END=0x100000
|
|||||||
# CONFIG_Z180_UART1 is not set
|
# CONFIG_Z180_UART1 is not set
|
||||||
CONFIG_Z180_ESCCA=y
|
CONFIG_Z180_ESCCA=y
|
||||||
# CONFIG_Z180_ESCCB is not set
|
# CONFIG_Z180_ESCCB is not set
|
||||||
# CONFIG_Z180_TMR1 is not set
|
# CONFIG_Z180_PRT1 is not set
|
||||||
# CONFIG_Z180_PORTA is not set
|
# CONFIG_Z180_PORTA is not set
|
||||||
# CONFIG_Z180_PORTB is not set
|
# CONFIG_Z180_PORTB is not set
|
||||||
# CONFIG_Z180_MIMIC is not set
|
# CONFIG_Z180_MIMIC is not set
|
||||||
@ -159,7 +159,7 @@ CONFIG_Z180_ESCCA_2STOP=0
|
|||||||
#
|
#
|
||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
CONFIG_ARCH_NOINTC=y
|
||||||
# CONFIG_ARCH_DMA is not set
|
# CONFIG_ARCH_DMA is not set
|
||||||
# CONFIG_ARCH_IRQPRIO is not set
|
# CONFIG_ARCH_IRQPRIO is not set
|
||||||
# CONFIG_CUSTOM_STACK is not set
|
# CONFIG_CUSTOM_STACK is not set
|
||||||
|
@ -79,7 +79,7 @@ CONFIG_LINKER_ROM_AT_0000=y
|
|||||||
#
|
#
|
||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
CONFIG_ARCH_NOINTC=y
|
||||||
# CONFIG_ARCH_DMA is not set
|
# CONFIG_ARCH_DMA is not set
|
||||||
# CONFIG_ARCH_IRQPRIO is not set
|
# CONFIG_ARCH_IRQPRIO is not set
|
||||||
# CONFIG_ARCH_STACKDUMP is not set
|
# CONFIG_ARCH_STACKDUMP is not set
|
||||||
|
@ -79,7 +79,7 @@ CONFIG_LINKER_ROM_AT_0000=y
|
|||||||
#
|
#
|
||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
CONFIG_ARCH_NOINTC=y
|
||||||
# CONFIG_ARCH_DMA is not set
|
# CONFIG_ARCH_DMA is not set
|
||||||
# CONFIG_ARCH_IRQPRIO is not set
|
# CONFIG_ARCH_IRQPRIO is not set
|
||||||
# CONFIG_ARCH_STACKDUMP is not set
|
# CONFIG_ARCH_STACKDUMP is not set
|
||||||
|
@ -80,7 +80,7 @@ CONFIG_LINKER_ROM_AT_0000=y
|
|||||||
#
|
#
|
||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
CONFIG_ARCH_NOINTC=y
|
||||||
# CONFIG_ARCH_DMA is not set
|
# CONFIG_ARCH_DMA is not set
|
||||||
# CONFIG_ARCH_IRQPRIO is not set
|
# CONFIG_ARCH_IRQPRIO is not set
|
||||||
# CONFIG_ARCH_STACKDUMP is not set
|
# CONFIG_ARCH_STACKDUMP is not set
|
||||||
|
@ -88,33 +88,3 @@ void up_irqinitialize(void)
|
|||||||
irqrestore(Z80_C_FLAG);
|
irqrestore(Z80_C_FLAG);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: up_disable_irq
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Disable the IRQ specified by 'irq'
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_NOINTC
|
|
||||||
void up_disable_irq(int irq)
|
|
||||||
{
|
|
||||||
irqrestore(0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: up_enable_irq
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Enable the IRQ specified by 'irq'
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_NOINTC
|
|
||||||
void up_enable_irq(int irq)
|
|
||||||
{
|
|
||||||
irqrestore(Z80_C_FLAG);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -79,7 +79,7 @@ CONFIG_LINKER_DATA_AREA=0x8000
|
|||||||
#
|
#
|
||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
CONFIG_ARCH_NOINTC=y
|
||||||
# CONFIG_ARCH_DMA is not set
|
# CONFIG_ARCH_DMA is not set
|
||||||
# CONFIG_ARCH_IRQPRIO is not set
|
# CONFIG_ARCH_IRQPRIO is not set
|
||||||
# CONFIG_ARCH_STACKDUMP is not set
|
# CONFIG_ARCH_STACKDUMP is not set
|
||||||
|
@ -79,7 +79,7 @@ CONFIG_LINKER_DATA_AREA=0x8000
|
|||||||
#
|
#
|
||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
CONFIG_ARCH_NOINTC=y
|
||||||
# CONFIG_ARCH_DMA is not set
|
# CONFIG_ARCH_DMA is not set
|
||||||
# CONFIG_ARCH_IRQPRIO is not set
|
# CONFIG_ARCH_IRQPRIO is not set
|
||||||
# CONFIG_ARCH_STACKDUMP is not set
|
# CONFIG_ARCH_STACKDUMP is not set
|
||||||
|
@ -79,7 +79,7 @@ CONFIG_LINKER_DATA_AREA=0x8000
|
|||||||
#
|
#
|
||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
CONFIG_ARCH_NOINTC=y
|
||||||
# CONFIG_ARCH_DMA is not set
|
# CONFIG_ARCH_DMA is not set
|
||||||
# CONFIG_ARCH_IRQPRIO is not set
|
# CONFIG_ARCH_IRQPRIO is not set
|
||||||
# CONFIG_ARCH_STACKDUMP is not set
|
# CONFIG_ARCH_STACKDUMP is not set
|
||||||
|
@ -88,33 +88,3 @@ void up_irqinitialize(void)
|
|||||||
irqrestore(Z80_C_FLAG);
|
irqrestore(Z80_C_FLAG);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: up_disable_irq
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Disable the IRQ specified by 'irq'
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_NOINTC
|
|
||||||
void up_disable_irq(int irq)
|
|
||||||
{
|
|
||||||
irqrestore(0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: up_enable_irq
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Enable the IRQ specified by 'irq'
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_NOINTC
|
|
||||||
void up_enable_irq(int irq)
|
|
||||||
{
|
|
||||||
irqrestore(Z80_C_FLAG);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user