Forum > Embedded - AVR

LAST GO!: from ccrause / rpiplc_pas to ccrause / fpc-avr

<< < (2/2)

In freepascal ?


--- Quote from: pascalbythree on November 09, 2023, 04:15:52 pm ---In freepascal ?

--- End quote ---
Writing a Linux kernel module in FPC is possible, but not trivial.

One can also interact with the hardware registers on the BCM peripheral to configure I2C slave mode and read/write data, see chapter 11 of the BCM2835 manual.  This appears to be what the pigpio library does for I2C slave support.  To make this work in FPC will then require installing the pigpio package and translating enough of the C header file to Pascal to call the necessary functions from Pascal code.  Read this discussion for a general overview of how a slave can be implemented using pigpio (C/C++ example, but still straight forward enough to rewrite in Pascal I would think).


[0] Message Index

[*] Previous page

Go to full version