Index: firmware/App/Drivers/NVDriver.h =================================================================== diff -u -r45b03b9f23005c05fc75f69416595a155e250cbe -r43e60a63eae841e599ff9106f43177a8f63d22be --- firmware/App/Drivers/NVDriver.h (.../NVDriver.h) (revision 45b03b9f23005c05fc75f69416595a155e250cbe) +++ firmware/App/Drivers/NVDriver.h (.../NVDriver.h) (revision 43e60a63eae841e599ff9106f43177a8f63d22be) @@ -17,8 +17,23 @@ #include "Common.h" +/** + * @defgroup NVDriver NVDriver + * @brief + * + * @addtogroup NVDriver + * @{ + */ + +// ********** public definitions ********** + #define BANK7_SECTOR0_START_ADDRESS 0xF0200000 ///< Bank7 sector 0 start address. +#ifndef _RELEASE_ +#define SW_CONFIG_ENABLE_VALUE 1 ///< Software configuration enable. +#define SW_CONFIG_DISABLE_VALUE 0 ///< Software configuration disable. +#endif + /// NVDataMgmt memory operation modes enumeration. typedef enum NVDataMgmt_Operation { @@ -51,10 +66,14 @@ RECORD_JOBS_STATE_T recordJob; ///< Record job (i.e sector 0). } PROCESS_RECORD_JOB_T; +// ********** public function prototypes ********** + void initNVDriver( void ); void eraseSector( U32* startAddress ); void writeSector( U32* startAddress, U08* bufferAddress, U32 bufferSize ); void readSector( U32* startAddress, U32* bufferAddress, U32 bufferSize ); BOOL isFlashReady( void ); +/**@}*/ + #endif /* _NV_DRIVER_H */