Giter VIP home page Giter VIP logo

Comments (8)

bearsh avatar bearsh commented on September 15, 2024 1

@bgruberg have a look at

in the first branch, usage of libgpiod is possible instead of rpi specific memory mapped IOs. in the second branch (which simply continuous the first), eeprom handling can be done by a tool called eeprog. furthermore, makefiles of the examples have been converted to link against libgpiod (this part can be improved probably)

from daqhats.

nwright-mcc avatar nwright-mcc commented on September 15, 2024

The daqhats are only supported on Raspberry Pi hardware and Raspberry Pi OS. The library uses low-level calls directly to the Broadcom IO interface hardware (thus the reliance on bcm_host.h) that would have to be ported to another processor.

from daqhats.

bearsh avatar bearsh commented on September 15, 2024

I have this library running on a iMX8 board. So it's definitely possible... I replace the boardcom lowlevel interface with gpiod, so that it will work on almost every board.

If @nwright-mcc is interested in such a solution, I may create a pull request...

from daqhats.

bgruberg avatar bgruberg commented on September 15, 2024

@bearsh would you mind sharing your Git repository with me so I can take a look at some of the changes you made to make this work?

from daqhats.

bgruberg avatar bgruberg commented on September 15, 2024

@bearsh Thanks for sharing the links to your repositories. What OS were you using to run this? I am trying to get this to run on Armbian.

from daqhats.

bearsh avatar bearsh commented on September 15, 2024

from daqhats.

bgruberg avatar bgruberg commented on September 15, 2024

@bearsh During the installation I get the following error:

gpio.c:18:10: fatal error: bcm_host.h: No such file or directory
18 | #include "bcm_host.h"

Which seems to be a file associated with librasperberrypi-dev and raspberry-kernel-headers which seem to be Rasbian specific files. How did you get around this?

from daqhats.

bearsh avatar bearsh commented on September 15, 2024

@bgruberg, you need to enable libgpiod and you alos need to define the pins. something like the following should work but you need to adjust the IO definitions. the first number is the gpiochip, the second the pin on that chip.

make GPIOD=1 EXTRA_CFLAGS="-DGENERIC_HAT -DADDR0_GPIO=0,19 -DADDR1_GPIO=0,16 -DADDR2_GPIO=0,22 -DRESET_GPIO=0,13 -DIRQ_GPIO=4,1 -DIRQ_IOEXP_GPIO=4,2" -C lib all

from daqhats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.