mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 04:07:55 +00:00
drivers/ioexpander/sx1509: include nuttx/arch.h for up_mdelay
up_mdelay() is used in the reset sequence but nuttx/arch.h was not included, causing an implicit-declaration build error. Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
parent
1a0032105d
commit
f021af714d
1 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include <errno.h>
|
||||
#include <nuttx/debug.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/nuttx.h>
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/i2c/i2c_master.h>
|
||||
|
|
@ -886,6 +887,7 @@ static void sx1509_irqworker(void *arg)
|
|||
/* Did any of the requested pin interrupts occur? */
|
||||
|
||||
ioe_pinset_t match = pinset & priv->cb[i].pinset;
|
||||
|
||||
if (match != 0)
|
||||
{
|
||||
/* Yes.. perform the callback */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue