ESP32: Fixed the type of cpuint variables in esp32_emac.c esp32_i2c.c esp32_spi.c esp32_spi_slave.c

This commit is contained in:
saramonteiro 2020-09-27 19:13:12 -03:00 committed by Brennan Ashton
parent 8a1f4db2e1
commit a562fba971
6 changed files with 7 additions and 7 deletions

View File

@ -208,7 +208,7 @@ struct esp32_emac_s
struct work_s timeoutwork; /* For TX timeout work to the work queue */
struct work_s pollwork; /* For deferring poll work to the work queue */
uint32_t cpuint; /* SPI interrupt ID */
int cpuint; /* SPI interrupt ID */
sq_queue_t freeb; /* The free buffer list */

View File

@ -57,7 +57,7 @@
****************************************************************************/
#ifdef CONFIG_ESP32_GPIO_IRQ
static uint8_t g_gpio_cpuint;
static int g_gpio_cpuint;
#endif
static const uint8_t g_pin2func[40] =

View File

@ -152,7 +152,7 @@ struct esp32_i2c_priv_s
uint8_t msgid; /* Current message ID */
ssize_t bytes; /* Processed data bytes */
uint8_t cpuint; /* CPU interrupt assigned to this I2C */
int cpuint; /* CPU interrupt assigned to this I2C */
uint32_t error; /* I2C transform error */

View File

@ -168,7 +168,7 @@ struct esp32_dev_s
const struct esp32_config_s *config; /* Constant configuration */
uint32_t baud; /* Configured baud */
uint32_t status; /* Saved status bits */
uint8_t cpuint; /* CPU interrupt assigned to this UART */
int cpuint; /* CPU interrupt assigned to this UART */
uint8_t parity; /* 0=none, 1=odd, 2=even */
uint8_t bits; /* Number of bits (5-9) */
bool stopbits2; /* true: Configure with 2 stop bits instead of 1 */
@ -711,7 +711,7 @@ static void esp32_detach(struct uart_dev_s *dev)
/* And release the CPU interrupt */
esp32_free_cpuint(priv->cpuint);
priv->cpuint = 0xff;
priv->cpuint = -1;
}
/****************************************************************************

View File

@ -134,7 +134,7 @@ struct esp32_spi_priv_s
sem_t sem_isr;
uint32_t cpuint; /* SPI interrupt ID */
int cpuint; /* SPI interrupt ID */
uint32_t frequency; /* Requested clock frequency */
uint32_t actual; /* Actual clock frequency */

View File

@ -134,7 +134,7 @@ struct esp32_spislv_priv_s
const struct esp32_spislv_config_s *config; /* Port configuration */
uint32_t cpuint; /* SPI interrupt ID */
int cpuint; /* SPI interrupt ID */
enum spi_mode_e mode; /* Actual SPI hardware mode */
uint8_t nbits; /* Actual SPI send/receive bits once transmission */