Quality RTOS & Embedded Software

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


Loading

DBGU AIC Config irq_id?

Posted by Allure99 on July 16, 2007
Hi,


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 );
AT91C_BASE_AIC->AIC_IECR = 0x1 << AT91C_ID_SSC;

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

Thanks!

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

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

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

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


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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