NFC: Add support for M24SR driver

The repository https://github.com/ARMmbed/mbed-nfc-m24sr
is no longer required to build applications that require
this driver.
pull/14092/head
Hugues Kamba 2020-12-24 17:21:34 +00:00
parent 5f541b22d0
commit d0076a9e61
5 changed files with 3070 additions and 0 deletions

View File

@ -4,3 +4,7 @@
if("PN512" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(PN512)
endif()
if("M24SR" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_M24SR)
endif()

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-nfc
INTERFACE
include
include/nfc
)
target_sources(mbed-nfc
INTERFACE
source/m24sr_driver.cpp
)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,15 @@
{
"name": "M24SR-nfc",
"config": {
"X_NUCLEO_NFC01A1": {
"macro_name": "MBED_CONF_X_NUCLEO_NFC01A1",
"value": false,
"help": "Device is using an X-NUCLEO-NFC01A1 shield attached through an arduino header"
},
"nfceeprom": {
"macro_name": "MBED_CONF_NFCEEPROM",
"value": true,
"help": "Device supports NFC EEPROM"
}
}
}

File diff suppressed because it is too large Load Diff