Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstroud committed Oct 20, 2020
2 parents e10876b + 36eb532 commit 506fc7b
Show file tree
Hide file tree
Showing 21 changed files with 2,996 additions and 3,793 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*~
*.o
dpcmd
26 changes: 8 additions & 18 deletions ChipInfoDb.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#pragma once
#ifndef ChipInfo_H

#ifndef ChipInfo_H
#define ChipInfo_H

#include "Macro.h"

#define NUMBER_OF_SUPPORTING_CHIPS 3

struct m_code_api
{
struct m_code_api {
int (*m_code_api_doRDSR)(unsigned char *cSR, int Index);
int (*m_code_api_doWRSR)(unsigned char cSR,int Index);
int (*m_code_api_doChipErase)(int Index);
Expand All @@ -15,23 +16,12 @@ struct m_code_api
int (*m_code_api_doSegmentErase)(void);
};



bool Dedi_List_AllChip(void);
int ChipInfoDbFindItem(CHIP_INFO ChipInfoDb[], int NumberOfItems, long JedecDeviceIDToFind);

void ChipInfoDump(long JedecDeviceIDToFind);

long ChipInfoDumpChipSizeInKByte(long Jedec);
int Dedi_Search_Chip_Db_ByTypeName(char* TypeName, CHIP_INFO *Chip_Info, int Index);
void getExecPath(char* Path);

int Dedi_Search_Chip_Db(long RDIDCommand, long UniqueID, CHIP_INFO* Chip_Info, int search_all);
int Dedi_Search_Chip_Db_ByTypeName(char* TypeName, CHIP_INFO* Chip_Info);
FILE* openChipInfoDb(void);

#endif








Loading

0 comments on commit 506fc7b

Please sign in to comment.