Re: [Gambas-user] Shared WiringPi library for RasPi

2015-03-20 Thread zxmarce
Benoit, I'm a recent RasPi enthusiast and I'm currently smacking my head against the wall because of the apparent impossibility to use Interrupts. This thread is old and maybe some advance has been made. In the meantime, I have installed Gambas 3 under Pidora (RasPi's Fedora) from repo and added t

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread CJ
> The interpreter cannot be run in another thread. This is the > reason why you get a crash. Thanks for explaining the problem and possible solutions Benoît! I have forwarded your input to wiringPi's author so lets see whats happening and if he may consider adding a "interpreter friendly" interr

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread Benoît Minisini
Le 25/05/2013 20:54, CJ a écrit : > >> What happens if there is no code at all inside the interrupt handler? > > The same thing. > >> Do you know in which context the interrupt handler is run? (signal >> handler context? Something else?) > > Here is the response from wiringPi's author Gordon Hender

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread CJ
> What happens if there is no code at all inside the interrupt handler? The same thing. > Do you know in which context the interrupt handler is run? (signal > handler context? Something else?) Here is the response from wiringPi's author Gordon Henderson... The interrupt handler is a standard

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread Benoît Minisini
Le 25/05/2013 18:32, CJ a écrit : > > After compiling and updating to latest stable 3.4.1 version I retested > the HW interrupt code I had problems with when running 3.3.4 and have the > same error when testing on the RaspberryPi... > > Code compiles OK but when I pull GPIO18 pin low (i.e generatin

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread CJ
After compiling and updating to latest stable 3.4.1 version I retested the HW interrupt code I had problems with when running 3.3.4 and have the same error when testing on the RaspberryPi... Code compiles OK but when I pull GPIO18 pin low (i.e generating the interrupt) it crashes with a "Stack ov

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-05 Thread Benoît Minisini
Le 03/04/2013 14:19, CJ a écrit : > >> Did you compile Gambas with debugging information enabled? > > Yes, the debug option was checked. Just to verify I recompiled again > and here are the complete output... > >root@raspi-dev:/home/cj/Gambas 3/Projekt/libwiringPi_irq# gdb gbx3 >GNU gdb (GD

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-03 Thread CJ
> Did you compile Gambas with debugging information enabled? Yes, the debug option was checked. Just to verify I recompiled again and here are the complete output... root@raspi-dev:/home/cj/Gambas 3/Projekt/libwiringPi_irq# gdb gbx3 GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Softwa

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-03 Thread Benoît Minisini
Le 03/04/2013 10:42, CJ a écrit : > Thanks for the reply Benoît, below are the output from gdb... > >... >(gdb) bt >#0 THROW (code=0) at gb_error.c:463 >#1 0x0004a42c in THROW_STACK () at gb_error.c:477 >#2 0x0004a42c in THROW_STACK () at gb_error.c:477 >Backtrace stopped

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-03 Thread CJ
Thanks for the reply Benoît, below are the output from gdb... ... (gdb) bt #0 THROW (code=0) at gb_error.c:463 #1 0x0004a42c in THROW_STACK () at gb_error.c:477 #2 0x0004a42c in THROW_STACK () at gb_error.c:477 Backtrace stopped: previous frame identical to this frame (corrupt stack

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-02 Thread Benoît Minisini
Le 02/04/2013 16:53, Christer Johansson a écrit : > Finally got some free time to get back into Gambas and I've been trying to > get I/O interrupt to work on the Raspberry Pi. > > I made a simple CLI test program with the following code... > > MMain.Module > > > ' Gambas module file >

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-02 Thread Christer Johansson
4 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.6.3 GTK+=libgtk-x11-2.0.so.0.2000.1 > -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > Sent: Monday, February 18, 2013 10:35 AM > To: mailing list for gambas users > Subject: Re:

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-02-19 Thread Christer Johansson
Thanks for the help Benoît hope to give it a go coming weekend! > Extern wiringPiIsr(iPin As Integer, iEdgeType As Integer, pFunction As Pointer) In "lib..." > > ... > > And then you use the name of a static function as 'pFunction' > argument when calling wiringPiIsr. > > Gambas will automaticall

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-02-18 Thread Benoît Minisini
Le 18/02/2013 10:12, Christer Johansson a écrit : > Now a question to all the C pro's... I'm hoping to be able to get HW > interrupts working on the GPIO with Gambas 3. Declaring delay() above > was easy enough but the interrupt function looks like... > >int wiringPiISR (int pin, int edgeType,

[Gambas-user] Shared WiringPi library for RasPi

2013-02-18 Thread Christer Johansson
Since I bumped into problems using Mike McCauley's bcm2835 library when trying to access the SPI-port on the Raspberry Pi from Gambas 3 I also made a shared lib version of WiringPi. This C lib is made by a gentleman named Gordon Henderson and _ALL_ credits belongs to him and not me, I just compile