libftdi Archives

Subject: Re: [flashrom] [PATCH 3/5] ft2232_spi: allow CLOCK_X5 to be set at runtime

From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@xxxxxxx>
To: Joerg Mayer <jmayer@xxxxxxxxx>
Cc: Alex Badea <vamposdecampos@xxxxxxxxx>, libftdi@xxxxxxxxxxxxxxxxxxxxxxx, flashrom@xxxxxxxxxxxx
Date: Sat, 13 Nov 2010 05:33:56 +0100
On 12.11.2010 13:44, Joerg Mayer wrote:
> On Fri, Nov 12, 2010 at 12:52:14PM +0100, Carl-Daniel Hailfinger wrote:
>
> #if (defined TYPE_2232H and defined TYPE_4232H)
>   
>>> +   if (ftdic->type != TYPE_2232H && ftdic->type != TYPE_4232H) {
>>> +           msg_pdbg("FTDI chip type %d is not high-speed\n",
>>> +                   ftdic->type);
>>> +           clock_5x = 0;
>>> +   }
>>>       
> #endif
>   

That doesn't work because TYPE_2232H is an enum.


>> TYPE_2232H and TYPE_4232H are not defined before libftdi 0.16.
>>
>> Do you have any idea how to work around this except requiring a newer
>> libftdi?
>>     
>
> You'll just need to figure out the correct syntax :-)
>   

Any other ideas?

Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread