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] [January 2015 Threads] Generate Interrupt and Interrupt Handler MSVCPosted by andrewalo on January 13, 2015 Hi Guys,
Sorry for my first newbie knowledge of freertos. I'm tryng to generate an interrupt to call an handler function.
On the practical guide i've read this statements:
_asm{} //to generate interrupt
static void _interrupt _ far handlerfunc(void) {} //to define handler func
dossetvect{} //to install the handler func
but i think that they're for another architecture,
is there a guide for make this on MSVC?maybe an example.
Thank you :)
Generate Interrupt and Interrupt Handler MSVCPosted by rtel on January 13, 2015 As the simulator is running under Windows, and not actually simulating any hardware, it is not possible to generate real interrupts. However you can generate simulated interrupts. See the following link:
http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html#SimulatedISRs
Regards.
Generate Interrupt and Interrupt Handler MSVCPosted by andrewalo on January 13, 2015 Yeah!i was written how i resolved, if someone needs help:
vPortGenerateSimulatedInterrupt( portINTERRUPT_YIELD2 );//generate interrupt
static uint32_t handlerfunc(void){}//interrupt handler (NOT UNSIGNED LONG)
vPortSetInterruptHandler( portINTERRUPT_YIELD2, handlerfunc );//install interrupt
and in the portmacro.h, #define portINTERRUPT_YIELD2 (2UL)/or another value/
Thank you :) !!!!
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|