CONFIG_CL_MFR522, not CONFIG_WL_MFR522
This commit is contained in:
parent
f55bee5325
commit
1fda0523da
@ -53,7 +53,7 @@ ifeq ($(CONFIG_AUDIO_TONE),y)
|
|||||||
CSRCS += stm32_tone.c
|
CSRCS += stm32_tone.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WL_MFRC522),y)
|
ifeq ($(CONFIG_CL_MRFC522),y)
|
||||||
CSRCS += stm32_mfrc522.c
|
CSRCS += stm32_mfrc522.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ int stm32_bringup(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_WL_MFRC522
|
#ifdef CONFIG_CL_MRFC522
|
||||||
ret = stm32_mfrc522initialize("/dev/rfid0");
|
ret = stm32_mfrc522initialize("/dev/rfid0");
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
@ -74,7 +74,7 @@ void stm32_spidev_initialize(void)
|
|||||||
* architecture.
|
* architecture.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_WL_MFRC522
|
#ifdef CONFIG_CL_MRFC522
|
||||||
(void)stm32_configgpio(GPIO_CS_MFRC522); /* MFRC522 chip select */
|
(void)stm32_configgpio(GPIO_CS_MFRC522); /* MFRC522 chip select */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ void stm32_spidev_initialize(void)
|
|||||||
void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
|
void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
|
||||||
bool selected)
|
bool selected)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_WL_MFRC522)
|
#if defined(CONFIG_CL_MRFC522)
|
||||||
if (devid == SPIDEV_WIRELESS)
|
if (devid == SPIDEV_WIRELESS)
|
||||||
{
|
{
|
||||||
stm32_gpiowrite(GPIO_CS_MFRC522, !selected);
|
stm32_gpiowrite(GPIO_CS_MFRC522, !selected);
|
||||||
|
@ -139,7 +139,7 @@ void stm32_usbinitialize(void);
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_WL_MFRC522
|
#ifdef CONFIG_CL_MRFC522
|
||||||
int stm32_mfrc522initialize(FAR const char *devpath);
|
int stm32_mfrc522initialize(FAR const char *devpath);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user