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

USB - STR71x and FreeRTOS

Posted by Nobody/Anonymous on January 2, 2006
Hi!

Do I need to make the RTOS handle all the USB standard requests or can I just let it happend in interrupts?

I will then use the RTOS queues for collecting data from the data endpoints.

Best regards,

Frank Andersen

RE: USB - STR71x and FreeRTOS

Posted by Nobody/Anonymous on January 2, 2006
Not quite sure what you are asking here. You have the design choice of handling USB events from the interrupt service routine if you want. If the event is going to take a long time to process then it is best to let a task perform the processing. Maybe you want some events processed directly in the ISR and some passed to a task.

RE: USB - STR71x and FreeRTOS

Posted by Nobody/Anonymous on January 5, 2006
Hello, I'm trying to do the same thing. Use an str711 with usb and IAR. What interrupt handlers do I need to include to get the usb to work, so far I only have an example of how to use the uart handler with freeRtos (that was included with the iar build)

thanks for any help

RE: USB - STR71x and FreeRTOS

Posted by Nobody/Anonymous on January 9, 2006
You need to write an interrupt handler like the one for uart

RSEG ICODE:CODE
CODE32

EXTERN USB_Istr
PUBLIC vUSBISREntry

; Wrapper for the USB interrupt service routine. This can cause a
; context switch so requires an assembly wrapper.

; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.
#include "ISR_Support.h"

vUSBISREntry:

portSAVE_CONTEXT; Save the context of the current task.

blUSB_Istr; Call the ISR routine.

portRESTORE_CONTEXT; Restore the context of the current task -
; which may be different to the task that
; was interrupted.

END

and then exchange the DefaultISR with vUSBISREntry at the USBLP_Addr and the USBHP_Addr

Best regards,

Frank Andersen


[ 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