[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:
hedger
2024-07-15 07:38:49 +03:00
committed by GitHub
parent a5e89315ae
commit ffa3996a5e
475 changed files with 3187 additions and 3159 deletions

View File

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

View File

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

View File

@@ -211,4 +211,4 @@ St25tbError st25tb_poller_sync_read(Nfc* nfc, St25tbData* data) {
nfc_poller_free(poller);
return poller_context.error;
}
}

View File

@@ -17,4 +17,4 @@ St25tbError st25tb_poller_sync_read(Nfc* nfc, St25tbData* data);
#ifdef __cplusplus
}
#endif
#endif