]> git.sur5r.net Git - freertos/blob
1c97a4dee3ad091ccb6e59a7b725bb3a9b85e16b
[freertos] /
1 <?xml version="1.0" standalone="no"?>
2 <xsl:stylesheet version="1.0"
3            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4        xmlns:exsl="http://exslt.org/common"
5        xmlns:dyn="http://exslt.org/dynamic"
6        xmlns:math="http://exslt.org/math"
7        xmlns:xlink="http://www.w3.org/1999/xlink"
8        extension-element-prefixes="math dyn exsl xlink">
9            
10 <!--  Generic colors, shared between modules like webpages diagrams and pdfs -->           
11
12 <xsl:variable name="COL_XLNX"       select="'#AA0017'"/>
13
14 <xsl:variable name="COL_BLACK"      select="'#000000'"/>
15 <xsl:variable name="COL_WHITE"      select="'#FFFFFF'"/>
16
17 <xsl:variable name="COL_GRAY"       select="'#CECECE'"/>
18 <xsl:variable name="COL_GRAY_LT"    select="'#E1E1E1'"/>
19 <xsl:variable name="COL_GRAY_DK"    select="'#B1B1B1'"/>
20
21 <xsl:variable name="COL_YELLOW"     select="'#FFFFDD'"/>
22 <xsl:variable name="COL_YELLOW_LT"  select="'#FFFFEE'"/>
23
24 <xsl:variable name="COL_RED"        select="'#AA0000'"/>
25
26 <xsl:variable name="COL_GREEN"      select="'#33CC33'"/>
27
28 <xsl:variable name="COL_BLUE_LT"    select="'#AAAAFF'"/>
29
30 <!--  Colors specific to  the Diagrams -->
31 <xsl:variable name="COL_BG"          select="'#CCCCCC'"/>
32 <xsl:variable name="COL_BG_LT"       select="'#EEEEEE'"/>
33 <xsl:variable name="COL_BG_UNK"      select="'#DDDDDD'"/>
34         
35 <xsl:variable name="COL_PROC_BG"     select="'#FFCCCC'"/>
36 <xsl:variable name="COL_PROC_BG_MB"  select="'#222222'"/>
37 <xsl:variable name="COL_PROC_BG_PP"  select="'#90001C'"/>
38 <xsl:variable name="COL_PROC_BG_USR" select="'#666699'"/>
39         
40 <xsl:variable name="COL_MPMC_BG"     select="'#8B0800'"/>
41         
42 <xsl:variable name="COL_MOD_BG"      select="'#F0F0F0'"/>
43 <xsl:variable name="COL_MOD_SPRT"    select="'#888888'"/>
44 <xsl:variable name="COL_MOD_MPRT"    select="'#888888'"/>
45
46 <xsl:variable name="COL_IORING"     select="'#000088'"/>
47 <xsl:variable name="COL_IORING_LT"  select="'#CCCCFF'"/>
48 <xsl:variable name="COL_SYSPRT"     select="'#0000BB'"/>
49
50 <xsl:variable name="COL_INTCS">
51         <INTCCOLOR INDEX="0"    RGB="#FF9900"/> 
52         <INTCCOLOR INDEX="1"    RGB="#00CCCC"/> 
53         <INTCCOLOR INDEX="2"    RGB="#33FF33"/> 
54         <INTCCOLOR INDEX="3"    RGB="#FF00CC"/> 
55         <INTCCOLOR INDEX="4"    RGB="#99FF33"/> 
56         <INTCCOLOR INDEX="5"    RGB="#0066CC"/> 
57         <INTCCOLOR INDEX="6"    RGB="#9933FF"/> 
58         <INTCCOLOR INDEX="7"    RGB="#3300FF"/> 
59         <INTCCOLOR INDEX="8"    RGB="#00FF33"/> 
60         <INTCCOLOR INDEX="9"    RGB="#FF3333"/> 
61 </xsl:variable>
62         
63 <xsl:variable name="COL_BUSSTDS">
64         <BUSCOLOR BUSSTD="AXI"        RGB="#0084AB" RGB_LT="#D0E6EF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
65         <BUSCOLOR BUSSTD="XIL"        RGB="#990066" RGB_LT="#CC3399" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
66         <BUSCOLOR BUSSTD="OCM"            RGB="#0000DD" RGB_LT="#9999DD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
67         <BUSCOLOR BUSSTD="OPB"        RGB="#339900" RGB_LT="#CCDDCC" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
68         
69         <BUSCOLOR BUSSTD="LMB"        RGB="#7777FF" RGB_LT="#DDDDFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
70         <BUSCOLOR BUSSTD="FSL"        RGB="#CC00CC" RGB_LT="#FFBBFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
71         <BUSCOLOR BUSSTD="DCR"        RGB="#6699FF" RGB_LT="#BBDDFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
72         <BUSCOLOR BUSSTD="FCB"        RGB="#8C00FF" RGB_LT="#CCCCFF" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
73         
74         <BUSCOLOR BUSSTD="PLB"        RGB="#FF5500" RGB_LT="#FFBB00" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
75         <BUSCOLOR BUSSTD="PLBV34"     RGB="#FF5500" RGB_LT="#FFBB00" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
76         <BUSCOLOR BUSSTD="PLBV46"     RGB="#BB9955" RGB_LT="#FFFFDD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
77         <BUSCOLOR BUSSTD="PLBV46_P2P" RGB="#BB9955" RGB_LT="#FFFFDD" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
78         
79         <BUSCOLOR BUSSTD="USER"       RGB="#009999" RGB_LT="#00CCCC" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
80         <BUSCOLOR BUSSTD="KEY"        RGB="#444444" RGB_LT="#888888" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
81         <BUSCOLOR BUSSTD="GRAYSCALE"  RGB="#444444" RGB_LT="#888888" RGB_DK="#85C3D9" RGB_TXT="#FFFFFF"/>
82 </xsl:variable>
83 <xsl:variable name = "COL_BUSSTDS_NUMOF" select="count(exsl:node-set($COL_BUSSTDS)/BUSCOLOR)"/>
84
85 <xsl:template name="F_BusStd2RGB">
86         <xsl:param name="iBusStd"  select="'USER'"/>
87         
88         <xsl:choose>
89                 <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB">
90                         <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB"/>
91                 </xsl:when>
92                 <xsl:otherwise>
93                         <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB"/>
94                 </xsl:otherwise>
95         </xsl:choose>           
96 </xsl:template> 
97         
98 <xsl:template name="F_BusStd2RGB_LT">
99         <xsl:param name="iBusStd"  select="'USER'"/>
100         
101         <xsl:choose>
102                 <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_LT">
103                         <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_LT"/>
104                 </xsl:when>
105                 <xsl:otherwise>
106                         <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_LT"/>
107                 </xsl:otherwise>
108         </xsl:choose>           
109 </xsl:template> 
110
111 <xsl:template name="F_BusStd2RGB_DK">
112     <xsl:param name="iBusStd"  select="'USER'"/>
113     <xsl:choose>
114         <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_DK">
115             <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_DK"/>
116         </xsl:when>
117         <xsl:otherwise>
118             <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_DK"/>
119         </xsl:otherwise>
120     </xsl:choose>       
121 </xsl:template>                 
122
123 <xsl:template name="F_BusStd2RGB_TXT">
124     <xsl:param name="iBusStd"  select="'USER'"/>
125     <xsl:choose>
126         <xsl:when test="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_TXT">
127             <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = $iBusStd)]/@RGB_TXT"/>
128         </xsl:when>
129         <xsl:otherwise>
130             <xsl:value-of select="exsl:node-set($COL_BUSSTDS)/BUSCOLOR[(@BUSSTD = 'USER')]/@RGB_TXT"/>
131         </xsl:otherwise>
132     </xsl:choose>
133 </xsl:template>
134
135 <xsl:template name="F_IntcIdx2RGB">
136         <xsl:param name="iIntcIdx"  select="'0'"/>
137
138         <xsl:variable name="index_" select="$iIntcIdx mod 9"/>
139
140         <xsl:choose>
141                 <xsl:when test="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = $index_)]/@RGB">
142                         <xsl:value-of select="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = $index_)]/@RGB"/>
143                 </xsl:when>
144                 <xsl:otherwise>
145                         <xsl:value-of select="exsl:node-set($COL_INTCS)/INTCCOLOR[(@INDEX = '0')]/@RGB"/>
146                 </xsl:otherwise>
147         </xsl:choose>           
148 </xsl:template>
149
150 </xsl:stylesheet>