mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
[FL-3867] Code formatting update (#3765)
* clang-format: AllowShortEnumsOnASingleLine: false * clang-format: InsertNewlineAtEOF: true * clang-format: Standard: c++20 * clang-format: AlignConsecutiveBitFields * clang-format: AlignConsecutiveMacros * clang-format: RemoveParentheses: ReturnStatement * clang-format: RemoveSemicolon: true * Restored RemoveParentheses: Leave, retained general changes for it * formatting: fixed logging TAGs * Formatting update for dev Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
#include <nfc/nfc_common.h>
|
||||
#include <nfc/helpers/iso14443_crc.h>
|
||||
|
||||
#define ST25TB_PROTOCOL_NAME "ST25TB"
|
||||
#define ST25TB_TYPE_KEY "ST25TB Type"
|
||||
#define ST25TB_BLOCK_KEY "Block %d"
|
||||
#define ST25TB_PROTOCOL_NAME "ST25TB"
|
||||
#define ST25TB_TYPE_KEY "ST25TB Type"
|
||||
#define ST25TB_BLOCK_KEY "Block %d"
|
||||
#define ST25TB_SYSTEM_BLOCK_KEY "System OTP Block"
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -9,13 +9,13 @@ extern "C" {
|
||||
#define ST25TB_UID_SIZE (8U)
|
||||
|
||||
//#define ST25TB_FDT_FC (4205U)
|
||||
#define ST25TB_FDT_FC (8494U)
|
||||
#define ST25TB_GUARD_TIME_US (5000U)
|
||||
#define ST25TB_FDT_FC (8494U)
|
||||
#define ST25TB_GUARD_TIME_US (5000U)
|
||||
#define ST25TB_POLL_POLL_MIN_US (1280U)
|
||||
|
||||
#define ST25TB_MAX_BLOCKS (128U)
|
||||
#define ST25TB_MAX_BLOCKS (128U)
|
||||
#define ST25TB_SYSTEM_OTP_BLOCK (0xFFU)
|
||||
#define ST25TB_BLOCK_SIZE (4U)
|
||||
#define ST25TB_BLOCK_SIZE (4U)
|
||||
|
||||
typedef enum {
|
||||
St25tbErrorNone,
|
||||
|
||||
@@ -211,4 +211,4 @@ St25tbError st25tb_poller_sync_read(Nfc* nfc, St25tbData* data) {
|
||||
nfc_poller_free(poller);
|
||||
|
||||
return poller_context.error;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,4 @@ St25tbError st25tb_poller_sync_read(Nfc* nfc, St25tbData* data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user