Ejemplo n.º 1
0
externC void hal_IRQ_init(void)
{
	// No architecture general initialization, but the variant may have
	// provided some.
	hal_variant_IRQ_init();
	
	// Initialize real-time clock (for delays, etc, even if kernel doesn't use it)
	// Set max period
	HAL_CLOCK_INITIALIZE(CYGNUM_HAL_RTC_PERIOD);
}
Ejemplo n.º 2
0
externC void
hal_IRQ_init(void)
{
    int i;

    /* yes this is a quick fix; arch.inc should be changed, but this is
     * good enough for now */
    for (i=0; i <= CYGNUM_HAL_INTERRUPT_5;++i )
		HAL_INTERRUPT_MASK (i);

    hal_variant_IRQ_init();
}