[FE training-materials-updates] kernel i2c lab: improve instructions
Michael Opdenacker
michael.opdenacker at free-electrons.com
Wed Jul 22 10:31:05 CEST 2015
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=3c131d50a67cae8bda67e74709fab5d13432bd52
>---------------------------------------------------------------
commit 3c131d50a67cae8bda67e74709fab5d13432bd52
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Wed Jul 22 10:29:47 2015 +0200
kernel i2c lab: improve instructions
- To have pin naming consistent with i2c conventions
("SDA" instead of "DATA", "SCL" instead of "CLK")
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
3c131d50a67cae8bda67e74709fab5d13432bd52
.../bbb-connect-nunchuk.svg | 20 ++++----
.../kernel-i2c-device-model.tex | 4 +-
labs/kernel-i2c-device-model/nunchuk-pinout.svg | 53 ++++++++++++----------
3 files changed, 41 insertions(+), 36 deletions(-)
diff --git a/labs/kernel-i2c-device-model/bbb-connect-nunchuk.svg b/labs/kernel-i2c-device-model/bbb-connect-nunchuk.svg
index a1b36ac..85cd0eb 100644
--- a/labs/kernel-i2c-device-model/bbb-connect-nunchuk.svg
+++ b/labs/kernel-i2c-device-model/bbb-connect-nunchuk.svg
@@ -12,7 +12,7 @@
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2"
version="1.1"
- inkscape:version="0.48.4 r9939"
+ inkscape:version="0.91 r13725"
width="3017"
height="2173"
sodipodi:docname="bbb-connect-nunchuk.svg">
@@ -67,15 +67,15 @@
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
- inkscape:window-width="1522"
- inkscape:window-height="971"
+ inkscape:window-width="1022"
+ inkscape:window-height="682"
id="namedview4"
showgrid="false"
inkscape:zoom="0.273749"
- inkscape:cx="865.57527"
+ inkscape:cx="2165.5234"
inkscape:cy="1086.5"
- inkscape:window-x="108"
- inkscape:window-y="56"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
inkscape:window-maximized="0"
inkscape:current-layer="svg2" />
<image
@@ -99,7 +99,7 @@
style="font-size:72px">GND</tspan></text>
<text
xml:space="preserve"
- style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
+ style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none"
x="1813.4384"
y="1234.8219"
id="text2987-4"
@@ -108,10 +108,10 @@
id="tspan2989-8"
x="1813.4384"
y="1234.8219"
- style="font-size:72px;fill:#ffffff;fill-opacity:1">DATA</tspan></text>
+ style="font-size:72px;fill:#ffffff;fill-opacity:1">SDA</tspan></text>
<text
xml:space="preserve"
- style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
+ style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
x="1507.6998"
y="1334.9314"
id="text2987-4-0"
@@ -120,7 +120,7 @@
id="tspan2989-8-3"
x="1507.6998"
y="1334.9314"
- style="font-size:72px">CLK</tspan></text>
+ style="font-size:72px">SCL</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
diff --git a/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex b/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
index dd9bd88..5341aa1 100644
--- a/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
+++ b/labs/kernel-i2c-device-model/kernel-i2c-device-model.tex
@@ -49,8 +49,8 @@ Now connect the nunchuk pins:
\begin{itemize}
\item The \code{GND} pin to P9 pins 1 or 2 (\code{GND})
\item The \code{PWR} pin to P9 pins 3 or 4 (\code{DC_3.3V})
-\item The \code{CLK} pin to P9 pin 17 (\code{I2C1_SCL})
-\item The \code{DATA} pin to P9 pin 18 (\code{I2C1_SDA})
+\item The \code{SCL} pin to P9 pin 17 (\code{I2C1_SCL})
+\item The \code{SDA} pin to P9 pin 18 (\code{I2C1_SDA})
\end{itemize}
\begin{center}
diff --git a/labs/kernel-i2c-device-model/nunchuk-pinout.svg b/labs/kernel-i2c-device-model/nunchuk-pinout.svg
index 9b26ea1..8efc337 100644
--- a/labs/kernel-i2c-device-model/nunchuk-pinout.svg
+++ b/labs/kernel-i2c-device-model/nunchuk-pinout.svg
@@ -13,7 +13,7 @@
height="629.68768"
id="svg2"
version="1.1"
- inkscape:version="0.48.4 r9939"
+ inkscape:version="0.91 r13725"
sodipodi:docname="nunchuk-pinout.svg">
<defs
id="defs4">
@@ -82,15 +82,15 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
- inkscape:cx="-152.03573"
- inkscape:cy="335.9168"
+ inkscape:cx="225.70536"
+ inkscape:cy="333.05966"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
- inkscape:window-width="1920"
- inkscape:window-height="1004"
+ inkscape:window-width="1024"
+ inkscape:window-height="683"
inkscape:window-x="0"
- inkscape:window-y="24"
+ inkscape:window-y="27"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
@@ -218,7 +218,7 @@
style="fill:#aa8800;fill-opacity:1" />
</g>
<path
- style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)"
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
d="m 196.37674,197.85409 0,54.73047"
id="path3166"
inkscape:connector-type="polyline"
@@ -236,7 +236,7 @@
y="186.6479"
style="font-size:28px">PWR</tspan></text>
<path
- style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)"
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
d="m 198.10791,571.00744 0,-54.73047"
id="path3166-7"
inkscape:connector-type="polyline"
@@ -254,26 +254,26 @@
y="601.98615"
style="font-size:28px">GND</tspan></text>
<path
- style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)"
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
d="m 354.42808,571.93927 0,-54.73047"
id="path3166-7-7"
inkscape:connector-type="polyline"
inkscape:connector-curvature="0" />
<text
xml:space="preserve"
- style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
- x="317.07547"
+ style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
+ x="325.07547"
y="602.91797"
id="text4380-7-7"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan4382-1-3"
- x="317.07547"
+ x="325.07547"
y="602.91797"
- style="font-size:28px">DATA</tspan></text>
+ style="font-size:28px">SDA</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 354.39285,594.71191 0,0"
+ d="m 352.87332,592.72559 0,0"
id="path4444"
inkscape:connector-type="polyline"
inkscape:connector-curvature="0"
@@ -282,14 +282,14 @@
inkscape:connection-end="#text4380-7-7"
inkscape:connection-end-point="d4" />
<path
- style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Lend)"
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
d="m 347.63319,173.47807 0,54.73047"
id="path3166-5"
inkscape:connector-type="polyline"
inkscape:connector-curvature="0" />
<text
xml:space="preserve"
- style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
+ style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
x="319.82565"
y="148.2719"
id="text4380-2"
@@ -298,7 +298,7 @@
id="tspan4382-11"
x="319.82565"
y="148.2719"
- style="font-size:28px">CLK</tspan></text>
+ style="font-size:28px">SCL</tspan></text>
<path
sodipodi:type="arc"
style="fill:#aa2000;fill-opacity:1;stroke:#0000ff;stroke-width:0;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
@@ -307,7 +307,7 @@
sodipodi:cy="340.21933"
sodipodi:rx="10.714286"
sodipodi:ry="10.714286"
- d="m 210.00001,340.21933 c 0,5.91734 -4.79695,10.71429 -10.71429,10.71429 -5.91734,0 -10.71429,-4.79695 -10.71429,-10.71429 0,-5.91734 4.79695,-10.71429 10.71429,-10.71429 5.91734,0 10.71429,4.79695 10.71429,10.71429 z"
+ d="m 210.00001,340.21933 a 10.714286,10.714286 0 0 1 -10.71429,10.71429 10.714286,10.714286 0 0 1 -10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,10.71429 z"
transform="translate(-0.5000033,91.071427)" />
<path
sodipodi:type="arc"
@@ -317,7 +317,7 @@
sodipodi:cy="340.21933"
sodipodi:rx="10.714286"
sodipodi:ry="10.714286"
- d="m 210.00001,340.21933 c 0,5.91734 -4.79695,10.71429 -10.71429,10.71429 -5.91734,0 -10.71429,-4.79695 -10.71429,-10.71429 0,-5.91734 4.79695,-10.71429 10.71429,-10.71429 5.91734,0 10.71429,4.79695 10.71429,10.71429 z"
+ d="m 210.00001,340.21933 a 10.714286,10.714286 0 0 1 -10.71429,10.71429 10.714286,10.714286 0 0 1 -10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,10.71429 z"
transform="translate(-0.5000033,0.57142418)" />
<path
sodipodi:type="arc"
@@ -327,7 +327,7 @@
sodipodi:cy="340.21933"
sodipodi:rx="10.714286"
sodipodi:ry="10.714286"
- d="m 210.00001,340.21933 c 0,5.91734 -4.79695,10.71429 -10.71429,10.71429 -5.91734,0 -10.71429,-4.79695 -10.71429,-10.71429 0,-5.91734 4.79695,-10.71429 10.71429,-10.71429 5.91734,0 10.71429,4.79695 10.71429,10.71429 z"
+ d="m 210.00001,340.21933 a 10.714286,10.714286 0 0 1 -10.71429,10.71429 10.714286,10.714286 0 0 1 -10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,10.71429 z"
transform="translate(151.2857,0.57142418)" />
<path
sodipodi:type="arc"
@@ -337,11 +337,11 @@
sodipodi:cy="340.21933"
sodipodi:rx="10.714286"
sodipodi:ry="10.714286"
- d="m 210.00001,340.21933 c 0,5.91734 -4.79695,10.71429 -10.71429,10.71429 -5.91734,0 -10.71429,-4.79695 -10.71429,-10.71429 0,-5.91734 4.79695,-10.71429 10.71429,-10.71429 5.91734,0 10.71429,4.79695 10.71429,10.71429 z"
+ d="m 210.00001,340.21933 a 10.714286,10.714286 0 0 1 -10.71429,10.71429 10.714286,10.714286 0 0 1 -10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,-10.71429 10.714286,10.714286 0 0 1 10.71429,10.71429 z"
transform="translate(151.2857,91.071427)" />
<text
xml:space="preserve"
- style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans"
+ style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
x="111.42858"
y="690.93359"
id="text4532"
@@ -353,7 +353,12 @@
sodipodi:role="line"
x="111.42858"
y="732.95959"
- id="tspan4536"
- style="font-size:32px">(UEXT connector from Olimex)</tspan></text>
+ style="font-size:32px"
+ id="tspan3375">(UEXT connector from Olimex,</tspan><tspan
+ sodipodi:role="line"
+ x="111.42858"
+ y="772.95959"
+ style="font-size:32px"
+ id="tspan3379">front view)</tspan></text>
</g>
</svg>
More information about the training-materials-updates
mailing list