Architecture: How to define pins for a new board? #4981
Replies: 1 comment
-
Posted at 2015-09-22 by @gfwilliams Great, if you could write some stuff as a get_pinsBest to look here for an example of exactly what needs to get returned. On ST chips some utility functions auto-generate the code from CSV files that were copied from ST's datasheets.
devicesThis is a list of built-in stuff on the board that is made accessible to Espruino. It's parsed and turned into defines in Stuff you can use is LED1-8, BTN1-4, USB, LCD (for boards with FSMC LCDs built in), SD (SD card), JTAG (when JTAG pins are defined, but we need to make sure we leave them alone when the board resets). Posted at 2015-09-22 by Kolban Excellent ... thank you my friend. As I was studying the GPIO subsystem yesterday and making notes I was writing up the following: https://github.com/esp8266-espruino/esp8266-espurino/wiki/68-Espruino-GPIO So will merge your words into that. At the end of the Espruino-ESP8266 board making exercise once we have merged into the master, that project will be taken down an destroyed ... however, before that ... we will decide what (if anything) to harvest from the notes I have been taking and maybe bring those into the master project too ... if that is useful to you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-09-21 by Kolban
As I work upon the ESP8266 port, the time has come to provide some attention on the GPIO mechanism. When one defines a new board, one creates a Python script with the board name under
/boards
. It appears that within this script, we can define a variable calleddevices
as well as define a function calledget_pins()
. What I am hoping I can get is some boot strap information on these. In return, I'll write up a users guide for those who may follow. Let's start withget_pins
. What is that supposed to return when called?Beta Was this translation helpful? Give feedback.
All reactions