[fpc-devel] Problems with fpioctl on ARM debian linux and FPC2.6
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Jun 19 15:17:52 CEST 2012
Stefan Fischer wrote on Tue, 19 Jun 2012:
> My code snipet is below:
>
> spi_ioc_transfer_t = record
> tx_buf_ptr : pointer;
> rx_buf_ptr : pointer;
> len : longword;
> delay_usec : word;
> speed_hz : longword;
> bits_per_word : byte;
> cs_change : byte;
> pad : longword;
> end;
The speed_hz and delay_usec fields are switched around. Furthermore,
make sure to add add {$packrecords C} to guarantee the same alignment
as in a C compiler.
Jonas
More information about the fpc-devel
mailing list