Re: List of Device Names: device_get_binding()


Marc Reilly
 

Hi Warren,

I'm no expert, but I for the latest master branch at least I think the device names come from the device tree files. 
Look for the .DTS file in your board folder, then follow the .dtsi includes until you see a node for spi. The device name will be the label.

Cheers
Marc

On Sun., 6 May 2018, 08:29 Warren Gay, <ve3wwg@...> wrote:
For the call:

  struct device *device_get_binding(const char *name)

How do I determine the name to provide for SPIx for example, 
for a stm32f407 board?  Is there a file constructed in the zephyr tree that
I can consult?

Warren

Join devel@lists.zephyrproject.org to automatically receive all group messages.