-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First import support HydraNFC Shield v2 (ST RFAL V2.2.0 / 22-May-2020 h…
…ttps://www.st.com/en/embedded-software/stsw-st25rfal002.html) with show registers and scan function to read UID of any NFC Tags A/B/V/F
- Loading branch information
Showing
142 changed files
with
62,623 additions
and
29 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
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
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,16 @@ | ||
# List of all the HydraNFC v2 hal related files. | ||
HYDRANFC_V2_HAL_SRC = hydranfc_v2/hal/src/led.c \ | ||
hydranfc_v2/hal/src/logger.c \ | ||
hydranfc_v2/hal/src/spi.c \ | ||
hydranfc_v2/hal/src/stream_dispatcher.c \ | ||
hydranfc_v2/hal/src/timer.c \ | ||
hydranfc_v2/hal/src/stm32_usb_device_library_core/src/usbd_core.c \ | ||
hydranfc_v2/hal/src/stm32_usb_device_library_core/src/usbd_ctlreq.c \ | ||
hydranfc_v2/hal/src/stm32_usb_device_library_core/src/usbd_ioreq.c \ | ||
hydranfc_v2/hal/src/stm32_usb_device_library_class_customhid/src/usbd_customhid.c \ | ||
hydranfc_v2/hal/src/rfal_analogConfigCustomTbl.c | ||
|
||
# Required include directories | ||
HYDRANFC_V2_HAL_INC = ./hydranfc_v2/hal/inc \ | ||
./hydranfc_v2/hal/src/stm32_usb_device_library_core/inc \ | ||
./hydranfc_v2/hal/src/stm32_usb_device_library_class_customhid/inc |
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,66 @@ | ||
/****************************************************************************** | ||
* @attention | ||
* | ||
* <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2> | ||
* | ||
* Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License"); | ||
* You may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.st.com/myliberty | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, | ||
* AND SPECIFICALLY DISCLAIMING THE IMPLIED WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
******************************************************************************/ | ||
/* | ||
* PROJECT: ST25R3911 firmware | ||
* $Revision: $ | ||
* LANGUAGE: ANSI C | ||
*/ | ||
|
||
/*! \file | ||
* | ||
* \author Ulrich Herrmann | ||
* | ||
* \brief Application dispatcher | ||
* | ||
*/ | ||
/*! | ||
* | ||
* Moudle used to dispatch the commands received by the PC application. | ||
*/ | ||
|
||
#ifndef DISPATCHER_H | ||
#define DISPATCHER_H | ||
|
||
/* | ||
****************************************************************************** | ||
* INCLUDES | ||
****************************************************************************** | ||
*/ | ||
|
||
/* | ||
****************************************************************************** | ||
* GLOBAL FUNCTION PROTOTYPES | ||
****************************************************************************** | ||
*/ | ||
|
||
/*! | ||
***************************************************************************** | ||
* \brief Handle interrupt requests which are targetted for the dispatcher | ||
* | ||
* The GUI may enable interrupts and read out proper results at the time of the | ||
* interrupt. | ||
* This function handles these interrupts and stores the results for a later | ||
* time when the GUI polls it. | ||
*/ | ||
extern void dispatcherWorker(void); | ||
|
||
#endif /* DISPATCHER_H */ | ||
|
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,67 @@ | ||
/** | ||
****************************************************************************** | ||
* @file hydranfc_v2_common.h | ||
* @author MMY Application Team | ||
* @version $Revision$ | ||
* @date $Date$ | ||
* @brief Header for main.c module | ||
****************************************************************************** | ||
* @attention | ||
* | ||
* <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2> | ||
* | ||
* Licensed under MMY-ST Liberty SW License Agreement V2, (the "License"); | ||
* You may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.st.com/software_license_agreement_liberty_v2 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
****************************************************************************** | ||
*/ | ||
|
||
/* Define to prevent recursive inclusion -------------------------------------*/ | ||
#ifndef __HYDRANFC_V2_COMMON_H | ||
#define __HYDRANFC_V2_COMMON_H | ||
|
||
/* Includes ------------------------------------------------------------------*/ | ||
#include "stdint.h" | ||
#include <string.h> | ||
#include "math.h" | ||
//#include "st25_discovery_nfctag.h" | ||
//#include "tagtype5_wrapper.h" | ||
|
||
/* Exported types ------------------------------------------------------------*/ | ||
//typedef uint8_t boolean; | ||
|
||
|
||
/* Exported macro ------------------------------------------------------------*/ | ||
|
||
#undef FAIL | ||
#define FAIL 0 | ||
|
||
#undef PASS | ||
#define PASS !FAIL | ||
|
||
/* Exported constants --------------------------------------------------------*/ | ||
#define MAX_NDEF_MEM ((uint32_t)0xC00) | ||
#define NFC_DEVICE_MAX_NDEFMEMORY ((uint32_t)MAX_NDEF_MEM) | ||
|
||
#define RESULTOK 0x00 | ||
#define ERRORCODE_GENERIC 1 | ||
/* Exported functions ------------------------------------------------------- */ | ||
|
||
typedef enum { | ||
NFCTAG_OK = 0, | ||
NFCTAG_ERROR, | ||
NFCTAG_RESPONSE_ERROR | ||
} NFCTAG_StatusTypeDef; | ||
|
||
#endif /* __HYDRANFC_V2_COMMON_H */ | ||
|
||
/************************ (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/ |
Oops, something went wrong.