summaryrefslogtreecommitdiffstats
path: root/rtemsspec/interface.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-02-14 08:02:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-02-14 08:05:47 +0100
commit942e8b236ee491ad059ee1cfac3662991738b030 (patch)
tree99fe2f199cf5c23127bb64ece1787a7d298dae50 /rtemsspec/interface.py
parentrequirements.txt: Add coconut (diff)
downloadrtems-central-942e8b236ee491ad059ee1cfac3662991738b030.tar.bz2
rtemsspec: Use @ref for appl config options
The application configuration options are documented in "cpukit/doxygen/appl-config.h". Since the application configuration option defines are also present in multiple test program sources, the "#OPTION" references cannot be mapped to a unique definition. Add an anchor for each option and reference it to avoid the issues with the multiple definitions.
Diffstat (limited to 'rtemsspec/interface.py')
-rw-r--r--rtemsspec/interface.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py
index d2bb3bf3..d5edc0ec 100644
--- a/rtemsspec/interface.py
+++ b/rtemsspec/interface.py
@@ -35,8 +35,9 @@ from typing import Any, Callable, Dict, Iterator, List, NamedTuple, Optional, \
from rtemsspec.content import CContent, CInclude, enabled_by_to_exp, \
ExpressionMapper, forward_declaration, get_value_compound, \
get_value_double_colon, get_value_doxygen_function, \
- get_value_doxygen_group, get_value_forward_declaration, get_value_hash, \
- get_value_params, get_value_plural, to_camel_case
+ get_value_doxygen_group, get_value_doxygen_ref, \
+ get_value_forward_declaration, get_value_hash, get_value_params, \
+ get_value_plural, to_camel_case
from rtemsspec.items import Item, ItemCache, ItemGetValueMap, ItemMapper
ItemMap = Dict[str, Item]
@@ -87,7 +88,7 @@ class _InterfaceMapper(ItemMapper):
self.add_get_value("interface/variable/doc:/name", get_value_hash)
for opt in ["feature-enable", "feature", "initializer", "integer"]:
name = f"interface/appl-config-option/{opt}/doc:/name"
- self.add_get_value(name, get_value_hash)
+ self.add_get_value(name, get_value_doxygen_ref)
self.add_get_value("interface/unspecified-function/doc:/name",
get_value_doxygen_function)