Re: TMS570 BSP updates and LwIP support

2015-11-09 Thread Pavel Pisa
Hello Martin, On Monday 09 of November 2015 16:29:09 Martin Galvan wrote: > On Sun, Nov 8, 2015 at 11:11 AM, Pavel Pisa wrote: ... > > https://github.com/AoLaD/rtems/commit/7dab9093bc8211816def58460efef8958b0 > >41904 > > I saw you added this function before tms570_pom_remap: > > +void tms570_ini

Re: BBB GPIO api interrupt handler problem

2015-11-09 Thread Federico Garcia Cruz
I've tried with just a boolean toggle in the interrupt handler and with a call to rtems_gpio_set(BBB_LED_USR3) in order to see led activity and it does the same thing. Sudarshan: Yes, a return statement in an interrupt handler. This is because this handler is called by the real interrupt handler in

Re: BBB GPIO api interrupt handler problem

2015-11-09 Thread sudarshan.rajagopalan
On 2015-11-09 13:11, Federico Garcia Cruz wrote: Hi everyone, I'm using the GPIO api for the BBB but I'm having problems with the interrupt handling. I'm blinking two leds in the main thread and I have a GPIO input with an interrupt attached that uses printk to print a message. The problem is tha

Re: [PATCH] gpio: free memory in error path

2015-11-09 Thread Gedare Bloom
I noticed while reading the code to install interrupts in GPIO that it does not clean-up in error case. There remains a similar problem in the "threaded" case as well that should be dealt with, and I'm filing a ticket for it. On Mon, Nov 9, 2015 at 1:33 PM, Gedare Bloom wrote: > --- > c/src/lib/

[PATCH] gpio: free memory in error path

2015-11-09 Thread Gedare Bloom
--- c/src/lib/libbsp/shared/gpio.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/c/src/lib/libbsp/shared/gpio.c b/c/src/lib/libbsp/shared/gpio.c index b806556..9ceeb407 100644 --- a/c/src/lib/libbsp/shared/gpio.c +++ b/c/src/lib/libbsp/shared/gpio.c @@ -1

Re: BBB GPIO api interrupt handler problem

2015-11-09 Thread Gedare Bloom
is printk safe to use in the interrupt context? does it blow the stack? On Mon, Nov 9, 2015 at 1:11 PM, Federico Garcia Cruz < federico.garciac...@tallertechnologies.com> wrote: > Hi everyone, > I'm using the GPIO api for the BBB but I'm having problems with the > interrupt handling. > I'm blinki

BBB GPIO api interrupt handler problem

2015-11-09 Thread Federico Garcia Cruz
Hi everyone, I'm using the GPIO api for the BBB but I'm having problems with the interrupt handling. I'm blinking two leds in the main thread and I have a GPIO input with an interrupt attached that uses printk to print a message. The problem is that the interrupt handler prints the message but neve

Re: TMS570 BSP updates and LwIP support

2015-11-09 Thread Martin Galvan
On Sun, Nov 8, 2015 at 11:11 AM, Pavel Pisa wrote: > Hello Martin and others, Hi Pavel. I'll comment on the POM and GPIO-related things, since we're not currently using Ethernet (nor are we familiar with how the TMS handles it). >The complete GPIO API or at least xx_gpio_set(), xx_gpio_clear