/* * phPlatform_Port_Pi_RC523.h * * Created on: May 24, 2016 * Author: nxp69678 */ #ifndef PHPLATFORM_PORT_PI_RC523_H #define PHPLATFORM_PORT_PI_RC523_H #include #if defined (NXPBUILD__PHHAL_HW_RC523) && \ defined (NXPBUILD__PH_RASPBERRY_PI) #define PIN_RESET 7 /**< "/sys/class/gpio/gpio7/" */ #define PIN_IRQ 23 /**< "/sys/class/gpio/gpio23/" */ /* #define PIN_BUSY Busy Pin not required in Rc523 */ #define SPI_BUS 0 /**< "/dev/spidev0.0" */ #define SPI_CS 0 /**< "/dev/spidev0.0" */ #define SPI_FREQ 5000000 /**< 5 MHz. */ #define I2C_NUM 1 /**< "/dev/i2c-1" */ #define I2C_SLAVE_ADDR_7BIT 0x28 #define RESET_POWERDOWN_LEVEL PH_PLATFORM_SET_LOW #define RESET_POWERUP_LEVEL PH_PLATFORM_SET_HIGH #define RF_IRQ_Handler CLIF_IRQHandler #define IRQ_PIN_TRIGGER_TYPE PHPLATFORM_PORT_INT_RISING_EDGE /* #define BUSY_PIN_TRIGGER_TYPE Busy Pin not there in Rc523 */ /* Not required for RC523 #define PIN_IFSEL0 16 #define PIN_IFSEL1 17 */ #define PIN_AD0 4 #define PIN_AD1 17 /* AD2 Pin is not connected to Nfc Explore. Hence it is floating. */ #define PIN_AD2 22 #endif /* NXPBUILD__PHHAL_HW_RC523 && NXPBUILD__PH_RASPBERRY_PI */ #endif /* PHPLATFORM_PORT_PI_RC523_H */