Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

at91 sam7 port - system irq

Posted by Nobody/Anonymous on June 19, 2006
Does anyone know if you can get the DBGU serial port running under interrupt whe using the freertos? The main tick is derived from the PIT interrupt which is handled in the low level assembler, but as this is a shared IRQ with the DBGU serial and other peripherals, is it valid to extend out from that assembler to call another handler or do you just loose that functionality so that the interrupt is purely used for the PIT scheduler interrupt and nothing else? any thoughts would be good! regards, Andy

RE: at91 sam7 port - system irq

Posted by Nobody/Anonymous on June 19, 2006
I think this came up some time back and it was suggested to simply move the generation of the tick to a different timer. I don't know how feasible this is. If you want extra functionality at the same frequency then you can use a tick hook function (see the section on the WEB site docs).

RE: at91 sam7 port - system irq

Posted by Nobody/Anonymous on June 20, 2006
i have all the timer counter blocks used in this design to measure temperature and flow sensors! I think i will just have to add some assembler in the portasm file to create another irq handle if the PIT status flag is not set and we are in the irq. Andy

RE: at91 sam7 port - system irq

Posted by Nobody/Anonymous on June 20, 2006
As you say, you could test to see where the interrupt came from in the asm code, but my preference would be to do it in the C code. You could call a handler that then switches to either the scheduler of dbg from within C depending on the interrupt flags. This is just theory, I have not actually tried it.

If you do it from asm code make sure you don't alter any registers until after the context is saved.

RE: at91 sam7 port - system irq

Posted by Nobody/Anonymous on June 24, 2006
I have done it by modifying the portask PIT code, checking the IRQ type there and branching. Works fine.


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists