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

SAM4 USART interrupt code example

Posted by dvukovic on April 22, 2013
Is there a sample code for using USARTx with interrupts in FreeRTOS ?

Thank you

RE: SAM4 USART interrupt code example

Posted by Richard on April 22, 2013
Yes - there are numerous examples in the Atmel ASF (Atmel Software Framework). Look of "FreeRTOS Peripheral Control" examples in the ASF download (http://asf.atmel.com). See http://www.atmel.com/images/doc42049.pdf

Regards.

RE: SAM4 USART interrupt code example

Posted by Donald Vukovic on April 22, 2013
I am sorry, but I have looked at that for a week now and nothing I do works.

My code is stuck repeating the same USART1_handler() over and over again.

I tried to follow the SYS_TICK interrupt as a model, but that did not work.

I would guess that I am not actually clearing the USART1 interrupt, but I just do not see why I can not do it.

As soon as I enable that interrupt, it starts and does not end.

If pasting the code here would help, I will. ( I know its frowned upon)

Thank you (again)

RE: SAM4 USART interrupt code example

Posted by MEdwards on April 23, 2013
I don't think the example uses USART1_handler() because it uses the DMA interrupts instead. I could be wrong though.


[ 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