Re: [fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-11 Thread Bernd Mueller
Michael Ring wrote: Could it be acceptable to change behaviour of the Code-Generator when compiling for arm-embedded? (or by implementing {$bitaccesssize 4}, which looks like a nice syntax for this to me)? What I have in Mind is that arm seems to support unaligned access, so it might for a

Re: [fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-11 Thread Michael Ring
Could you give me a hint on where this is handled in code-generator? (I never wanted to touch this beast so I do not know which files are relevant) Could it be acceptable to change behaviour of the Code-Generator when compiling for arm-embedded? (or by implementing {$bitaccesssize 4}, which lo

Re: [fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-11 Thread Jonas Maebe
On 11 Dec 2013, at 08:43, Michael Ring wrote: > The strb command seems to be the problem, documentation from STM states: > > Each I/O port bit is freely programmable, however the I/O port registers have > to be accessed as 32-bit words (half-word or byte accesses are not allowed). > > So, is t

Re: [fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-11 Thread Sven Barth
Am 11.12.2013 10:03, schrieb Sergei Gorelkin: 11.12.2013 12:28, Sven Barth пишет: Am 11.12.2013 08:43, schrieb Michael Ring: The strb command seems to be the problem, documentation from STM states: Each I/O port bit is freely programmable, however the I/O port registers have to be accessed a

Re: [fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-11 Thread Sergei Gorelkin
11.12.2013 12:28, Sven Barth пишет: Am 11.12.2013 08:43, schrieb Michael Ring: The strb command seems to be the problem, documentation from STM states: Each I/O port bit is freely programmable, however the I/O port registers have to be accessed as 32-bit words (half-word or byte accesses are n

Re: [fpc-devel] Problem with bitpacked records and STM32F107 Controller

2013-12-11 Thread Sven Barth
Am 11.12.2013 08:43, schrieb Michael Ring: The strb command seems to be the problem, documentation from STM states: Each I/O port bit is freely programmable, however the I/O port registers have to be accessed as 32-bit words (half-word or byte accesses are not allowed). So, is there some way