Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osal Integration candidate: 2021-04-06 #951

Merged
merged 10 commits into from
Apr 8, 2021
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
## Version History



### Development Build: v5.1.0-rc1+dev378

- Replaces nonstandard header file block comments and include guards. No behavior changes
- Removes `CLOCK_MONOTONIC` as the osal colck source since PSP no longer needs it. `OS_GetLocalTime()` and `OS_SetLocalTime()` will work as described.
- Replaces `shellName` with a specific `localShellName` that can be polled safely and changes its type to a char of `OS_MAX_API_NAME` length for safety.
- See <https://github.com/nasa/osal/pull/951> and <https://github.com/nasa/cFS/pull/238>

### Development Build: v5.1.0-rc1+dev367

- Removes `SOFTWARE_BIG_BIT_ORDER` and `SOFTWARE_LITTLE_BIT_ORDER` macros from `common_types.h`. These are not needed by OSAL and cannot handle all cases. Application code with endianness dependency that was relying on these symbols may break. Users should leverage code in cFE: `cfe_endian.h`. See <https://github.com/nasa/cFE/pull/1218> for more details.
Expand Down
8 changes: 4 additions & 4 deletions src/bsp/generic-linux/src/generic_linux_bsp_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
* limitations under the License.
*/

/*
* File: generic_linux_bsp_internal.h
/**
* \file
*
* Purpose:
* Header file for internal data to the LINUX BSP
*/

#ifndef GENERIC_LINUX_BSP_INTERNAL_H_
#define GENERIC_LINUX_BSP_INTERNAL_H_
#ifndef GENERIC_LINUX_BSP_INTERNAL_H
#define GENERIC_LINUX_BSP_INTERNAL_H

#include "osapi-common.h"
#include "osapi-bsp.h"
Expand Down
8 changes: 4 additions & 4 deletions src/bsp/generic-vxworks/src/generic_vxworks_bsp_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
* limitations under the License.
*/

/*
* File: generic_vxworks_bsp_internal.h
/**
* \file
*
* Purpose:
* Header file for internal data to the VxWorks BSP
*/

#ifndef GENERIC_VXWORKS_BSP_INTERNAL_H_
#define GENERIC_VXWORKS_BSP_INTERNAL_H_
#ifndef GENERIC_VXWORKS_BSP_INTERNAL_H
#define GENERIC_VXWORKS_BSP_INTERNAL_H

/*
** OSAL includes
Expand Down
4 changes: 2 additions & 2 deletions src/bsp/pc-rtems/src/pcrtems_bsp_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* limitations under the License.
*/

/*
* File: pcrtems_bsp_internal.h
/**
* \file
*
* Purpose:
* Header file for internal data to the PC-RTEMS BSP
Expand Down
3 changes: 1 addition & 2 deletions src/bsp/shared/inc/bsp-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
*/

/**
* \file bsp-impl.h
* \author joseph.p.hickey@nasa.gov
* \file
*
* Purpose: Contains functions prototype definitions and variables declarations
* for the OSAL BSP layer
Expand Down
6 changes: 3 additions & 3 deletions src/os/inc/common_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* limitations under the License.
*/

/*
* Filename: common_types.h
/**
* \file
*
* Purpose:
* Unit specification for common types.
Expand Down Expand Up @@ -156,4 +156,4 @@ extern "C"
#define OSAL_INDEX_C(X) ((osal_index_t)(X))
#define OSAL_OBJTYPE_C(X) ((osal_objtype_t)(X))

#endif /* _common_types_ */
#endif /* COMMON_TYPES_H */
8 changes: 5 additions & 3 deletions src/os/inc/osapi-binsem.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
* limitations under the License.
*/

/*
* File: osapi-binsem.h
/**
* \file
*
* Declarations and prototypes for binary semaphores
*/

#ifndef OSAPI_BINSEM_H
Expand Down Expand Up @@ -200,4 +202,4 @@ int32 OS_BinSemGetInfo(osal_id_t sem_id, OS_bin_sem_prop_t *bin_prop);

/**@}*/

#endif
#endif /* OSAPI_BINSEM_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-bsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-bsp.h
* \file
*
* Declarations and prototypes for OSAL BSP
*/

#ifndef OSAPI_BSP_H
Expand Down Expand Up @@ -92,4 +94,4 @@ void OS_BSP_SetExitCode(int32 code);

/**@}*/

#endif
#endif /* OSAPI_BSP_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-clock.h
* \file
*
* Declarations and prototypes for osapi-clock module
*/

#ifndef OSAPI_CLOCK_H
Expand Down Expand Up @@ -402,4 +404,4 @@ static inline OS_time_t OS_TimeSubtract(OS_time_t time1, OS_time_t time2)

/**@}*/

#endif
#endif /* OSAPI_CLOCK_H */
8 changes: 5 additions & 3 deletions src/os/inc/osapi-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
* limitations under the License.
*/

/*
* @file osapi-common.h
/**
* \file
*
* Declarations and prototypes for general OSAL functions that are not part of a subsystem
*/

#ifndef OSAPI_COMMON_H
Expand Down Expand Up @@ -210,4 +212,4 @@ int32 OS_RegisterEventHandler(OS_EventHandler_t handler);

/**@}*/

#endif
#endif /* OSAPI_COMMON_H */
8 changes: 5 additions & 3 deletions src/os/inc/osapi-constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
* limitations under the License.
*/

/*
* @file osapi-constants.h
/**
* \file
*
* General constants for OSAL that are shared across subsystems
*/

