mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
arch/xxx/src/common/up_initialize.c: Move up_pminitialize() after timer_initialize()
This commit is contained in:
@@ -130,6 +130,13 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS) && \
|
||||||
|
!defined(CONFIG_SYSTEMTICK_EXTCLK)
|
||||||
|
arm_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -153,13 +160,6 @@ void up_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS) && \
|
|
||||||
!defined(CONFIG_SYSTEMTICK_EXTCLK)
|
|
||||||
arm_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -172,6 +172,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
avr_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -195,12 +201,6 @@ void up_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
avr_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -94,6 +94,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
hc_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -117,12 +123,6 @@ void up_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
hc_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
mips_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -119,12 +125,6 @@ void up_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
mips_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -189,6 +189,13 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS) && \
|
||||||
|
!defined(CONFIG_SYSTEMTICK_EXTCLK)
|
||||||
|
or1k_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -212,13 +219,6 @@ void up_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS) && \
|
|
||||||
!defined(CONFIG_SYSTEMTICK_EXTCLK)
|
|
||||||
or1k_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
renesas_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -100,12 +106,6 @@ void up_initialize(void)
|
|||||||
up_pminitialize();
|
up_pminitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
renesas_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
x86_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -119,12 +125,6 @@ void up_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
x86_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
xtensa_irq_initialize();
|
xtensa_irq_initialize();
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
xtensa_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -127,12 +133,6 @@ void up_initialize(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
xtensa_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
z16_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -119,12 +125,6 @@ void up_initialize(void)
|
|||||||
up_pminitialize();
|
up_pminitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
z16_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MM_IOB
|
#ifdef CONFIG_MM_IOB
|
||||||
/* Initialize IO buffering */
|
/* Initialize IO buffering */
|
||||||
|
|
||||||
|
|||||||
@@ -98,6 +98,12 @@ void up_initialize(void)
|
|||||||
|
|
||||||
up_irqinitialize();
|
up_irqinitialize();
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
||||||
|
/* Initialize the system timer interrupt */
|
||||||
|
|
||||||
|
z80_timer_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
/* Initialize the power management subsystem. This MCU-specific function
|
/* Initialize the power management subsystem. This MCU-specific function
|
||||||
* must be called *very* early in the initialization sequence *before* any
|
* must be called *very* early in the initialization sequence *before* any
|
||||||
@@ -108,12 +114,6 @@ void up_initialize(void)
|
|||||||
up_pminitialize();
|
up_pminitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS)
|
|
||||||
/* Initialize the system timer interrupt */
|
|
||||||
|
|
||||||
z80_timer_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Initialize the CPU for those that use it (only for the Z180). This
|
/* Initialize the CPU for those that use it (only for the Z180). This
|
||||||
* needs to be done before any tasks are created).
|
* needs to be done before any tasks are created).
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user