Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

mpu_prototypes.h

Posted by kg7hf on December 18, 2017

In v10, should there be MPU_x versions of:

BaseTypet xQueuePeek( QueueHandlet xQueue, void * const pvBuffer, TickTypet xTicksToWait ); BaseTypet xQueuePeekFromISR( QueueHandlet pxQueue, void * const pvBuffer ); BaseTypet xQueueSemaphoreTake( QueueHandlet xQueue, TickTypet xTicksToWait );

?


mpu_prototypes.h

Posted by rtel on December 18, 2017

BaseTypet xQueuePeek( QueueHandlet xQueue, void * const pvBuffer, TickType_t xTicksToWait );

That is in there already.

BaseTypet xQueuePeekFromISR( QueueHandlet pxQueue, void * const pvBuffer );

I don't think ISR safe functions are necessary as they are privileged already and don't need two switch to privileged mode.

BaseTypet xQueueSemaphoreTake( QueueHandlet xQueue, TickType_t xTicksToWait );

That is also already in there.


mpu_prototypes.h

Posted by kg7hf on December 18, 2017

Hi Richard, Thanks for the quick reply, and nice to meet you.

Yes, I agree that the ISR routine shouldn't be necessary. Let me double check my download, but what I'm saying is that in mpu_prototypes.h that the function should be defined as:

MPUxQueuePeek() and MPUxQueueSemaphoreTake(),


mpu_prototypes.h

Posted by kg7hf on December 18, 2017

Double checked. I'm not sure why it would be necessary, but there is a function in mpuwrappers.c called BaseTypet MPU_xQueuePeekFromISR(), for whatever reason, it raises the privilege, although I would have thought an ISR is already at the raised privilege.

I also double checked the MPUx prototypes in mpuprototypes.h, and the ones cited do seem to be missing the MPU_ tag.

Paul


mpu_prototypes.h

Posted by rtel on December 18, 2017

Ah - I see what you mean now. I was looking in mcuwrappers.h not mcuprototypes.h. Will catch that too.


mpu_prototypes.h

Posted by kg7hf on December 19, 2017

Thanks Richard, all good!


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


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner