Skip to content

Commit

Permalink
Fix nasa#18, Depreacate OS_ShMem*
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Mar 25, 2020
1 parent 8f0780e commit aedd033
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/os/inc/osapi-os-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@ int32 OS_IntGetMask (uint32 *mask);
int32 OS_IntAck (int32 InterruptNumber);
/**@}*/

#ifndef OSAL_OMIT_DEPRECATED
/**
* @defgroup OSAPIShMem OSAL Shared memory APIs
* @deprecated Not in current implementations
Expand All @@ -1302,42 +1303,44 @@ int32 OS_IntAck (int32 InterruptNumber);
*/

/*-------------------------------------------------------------------------------------*/
/** @brief placeholder; not currently implemented
/** @brief DEPRECATED - platform dependent, never implemented in framework OSALs
* @deprecated Never implemented
*/
int32 OS_ShMemInit (void);

/*-------------------------------------------------------------------------------------*/
/** @brief placeholder; not currently implemented
/** @brief DEPRECATED - platform dependent, never implemented in framework OSALs
* @deprecated Never implemented
*/
int32 OS_ShMemCreate (uint32 *Id, uint32 NBytes, const char* SegName);

/*-------------------------------------------------------------------------------------*/
/** @brief placeholder; not currently implemented
/** @brief DEPRECATED - platform dependent, never implemented in framework OSALs
* @deprecated Never implemented
*/
int32 OS_ShMemSemTake (uint32 Id);

/*-------------------------------------------------------------------------------------*/
/** @brief placeholder; not currently implemented
/** @brief DEPRECATED - platform dependent, never implemented in framework OSALs
* @deprecated Never implemented
*/
int32 OS_ShMemSemGive (uint32 Id);

/*-------------------------------------------------------------------------------------*/
/** @brief placeholder; not currently implemented
/** @brief DEPRECATED - platform dependent, never implemented in framework OSALs
* @deprecated Never implemented
*/
int32 OS_ShMemAttach (cpuaddr * Address, uint32 Id);

/*-------------------------------------------------------------------------------------*/
/** @brief placeholder; not currently implemented
/** @brief DEPRECATED - platform dependent, never implemented in framework OSALs
* @deprecated Never implemented
*/
int32 OS_ShMemGetIdByName (uint32 *ShMemId, const char *SegName );
/**@}*/

#endif /* OSAL_OMIT_DEPRECATED */

/** @defgroup OSAPIHeap OSAL Heap APIs
* @{
*/
Expand Down
2 changes: 2 additions & 0 deletions src/unit-test-coverage/ut-stubs/src/osapi-base-impl-stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void OS_ConsoleOutput_Impl(uint32 local_id)
UT_DEFAULT_IMPL(OS_ConsoleOutput_Impl);
}

#ifndef OSAL_OMIT_DEPRECATED
/*
** Shared memory API
*/
Expand All @@ -132,6 +133,7 @@ UT_DEFAULT_STUB(OS_ShMemSemTake_Impl,(uint32 Id))
UT_DEFAULT_STUB(OS_ShMemSemGive_Impl,(uint32 Id))
UT_DEFAULT_STUB(OS_ShMemAttach_Impl,(uint32 * Address, uint32 Id))
UT_DEFAULT_STUB(OS_ShMemGetIdByName_Impl,(uint32 *ShMemId, const char *SegName ))
#endif /* OSAL_OMIT_DEPRECATED */


/*
Expand Down

0 comments on commit aedd033

Please sign in to comment.