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
13 changes: 13 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Add Issue or PR to Project

on:
issues:
types: [opened]
pull_request_target:
types: [opened, ready_for_review, converted_to_draft]

jobs:
add-to-project:
name: Add issue or pull request to project
uses: nasa/cFS/.github/workflows/add-to-project-reusable.yml@dev
secrets: inherit
7 changes: 3 additions & 4 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy Documentation
name: Build Documentation

on:
push:
Expand All @@ -15,9 +15,8 @@ on:
jobs:
build-documentation:
name: Build and deploy cFS documents
uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main
uses: nasa/cFS/.github/workflows/build-doc-reusable.yml@dev
with:
target: "[\"mm-usersguide\"]"
app-name: mm
buildpdf: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
deploy: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}
buildpdf: ${{ github.event_name == 'push' && (contains(github.ref, 'main') || contains(github.ref, 'dev')) }}
5 changes: 4 additions & 1 deletion .github/workflows/build-run-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ on:
- reopened
- synchronize
workflow_dispatch:
schedule:
# 9:35 PM UTC every Sunday
- cron: '35 21 * * 0'

jobs:
build-run:
name: Build and run with startup msg verification
uses: nasa/cFS/.github/workflows/build-run-app.yml@main
uses: nasa/cFS/.github/workflows/build-run-app-reusable.yml@dev
5 changes: 1 addition & 4 deletions .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ on:
jobs:
codeql:
name: Codeql Analysis
uses: nasa/cFS/.github/workflows/codeql-reusable.yml@main
uses: nasa/cFS/.github/workflows/codeql-reusable.yml@dev
with:
component-path: apps/mm
prep: 'make prep; make -C build/tools/elf2cfetbl'
make: 'make -C build/native/default_cpu1/apps/mm'
setup: |
cp ./cfe/cmake/Makefile.sample Makefile && cp -r ./cfe/cmake/sample_defs sample_defs
sed -i "/list(APPEND MISSION_GLOBAL_APPLIST/a list(APPEND MISSION_GLOBAL_APPLIST mm)" sample_defs/targets.cmake
7 changes: 6 additions & 1 deletion .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ name: Format Check

# Run on all push and pull requests
on:
push:
branches:
- dev
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
format-check:
name: Run format check
uses: nasa/cFS/.github/workflows/format-check.yml@main
uses: nasa/cFS/.github/workflows/format-check.yml@dev
20 changes: 20 additions & 0 deletions .github/workflows/mcdc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: MCDC Analysis

on:
push:
branches:
- dev
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
mcdc:
name: Run MCDC Analysis
uses: nasa/cFS/.github/workflows/mcdc-reusable.yml@dev
with:
app-name: 'mm'
6 changes: 2 additions & 4 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ on:

jobs:
static-analysis:
name: Run cppcheck
uses: nasa/cFS/.github/workflows/static-analysis.yml@main
with:
strict-dir-list: './fsw'
name: Static Analysis
uses: nasa/cFS/.github/workflows/app-static-analysis-reusable.yml@dev
5 changes: 4 additions & 1 deletion .github/workflows/unit-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ on:
- reopened
- synchronize
workflow_dispatch:
schedule:
# 9:25 PM UTC every Sunday
- cron: '25 21 * * 0'

jobs:
unit-test-coverage:
name: Run unit test and coverage
uses: nasa/cFS/.github/workflows/unit-test-coverage.yml@main
uses: nasa/cFS/.github/workflows/unit-test-coverage-reusable.yml@dev
57 changes: 30 additions & 27 deletions config/default_mm_extern_typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,49 +32,52 @@
/* ======== */

typedef CFE_ES_MemAddress_t MM_MemAddress_t;
typedef uint32 MM_MemSize_t;
typedef uint32 MM_MemSize_t;

