i'm trying to apply these patches on the current head, and i get:

bitbang.c: In function ‘handle_bitbang_command’:
bitbang.c:90: error: implicit declaration of function ‘strnstr’
bitbang.c:90: error: assignment makes pointer from integer without a cast
make[6]: *** [bitbang.lo] Error 1

i'm running:
Linux version 2.6.32-32-generic (buildd@roseapple) (gcc version 4.4.3
(Ubuntu 4.4.3-4ubuntu5) ) #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011

i think this is because strnstr is in freeBSD but not in LSB...

On Thu, Jun 16, 2011 at 1:40 AM, Tomek CEDRO <tomek.ce...@gmail.com> wrote:
> This is the patch pack that should add interface_signal() and
> bitbang() functionality (binary backend + tcl frontend) to the
> interface API + example implementation for FT2232 interfaces (layout
> independent).
>
> Patches can be applied on top of the current GIT HEAD. Please verify
> their functionality as this is result of stripped patching from my
> work-in-progress-fork.
>
> The example usage is following:
>
> %telnet localhost 4444
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Open On-Chip Debugger
>> interface_signal add RnW 0x1000
>> interface_signal add LED 0x8000
>> interface_signal add srst 0x0a00
>> interface_signal list
>      Interface Signal Name      |    Mask    |   Value
> ----------------------------------------------------------
>                             RnW | 0x00001000 | 0x00001000
>                             LED | 0x00008000 | 0x00008000
>                            srst | 0x00000A00 | 0x00000A00
>> bitbang led=hi
> LED=0x00008000
>> bitbang led=lo
> LED=0x00000000
>> bitbang led=hi
> LED=0x00008000
>> interface_signal list
>      Interface Signal Name      |    Mask    |   Value
> ----------------------------------------------------------
>                             RnW | 0x00001000 | 0x00001000
>                             LED | 0x00008000 | 0x00008000
>                            srst | 0x00000A00 | 0x00000A00
>> bitbang led=lo
> LED=0x00000000
>> interface_signal list
>      Interface Signal Name      |    Mask    |   Value
> ----------------------------------------------------------
>                             RnW | 0x00001000 | 0x00001000
>                             LED | 0x00008000 | 0x00000000
>                            srst | 0x00000A00 | 0x00000A00
>> interface_signal
> Bad syntax!
> interface_signal (add|del|list) signal_name [mask]
> in procedure 'interface_signal'
>
> Best regards,
> Tomek
>
> --
> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
>
> _______________________________________________
> Openocd-development mailing list
> Openocd-development@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/openocd-development
>
>



-- 
Rodrigo.
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to