#ifndef OSAPI_CONSTANTS_H
Expand Down Expand Up @@ -53,4 +55,4 @@
*/
#define OS_MAX_LOCAL_PATH_LEN (OS_MAX_PATH_LEN + OS_FS_PHYS_NAME_LEN)

#endif
#endif /* OSAPI_CONSTANTS_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-countsem.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-countsem.h
* \file
*
* Declarations and prototypes for counting semaphores
*/

#ifndef OSAPI_COUNTSEM_H
Expand Down Expand Up @@ -175,4 +177,4 @@ int32 OS_CountSemGetInfo(osal_id_t sem_id, OS_count_sem_prop_t *count_prop);

/**@}*/

#endif
#endif /* OSAPI_COUNTSEM_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-dir.h
* \file
*
* Declarations and prototypes for directories
*/

#ifndef OSAPI_DIR_H
Expand Down Expand Up @@ -136,4 +138,4 @@ int32 OS_mkdir(const char *path, uint32 access);
int32 OS_rmdir(const char *path);
/**@}*/

#endif
#endif /* OSAPI_DIR_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-error.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-error.h
* \file
*
* OSAL error code definitions
*/

#ifndef OSAPI_ERROR_H
Expand Down Expand Up @@ -118,4 +120,4 @@ typedef char os_err_name_t[OS_ERROR_NAME_LENGTH];
int32 OS_GetErrorName(int32 error_num, os_err_name_t *err_name);
/**@}*/

#endif
#endif /* OSAPI_ERROR_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-file.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-file.h
* \file
*
* Declarations and prototypes for file objects
*/

#ifndef OSAPI_FILE_H
Expand Down Expand Up @@ -461,4 +463,4 @@ int32 OS_CloseAllFiles(void);
int32 OS_CloseFileByName(const char *Filename);
/**@}*/

#endif
#endif /* OSAPI_FILE_H */
7 changes: 4 additions & 3 deletions src/os/inc/osapi-filesys.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-filesys.h
* \file
*
* Declarations and prototypes for file systems
*/

#ifndef OSAPI_FILESYS_H
Expand Down Expand Up @@ -77,7 +79,6 @@ typedef struct
*
* OS_FileSysAddFixedMap(&fs_id, "/", "/root");
*
*
* @param[out] filesys_id A non-zero OSAL ID reflecting the file system
* @param[in] phys_path The native system directory (an existing mount point)
* @param[in] virt_path The virtual mount point of this filesystem
Expand Down Expand Up @@ -279,4 +280,4 @@ int32 OS_TranslatePath(const char *VirtualPath, char *LocalPath);
int32 OS_GetFsInfo(os_fsinfo_t *filesys_info);
/**@}*/

#endif
#endif /* OSAPI_FILESYS_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-heap.h
* \file
*
* Declarations and prototypes for heap functions
*/

#ifndef OSAPI_HEAP_H
Expand Down Expand Up @@ -55,4 +57,4 @@ typedef struct
int32 OS_HeapGetInfo(OS_heap_prop_t *heap_prop);
/**@}*/

#endif
#endif /* OSAPI_HEAP_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-idmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-idmap.h
* \file
*
* Declarations and prototypes for object IDs
*/

#ifndef OSAPI_IDMAP_H
Expand Down Expand Up @@ -261,4 +263,4 @@ void OS_ForEachObjectOfType(osal_objtype_t objtype, osal_id_t creator_id, OS_Arg

/**@}*/

#endif
#endif /* OSAPI_IDMAP_H */
8 changes: 5 additions & 3 deletions src/os/inc/osapi-macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
* limitations under the License.
*/

/*
* @file osapi-macros.h
/**
* \file
*
* Macro definitions that are used across all OSAL subsystems
*/

#ifndef OSAPI_MACROS_H
Expand Down Expand Up @@ -136,4 +138,4 @@
*/
#define LENGTHCHECK(str, len, errcode) ARGCHECK(memchr(str, '\0', len), errcode)

#endif
#endif /* OSAPI_MACROS_H */
6 changes: 4 additions & 2 deletions src/os/inc/osapi-module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
*/

/**
* @file osapi-module.h
* \file
*
* Declarations and prototypes for module subsystem
*/

#ifndef OSAPI_MODULE_H
Expand Down Expand Up @@ -231,4 +233,4 @@ int32 OS_ModuleUnload(osal_id_t module_id);
int32 OS_ModuleInfo(osal_id_t module_id, OS_module_prop_t *module_info);
/**@}*/

#endif
#endif /* OSAPI_MODULE_H */
8 changes: 5 additions & 3 deletions src/os/inc/osapi-mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
* limitations under the License.
*/

/*
* File: osapi-mutex.h
/**
* \file
*
* Declarations and prototypes for mutexes
*/

#ifndef OSAPI_MUTEX_H
Expand Down Expand Up @@ -149,4 +151,4 @@ int32 OS_MutSemGetIdByName(osal_id_t *sem_id, const char *sem_name);
int32 OS_MutSemGetInfo(osal_id_t sem_id, OS_mut_sem_prop_t *mut_prop);
/**@}*/

#endif
#endif /* OSAPI_MUTEX_H */
8 changes: 5 additions & 3 deletions src/os/inc/osapi-network.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
* limitations under the License.
*/

/*
* @file osapi-network.h
/**
* \file
*
* Declarations and prototypes for network subsystem
*/

#ifndef OSAPI_NETWORK_H
Expand Down Expand Up @@ -68,4 +70,4 @@ int32 OS_NetworkGetHostName(char *host_name, size_t name_len);

/**@}*/

#endif
#endif /* OSAPI_NETWORK_H */
Loading