Skip to content

Commit

Permalink
Fix nasa#165, Add CFE_PSP_GetProcessorName
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 24, 2020
1 parent 3f63a42 commit dc9e208
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fsw/inc/cfe_psp.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ extern uint32 CFE_PSP_GetSpacecraftId ( void );
** CFE_PSP_GetSpacecraftId retuns the Spacecraft ID (if any )
*/

extern const char * CFE_PSP_GetProcessorName(void);
/*
** CFE_PSP_GetProcessorName returns the processor name
*/

extern uint32 CFE_PSP_Get_Timer_Tick(void);
/*
Expand Down
21 changes: 21 additions & 0 deletions fsw/mcp750-vxworks/src/cfe_psp_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include <target_config.h>

#define CFE_PSP_CPU_ID (GLOBAL_CONFIGDATA.Default_CpuId)
#define CFE_PSP_CPU_NAME (GLOBAL_CONFIGDATA.Default_CpuName)
#define CFE_PSP_SPACECRAFT_ID (GLOBAL_CONFIGDATA.Default_SpacecraftId)

/*
Expand Down Expand Up @@ -192,3 +193,23 @@ uint32 CFE_PSP_GetSpacecraftId (void)
return CFE_PSP_SPACECRAFT_ID;
}

/*
** Name: CFE_PSP_GetProcessorName
**
** Purpose:
** return the processor name.
**
** Parameters:
**
** Global Inputs: None
**
** Global Outputs: None
**
**
** Return Values: Processor name
*/
const char *CFE_PSP_GetProcessorName (void)
{
return CFE_PSP_CPU_NAME;
}

22 changes: 22 additions & 0 deletions fsw/pc-linux/src/cfe_psp_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
*/
extern uint32 CFE_PSP_SpacecraftId;
extern uint32 CFE_PSP_CpuId;
extern char CFE_PSP_CpuName[];


/******************************************************************************
Expand Down Expand Up @@ -200,3 +201,24 @@ uint32 CFE_PSP_GetSpacecraftId (void)
{
return(CFE_PSP_SpacecraftId);
}

/*
** Name: CFE_PSP_GetProcessorName
**
** Purpose:
** return the processor name.
**
** Parameters:
**
** Global Inputs: None
**
** Global Outputs: None
**
**
** Return Values: Processor name
*/
const char *CFE_PSP_GetProcessorName (void)
{
return(CFE_PSP_CpuName);
}

20 changes: 20 additions & 0 deletions fsw/pc-rtems/src/cfe_psp_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,23 @@ uint32 CFE_PSP_GetSpacecraftId (void)
return(CFE_PSP_SPACECRAFT_ID);
}

/*
** Name: CFE_PSP_GetProcessorName
**
** Purpose:
** return the processor name.
**
** Parameters:
**
** Global Inputs: None
**
** Global Outputs: None
**
**
** Return Values: Processor name
*/
const char *CFE_PSP_GetProcessorName (void)
{
return(CFE_PSP_CPU_NAME);
}

0 comments on commit dc9e208

Please sign in to comment.