I would recommend that you use the asynPortDriver C++ base class to write a driver. You then don't need to write any device support, just a driver.
This page describes asynPortDriver.
http://www.aps.anl.gov/epics/modules/soft/asyn/R4-29/asynPortDriver.html
It contains a link to the following document that is an introductory talk on how to write a driver using asynPortDriver. This example includes doing simply binary and analog I/O.
https://subversion.xray.aps.anl.gov/synApps/measComp/trunk/documentation/measCompTutorial.pdf
In this example the driver is making calls to the Measurement Computing library to do the I/O, but you would just substitute the C calls you have for the GPIO.
Mark
________________________________
From: [email protected] [[email protected]] on behalf of vivek singh [[email protected]]
Sent: Tuesday, March 01, 2016 11:02 PM
To: [email protected]
Subject: Raspberrypi GPIO access through EPICS
Hello all,
I want to access my Rapberrypi GPIO through EPICS. I had refered some documents which suggested to write device support and driver for it. Can you please suggest me from where to start and how? And if possible send me some examples for accessing GPIO.
I have a programm in C and python which can toggle raspberry pi GPIO, What are the ways to do that through epics?
[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]
--
-regards
Vivek