From 43fbcc067c00f57b4c87f97e3cd9a1fa53acedd0 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 3 May 2020 08:48:48 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13641 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/common/abstractions/cmsis_os/cmsis_os.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/os/common/abstractions/cmsis_os/cmsis_os.c b/os/common/abstractions/cmsis_os/cmsis_os.c index 01fdf2733..6948d44b3 100644 --- a/os/common/abstractions/cmsis_os/cmsis_os.c +++ b/os/common/abstractions/cmsis_os/cmsis_os.c @@ -853,6 +853,7 @@ void *osMailCAlloc(osMailQId queue_id, uint32_t millisec) { * @p osMailAlloc() or @p osMailCAlloc() * @return The function execution status. * @retval osOK if the function succeeded. + * @retval osErrorValue if mail is @p NULL. * @retval osErrorParameter if some parameter is @p NULL. */ osStatus osMailPut(osMailQId queue_id, void *mail) { @@ -862,7 +863,7 @@ osStatus osMailPut(osMailQId queue_id, void *mail) { } if (mail == NULL) { - return osErrorParameter; + return osErrorValue; } chDbgCheck((queue_id != NULL) && (mail != NULL)); @@ -943,7 +944,8 @@ osEvent osMailGet(osMailQId queue_id, uint32_t millisec) { * by @p osMailGet. * @return The function execution status. * @retval osOK if the function succeeded. - * @retval osErrorParameter if some parameter is @p NULL. + * @retval osErrorValue if mail is @p NULL. + * @retval osErrorParameter if the value to the parameter queue_id is @p NULL. */ osStatus osMailFree(osMailQId queue_id, void *mail) { @@ -952,7 +954,7 @@ osStatus osMailFree(osMailQId queue_id, void *mail) } if (mail == NULL) { - return osErrorParameter; + return osErrorValue; } chDbgCheck((queue_id != NULL) && (mail != NULL));