This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit f021af714d09b1ecf9e269cf555aaba38108a270
Author: raiden00pl <[email protected]>
AuthorDate: Sat Jul 11 20:46:16 2026 +0200

    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 <[email protected]>
---
 drivers/ioexpander/sx1509.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/ioexpander/sx1509.c b/drivers/ioexpander/sx1509.c
index e2824c489c3..c1ed2dac606 100644
--- a/drivers/ioexpander/sx1509.c
+++ b/drivers/ioexpander/sx1509.c
@@ -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 */

Reply via email to