apache / apache/nuttx

Mixed GPIOs for high-level drivers

Open
#11,937 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

Hello,
I would like to write a service driver for an LCD display. My hardware is designed so that most of the GPIOs are internal. However, due to many other peripheral devices, additional GPIO expanders could not be avoided. The LCD is therefore connected to an expander for the reset line and a less important line. Unlike Linux via systfs, internal and external GPIOs cannot be abstracted together as far as I know, which is why I cannot write my driver in a generalised way. So I can either use the ioexpander interface or the gpio interface, right?

I have tried to provide the GPIOs of my STM32F4 via ioexpander, which works in principle, but is certainly not intended that way.

Does it make sense to include something in nuttx that provides a similar abstraction as the systfs in Linux?

If this possibility already exists, I would be very pleased about corresponding references.

Tobias

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.