Demonstration of possible usage of the NFC EEPROM class (including support for ST25DV NFC chip)

Dependencies:   eeprom_driver

Committer:
apalmieri
Date:
Tue Jan 28 16:08:05 2020 +0000
Revision:
6:462737ad2938
Add ST25DV driver support

Who changed what in which revision?

UserRevisionLine numberNew contents of line
apalmieri 6:462737ad2938 1 /* mbed Microcontroller Library
apalmieri 6:462737ad2938 2 * Copyright (c) 2018-2018 ARM Limited
apalmieri 6:462737ad2938 3 *
apalmieri 6:462737ad2938 4 * Licensed under the Apache License, Version 2.0 (the "License");
apalmieri 6:462737ad2938 5 * you may not use this file except in compliance with the License.
apalmieri 6:462737ad2938 6 * You may obtain a copy of the License at
apalmieri 6:462737ad2938 7 *
apalmieri 6:462737ad2938 8 * http://www.apache.org/licenses/LICENSE-2.0
apalmieri 6:462737ad2938 9 *
apalmieri 6:462737ad2938 10 * Unless required by applicable law or agreed to in writing, software
apalmieri 6:462737ad2938 11 * distributed under the License is distributed on an "AS IS" BASIS,
apalmieri 6:462737ad2938 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
apalmieri 6:462737ad2938 13 * See the License for the specific language governing permissions and
apalmieri 6:462737ad2938 14 * limitations under the License.
apalmieri 6:462737ad2938 15 */
apalmieri 6:462737ad2938 16
apalmieri 6:462737ad2938 17 #include "EEPROMDriver.h"
apalmieri 6:462737ad2938 18 #include "st25dv_driver.h"
apalmieri 6:462737ad2938 19
apalmieri 6:462737ad2938 20 mbed::nfc::NFCEEPROMDriver& get_eeprom_driver(events::EventQueue&)
apalmieri 6:462737ad2938 21 {
apalmieri 6:462737ad2938 22 static mbed::nfc::vendor::ST::ST25dvDriver eeprom_driver;
apalmieri 6:462737ad2938 23 return eeprom_driver;
apalmieri 6:462737ad2938 24 }