NFC: move worker to separate file, use LED for IO indication, field on/off menu (#231)
This commit is contained in:
@@ -21,6 +21,11 @@ void platformUnprotectST25RComm();
|
||||
#define ST25R_INT_PIN NFC_IRQ_Pin
|
||||
#define ST25R_INT_PORT NFC_IRQ_GPIO_Port
|
||||
|
||||
#define PLATFORM_LED_RX_PIN LED_GREEN_Pin
|
||||
#define PLATFORM_LED_RX_PORT LED_GREEN_GPIO_Port
|
||||
#define PLATFORM_LED_FIELD_PIN LED_BLUE_Pin
|
||||
#define PLATFORM_LED_FIELD_PORT LED_BLUE_GPIO_Port
|
||||
|
||||
#define RFAL_FEATURE_LISTEN_MODE true /*!< Enable/Disable RFAL support for Listen Mode */
|
||||
#define RFAL_FEATURE_WAKEUP_MODE true /*!< Enable/Disable RFAL support for the Wake-Up mode */
|
||||
#define RFAL_FEATURE_LOWPOWER_MODE true /*!< Enable/Disable RFAL support for the Low Power mode */
|
||||
@@ -51,6 +56,9 @@ void platformUnprotectST25RComm();
|
||||
#define platformProtectST25RIrqStatus() platformProtectST25RComm() /*!< Protect unique access to IRQ status var - IRQ disable on single thread environment (MCU) ; Mutex lock on a multi thread environment */
|
||||
#define platformUnprotectST25RIrqStatus() platformUnprotectST25RComm() /*!< Unprotect the IRQ status var - IRQ enable on a single thread environment (MCU) ; Mutex unlock on a multi thread environment */
|
||||
|
||||
#define platformLedOff( port, pin ) platformGpioSet(port, pin)
|
||||
#define platformLedOn( port, pin ) platformGpioClear(port, pin)
|
||||
|
||||
#define platformGpioSet( port, pin ) HAL_GPIO_WritePin(port, pin, GPIO_PIN_SET) /*!< Turns the given GPIO High */
|
||||
#define platformGpioClear( port, pin ) HAL_GPIO_WritePin(port, pin, GPIO_PIN_RESET) /*!< Turns the given GPIO Low */
|
||||
#define platformGpioToogle( port, pin ) HAL_GPIO_TogglePin(port, pin) /*!< Toogles the given GPIO */
|
||||
|
Reference in New Issue
Block a user