-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- BMS Boss NVM bringup - BMS Worker NVM bringup - Support NVM in Bootloader to not overwrite NVM on download - Support NVM in the F105 - Added NVM FeatureDef
- Loading branch information
1 parent
b7efd8e
commit 2b92b1e
Showing
41 changed files
with
1,379 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
featureDefs: "#/components/bms_boss/FeatureDefs.yaml" | ||
featureDefs: | ||
- "#/components/bms_boss/FeatureDefs.yaml" | ||
- "#/components/shared/FeatureDefs/NVM_FeatureDefs.yaml" | ||
features: | ||
feature_cantx_swi: | ||
feature_canrx_swi: | ||
nvm_lib_enabled: true | ||
nvm_flash_backed: true | ||
nvm_block_size: 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* LIB_nvm_config.h | ||
* LIB_nvm Component Specific file | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "HW_tim.h" | ||
#include "HW_flash.h" | ||
#include "LIB_nvm.h" | ||
|
||
/****************************************************************************** | ||
* T Y P E D E F S | ||
******************************************************************************/ | ||
|
||
#define LIB_NVM_GET_TIME_MS HW_TIM_getTimeMS | ||
#define LIB_NVM_GET_FLASH_PAGE_SIZE FLASH_getPageSize | ||
#define LIB_NVM_CLEAR_FLASH_PAGES FLASH_erasePages | ||
#define LIB_NVM_WRITE_TO_FLASH(addr, data, bytes) FLASH_writeHalfwords(addr, data, bytes / sizeof(storage_t)) | ||
|
||
typedef enum | ||
{ | ||
NVM_ENTRYID_COUNT = 0U, | ||
} lib_nvm_entryId_E; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* libcrc_componentSpecific.h | ||
* | ||
* Configuration for the libcrc module | ||
*/ | ||
|
||
#define LIBCRC_CRC8_FAST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @file NVM.c | ||
* @brief Source code for Non Volatile Memory Manager | ||
*/ | ||
|
||
/****************************************************************************** | ||
* I N C L U D E S | ||
******************************************************************************/ | ||
|
||
#include "LIB_nvm.h" | ||
|
||
/****************************************************************************** | ||
* P U B L I C V A R S | ||
******************************************************************************/ | ||
|
||
const lib_nvm_entry_S lib_nvm_entries[NVM_ENTRYID_COUNT]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
featureDefs: "#/components/bms_worker/FeatureDefs.yaml" | ||
featureDefs: | ||
- "#/components/bms_worker/FeatureDefs.yaml" | ||
- "#/components/shared/FeatureDefs/NVM_FeatureDefs.yaml" | ||
features: | ||
feature_max14921_calibrate: | ||
feature_cantx_swi: | ||
feature_canrx_swi: | ||
feature_cell_diagnostics: | ||
nvm_lib_enabled: true | ||
nvm_flash_backed: true | ||
nvm_block_size: 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* LIB_nvm_config.h | ||
* LIB_nvm Component Specific file | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "HW_tim.h" | ||
#include "HW_flash.h" | ||
#include "LIB_nvm.h" | ||
|
||
/****************************************************************************** | ||
* T Y P E D E F S | ||
******************************************************************************/ | ||
|
||
#define LIB_NVM_GET_TIME_MS HW_TIM_getTimeMS | ||
#define LIB_NVM_GET_FLASH_PAGE_SIZE FLASH_getPageSize | ||
#define LIB_NVM_CLEAR_FLASH_PAGES FLASH_erasePages | ||
#define LIB_NVM_WRITE_TO_FLASH(addr, data, bytes) FLASH_writeHalfwords(addr, data, bytes / sizeof(storage_t)) | ||
|
||
typedef enum | ||
{ | ||
NVM_ENTRYID_COUNT = 0U, | ||
} lib_nvm_entryId_E; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* libcrc_componentSpecific.h | ||
* | ||
* Configuration for the libcrc module | ||
*/ | ||
|
||
#define LIBCRC_CRC8_FAST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @file NVM.c | ||
* @brief Source code for Non Volatile Memory Manager | ||
*/ | ||
|
||
/****************************************************************************** | ||
* I N C L U D E S | ||
******************************************************************************/ | ||
|
||
#include "LIB_nvm.h" | ||
|
||
/****************************************************************************** | ||
* P U B L I C V A R S | ||
******************************************************************************/ | ||
|
||
const lib_nvm_entry_S lib_nvm_entries[NVM_ENTRYID_COUNT]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.