Skip to content

Commit

Permalink
Fix #308, Correct code comment typos
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt authored and astrogeco committed Sep 11, 2021
1 parent 493bad5 commit 1dbc61c
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions fsw/inc/cfe_psp.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ extern void CFE_PSP_Main(void);
*
* Outputs an OS_time_t value indicating the time elapsed since an epoch. The
* epoch is not defined, but typically represents the system boot time. The
* value increases continously over time and cannot be reset by software.
* value increases continuously over time and cannot be reset by software.
*
* This is similar to the CFE_PSP_Get_Timebase(), but additionally it normalizes
* the output value to an OS_time_t, thereby providing consistent units to
Expand Down Expand Up @@ -221,7 +221,7 @@ extern uint32 CFE_PSP_GetProcessorId(void);

extern uint32 CFE_PSP_GetSpacecraftId(void);
/*
** CFE_PSP_GetSpacecraftId retuns the Spacecraft ID (if any )
** CFE_PSP_GetSpacecraftId returns the Spacecraft ID (if any )
*/

extern const char *CFE_PSP_GetProcessorName(void);
Expand Down
2 changes: 1 addition & 1 deletion fsw/mcp750-vxworks/inc/cfe_psp_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#define CFE_PSP_VX_TIMEBASE_PERIOD_DENOMINATOR 1

/*
** This define sets the number of memory ranges that are defined in the memory range defintion
** This define sets the number of memory ranges that are defined in the memory range definition
** table.
*/
#define CFE_PSP_MEM_TABLE_SIZE 10
Expand Down
4 changes: 2 additions & 2 deletions fsw/mcp750-vxworks/src/cfe_psp_exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void CFE_PSP_ExceptionHook(TASK_ID task_id, int vector, void *vpEsf);
**
** Name: CFE_PSP_AttachExceptions
**
** Purpose: This function Initializes the task execptions and adds a hook
** Purpose: This function Initializes the task exceptions and adds a hook
** into the VxWorks exception handling. The below hook is called
** for every exception that VxWorks catches.
**
Expand Down Expand Up @@ -178,7 +178,7 @@ void CFE_PSP_SetDefaultExceptionEnvironment(void)

vxFpscrSet(vxFpscrGet() | _PPC_FPSCR_VE | /* enable exceptions for invalid operations */
_PPC_FPSCR_OE | /* enable overflow exceptions */
_PPC_FPSCR_NI | /* Non-IEEE mode for denormailized numbers */
_PPC_FPSCR_NI | /* Non-IEEE mode for denormalized numbers */
_PPC_FPSCR_ZE); /* enable divide by zero exceptions */

