Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


DBGU AIC Config irq_id?

Posted by Allure99 on July 16, 2007

Following are the example code to enable interrupt for UART0.
Q: Whats the "irq_id" for DBGU?

/* Enable the interrupts in the AIC. */
// AT91F_AIC_ConfigureIt( irq_id, priority, src_type, newHandler )
AT91F_AIC_ConfigureIt(AT91C_ID_US0, serINTERRUPT_LEVEL, AT91C_AIC_SRCTYPE_INT_HIGH_LEVEL, ( void (*)( void ) ) vUART_ISR );

my Board: AT91SAM7X-EK
Compiler: CrossWork 1.7 (GCC)
example: FreeRTOS IwIP


RE: DBGU AIC Config irq_id?

Posted by embeddedc on July 16, 2007
The DBGU uses the system interrupt. From memory this is the same ID as the PIT. The PIT interrupt is setup in port.c, so you can get the ID from there. The DBGU and PIT share the interrupt, so in the ISR you need to determine the interrupt source and cannot vector to the interrupt directly without doing this first (tell me someone if this is wrong). There have been some threads on this list some time back about this.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner