FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [July 2007 Threads] 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|