Hi,
there is a bug in the processinterface.cpp of Raspberry Pi.
The range of the GPIO pins in the Wiring Pi library is 0 to 16. The CRaspiProcessInterface::checkPin() method checks this range correctly, but the size of the CRaspiProcessInterface::smPinUsage array is only 16 elements. The 16th element is out of the array range. Forte reports a state of scmPinInUse.
Additionally the Rev.2 board supports pin numbers 0 to 20.
Best regards
Manuel
Hi,
with the following patch you can use all GPIOs of the raspberry pi. Therefor you have to compile forte with the sysfs module.
This module should work for all linuxbased devices without external libraries. I tested it with Raspi I, II and BeagleBoneBlack.
Regards
Waldemar
When this patch will be included in the official version?
As this patch is replacing two existing modules (i.e., BeagleBoneBlack and RaspberryPi) it may result into larger changes at our users. Therefore we decided to not included in the next maintenance release (i.e., 1.7.2). We will apply this patch in the next days to the default branch for further testing and refinement and it will then be able with the next major release 1.8.
I applied to patch to the development branch for the next major release. For this I updated the file headings to already conform the the required Eclipse style. Furthermore I also removed the beaglebone black and raspberry pi modules. It can be found in cset [forte:cd223c].
Related
Commit: [cd223c]