e829cd6953
(1) Add in driver jsons. (2) Improve Python scripts to take JSON file directory and template directory paths as arguments. (3) Add in file augment template files to template common functionality (4) render tempplates for Header files, ID generation and key management. (5) Changed driver ID nomenclature to be in synch with function names. Signed-off-by: Archana <archana.madhavan@silabs.com> Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com>
12 lines
518 B
Django/Jinja
12 lines
518 B
Django/Jinja
{% for driver in drivers if driver.type == "transparent" -%}
|
|
{% for capability in driver.capabilities if entry_point in capability.entry_points -%}
|
|
#if ({% if capability.depend_on is defined -%}{{ capability.depend_on }} {% else -%} {{ 1 }} {% endif %})
|
|
{%- filter indent(width = nest_indent) %}
|
|
status = {{driver.prefix}}_{{driver.type}}_{{entry_point}}({{entry_point_attributes(driver) | indent(20)}});
|
|
|
|
if( status != PSA_ERROR_NOT_SUPPORTED )
|
|
return( status );
|
|
{% endfilter -%}
|
|
#endif
|
|
{% endfor %}
|
|
{% endfor %}
|