Skip to content

Commit

Permalink
Fat: Add errors and seph tags relative to Qi flash
Browse files Browse the repository at this point in the history
  • Loading branch information
abonnaudet-ledger committed Jul 19, 2023
1 parent 8b95938 commit 0606e11
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 10 additions & 1 deletion include/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ enum generic_identifiers {
ERR_GEN_ID_35,
ERR_GEN_ID_36,
ERR_GEN_ID_37,
ERR_GEN_ID_38
ERR_GEN_ID_38,
ERR_GEN_ID_39,
ERR_GEN_ID_3A,
ERR_GEN_ID_3B,
ERR_GEN_ID_3C
};

/**
Expand Down Expand Up @@ -622,6 +626,7 @@ enum generic_identifiers {
#define SWO_APD_LEN_2F (ERR_APD_LEN + ERR_GEN_ID_2F) // 0x672F
#define SWO_APD_LEN_30 (ERR_APD_LEN + ERR_GEN_ID_30) // 0x6730
#define SWO_APD_LEN_31 (ERR_APD_LEN + ERR_GEN_ID_31) // 0x6731
#define SWO_APD_LEN_32 (ERR_APD_LEN + ERR_GEN_ID_32) // 0x6732

#define SWO_APD_DAT_01 (ERR_APD_DAT + ERR_GEN_ID_01) // 0x6801
#define SWO_APD_DAT_02 (ERR_APD_DAT + ERR_GEN_ID_02) // 0x6802
Expand Down Expand Up @@ -731,6 +736,10 @@ enum generic_identifiers {
#define SWO_APD_STA_36 (ERR_APD_STA + ERR_GEN_ID_36) // 0x6636
#define SWO_APD_STA_37 (ERR_APD_STA + ERR_GEN_ID_37) // 0x6637
#define SWO_APD_STA_38 (ERR_APD_STA + ERR_GEN_ID_38) // 0x6638
#define SWO_APD_STA_39 (ERR_APD_STA + ERR_GEN_ID_39) // 0x6639
#define SWO_APD_STA_3A (ERR_APD_STA + ERR_GEN_ID_3A) // 0x663A
#define SWO_APD_STA_3B (ERR_APD_STA + ERR_GEN_ID_3B) // 0x663B
#define SWO_APD_STA_3C (ERR_APD_STA + ERR_GEN_ID_3C) // 0x663C

/**
* The process is successful.
Expand Down
10 changes: 9 additions & 1 deletion include/seproxyhal_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@
#define SEPROXYHAL_TAG_NFC_APDU_EVENT 0x1C
#endif

#define SEPH_PROTOCOL_EVT_POWER_BUTTON_EVENT 0x1B //
#define SEPH_PROTOCOL_EVT_POWER_BUTTON_EVENT 0x1B

#ifdef HAVE_QI_FLASH
#define SEPROXYHAL_TAG_STATUS_EVENT_QI_FLASH_CHECKSUM 0x1D
#endif

// COMMANDS
#ifdef HAVE_SEPROXYHAL_MCU
Expand Down Expand Up @@ -195,6 +199,10 @@
#define SEPROXYHAL_TAG_PLAY_TUNE 0x56
#endif // HAVE_PIEZO_SOUND

#ifdef HAVE_QI_FLASH
#define SEPROXYHAL_TAG_QI_FLASH 0x58
#endif

#ifdef HAVE_SHIP_MODE
#define SEPH_PROTOCOL_CMD_SET_SHIP_MODE 0x57
#endif // HAVE_SHIP_MODE
Expand Down

0 comments on commit 0606e11

Please sign in to comment.