Skip to content

Commit

Permalink
Light and Dark mode images
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeFreer committed Nov 20, 2024
1 parent ffc79ae commit 257ba47
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 72 additions & 4 deletions docs/docs/firmware/architecture/arch_diagram.drawio
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8">
<diagram name="Page-1" id="AVefi_4B2r27eV40Z59U">
<mxGraphModel dx="989" dy="582" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8" pages="2">
<diagram name="Light" id="AVefi_4B2r27eV40Z59U">
<mxGraphModel dx="989" dy="582" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
Expand Down Expand Up @@ -41,7 +41,7 @@
<mxGeometry x="220" y="160" width="230" height="40" as="geometry" />
</mxCell>
<mxCell id="lLjQft1QgtvO7yPWeCVP-10" value="&lt;span style=&quot;font-weight: normal; font-size: 10px;&quot;&gt;Example Paths:&lt;br&gt;&lt;br&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;projects/Demo/Blink/main.cc&lt;/span&gt;&lt;/div&gt;projects/Demo/Blink/bindings.h&lt;/span&gt;" style="text;html=1;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontStyle=3;fontFamily=Helvetica;labelBackgroundColor=none;textShadow=0;labelBorderColor=none;fontSize=10;" parent="1" vertex="1">
<mxGeometry x="220" y="210" width="240" height="75" as="geometry" />
<mxGeometry x="220" y="210" width="230" height="75" as="geometry" />
</mxCell>
<mxCell id="lLjQft1QgtvO7yPWeCVP-21" value="" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=none;fillColor=#fff2cc;opacity=60;" parent="1" vertex="1">
<mxGeometry x="460" y="160" width="250" height="120" as="geometry" />
Expand All @@ -67,4 +67,72 @@
</root>
</mxGraphModel>
</diagram>
<diagram name="Dark" id="2UDOZF7GKoJFMiVs2ryz">
<mxGraphModel dx="989" dy="582" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" background="#000000" math="0" shadow="0">
<root>
<mxCell id="tRIXiKq6z88w_5JdcBh1-0" />
<mxCell id="tRIXiKq6z88w_5JdcBh1-1" parent="tRIXiKq6z88w_5JdcBh1-0" />
<mxCell id="tRIXiKq6z88w_5JdcBh1-2" value="Project&amp;nbsp;&lt;span style=&quot;background-color: initial;&quot;&gt;Specific&lt;/span&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontColor=#FFFFFF;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="280" y="130" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-3" value="Project Independent" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontColor=#FFFFFF;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="500" y="130" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-4" value="Platform&lt;div&gt;Specific&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontColor=#FFFFFF;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="140" y="330" width="70" height="30" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-5" value="Platform&lt;div&gt;Independent&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontColor=#FFFFFF;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="135" y="210" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-6" value="" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=none;fillColor=#dae8fc;opacity=80;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="210" y="280" width="250" height="120" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-7" value="Bindings" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1;fontSize=14;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="300" y="280" width="70" height="40" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-8" value="&lt;span style=&quot;font-weight: normal; font-size: 10px;&quot;&gt;Example Paths:&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;projects/Demo/Blink/platforms/stm32f767/bindings.cc&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;projects/Demo/Blink/platforms/raspi/bindings.cc&lt;/span&gt;&lt;span style=&quot;font-weight: normal; font-size: 10px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontStyle=3;fontFamily=Helvetica;fontSize=10;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="210" y="330" width="250" height="70" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-9" value="" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=none;fillColor=#f8cecc;opacity=80;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="460" y="280" width="250" height="120" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-10" value="MCAL&lt;br&gt;&lt;font style=&quot;font-size: 12px;&quot;&gt;(MicroContoller Abstraction Layer)&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1;fontSize=14;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="480" y="280" width="210" height="40" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-11" value="&lt;span style=&quot;font-weight: normal; font-size: 10px;&quot;&gt;Example Paths:&lt;br&gt;&lt;br&gt;mcal/stm32f767/periph/adc.h&lt;br&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;mcal/raspi/periph/adc.h&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;" style="text;html=1;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontStyle=3;fontFamily=Helvetica;fontSize=10;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="490" y="330" width="190" height="70" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-12" value="" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=none;fillColor=#d5e8d4;opacity=80;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="210" y="160" width="250" height="120" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-13" value="Application Code" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1;fontSize=14;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="250" y="160" width="170" height="40" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-14" value="&lt;span style=&quot;font-weight: normal; font-size: 10px;&quot;&gt;Example Paths:&lt;br&gt;&lt;br&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;projects/Demo/Blink/main.cc&lt;/span&gt;&lt;/div&gt;projects/Demo/Blink/bindings.h&lt;/span&gt;" style="text;html=1;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontStyle=3;fontFamily=Helvetica;labelBackgroundColor=none;textShadow=0;labelBorderColor=none;fontSize=10;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="240" y="210" width="190" height="75" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-15" value="" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=none;fillColor=#fff2cc;opacity=80;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="460" y="160" width="250" height="120" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-16" value="Peripheral Interfaces&lt;div style=&quot;font-size: 14px;&quot;&gt;&amp;amp; Shared Code&amp;nbsp;&lt;br style=&quot;font-size: 14px;&quot;&gt;&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontStyle=1;fontSize=14;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="510" y="160" width="150" height="40" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-17" value="&lt;span style=&quot;font-weight: 400; font-size: 10px;&quot;&gt;Example Paths:&lt;br&gt;&lt;br&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: initial;&quot;&gt;shared/periph/adc.h&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal; font-size: 10px;&quot;&gt;shared/util/mappers/lookup_table.h&lt;br style=&quot;font-size: 10px;&quot;&gt;&lt;/span&gt;" style="text;html=1;align=center;verticalAlign=top;whiteSpace=wrap;rounded=0;fontStyle=3;fontFamily=Helvetica;fontSize=10;" vertex="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry x="480" y="210" width="200" height="70" as="geometry" />
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-18" value="" style="endArrow=block;html=1;rounded=0;startArrow=block;startFill=1;endFill=1;strokeColor=#FFFFFF;" edge="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="160" y="280" as="sourcePoint" />
<mxPoint x="720" y="280" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="tRIXiKq6z88w_5JdcBh1-19" value="" style="endArrow=block;html=1;rounded=0;startArrow=block;startFill=1;endFill=1;strokeColor=#FFFFFF;" edge="1" parent="tRIXiKq6z88w_5JdcBh1-1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="460" y="420" as="sourcePoint" />
<mxPoint x="460" y="130" as="targetPoint" />
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Binary file removed docs/docs/firmware/architecture/arch_diagram.png
Binary file not shown.
3 changes: 2 additions & 1 deletion docs/docs/firmware/architecture/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

Code in our monorepo is organized based on two binary traits: Project (ECU) Specificity and Platform Specificity.

![Architecture Organization](arch_diagram.png){width=100%}
![Architecture Organization](arch_diagram-Light.png#only-light){width=100%}
![Architecture Organization](arch_diagram-Dark.png#only-dark){width=100%}

Most of the architecture is described by the interplay in project-specific sections, i.e. the left column of this diagram.

Expand Down

0 comments on commit 257ba47

Please sign in to comment.