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:
raiden00pl 2026-07-11 20:46:16 +02:00 • committed by Xiang Xiao
parent 1a0032105d
commit f021af714d

View file

@ -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 */