Skip to content

Commit 5d31704

Browse files
maje-embnordicjm
authored andcommitted
nfc: lib: platform: Update T4T buffer size
Updated T4T buffer size to ensure minimum requirement is 518 bytes. Ref: NCSDK-31052 Signed-off-by: Marcin Jelinski <[email protected]>
1 parent 71ba029 commit 5d31704

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

subsys/nfc/lib/platform.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ static struct onoff_client cli;
7272
())
7373

7474
#define NFC_T2T_BUFFER_SIZE (IS_ENABLED(CONFIG_NFC_T2T_NRFXLIB) ? NFC_PLATFORM_T2T_BUFFER_SIZE : 0U)
75-
#define NFC_T4T_BUFFER_SIZE (IS_ENABLED(CONFIG_NFC_T4T_NRFXLIB) ? NFC_PLATFORM_T4T_BUFFER_SIZE : 0U)
75+
#define NFC_T4T_BUFFER_SIZE (IS_ENABLED(CONFIG_NFC_T4T_NRFXLIB) ? \
76+
(2 * NFC_PLATFORM_T4T_BUFFER_SIZE) : 0U)
7677

7778
#define NFCT_PLATFORM_BUFFER_SIZE MAX(NFC_T4T_BUFFER_SIZE, NFC_T2T_BUFFER_SIZE)
7879

@@ -89,7 +90,7 @@ static uint8_t nfc_platform_buffer[NFCT_PLATFORM_BUFFER_SIZE] NFCT_MEMORY_SECTIO
8990

9091
#if CONFIG_NFC_T4T_NRFXLIB
9192
BUILD_ASSERT(sizeof(nfc_platform_buffer) >= NFC_T4T_BUFFER_SIZE,
92-
"Minimal buffer size for the NFC T4T operations must be at least 256 bytes");
93+
"Minimal buffer size for the NFC T4T operations must be at least 518 bytes");
9394
#endif /* CONFIG_NFC_T4T_NRFXLIB */
9495

9596
ISR_DIRECT_DECLARE(nfc_isr_wrapper)

0 commit comments

Comments
 (0)