/**
* @brief Last Action Identifiers
*/
enum {
MM_LastAction_NOACTION = 0, /**< \brief Used to clear out HK action variable */
MM_LastAction_PEEK = 1, /**< \brief Peek action */
MM_LastAction_POKE = 2, /**< \brief Poke action */
MM_LastAction_LOAD_FROM_FILE = 3, /**< \brief Load from file action */
MM_LastAction_LOAD_WID = 4, /**< \brief Load with interrupts disabled action */
MM_LastAction_DUMP_TO_FILE = 5, /**< \brief Dump to file action */
MM_LastAction_DUMP_INEVENT = 6, /**< \brief Dump in event action */
MM_LastAction_FILL = 7, /**< \brief Fill action */
MM_LastAction_SYM_LOOKUP = 8, /**< \brief Symbol lookup action */
MM_LastAction_SYMTBL_SAVE = 9, /**< \brief Dump symbol table to file action */
MM_LastAction_EEPROMWRITE_ENA = 10, /**< \brief EEPROM write enable action */
MM_LastAction_EEPROMWRITE_DIS = 11, /**< \brief EEPROM write disable action */
MM_LastAction_NOOP = 12, /**< \brief No-op action */
MM_LastAction_RESET = 13 /**< \brief Reset counters action */
enum
{
MM_LastAction_NOACTION = 0, /**< \brief Used to clear out HK action variable */
MM_LastAction_PEEK = 1, /**< \brief Peek action */
MM_LastAction_POKE = 2, /**< \brief Poke action */
MM_LastAction_LOAD_FROM_FILE = 3, /**< \brief Load from file action */
MM_LastAction_LOAD_WID = 4, /**< \brief Load with interrupts disabled action */
MM_LastAction_DUMP_TO_FILE = 5, /**< \brief Dump to file action */
MM_LastAction_DUMP_INEVENT = 6, /**< \brief Dump in event action */
MM_LastAction_FILL = 7, /**< \brief Fill action */
MM_LastAction_SYM_LOOKUP = 8, /**< \brief Symbol lookup action */
MM_LastAction_SYMTBL_SAVE = 9, /**< \brief Dump symbol table to file action */
MM_LastAction_EEPROMWRITE_ENA = 10, /**< \brief EEPROM write enable action */
MM_LastAction_EEPROMWRITE_DIS = 11, /**< \brief EEPROM write disable action */
MM_LastAction_NOOP = 12, /**< \brief No-op action */
MM_LastAction_RESET = 13 /**< \brief Reset counters action */
};

typedef uint8 MM_LastAction_Enum_t;

/**
* \brief Memory Types
*/
typedef enum {
MM_MemType_NOMEMTYPE = 0, /**< \brief Used to indicate that no memtype specified */
MM_MemType_RAM = 1, /**< \brief Normal RAM, no special access required */
MM_MemType_EEPROM = 2, /**< \brief EEPROM, requires special access for writes */
MM_MemType_MEM8 = 3, /**< \brief Optional memory type that is only 8-bit read/write */
MM_MemType_MEM16 = 4, /**< \brief Optional memory type that is only 16-bit read/write */
MM_MemType_MEM32 = 5 /**< \brief Optional memory type that is only 32-bit read/write */
typedef enum
{
MM_MemType_NOMEMTYPE = 0, /**< \brief Used to indicate that no memtype specified */
MM_MemType_RAM = 1, /**< \brief Normal RAM, no special access required */
MM_MemType_EEPROM = 2, /**< \brief EEPROM, requires special access for writes */
MM_MemType_MEM8 = 3, /**< \brief Optional memory type that is only 8-bit read/write */
MM_MemType_MEM16 = 4, /**< \brief Optional memory type that is only 16-bit read/write */
MM_MemType_MEM32 = 5 /**< \brief Optional memory type that is only 32-bit read/write */
} MM_MemType_Enum_t;

/**
* \brief Symbolic Address Type
*/
typedef struct {
MM_MemAddress_t Offset; /**< \brief Optional offset that is used as the
absolute address if the SymName string is NUL */
char SymName[CFE_MISSION_MAX_PATH_LEN]; /**< \brief Symbol name string */
typedef struct
{
MM_MemAddress_t Offset; /**< \brief Optional offset that is used as the
absolute address if the SymName string is NUL */
char SymName[CFE_MISSION_MAX_PATH_LEN]; /**< \brief Symbol name string */
} MM_SymAddr_t;

#endif /* DEFAULT_MM_EXTERN_TYPEDEFS_H */
29 changes: 15 additions & 14 deletions config/default_mm_fcncode_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,21 @@
/* Typedefs */
/* ======== */

enum MM_FunctionCode {
MM_FunctionCode_NOOP = 0,
MM_FunctionCode_RESET = 1,
MM_FunctionCode_PEEK = 2,
MM_FunctionCode_POKE = 3,
MM_FunctionCode_LOAD_MEM_WID = 4,
MM_FunctionCode_LOAD_MEM_FROM_FILE = 5,
MM_FunctionCode_DUMP_MEM_TO_FILE = 6,
MM_FunctionCode_DUMP_IN_EVENT = 7,
MM_FunctionCode_FILL_MEM = 8,
MM_FunctionCode_LOOKUP_SYM = 9,
MM_FunctionCode_SYMTBL_TO_FILE = 10,
MM_FunctionCode_ENABLE_EEPROM_WRITE = 11,
MM_FunctionCode_DISABLE_EEPROM_WRITE = 12,
enum MM_FunctionCode
{
MM_FunctionCode_NOOP = 0,
MM_FunctionCode_RESET = 1,
MM_FunctionCode_PEEK = 2,
MM_FunctionCode_POKE = 3,
MM_FunctionCode_LOAD_MEM_WID = 4,
MM_FunctionCode_LOAD_MEM_FROM_FILE = 5,
MM_FunctionCode_DUMP_MEM_TO_FILE = 6,
MM_FunctionCode_DUMP_IN_EVENT = 7,
MM_FunctionCode_FILL_MEM = 8,
MM_FunctionCode_LOOKUP_SYM = 9,
MM_FunctionCode_SYMTBL_TO_FILE = 10,
MM_FunctionCode_ENABLE_EEPROM_WRITE = 11,
MM_FunctionCode_DISABLE_EEPROM_WRITE = 12,
};

#endif /* DEFAULT_MM_FCNCODE_VALUES_H */
15 changes: 8 additions & 7 deletions config/default_mm_filedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@
* and restore capability). This MM header is the secondary header, the
* standard cFE file header is primary header for all load and dump files.
*/
typedef struct {
MM_SymAddr_t SymAddress; /**< \brief Symbolic load address or fully resolved
dump address */
uint32 NumOfBytes; /**< \brief Bytes to load or bytes dumped */
uint32 Crc; /**< \brief CRC value for load or dump data */
MM_MemType_Enum_t MemType; /**< \brief Memory type used */
uint8 Spare[3]; /**< \brief Structure Padding */
typedef struct
{
MM_SymAddr_t SymAddress; /**< \brief Symbolic load address or fully resolved
dump address */
uint32 NumOfBytes; /**< \brief Bytes to load or bytes dumped */
uint32 Crc; /**< \brief CRC value for load or dump data */
MM_MemType_Enum_t MemType; /**< \brief Memory type used */
uint8 Spare[3]; /**< \brief Structure Padding */
} MM_LoadDumpFileHeader_t;

#endif
Loading
Loading