Quantcast
Viewing latest article 26
Browse Latest Browse All 46

Answer by Jeremy for Pin configurator and database for bare metal embedded systems

Arduino uses a simple system that works - at a very rudimentary level - somewhat along the lines you describe for Topic 1, albeit entirely at runtime (and it imposes no requirement that pin assignments are configured in a single location).

https://github.com/arduino/ArduinoCore-samd/tree/master/variants

https://github.com/arduino/ArduinoCore-samd/blob/master/cores/arduino/wiring_digital.h

The table g_APinDescription serves as the database, and pinMode() and other functions manage the pin assignments.


Viewing latest article 26
Browse Latest Browse All 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>