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

fix the typos #2152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/sample_defs/cpu1_platform_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
** \cfesbcfg Platform Endian Indicator
**
** \par Description:
** The value of this constant indicates the endianess of the target system
** The value of this constant indicates the endianness of the target system
**
** \par Limits
** This parameter has a lower limit of 0 and an upper limit of 1.
Expand Down
4 changes: 2 additions & 2 deletions docs/cFE Application Developers Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ directory is described as a note under each folder.
|-- osal
| |-- Contains a copy of the OSAL component
|-- psp
| |-- Contains the Platform Suport Package (PSP) library
| |-- Contains the Platform Support Package (PSP) library
| |-- Can customize PSP implementation for each CPU and OS that the project needs
|-- build
| |-- The flight software is all configured and built under this directory
| |-- All mission and platform configuration files are placed here
|-- apps
| |-- Contains application source code.
| |-- Application source code may be shared amoung multiple build CPUs
| |-- Application source code may be shared among multiple build CPUs
|-- libs
| |-- Contains Core Flight System (cFS) Sample Library (sample_lib)
|-- tools
Expand Down
2 changes: 1 addition & 1 deletion modules/cfe_testcase/src/sb_pipe_mang_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void TestPipeCreateMax(void)
* Normally, this will return CFE_SUCCESS, until the max number of pipes is reached.
* Confirm that the last creation attempt returned CFE_SB_MAX_PIPES_MET
*
* NOTE: this also mimics the same format as UtAssert_INT32_EQ so that any post-procesing
* NOTE: this also mimics the same format as UtAssert_INT32_EQ so that any post-processing
* test log analysis tools will see this call as well.
*/
if (CFE_Assert_STATUS_MAY_BE(CFE_SB_MAX_PIPES_MET))
Expand Down
2 changes: 1 addition & 1 deletion modules/cfe_testcase/tables/cfe_test_tbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

/*
* The test table data should contain some identifiable numeric values,
* so any issues with paritial loading/byteswapping are morely likely
* so any issues with partial loading/byteswapping are morely likely
* to be detected.
*/
TBL_TEST_Table_t TestTable = {0xf007, 0xba11};
Expand Down
2 changes: 1 addition & 1 deletion modules/config/mission_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ list(APPEND CFE_CONFIG_IDS
)

# Generate config ID for source version of modules that are included in the build
# NOTE: the presence in this list does not necesarily mean it will have a value at runtime,
# NOTE: the presence in this list does not necessarily mean it will have a value at runtime,
# which may be the case for dynamic apps which are not loaded, for instance.
foreach(DEP ${MISSION_CORE_INTERFACES} ${MISSION_APPS} ${MISSION_CORE_MODULES} ${MISSION_PSPMODULES})
string(TOUPPER "${DEP}" DEPNAME)
Expand Down
8 changes: 4 additions & 4 deletions modules/core_api/fsw/inc/cfe_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/**
* @brief Obtain an integer value correlating to an CFE configuration ID
*
* Retreives the integer value associated with the specified key.
* Retrieves the integer value associated with the specified key.
*
* If no value has been set, or the key is not valid, this returns 0.
*
Expand All @@ -56,7 +56,7 @@ uint32 CFE_Config_GetValue(CFE_ConfigId_t ConfigId);
/**
* @brief Obtain a pointer value correlating to an CFE configuration ID
*
* Retreives the pointer value associated with the specified key.
* Retrieves the pointer value associated with the specified key.
*
* If no value has been set, or the key is not valid, this returns NULL.
*
Expand All @@ -70,7 +70,7 @@ const void *CFE_Config_GetObjPointer(CFE_ConfigId_t ConfigId);
/**
* @brief Obtain a string value correlating to an CFE configuration ID
*
* Retreives the string value associated with the specified key.
* Retrieves the string value associated with the specified key.
*
* If no value has been set, or the key is not valid, this returns the
* special string "UNDEFINED"
Expand All @@ -87,7 +87,7 @@ const char *CFE_Config_GetString(CFE_ConfigId_t ConfigId);
/**
* @brief Obtain the name of a CFE configuration ID
*
* Retreives the printable name associated with the specified key.
* Retrieves the printable name associated with the specified key.
*
* @note This function does not return NULL.
*
Expand Down
2 changes: 1 addition & 1 deletion modules/core_api/fsw/inc/cfe_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const char *CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_t FileCategory);
** \param[in] InputBuffer A input buffer that may contain a file name (e.g. from command) @nonnull.
** \param[in] OutputBufSize Maximum Size of output buffer @nonzero.
** \param[in] InputBufSize Maximum Size of input buffer.
** \param[in] DefaultInput Default value to use for input if InputBffer is empty
** \param[in] DefaultInput Default value to use for input if InputBuffer is empty
** \param[in] DefaultPath Default value to use for pathname if omitted from input
** \param[in] DefaultExtension Default value to use for extension if omitted from input
**
Expand Down
2 changes: 1 addition & 1 deletion modules/core_private/ut-stubs/inc/ut_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ extern const char *UT_OSP_MESSAGES[];
*/
#define UT_LITTLE_ENDIAN 1
#define UT_BIG_ENDIAN 2
extern uint8 UT_Endianess;
extern uint8 UT_Endianness;

