Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Renesas RA8M1 ELC devicetree macros

Devicetree event and peripheral macros for Renesas RA8M1 ELC routing. More...

Files

file  ra8m1-elc.h
 Devicetree macros for the Renesas RA8M1 Event Link Controller (ELC).

Detailed Description

Devicetree event and peripheral macros for Renesas RA8M1 ELC routing.

This header provides macros for event and peripheral values used with the renesas,ra-elc devicetree binding.

Use RA_ELC_EVENT_* values for the event cell and RA_ELC_PERIPHERAL_* values for the peripheral cell in the renesas-elcs phandle-array property.

#include <zephyr/dt-bindings/misc/renesas/ra-elc/ra8m1-elc.h>
&pwm0 {
renesas-elcs = <&elc RA_ELC_PERIPHERAL_GPT_A RA_ELC_EVENT_ELC_SOFTWARE_EVENT_0>,
<&elc RA_ELC_PERIPHERAL_GPT_B RA_ELC_EVENT_ELC_SOFTWARE_EVENT_1>;
renesas-elc-names = "start", "stop";
};

Valid cell values are device-specific:

  • event: any RA_ELC_EVENT_* macro from this header. Common prefixes include RA_ELC_EVENT_ELC_SOFTWARE_EVENT_*, RA_ELC_EVENT_GPT*, RA_ELC_EVENT_ADC*, RA_ELC_EVENT_IOPORT_EVENT_*, and serial, DMA, or clock event names present on the device.
  • peripheral: any RA_ELC_PERIPHERAL_* macro from this header, for example RA_ELC_PERIPHERAL_GPT_A, RA_ELC_PERIPHERAL_ADC0, etc.