vxFpscrSet(vxFpscrGet() | _PPC_FPSCR_XE | /* fp inexact exc enable */
Expand Down
4 changes: 2 additions & 2 deletions fsw/mcp750-vxworks/src/cfe_psp_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
** Purpose:
** cFE PSP Memory related functions. This is the implementation of the cFE
** memory areas that have to be preserved, and the API that is designed to allow
** acccess to them. It also contains memory related routines to return the
** access to them. It also contains memory related routines to return the
** address of the kernel code used in the cFE checksum.
**
** History:
Expand Down Expand Up @@ -457,7 +457,7 @@ int32 CFE_PSP_GetKernelTextSegmentInfo(cpuaddr *PtrToKernelSegment, uint32 *Size
/*
** Get the kernel start and end
** addresses from the BSP, because the
** symbol table does not contain the symbls we need for this
** symbol table does not contain the symbols we need for this
*/
StartAddress = (cpuaddr)GetWrsKernelTextStart();
EndAddress = (cpuaddr)GetWrsKernelTextEnd();
Expand Down
2 changes: 1 addition & 1 deletion fsw/mcp750-vxworks/src/cfe_psp_ssr.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2005/06/05 Alan Cudmore | Initial version,
Expand Down
2 changes: 1 addition & 1 deletion fsw/mcp750-vxworks/src/cfe_psp_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void OS_Application_Startup(void)

/*
** Set up the virtual FS mapping for the "/cf" directory
** On this platform it is will use the CF:0 physical device.
** On this platform it will use the CF:0 physical device.
*/
Status = OS_FileSysAddFixedMap(&fs_id, "CF:0", "/cf");
if (Status != OS_SUCCESS)
Expand Down
2 changes: 1 addition & 1 deletion fsw/mcp750-vxworks/src/cfe_psp_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2005/06/05 Alan Cudmore | Initial version,
Expand Down
2 changes: 1 addition & 1 deletion fsw/mcp750-vxworks/src/cfe_psp_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2009/07/20 A. Cudmore | Initial version,
Expand Down
2 changes: 1 addition & 1 deletion fsw/modules/eeprom_direct/cfe_psp_eeprom_direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ int32 CFE_PSP_EepromWrite8(cpuaddr MemoryAddress, uint8 ByteValue)
** Name: CFE_PSP_EepromWriteEnable
**
** Purpose:
** Eable the eeprom for write operation
** Enable the eeprom for write operation
**
** Assumptions and Notes:
**
Expand Down
2 changes: 1 addition & 1 deletion fsw/modules/eeprom_mmap_file/cfe_psp_eeprom_mmap_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int32 CFE_PSP_SetupEEPROM(uint32 EEPROMSize, cpuaddr *EEPROMAddress)

/* For read/write - As this is mmap'ed we dereference the pointer directly.
* Hopefully the caller didn't get it wrong.
* No need to anything special for 8/16/32 width access in this mode.
* No need to do anything special for 8/16/32 width access in this mode.
*/
int32 CFE_PSP_EepromWrite32(cpuaddr MemoryAddress, uint32 uint32Value)
{
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-linux/inc/cfe_psp_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <pthread.h>

/*
** This define sets the number of memory ranges that are defined in the memory range defintion
** This define sets the number of memory ranges that are defined in the memory range definition
** table.
*/
#define CFE_PSP_MEM_TABLE_SIZE 10
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-linux/src/cfe_psp_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
** Purpose:
** cFE PSP Memory related functions. This is the implementation of the cFE
** memory areas that have to be preserved, and the API that is designed to allow
** acccess to them. It also contains memory related routines to return the
** access to them. It also contains memory related routines to return the
** address of the kernel code used in the cFE checksum.
**
** History:
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-linux/src/cfe_psp_ssr.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2005/06/05 Alan Cudmore | Initial version,
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-linux/src/cfe_psp_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
******************************************************************************/

Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-linux/src/cfe_psp_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2009/07/20 A. Cudmore | Initial version,
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-rtems/inc/cfe_psp_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <rtems.h>

/*
** This define sets the number of memory ranges that are defined in the memory range defintion
** This define sets the number of memory ranges that are defined in the memory range definition
** table.
*/
#define CFE_PSP_MEM_TABLE_SIZE 10
Expand Down
8 changes: 4 additions & 4 deletions fsw/pc-rtems/src/cfe_psp_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
** Purpose:
** cFE PSP Memory related functions. This is the implementation of the cFE
** memory areas that have to be preserved, and the API that is designed to allow
** acccess to them. It also contains memory related routines to return the
** access to them. It also contains memory related routines to return the
** address of the kernel code used in the cFE checksum.
**
** History:
Expand Down Expand Up @@ -421,7 +421,7 @@ void CFE_PSP_SetupReservedMemoryMap(void)

/*
* Set up the "RAM" entry in the memory table.
* On RTEMS this is just encompasses the entire memory space, but an entry needs
* On RTEMS this just encompasses the entire memory space, but an entry needs
* to exist so that CFE_PSP_ValidateMemRange() works as intended.
*/
CFE_PSP_MemRangeSet(0, CFE_PSP_MEM_RAM, 0, SIZE_MAX, CFE_PSP_MEM_SIZE_DWORD, CFE_PSP_MEM_ATTR_READWRITE);
Expand Down Expand Up @@ -480,7 +480,7 @@ int32 CFE_PSP_GetKernelTextSegmentInfo(cpuaddr *PtrToKernelSegment, uint32 *Size
/*
** Get the kernel start and end
** addresses from the BSP, because the
** symbol table does not contain the symbls we need for this
** symbol table does not contain the symbols we need for this
*/
StartAddress = (cpuaddr)0x0;
EndAddress = (cpuaddr)0x1024;
Expand Down Expand Up @@ -522,7 +522,7 @@ int32 CFE_PSP_GetCFETextSegmentInfo(cpuaddr *PtrToCFESegment, uint32 *SizeOfCFES
/*
** Get the kernel start and end
** addresses from the BSP, because the
** symbol table does not contain the symbls we need for this
** symbol table does not contain the symbols we need for this
*/
StartAddress = (cpuaddr)0x0;
EndAddress = (cpuaddr)0x1024;
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-rtems/src/cfe_psp_ssr.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2005/06/05 Alan Cudmore | Initial version,
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-rtems/src/cfe_psp_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2005/06/05 Alan Cudmore | Initial version,
Expand Down
2 changes: 1 addition & 1 deletion fsw/pc-rtems/src/cfe_psp_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
** Purpose:
** This file contains glue routines between the cFE and the OS Board Support Package ( BSP ).
** The functions here allow the cFE to interface functions that are board and OS specific
** and usually dont fit well in the OS abstraction layer.
** and usually don't fit well in the OS abstraction layer.
**
** History:
** 2009/07/20 A. Cudmore | Initial version,
Expand Down
4 changes: 2 additions & 2 deletions fsw/shared/inc/cfe_psp_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ typedef enum
} CFE_PSP_ModuleType_t;

/**
* Protoype for a PSP module initialization function
* Prototype for a PSP module initialization function
*/
typedef void (*CFE_PSP_ModuleInitFunc_t)(uint32 PspModuleId);

Expand Down Expand Up @@ -77,7 +77,7 @@ typedef const struct
*
* This function should only be called during PSP initialization before the
* system is operational. It is not intended to be called from application code after
* CFE has started. The function is not necessarily be thread-safe and should be called
* CFE has started. The function is not necessarily thread-safe and should be called
* before any child threads are created.
*
* Note that this does _not_ return any status --
Expand Down
8 changes: 4 additions & 4 deletions fsw/shared/src/cfe_psp_memrange.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ uint32 CFE_PSP_MemRanges(void)
** Global Outputs: Changes CFE_PSP_MemoryTable
**
** Return Values:
** CFE_PSP_SUCCESS -- Memory range set successfuly.
** CFE_PSP_SUCCESS -- Memory range set successfully.
** CFE_PSP_INVALID_MEM_RANGE -- The index into the table is invalid
** CFE_PSP_INVALID_MEM_ADDR -- Starting address is not valid
** CFE_PSP_INVALID_MEM_TYPE -- Memory type associated with the range does not match the passed in type.
Expand Down Expand Up @@ -262,7 +262,7 @@ int32 CFE_PSP_MemRangeSet(uint32 RangeNum, uint32 MemoryType, cpuaddr StartAddr,
** This function retrieves one of the records in the CFE_PSP_MemoryTable.
**
** Assumptions and Notes:
** Becasue the table is fixed size, the entries are accessed by using the integer index.
** Because the table is fixed size, the entries are accessed by using the integer index.
**
** Parameters:
** RangeNum -- A 32 bit integer ( starting with 0 ) specifying the MemoryTable entry.
Expand All @@ -272,7 +272,7 @@ int32 CFE_PSP_MemRangeSet(uint32 RangeNum, uint32 MemoryType, cpuaddr StartAddr,
** is stored.
** *Size -- A pointer to the 32 bit integer where the 32 bit size of the memory range
** is stored.
** *WordSize -- A pointer to the 32 bit integer where the the minimum addressable size of the range:
** *WordSize -- A pointer to the 32 bit integer where the minimum addressable size of the range:
** ( CFE_PSP_MEM_SIZE_BYTE, CFE_PSP_MEM_SIZE_WORD, CFE_PSP_MEM_SIZE_DWORD )
** Attributes -- The attributes of the Memory Range:
** (CFE_PSP_MEM_ATTR_WRITE, CFE_PSP_MEM_ATTR_READ, CFE_PSP_MEM_ATTR_READWRITE)
Expand All @@ -282,7 +282,7 @@ int32 CFE_PSP_MemRangeSet(uint32 RangeNum, uint32 MemoryType, cpuaddr StartAddr,
** Global Outputs: Changes CFE_PSP_MemoryTable
**
** Return Values:
** CFE_PSP_SUCCESS -- Memory range returned successfuly.
** CFE_PSP_SUCCESS -- Memory range returned successfully.
** CFE_PSP_INVALID_POINTER -- Parameter error
** CFE_PSP_INVALID_MEM_RANGE -- The index into the table is invalid
*/
Expand Down
2 changes: 1 addition & 1 deletion fsw/shared/src/cfe_psp_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static uint32 CFE_PSP_ModuleCount = 0;
/***************************************************
* Function Name: CFE_PSP_ModuleInitList
*
* Helper function to initalize a list of modules (not externally called)
* Helper function to initialize a list of modules (not externally called)
*/
void CFE_PSP_ModuleInitList(CFE_StaticModuleLoadEntry_t *ListPtr)
{
Expand Down
2 changes: 1 addition & 1 deletion unit-test-coverage/ut-stubs/inc/PCS_vxWorks.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ typedef long PCS_Vx_usr_arg_t;
* without arguments, e.g. "int (*FUNCPTR)()". This is acceptable
* by some compilers but generally incompatible with the
* "-Wstrict-prototype" gcc warning option. So in this override it
* is defined as a int argument. This means that application code
* is defined as an int argument. This means that application code
* may need to cast it at the time of use (which is generally done anyway).
*/
typedef int (*PCS_FUNCPTR)(int);
Expand Down

0 comments on commit 1dbc61c

Please sign in to comment.