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:
Chris 2018-09-23 05:29:55 +02:00
commit dc67b5d7c9
10 changed files with 117 additions and 49 deletions

View file

@ -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);
}

View file

@ -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