<div dir="ltr">Hi Bo,<br><br><div><div class="gmail_extra">From: Bo Berglund <<a href="mailto:bo.berglund@gmail.com">bo.berglund@gmail.com</a>><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<snip> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I am programming with FreePascal and Lazarus towards a Raspberry Pi2<br>
target platform. Doing so on the RPi2 itself is possible and basically<br>
works fine, except that the system is a bit sluggish at times and<br>
there are other inconveniences as well.<br>
So I moved to a Linux Mint 17.3 Mate system in a virtual computer<br>
(VMWare) on my Windows7 PC instead.<br>
</div><snip><br><div>
So I need to put some kind of conditional into my code to redirect the<br>
GPIO calls to some simulator I will have to build. (I am assuming that<br>
there is no such thing available already of course).<br></div></blockquote><div>Another way (which might be easier?) is to look at the GPIO driver code (API) on the Raspberry and write a "fake driver" (.so file?) on the Linux system with the same name, API etc. of the Raspberry GPIO driver (I assume that there is a driver, so forgive me if I am wrong). Since you want to build a simulator in any case, this might be a better option that will not require you to do anything funny in your actual application code?<br><br></div><div>Regards,<br></div><div>Chavoux<br></div></div></div></div></div>