Quality RTOS & Embedded Software

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


Create a type for notify value and chose the type

Posted by totof95 on January 18, 2019

Hello, I use Tasknotify for release task. The 32bits is too small for me. Can we create a type for the notifyValue (like TickTypet) NotifyTypet for sample, and chose the type in freertosconfig.h. We can chose 16, 32 or 64 bits ?

Thanks for answers

Create a type for notify value and chose the type

Posted by rtel on January 18, 2019

Looking at the code, I think it is possible, but the type would have to be an unsigned integer. The problem for us would be that it would change the prototypes of the functions too, as, for example, the type is also used in the 'bits to clear' parameters and as return types (hence the 'ul' prefix to some notification API functions).

Create a type for notify value and chose the type

Posted by totof95 on January 21, 2019

I do the modification on my project with a uint64_t. Yes, i need to change prototype for each function use value ulBitsToClearOnEntry, ulBitsToClearOnExit, pulNotificationValue. In my project, it's easier to synchronize task with notify function. Then, if you can modify this type, It's very well for me. Thanks

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

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

Latest News

FreeRTOS v10.2.1 is available for immediate download. MIT licensed, includes 64-bit RISC-V, NXP Cortex-M33 demo, Nuvoton Cortex-M23 demo & STM32H745 dual core (AMP) demo.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

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


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





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