ARM-software / CMSIS_5

CMSIS Version 5 Development Repository
http://arm-software.github.io/CMSIS_5/index.html
Apache License 2.0
1.34k stars 1.08k forks source link

why cmsis_os no define osPoolDelete ? #585

Closed Cherish-Gww closed 5 years ago

Cherish-Gww commented 5 years ago

When I use cmsis_os.h, and I found there is no define a function named osPoolDelete, that means when your create a Pool it will exist all the time.

JonatanAntoni commented 5 years ago

Hi @Cherish-Gww,

Please take not CMSIS-RTOS is deprecated and has been superseded by CMSIS-RTOS2.

Are you actually using cmsis_os.h (i.e. CMSIS-RTOS) to adopt another RTOS your own? Or are you using RTX4 (i.e. reference implementation for CMSIS-RTOS)?

The latter does not use dynamic allocation for memory pools. Hence osPoolDelete has never been considered.

Cheers, Jonatan

Cherish-Gww commented 5 years ago

@JonatanAntoni Thank you, I use freertos, use CMSIS version 1.02. it is too old for me, and I want use RTOS2, is there have a cmsis_os2.c for freertos?

Cherish-Gww commented 5 years ago

@JonatanAntoni Oh I found here https://github.com/ARM-software/CMSIS-FreeRTOS thank you very much

JonatanAntoni commented 5 years ago

Hi @Cherish-Gww,

take a look to CMSIS-FreeRTOS. It is a ready to use packaging of vanilla FreeRTOS with a full functional CMSIS-RTOS2 adoption layer, based on latest CMSIS-RTOS2 API version 2.3.1 and FreeRTOS 10.2.0.

Cheers, Jonatan

Cherish-Gww commented 5 years ago

@JonatanAntoni I found this in cmsis_freertos.txt

JonatanAntoni commented 5 years ago

Please move questions regarding CMSIS-FreeRTOS to the according project.

ilg-ul commented 5 years ago

take a look to CMSIS-FreeRTOS. It is a ready to use packaging of vanilla FreeRTOS with a full functional CMSIS-RTOS2 adoption layer, based on latest CMSIS-RTOS2 API version 2.3.1 and FreeRTOS 10.2.0.

this should be a retorical question, but just to be sure, can you confirm that this project passed the CMSIS RTOS validation suite?

JonatanAntoni commented 5 years ago

Closing this because it does not belong to CMSIS. Please raise questions regarding CMSIS-FreeRTOS to the according project.