typedef struct
{
Expand Down
6 changes: 3 additions & 3 deletions modules/core_private/ut-stubs/src/ut_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
** Global variables
*/
uint8 UT_Endianess;
uint8 UT_Endianness;

static char UT_appname[80];
static char UT_subsys[5];
Expand Down Expand Up @@ -108,11 +108,11 @@ void UT_Init(const char *subsys)

if ((*(char *)&EndianCheck) == 0x04)
{
UT_Endianess = UT_LITTLE_ENDIAN;
UT_Endianness = UT_LITTLE_ENDIAN;
}
else
{
UT_Endianess = UT_BIG_ENDIAN;
UT_Endianness = UT_BIG_ENDIAN;
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/es/ut-coverage/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -4074,7 +4074,7 @@ void TestAPI(void)
UtAssert_UINT32_EQ(UtAppRecPtr->ControlReq.AppControlRequest, CFE_ES_RunStatus_APP_ERROR);

#if 0
/* Can't cover EXTERNAL CFE_ES_ExitApp since it contains a while(1) (infinte loop) */
/* Can't cover EXTERNAL CFE_ES_ExitApp since it contains a while(1) (infinite loop) */
ES_ResetUnitTest();
ES_UT_SetupSingleAppId(CFE_ES_AppType_EXTERNAL, CFE_ES_AppState_STOPPED, "UT", &UtAppRecPtr, NULL);
UtAppRecPtr->ControlReq.AppControlRequest = CFE_ES_RunStatus_APP_RUN;
Expand Down
2 changes: 1 addition & 1 deletion modules/msg/option_inc/default_cfe_msg_sechdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*/

/**
* \brief Macro to initialize secondary header, used in macro to intialize entire header which is useful in tables
* \brief Macro to initialize secondary header, used in macro to initialize entire header which is useful in tables
*/
#define CFE_MSG_CMD_HDR_SEC_INIT(fc, cksum) .Sec = {.FunctionCode = (fc), .Checksum = (cksum)}

Expand Down
14 changes: 7 additions & 7 deletions modules/tbl/ut-coverage/tbl_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void UT_TBL_SetupHeader(CFE_TBL_File_Hdr_t *TblFileHeader, size_t Offset, size_t
TblFileHeader->Offset = CFE_ES_MEMOFFSET_C(Offset);
TblFileHeader->NumBytes = CFE_ES_MEMOFFSET_C(NumBytes);

if (UT_Endianess == UT_LITTLE_ENDIAN)
if (UT_Endianness == UT_LITTLE_ENDIAN)
{
CFE_TBL_ByteSwapUint32(&TblFileHeader->Offset);
CFE_TBL_ByteSwapUint32(&TblFileHeader->NumBytes);
Expand Down Expand Up @@ -1243,7 +1243,7 @@ void Test_CFE_TBL_LoadCmd(void)
UT_SetReadHeader(&StdFileHeader, sizeof(StdFileHeader));
UtAssert_INT32_EQ(CFE_TBL_LoadCmd(&LoadCmd), CFE_TBL_INC_ERR_CTR);

/* Test with interal CFE_TBL_GetWorkingBuffer error (memcpy with matching address */
/* Test with internal CFE_TBL_GetWorkingBuffer error (memcpy with matching address */
UT_InitData();
CFE_TBL_Global.Registry[0].LoadInProgress = CFE_TBL_NO_LOAD_IN_PROGRESS;
CFE_TBL_Global.Registry[0].TableLoadedOnce = true;
Expand Down Expand Up @@ -2414,7 +2414,7 @@ void Test_CFE_TBL_ReleaseAddresses(void)
File.TblHeader.TableName[sizeof(File.TblHeader.TableName) - 1] = '\0';
UT_TBL_SetupHeader(&File.TblHeader, 0, sizeof(UT_Table1_t));

if (UT_Endianess == UT_LITTLE_ENDIAN)
if (UT_Endianness == UT_LITTLE_ENDIAN)
{
File.TblData.TblElement1 = 0x04030201;
File.TblData.TblElement2 = 0x08070605;
Expand Down Expand Up @@ -3070,7 +3070,7 @@ void Test_CFE_TBL_TblMod(void)
File.TblHeader.TableName[sizeof(File.TblHeader.TableName) - 1] = '\0';
UT_TBL_SetupHeader(&File.TblHeader, 0, sizeof(UT_Table1_t));

if (UT_Endianess == UT_LITTLE_ENDIAN)
if (UT_Endianness == UT_LITTLE_ENDIAN)
{
File.TblData.TblElement1 = 0x04030201;
File.TblData.TblElement2 = 0x08070605;
Expand Down Expand Up @@ -3412,7 +3412,7 @@ void Test_CFE_TBL_Internal(void)
TblFileHeader.NumBytes = sizeof(UT_Table1_t) - 1;
TblFileHeader.Offset = 0;

if (UT_Endianess == UT_LITTLE_ENDIAN)
if (UT_Endianness == UT_LITTLE_ENDIAN)
{
CFE_TBL_ByteSwapUint32(&TblFileHeader.NumBytes);
CFE_TBL_ByteSwapUint32(&TblFileHeader.Offset);
Expand Down Expand Up @@ -3880,7 +3880,7 @@ void Test_CFE_TBL_Internal(void)
TblFileHeader.NumBytes = sizeof(UT_Table1_t) - 1;
TblFileHeader.Offset = 0;

if (UT_Endianess == UT_LITTLE_ENDIAN)
if (UT_Endianness == UT_LITTLE_ENDIAN)
{
CFE_TBL_ByteSwapUint32(&TblFileHeader.NumBytes);
CFE_TBL_ByteSwapUint32(&TblFileHeader.Offset);
Expand Down Expand Up @@ -3910,7 +3910,7 @@ void Test_CFE_TBL_Internal(void)
TblFileHeader.NumBytes = sizeof(UT_Table1_t) - 1;
TblFileHeader.Offset = 0;

if (UT_Endianess == UT_LITTLE_ENDIAN)
if (UT_Endianness == UT_LITTLE_ENDIAN)
{
CFE_TBL_ByteSwapUint32(&TblFileHeader.NumBytes);
CFE_TBL_ByteSwapUint32(&TblFileHeader.Offset);
Expand Down