mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
chg: revert fpga_major mode in LF.
chg: 'lf t55xx deviceconfig' - persistence to flashmem is now option with param P
This commit is contained in:
parent
b89b62164d
commit
dc67b5d7c9
10 changed files with 117 additions and 49 deletions
10
common/i2c.c
10
common/i2c.c
|
@ -88,11 +88,11 @@ void I2C_SetResetStatus(uint8_t LineRST, uint8_t LineSCK, uint8_t LineSDA) {
|
|||
// Reset the SIM_Adapter, then enter the main program
|
||||
// Note: the SIM_Adapter will not enter the main program after power up. Please run this function before use SIM_Adapter.
|
||||
void I2C_Reset_EnterMainProgram(void) {
|
||||
I2C_SetResetStatus(0, 0, 0); // 拉低复位线
|
||||
I2C_SetResetStatus(0, 0, 0);
|
||||
SpinDelay(30);
|
||||
I2C_SetResetStatus(1, 0, 0); // 解除复位
|
||||
I2C_SetResetStatus(1, 0, 0);
|
||||
SpinDelay(30);
|
||||
I2C_SetResetStatus(1, 1, 1); // 拉高数据线
|
||||
I2C_SetResetStatus(1, 1, 1);
|
||||
SpinDelay(10);
|
||||
}
|
||||
|
||||
|
@ -100,9 +100,9 @@ void I2C_Reset_EnterMainProgram(void) {
|
|||
// Reset the SIM_Adapter, then enter the bootloader program
|
||||
// Reserve£ºFor firmware update.
|
||||
void I2C_Reset_EnterBootloader(void) {
|
||||
I2C_SetResetStatus(0, 1, 1); // 拉低复位线
|
||||
I2C_SetResetStatus(0, 1, 1);
|
||||
SpinDelay(100);
|
||||
I2C_SetResetStatus(1, 1, 1); // 解除复位
|
||||
I2C_SetResetStatus(1, 1, 1);
|
||||
SpinDelay(10);
|
||||
}
|
||||
|
||||
|
|
|
@ -304,6 +304,7 @@ ISO 7816-4 Basic interindustry commands. For command APDU's.
|
|||
#define ISO7816_GET_CHALLENGE 0xB4
|
||||
#define ISO7816_MANAGE_CHANNEL 0x70
|
||||
|
||||
#define ISO7816_GETSTATUS 0xC0
|
||||
// ISO7816-4 For response APDU's
|
||||
#define ISO7816_OK 0x9000
|
||||
// 6x xx = ERROR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue