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] [May 2017 Threads] FreeRTOS delay in microsecondsPosted by disideris on May 23, 2017 Hi there,
I am trying to implement a delay microsecnods functions in terms of FreeRTOS and read different threads in this forum but dint get a clear way through.
I have some basic questions and it would be very helpful if anyone could answer them.
My setup:
I am running FreeRTOS on an NXP LPC4367. So far i have all these tasks running that read different sensors and so on.
I want to make a task that constructs and sends infrared commands. I have figured out the timings and without Freertos it works.
This IR functionality needs a delay microseconds function in order to get built.
So my configTICKRATEHZ is default -> (TickType_t) 1000)
Can i implement in terms of FreeRTOS a delaymicrosecnods function?
Freertos makes use of SysTickHandler. (When i try to make use of SysTickHandler compiler says that is already used.) Having that trouble i tried to use a peripheral timer that LPC offers. Peripheral timer doesn't work alongside FreeRTOS.
Any help plz?
Thanks a lot in advance!
FreeRTOS delay in microsecondsPosted by rtel on May 23, 2017
Can i implement in terms of FreeRTOS a delaymicrosecnods function?
Not using the RTOS tick, if it is running at 1KHz, and it is not
recommended to run it faster than that.
2.
Freertos makes use of SysTick_Handler. (When i try to make use of
SysTick_Handler compiler says that is already used.) Having that
trouble i tried to use a peripheral timer that LPC offers.
Peripheral timer doesn't work alongside FreeRTOS.
Using a peripheral timer would be my initial advice. FreeRTOS doesn't
touch any other timers so it should work.
FreeRTOS delay in microsecondsPosted by glenenglish on May 26, 2017 Use a hardware timer, and interrupt.
in the interrupt, you can yieldfromISR , taskgivefromISR etc
this way you can get a deterministic hard RTOS .
especially if nested interrupts is all working as it should...'
that's how I fire the firing pin at exactly the time it needs to fire...
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|