drivers/contactless: fix gcc14 errors

This commit is contained in:
raiden00pl 2024-06-12 11:06:31 +02:00 committed by Xiang Xiao
parent e700bb5051
commit 6c5f8bd61f
4 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,7 @@
#include <nuttx/kmalloc.h> #include <nuttx/kmalloc.h>
#include <nuttx/signal.h> #include <nuttx/signal.h>
#include <nuttx/power/pm.h>
#include <nuttx/contactless/mfrc522.h> #include <nuttx/contactless/mfrc522.h>
#include "mfrc522.h" #include "mfrc522.h"

View File

@ -409,6 +409,7 @@
struct mfrc522_dev_s struct mfrc522_dev_s
{ {
uint8_t state; uint8_t state;
uint8_t pm_level;
FAR struct spi_dev_s *spi; /* SPI interface */ FAR struct spi_dev_s *spi; /* SPI interface */
}; };

View File

@ -24,6 +24,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <assert.h> #include <assert.h>
#include <debug.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
@ -32,6 +33,7 @@
#include <nuttx/kmalloc.h> #include <nuttx/kmalloc.h>
#include <nuttx/signal.h> #include <nuttx/signal.h>
#include <nuttx/power/pm.h>
#include "pn532.h" #include "pn532.h"

View File

@ -141,6 +141,7 @@ struct pn_firmware_version
struct pn532_dev_s struct pn532_dev_s
{ {
uint8_t state; uint8_t state;
uint8_t pm_level;
FAR struct spi_dev_s *spi; /* SPI interface */ FAR struct spi_dev_s *spi; /* SPI interface */
FAR struct pn532_config_s *config; /* Board configuration data */ FAR struct pn532_config_s *config; /* Board configuration data */
}; };