-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subsys/nfc : NFC subsystem + nRF NFCT drivers + nt3h2 driver + sample…
… code Signed-off-by: Hessel van der Molen <[email protected]>
- Loading branch information
Showing
145 changed files
with
20,322 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# | ||
# Copyright (c) 2023 Sendrato | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
if (CONFIG_NT3H2X11) | ||
zephyr_sources(nt3h2x11.c) | ||
endif() | ||
|
||
if (CONFIG_NRFXNFC) | ||
zephyr_sources(nrfxnfc.c) | ||
add_subdirectory(nrfxnfc) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright (c) 2023 Sendrato | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
rsource "Kconfig.nt3h2x11" | ||
rsource "Kconfig.nrfxnfc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Copyright (c) 2023 Sendrato | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
config NRFXNFC | ||
bool "nRFx-NFC driver" | ||
default n | ||
help | ||
Enable nRFx NFC driver. | ||
|
||
if NRFXNFC | ||
|
||
config NRFXNFC_DRV_NAME | ||
string "Device Tree name of nRFx-NFC driver" | ||
default "nRFxNFC" | ||
help | ||
Device Tree name of nRFx-NFC driver. | ||
|
||
config NRFXNFC_T2T | ||
bool "Enable NFC Type 2 Tag library" | ||
default n | ||
select NFC_T2T_NRFXLIB | ||
|
||
config NRFXNFC_T4T | ||
bool "Enable NFC Type 4 Tag library" | ||
default n | ||
select NFC_T4T_NRFXLIB | ||
|
||
config NRFXNFC_INIT_PRIORITY | ||
int "NRFXNFC NFC driver init priority" | ||
default 75 | ||
|
||
config NRFXNFC_MAX_PAYLOAD_SIZE | ||
int "Max payload in bytes" | ||
default 988 | ||
|
||
rsource "nrfxnfc/Kconfig" | ||
|
||
endif # NRFXNFC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# Copyright (c) 2023 Sendrato | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
config NT3H2X11 | ||
bool "NT3H2X11 NFC driver" | ||
default n | ||
depends on I2C | ||
help | ||
Enable I2C-based driver for NT3H2X11 led driver. | ||
|
||
if NT3H2X11 | ||
|
||
config NT3H2X11_2K | ||
bool "Use 2k memory map instead of 1k" | ||
default n | ||
help | ||
Use 2k memory map instead of 1k | ||
|
||
config NT3H2X11_MAX_WRITE_DELAY | ||
int "delay in ms" | ||
default 10 | ||
help | ||
Max I2C write delay in ms for when writing EEPROM | ||
|
||
config NT3H2X11_INIT_PRIORITY | ||
int "NT3H2X11 NFC driver init priority" | ||
default 75 | ||
|
||
module = NT3H2X11 | ||
module-str = nt3h2x11 | ||
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config" | ||
|
||
endif # NT3H2X11 |
Oops, something went wrong.