[ also CC beagleg-dev ]
On 2 January 2017 at 09:58, Henner Zeller <
h.ze...@acm.org> wrote:
> Hi Andreas,
> On 29 December 2016 at 16:06, Andreas Hoffmann <
ahof...@pe1rct.net> wrote:
>> Hi Henner,
>>
>> I played around with your beagleg project and must say it’s fantastic, I
>> really like it. I am running it on a phycore am335 board with custom
>> hardware to drive a linear axis.
>> I ran into an issue because your code overwrites the output enable state of
>> all gpio in generic-gpio.cc.
>> In my case I use some gpio from another task to talk to an lcd which stopped
>> working as soon I ran machine-control.
>> To avoid this I changed how to set the output enable registers:
>>
>> // Set the output enable register for each GPIO bank
>> gpio_0[GPIO_OE/4] &= ~output_mask[0];
>> gpio_1[GPIO_OE/4] &= ~output_mask[1];
>> gpio_2[GPIO_OE/4] &= ~output_mask[2];
>> gpio_3[GPIO_OE/4] &= ~output_mask[3];
>
> Thanks, I now incorporated that in this change:
>
>
https://github.com/hzeller/beagleg/commit/d887118e13213b3767cfe824d7c19477fbe1349e
>
> Since we are now only selectively set the bits for the output, I also
> had to make sure to selectively set the bits for the input as well.
>
> Can you try if this works for your set-up ?
>
> Thanks
> Henner.