Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@
#include "cfe_psp_exceptionstorage_api.h"

uint32 UT_Get_Exception_MaxEntries(void);
size_t UT_Get_Exception_Size(void);
size_t UT_Get_Exception_TotalStorageSize(void);
uint32 UT_Get_Exception_Id(struct CFE_PSP_Exception_LogData *Buffer);
void UT_Generate_Exception_Context(struct CFE_PSP_Exception_LogData *Buffer, size_t Size);

void UT_Set_Exception_StoragePtr(void *Ptr);
void UT_Set_Exception_StorageReadWrite(uint32 rd, uint32 wr);

#endif
21 changes: 0 additions & 21 deletions unit-test-coverage/shared/adaptors/src/ut-adaptor-exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,11 @@
#define CFE_PSP_MAX_EXCEPTION_ENTRIES 4
#define CFE_PSP_MAX_EXCEPTION_BACKTRACE_SIZE 16

void UT_Set_Exception_StoragePtr(void *Ptr)
{
CFE_PSP_ReservedMemoryMap.ExceptionStoragePtr = Ptr;
}

void UT_Set_Exception_StorageReadWrite(uint32 rd, uint32 wr)
{
CFE_PSP_ReservedMemoryMap.ExceptionStoragePtr->NumRead = rd;
CFE_PSP_ReservedMemoryMap.ExceptionStoragePtr->NumWritten = wr;
}

uint32 UT_Get_Exception_MaxEntries(void)
{
return CFE_PSP_MAX_EXCEPTION_ENTRIES;
}

size_t UT_Get_Exception_Size(void)
{
return sizeof(CFE_PSP_Exception_ContextDataEntry_t);
}

size_t UT_Get_Exception_TotalStorageSize(void)
{
return sizeof(CFE_PSP_ExceptionStorage_t);
}

void UT_Generate_Exception_Context(struct CFE_PSP_Exception_LogData *Buffer, size_t Size)
{
size_t i;
Expand Down
Loading