Hi Greg!

Yes, if I use #include <nuttx/ioexpander/pcf8575.h> this problem is solved, but 
then the code loses the reference to that specific struct causing another error.

And how exactly "the file does not exist"? I can open it and it is at the nuttx 
repo, I shared it's link.

________________________________
From: Gregory Nutt <spudan...@gmail.com>
Sent: Wednesday, October 4, 2023 10:52:32 PM
To: dev@nuttx.apache.org <dev@nuttx.apache.org>
Subject: Re: PCF8575 driver for NuttX



>>> Why wouldn't the compiler access nuttx/drivers/ioexpander/pcf8575.h?
>>>
>> Access to internal driver files by applications is specifically
>> forbidden.  This is part of the enforcement of the modular design to
>> assure that people do not do that kind of thing:  Applications must
>> not have access to the internal implementation of drivers.
>>
>>
> Never mind,  I misread the ultra tiny fonts in the image.
> include/nuttx/ holds the public interface to the driver (vs. the
> internal private definitions for the driver in drivers/). Anything
> under include/ should be include-able by your application.


Actually, the problem is very simple.  This file does not exist.


#include <nuttx/drivers/ioexpander/pcf8575.h>


You probably wanted


#include <nuttx/ioexpander/pcf8575.h>


Reply via email to