Ah, this seems to be a libpruio-ism . . . others have had similar issues

http://stackoverflow.com/questions/27517043/undefined-reference-to-pruio-new-and-pruio-config-on-beaglebone-black

But nothing there specific to your error.

On Wed, Sep 23, 2015 at 1:56 PM, William Hermans <[email protected]> wrote:

> *rb.c: In function ‘main’:*
>> *rb.c:19:25: error: ‘PRUIO_DEF_ACTIVE’ undeclared (first use in this
>> function)*
>>
>> *And I've no idea why, since PRUIO_DEF_ACTIVE is defined in pruio.h.*
>> *Do you know what could be my mistake?!*
>> *Thanks in advance*
>
>
> This means that PRUIO_DEF_ACTIVE is undefined or is not in the same scope
> as the c file using it.
>
> On Wed, Sep 23, 2015 at 1:16 PM, hllpc <[email protected]>
> wrote:
>
>> Thanks for your answer TJF!
>> I'm working C language directly on the bbb from PuTTy, so
>> I did my first attempt with rb mode but (after including both pruio.h and
>> pruio_c_wrapper.h ) i got an error in:
>>
>>
>>     pruIo *io = pruio_new(PRUIO_DEF_ACTIVE, 1, 0x98, 0); // average,
>> open delay and sampe delay 0
>>
>>
>> rb.c: In function ‘main’:
>> rb.c:19:25: error: ‘PRUIO_DEF_ACTIVE’ undeclared (first use in this
>> function)
>>
>> And I've no idea why, since PRUIO_DEF_ACTIVE is defined in pruio.h.
>> Do you know what could be my mistake?!
>> Thanks in advance
>> BR
>>
>>
>>
>> Il giorno mercoledì 16 settembre 2015 18:26:52 UTC+2, TJF ha scritto:
>>>
>>> Hi!
>>>
>>> Control input pins? You can control output pins. Do you mean configure?
>>>
>>> Even if you use dedicated PRUSS for the two pin sets, it'd be the same
>>> subsystem to sample the data (TSC_ADC_SS).
>>>
>>> The way to go is:
>>>
>>>    - use PRU1 for the input part (running libpruio)
>>>    - use PRU0 for your customized controller, getting input from
>>>    libpruio
>>>
>>> BR
>>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to