Update repo
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="f2838x_diagnostic_library"
|
||||
device="Generic C28xx Device"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
outputType="staticLibrary"
|
||||
|
||||
>
|
||||
<configuration name="DEBUG" compilerBuildOptions="--opt_level=off -I${DIAG_LIBRARY_ROOT}/include -I${C2000WARE_DLIB_ROOT} -I${DIAG_LIBRARY_ROOT}/../../calibration/hrpwm/f2838x/include -I${C2000WARE_HEADERS}/include -v28 -ml -mt --float_support=fpu64 --tmu_support=tmu0 --vcu_support=vcrc --define=DEBUG --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063 --display_error_number" archiverBuildOptions="${DIAG_LIBRARY_ROOT}/lib/f2838x_diagnostic_stl_debug.lib" />
|
||||
<configuration name="RELEASE" compilerBuildOptions="--opt_level=4 --opt_for_speed=2 -I${DIAG_LIBRARY_ROOT}/include -I${C2000WARE_DLIB_ROOT} -I${DIAG_LIBRARY_ROOT}/../../calibration/hrpwm/f2838x/include -I${C2000WARE_HEADERS}/include -v28 -ml -mt --float_support=fpu64 --tmu_support=tmu0 --vcu_support=vcrc --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063 --display_error_number" archiverBuildOptions="${DIAG_LIBRARY_ROOT}/lib/f2838x_diagnostic_stl_release.lib" />
|
||||
|
||||
<pathVariable name="DIAG_LIBRARY_ROOT" path="../" scope="project" />
|
||||
<pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../driverlib/f2838x/driverlib/" scope="project" />
|
||||
<pathVariable name="C2000WARE_HEADERS" path="../../../../device_support/f2838x/headers" scope="project" />
|
||||
|
||||
<file action="link" path="../source/stl_can_ram.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_cpu_reg.asm" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_crc.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_crc_s.asm" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_hwbist.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_hwbist_s.asm" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_march.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_march_s.asm" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_mcan_ram.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_osc_ct.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_osc_hr.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_pie_ram.c" targetDirectory="" />
|
||||
<file action="link" path="../source/stl_util.c" targetDirectory="" />
|
||||
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="refresh" content="1;url=./html/index.html">
|
||||
<script type="text/javascript">
|
||||
window.location.href = "./html/index.html"
|
||||
</script>
|
||||
<title>Page Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
If you are not redirected automatically, follow the <a href='./html/index.html'>link to the API Guide</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
# Sphinx build info version 1
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 9ff635f60195ba37a12550737f95d271
|
||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 33 KiB |
@@ -0,0 +1,768 @@
|
||||
/*
|
||||
* basic.css
|
||||
* ~~~~~~~~~
|
||||
*
|
||||
* Sphinx stylesheet -- basic theme.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
/* -- main layout ----------------------------------------------------------- */
|
||||
|
||||
div.clearer {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* -- relbar ---------------------------------------------------------------- */
|
||||
|
||||
div.related {
|
||||
width: 100%;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
div.related h3 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.related ul {
|
||||
margin: 0;
|
||||
padding: 0 0 0 10px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
div.related li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
div.related li.right {
|
||||
float: right;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/* -- sidebar --------------------------------------------------------------- */
|
||||
|
||||
div.sphinxsidebarwrapper {
|
||||
padding: 10px 5px 0 10px;
|
||||
}
|
||||
|
||||
div.sphinxsidebar {
|
||||
float: left;
|
||||
width: 230px;
|
||||
margin-left: -100%;
|
||||
font-size: 90%;
|
||||
word-wrap: break-word;
|
||||
overflow-wrap : break-word;
|
||||
}
|
||||
|
||||
div.sphinxsidebar ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
div.sphinxsidebar ul ul,
|
||||
div.sphinxsidebar ul.want-points {
|
||||
margin-left: 20px;
|
||||
list-style: square;
|
||||
}
|
||||
|
||||
div.sphinxsidebar ul ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div.sphinxsidebar form {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
div.sphinxsidebar input {
|
||||
border: 1px solid #98dbcc;
|
||||
font-family: sans-serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox form.search {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox input[type="text"] {
|
||||
float: left;
|
||||
width: 80%;
|
||||
padding: 0.25em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
div.sphinxsidebar #searchbox input[type="submit"] {
|
||||
float: left;
|
||||
width: 20%;
|
||||
border-left: none;
|
||||
padding: 0.25em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* -- search page ----------------------------------------------------------- */
|
||||
|
||||
ul.search {
|
||||
margin: 10px 0 0 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.search li {
|
||||
padding: 5px 0 5px 20px;
|
||||
background-image: url(file.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 7px;
|
||||
}
|
||||
|
||||
ul.search li a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.search li div.context {
|
||||
color: #888;
|
||||
margin: 2px 0 0 30px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
ul.keywordmatches li.goodmatch a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* -- index page ------------------------------------------------------------ */
|
||||
|
||||
table.contentstable {
|
||||
width: 90%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.contentstable p.biglink {
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
a.biglink {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
span.linkdescr {
|
||||
font-style: italic;
|
||||
padding-top: 5px;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
/* -- general index --------------------------------------------------------- */
|
||||
|
||||
table.indextable {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.indextable td {
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.indextable ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
table.indextable > tbody > tr > td > ul {
|
||||
padding-left: 0em;
|
||||
}
|
||||
|
||||
table.indextable tr.pcap {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
table.indextable tr.cap {
|
||||
margin-top: 10px;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
img.toggler {
|
||||
margin-right: 3px;
|
||||
margin-top: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
div.modindex-jumpbox {
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin: 1em 0 1em 0;
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
div.genindex-jumpbox {
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin: 1em 0 1em 0;
|
||||
padding: 0.4em;
|
||||
}
|
||||
|
||||
/* -- domain module index --------------------------------------------------- */
|
||||
|
||||
table.modindextable td {
|
||||
padding: 2px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* -- general body styles --------------------------------------------------- */
|
||||
|
||||
div.body {
|
||||
min-width: 450px;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
div.body p, div.body dd, div.body li, div.body blockquote {
|
||||
-moz-hyphens: auto;
|
||||
-ms-hyphens: auto;
|
||||
-webkit-hyphens: auto;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
a.headerlink {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
a.brackets:before,
|
||||
span.brackets > a:before{
|
||||
content: "[";
|
||||
}
|
||||
|
||||
a.brackets:after,
|
||||
span.brackets > a:after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
h1:hover > a.headerlink,
|
||||
h2:hover > a.headerlink,
|
||||
h3:hover > a.headerlink,
|
||||
h4:hover > a.headerlink,
|
||||
h5:hover > a.headerlink,
|
||||
h6:hover > a.headerlink,
|
||||
dt:hover > a.headerlink,
|
||||
caption:hover > a.headerlink,
|
||||
p.caption:hover > a.headerlink,
|
||||
div.code-block-caption:hover > a.headerlink {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
div.body p.caption {
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
div.body td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.first {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
p.rubric {
|
||||
margin-top: 30px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left {
|
||||
clear: left;
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right {
|
||||
clear: right;
|
||||
float: right;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img.align-default, .figure.align-default {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-default {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* -- sidebars -------------------------------------------------------------- */
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em;
|
||||
border: 1px solid #ddb;
|
||||
padding: 7px 7px 0 7px;
|
||||
background-color: #ffe;
|
||||
width: 40%;
|
||||
float: right;
|
||||
}
|
||||
|
||||
p.sidebar-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* -- topics ---------------------------------------------------------------- */
|
||||
|
||||
div.topic {
|
||||
border: 1px solid #ccc;
|
||||
padding: 7px 7px 0 7px;
|
||||
margin: 10px 0 10px 0;
|
||||
}
|
||||
|
||||
p.topic-title {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* -- admonitions ----------------------------------------------------------- */
|
||||
|
||||
div.admonition {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
padding: 7px;
|
||||
}
|
||||
|
||||
div.admonition dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.admonition dl {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
p.admonition-title {
|
||||
margin: 0px 10px 5px 0px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.body p.centered {
|
||||
text-align: center;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
/* -- tables ---------------------------------------------------------------- */
|
||||
|
||||
table.docutils {
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-default {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table caption span.caption-number {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
table caption span.caption-text {
|
||||
}
|
||||
|
||||
table.docutils td, table.docutils th {
|
||||
padding: 1px 8px 1px 5px;
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
|
||||
table.footnote td, table.footnote th {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
table.citation td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
th > p:first-child,
|
||||
td > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
th > p:last-child,
|
||||
td > p:last-child {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
/* -- figures --------------------------------------------------------------- */
|
||||
|
||||
div.figure {
|
||||
margin: 0.5em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
div.figure p.caption {
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
div.figure p.caption span.caption-number {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
div.figure p.caption span.caption-text {
|
||||
}
|
||||
|
||||
/* -- field list styles ----------------------------------------------------- */
|
||||
|
||||
table.field-list td, table.field-list th {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.field-list ul {
|
||||
margin: 0;
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
.field-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.field-name {
|
||||
-moz-hyphens: manual;
|
||||
-ms-hyphens: manual;
|
||||
-webkit-hyphens: manual;
|
||||
hyphens: manual;
|
||||
}
|
||||
|
||||
/* -- hlist styles ---------------------------------------------------------- */
|
||||
|
||||
table.hlist td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
/* -- other body styles ----------------------------------------------------- */
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha;
|
||||
}
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha;
|
||||
}
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman;
|
||||
}
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman;
|
||||
}
|
||||
|
||||
li > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
li > p:last-child {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
dl.footnote > dt,
|
||||
dl.citation > dt {
|
||||
float: left;
|
||||
}
|
||||
|
||||
dl.footnote > dd,
|
||||
dl.citation > dd {
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
dl.footnote > dd:after,
|
||||
dl.citation > dd:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
dl.field-list {
|
||||
display: grid;
|
||||
grid-template-columns: fit-content(30%) auto;
|
||||
}
|
||||
|
||||
dl.field-list > dt {
|
||||
font-weight: bold;
|
||||
word-break: break-word;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
dl.field-list > dt:after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
dl.field-list > dd {
|
||||
padding-left: 0.5em;
|
||||
margin-top: 0em;
|
||||
margin-left: 0em;
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
dl {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
dd > p:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
dd ul, dd table {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-top: 3px;
|
||||
margin-bottom: 10px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
dt:target, span.highlighted {
|
||||
background-color: #fbe54e;
|
||||
}
|
||||
|
||||
rect.highlighted {
|
||||
fill: #fbe54e;
|
||||
}
|
||||
|
||||
dl.glossary dt {
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.optional {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.sig-paren {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
.versionmodified {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.system-message {
|
||||
background-color: #fda;
|
||||
padding: 5px;
|
||||
border: 3px solid red;
|
||||
}
|
||||
|
||||
.footnote:target {
|
||||
background-color: #ffa;
|
||||
}
|
||||
|
||||
.line-block {
|
||||
display: block;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.line-block .line-block {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
.guilabel, .menuselection {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.accelerator {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.classifier {
|
||||
font-style: oblique;
|
||||
}
|
||||
|
||||
.classifier:before {
|
||||
font-style: normal;
|
||||
margin: 0.5em;
|
||||
content: ":";
|
||||
}
|
||||
|
||||
abbr, acronym {
|
||||
border-bottom: dotted 1px;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
/* -- code displays --------------------------------------------------------- */
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
overflow-y: hidden; /* fixes display issues on Chrome browsers */
|
||||
}
|
||||
|
||||
span.pre {
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
-webkit-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
td.linenos pre {
|
||||
padding: 5px 0px;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
table.highlighttable {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
table.highlighttable td {
|
||||
padding: 0 0.5em 0 0.5em;
|
||||
}
|
||||
|
||||
div.code-block-caption {
|
||||
padding: 2px 5px;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
div.code-block-caption code {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
div.code-block-caption + div > div.highlight > pre {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
div.code-block-caption span.caption-number {
|
||||
padding: 0.1em 0.3em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
div.code-block-caption span.caption-text {
|
||||
}
|
||||
|
||||
div.literal-block-wrapper {
|
||||
padding: 1em 1em 0;
|
||||
}
|
||||
|
||||
div.literal-block-wrapper div.highlight {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
code.descname {
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
code.descclassname {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
code.xref, a code {
|
||||
background-color: transparent;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.viewcode-link {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.viewcode-back {
|
||||
float: right;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
div.viewcode-block:target {
|
||||
margin: -1px -10px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
/* -- math display ---------------------------------------------------------- */
|
||||
|
||||
img.math {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
div.body div.math p {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
span.eqno {
|
||||
float: right;
|
||||
}
|
||||
|
||||
span.eqno a.headerlink {
|
||||
position: relative;
|
||||
left: 0px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
div.math:hover a.headerlink {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* -- printout stylesheet --------------------------------------------------- */
|
||||
|
||||
@media print {
|
||||
div.document,
|
||||
div.documentwrapper,
|
||||
div.bodywrapper {
|
||||
margin: 0 !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.sphinxsidebar,
|
||||
div.related,
|
||||
div.footer,
|
||||
#top-link {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#FontAwesome) format("svg")}.fa:before{font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1}.fa:before,a .fa{text-decoration:inherit}.fa:before,a .fa,li .fa{display:inline-block}li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before,.icon-book:before{content:"\f02d"}.fa-caret-down:before,.icon-caret-down:before{content:"\f0d7"}.fa-caret-up:before,.icon-caret-up:before{content:"\f0d8"}.fa-caret-left:before,.icon-caret-left:before{content:"\f0d9"}.fa-caret-right:before,.icon-caret-right:before{content:"\f0da"}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60}.rst-versions .rst-current-version:after{clear:both;content:"";display:block}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
|
||||
|
After Width: | Height: | Size: 434 KiB |
@@ -0,0 +1,70 @@
|
||||
/* pygments theme: tango */
|
||||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight .c { color: #8f5902; font-style: italic } /* Comment */
|
||||
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
|
||||
.highlight .g { color: #000000 } /* Generic */
|
||||
.highlight .k { color: #204a87; font-weight: bold } /* Keyword */
|
||||
.highlight .l { color: #000000 } /* Literal */
|
||||
.highlight .n { color: #000000 } /* Name */
|
||||
.highlight .o { color: #ce5c00; font-weight: bold } /* Operator */
|
||||
.highlight .x { color: #000000 } /* Other */
|
||||
.highlight .p { color: #000000; font-weight: bold } /* Punctuation */
|
||||
.highlight .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #8f5902; font-style: italic } /* Comment.Preproc */
|
||||
.highlight .c1 { color: #8f5902; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: #a40000 } /* Generic.Deleted */
|
||||
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
|
||||
.highlight .gr { color: #ef2929 } /* Generic.Error */
|
||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.highlight .go { color: #000000; font-style: italic } /* Generic.Output */
|
||||
.highlight .gp { color: #8f5902 } /* Generic.Prompt */
|
||||
.highlight .gs { color: #000000; font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
|
||||
.highlight .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { color: #204a87; font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #204a87; font-weight: bold } /* Keyword.Namespace */
|
||||
.highlight .kp { color: #204a87; font-weight: bold } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #204a87; font-weight: bold } /* Keyword.Type */
|
||||
.highlight .ld { color: #000000 } /* Literal.Date */
|
||||
.highlight .m { color: #0000cf; font-weight: bold } /* Literal.Number */
|
||||
.highlight .s { color: #4e9a06 } /* Literal.String */
|
||||
.highlight .na { color: #c4a000 } /* Name.Attribute */
|
||||
.highlight .nb { color: #204a87 } /* Name.Builtin */
|
||||
.highlight .nc { color: #000000 } /* Name.Class */
|
||||
.highlight .no { color: #000000 } /* Name.Constant */
|
||||
.highlight .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */
|
||||
.highlight .ni { color: #ce5c00 } /* Name.Entity */
|
||||
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
|
||||
.highlight .nf { color: #000000 } /* Name.Function */
|
||||
.highlight .nl { color: #f57900 } /* Name.Label */
|
||||
.highlight .nn { color: #000000 } /* Name.Namespace */
|
||||
.highlight .nx { color: #000000 } /* Name.Other */
|
||||
.highlight .py { color: #000000 } /* Name.Property */
|
||||
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
|
||||
.highlight .nv { color: #000000 } /* Name.Variable */
|
||||
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
|
||||
.highlight .mf { color: #0000cf; font-weight: bold } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #0000cf; font-weight: bold } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #0000cf; font-weight: bold } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #0000cf; font-weight: bold } /* Literal.Number.Oct */
|
||||
.highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
|
||||
.highlight .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #4e9a06 } /* Literal.String.Double */
|
||||
.highlight .se { color: #4e9a06 } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #4e9a06 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
|
||||
.highlight .vc { color: #000000 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #000000 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #000000 } /* Name.Variable.Instance */
|
||||
.highlight .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */
|
||||
@@ -0,0 +1,4 @@
|
||||
html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden],audio:not([controls]){display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;text-decoration:none}ins,mark{color:#000}mark{background:#ff0;font-style:italic;font-weight:700}.rst-content code,.rst-content tt,code,kbd,pre,samp{font-family:monospace,serif;_font-family:courier new,monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:after,q:before{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}dl,ol,ul{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure,form{margin:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{body,html,section{background:none!important}*{box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}.rst-content .toctree-wrapper>p.caption,h2,h3,p{orphans:3;widows:3}.rst-content .toctree-wrapper>p.caption,h2,h3{page-break-after:avoid}}.btn,.fa:before,.icon:before,.rst-content .admonition,.rst-content .admonition-title:before,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .code-block-caption .headerlink:before,.rst-content .danger,.rst-content .eqno .headerlink:before,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before,.wy-nav-top a,.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}/*!
|
||||
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
|
||||
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
||||
*/@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713);src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix&v=4.7.0) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa-pull-left.icon,.fa.fa-pull-left,.rst-content .code-block-caption .fa-pull-left.headerlink,.rst-content .eqno .fa-pull-left.headerlink,.rst-content .fa-pull-left.admonition-title,.rst-content code.download span.fa-pull-left:first-child,.rst-content dl dt .fa-pull-left.headerlink,.rst-content h1 .fa-pull-left.headerlink,.rst-content h2 .fa-pull-left.headerlink,.rst-content h3 .fa-pull-left.headerlink,.rst-content h4 .fa-pull-left.headerlink,.rst-content h5 .fa-pull-left.headerlink,.rst-content h6 .fa-pull-left.headerlink,.rst-content p .fa-pull-left.headerlink,.rst-content table>caption .fa-pull-left.headerlink,.rst-content tt.download span.fa-pull-left:first-child,.wy-menu-vertical li.current>a button.fa-pull-left.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-left.toctree-expand,.wy-menu-vertical li button.fa-pull-left.toctree-expand{margin-right:.3em}.fa-pull-right.icon,.fa.fa-pull-right,.rst-content .code-block-caption .fa-pull-right.headerlink,.rst-content .eqno .fa-pull-right.headerlink,.rst-content .fa-pull-right.admonition-title,.rst-content code.download span.fa-pull-right:first-child,.rst-content dl dt .fa-pull-right.headerlink,.rst-content h1 .fa-pull-right.headerlink,.rst-content h2 .fa-pull-right.headerlink,.rst-content h3 .fa-pull-right.headerlink,.rst-content h4 .fa-pull-right.headerlink,.rst-content h5 .fa-pull-right.headerlink,.rst-content h6 .fa-pull-right.headerlink,.rst-content p .fa-pull-right.headerlink,.rst-content table>caption .fa-pull-right.headerlink,.rst-content tt.download span.fa-pull-right:first-child,.wy-menu-vertical li.current>a button.fa-pull-right.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-right.toctree-expand,.wy-menu-vertical li button.fa-pull-right.toctree-expand{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.pull-left.icon,.rst-content .code-block-caption .pull-left.headerlink,.rst-content .eqno .pull-left.headerlink,.rst-content .pull-left.admonition-title,.rst-content code.download span.pull-left:first-child,.rst-content dl dt .pull-left.headerlink,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content p .pull-left.headerlink,.rst-content table>caption .pull-left.headerlink,.rst-content tt.download span.pull-left:first-child,.wy-menu-vertical li.current>a button.pull-left.toctree-expand,.wy-menu-vertical li.on a button.pull-left.toctree-expand,.wy-menu-vertical li button.pull-left.toctree-expand{margin-right:.3em}.fa.pull-right,.pull-right.icon,.rst-content .code-block-caption .pull-right.headerlink,.rst-content .eqno .pull-right.headerlink,.rst-content .pull-right.admonition-title,.rst-content code.download span.pull-right:first-child,.rst-content dl dt .pull-right.headerlink,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-coLine truncated
|
||||
@@ -0,0 +1,315 @@
|
||||
/*
|
||||
* doctools.js
|
||||
* ~~~~~~~~~~~
|
||||
*
|
||||
* Sphinx JavaScript utilities for all documentation.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* select a different prefix for underscore
|
||||
*/
|
||||
$u = _.noConflict();
|
||||
|
||||
/**
|
||||
* make the code below compatible with browsers without
|
||||
* an installed firebug like debugger
|
||||
if (!window.console || !console.firebug) {
|
||||
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
|
||||
"dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace",
|
||||
"profile", "profileEnd"];
|
||||
window.console = {};
|
||||
for (var i = 0; i < names.length; ++i)
|
||||
window.console[names[i]] = function() {};
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* small helper function to urldecode strings
|
||||
*/
|
||||
jQuery.urldecode = function(x) {
|
||||
return decodeURIComponent(x).replace(/\+/g, ' ');
|
||||
};
|
||||
|
||||
/**
|
||||
* small helper function to urlencode strings
|
||||
*/
|
||||
jQuery.urlencode = encodeURIComponent;
|
||||
|
||||
/**
|
||||
* This function returns the parsed url parameters of the
|
||||
* current request. Multiple values per key are supported,
|
||||
* it will always return arrays of strings for the value parts.
|
||||
*/
|
||||
jQuery.getQueryParameters = function(s) {
|
||||
if (typeof s === 'undefined')
|
||||
s = document.location.search;
|
||||
var parts = s.substr(s.indexOf('?') + 1).split('&');
|
||||
var result = {};
|
||||
for (var i = 0; i < parts.length; i++) {
|
||||
var tmp = parts[i].split('=', 2);
|
||||
var key = jQuery.urldecode(tmp[0]);
|
||||
var value = jQuery.urldecode(tmp[1]);
|
||||
if (key in result)
|
||||
result[key].push(value);
|
||||
else
|
||||
result[key] = [value];
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
/**
|
||||
* highlight a given string on a jquery object by wrapping it in
|
||||
* span elements with the given class name.
|
||||
*/
|
||||
jQuery.fn.highlightText = function(text, className) {
|
||||
function highlight(node, addItems) {
|
||||
if (node.nodeType === 3) {
|
||||
var val = node.nodeValue;
|
||||
var pos = val.toLowerCase().indexOf(text);
|
||||
if (pos >= 0 &&
|
||||
!jQuery(node.parentNode).hasClass(className) &&
|
||||
!jQuery(node.parentNode).hasClass("nohighlight")) {
|
||||
var span;
|
||||
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
|
||||
if (isInSVG) {
|
||||
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
||||
} else {
|
||||
span = document.createElement("span");
|
||||
span.className = className;
|
||||
}
|
||||
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
|
||||
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
|
||||
document.createTextNode(val.substr(pos + text.length)),
|
||||
node.nextSibling));
|
||||
node.nodeValue = val.substr(0, pos);
|
||||
if (isInSVG) {
|
||||
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
||||
var bbox = node.parentElement.getBBox();
|
||||
rect.x.baseVal.value = bbox.x;
|
||||
rect.y.baseVal.value = bbox.y;
|
||||
rect.width.baseVal.value = bbox.width;
|
||||
rect.height.baseVal.value = bbox.height;
|
||||
rect.setAttribute('class', className);
|
||||
addItems.push({
|
||||
"parent": node.parentNode,
|
||||
"target": rect});
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!jQuery(node).is("button, select, textarea")) {
|
||||
jQuery.each(node.childNodes, function() {
|
||||
highlight(this, addItems);
|
||||
});
|
||||
}
|
||||
}
|
||||
var addItems = [];
|
||||
var result = this.each(function() {
|
||||
highlight(this, addItems);
|
||||
});
|
||||
for (var i = 0; i < addItems.length; ++i) {
|
||||
jQuery(addItems[i].parent).before(addItems[i].target);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
/*
|
||||
* backward compatibility for jQuery.browser
|
||||
* This will be supported until firefox bug is fixed.
|
||||
*/
|
||||
if (!jQuery.browser) {
|
||||
jQuery.uaMatch = function(ua) {
|
||||
ua = ua.toLowerCase();
|
||||
|
||||
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
|
||||
/(msie) ([\w.]+)/.exec(ua) ||
|
||||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
|
||||
[];
|
||||
|
||||
return {
|
||||
browser: match[ 1 ] || "",
|
||||
version: match[ 2 ] || "0"
|
||||
};
|
||||
};
|
||||
jQuery.browser = {};
|
||||
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Small JavaScript module for the documentation.
|
||||
*/
|
||||
var Documentation = {
|
||||
|
||||
init : function() {
|
||||
this.fixFirefoxAnchorBug();
|
||||
this.highlightSearchWords();
|
||||
this.initIndexTable();
|
||||
if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
|
||||
this.initOnKeyListeners();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* i18n support
|
||||
*/
|
||||
TRANSLATIONS : {},
|
||||
PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; },
|
||||
LOCALE : 'unknown',
|
||||
|
||||
// gettext and ngettext don't access this so that the functions
|
||||
// can safely bound to a different name (_ = Documentation.gettext)
|
||||
gettext : function(string) {
|
||||
var translated = Documentation.TRANSLATIONS[string];
|
||||
if (typeof translated === 'undefined')
|
||||
return string;
|
||||
return (typeof translated === 'string') ? translated : translated[0];
|
||||
},
|
||||
|
||||
ngettext : function(singular, plural, n) {
|
||||
var translated = Documentation.TRANSLATIONS[singular];
|
||||
if (typeof translated === 'undefined')
|
||||
return (n == 1) ? singular : plural;
|
||||
return translated[Documentation.PLURALEXPR(n)];
|
||||
},
|
||||
|
||||
addTranslations : function(catalog) {
|
||||
for (var key in catalog.messages)
|
||||
this.TRANSLATIONS[key] = catalog.messages[key];
|
||||
this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')');
|
||||
this.LOCALE = catalog.locale;
|
||||
},
|
||||
|
||||
/**
|
||||
* add context elements like header anchor links
|
||||
*/
|
||||
addContextElements : function() {
|
||||
$('div[id] > :header:first').each(function() {
|
||||
$('<a class="headerlink">\u00B6</a>').
|
||||
attr('href', '#' + this.id).
|
||||
attr('title', _('Permalink to this headline')).
|
||||
appendTo(this);
|
||||
});
|
||||
$('dt[id]').each(function() {
|
||||
$('<a class="headerlink">\u00B6</a>').
|
||||
attr('href', '#' + this.id).
|
||||
attr('title', _('Permalink to this definition')).
|
||||
appendTo(this);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* workaround a firefox stupidity
|
||||
* see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
|
||||
*/
|
||||
fixFirefoxAnchorBug : function() {
|
||||
if (document.location.hash && $.browser.mozilla)
|
||||
window.setTimeout(function() {
|
||||
document.location.href += '';
|
||||
}, 10);
|
||||
},
|
||||
|
||||
/**
|
||||
* highlight the search words provided in the url in the text
|
||||
*/
|
||||
highlightSearchWords : function() {
|
||||
var params = $.getQueryParameters();
|
||||
var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : [];
|
||||
if (terms.length) {
|
||||
var body = $('div.body');
|
||||
if (!body.length) {
|
||||
body = $('body');
|
||||
}
|
||||
window.setTimeout(function() {
|
||||
$.each(terms, function() {
|
||||
body.highlightText(this.toLowerCase(), 'highlighted');
|
||||
});
|
||||
}, 10);
|
||||
$('<p class="highlight-link"><a href="javascript:Documentation.' +
|
||||
'hideSearchWords()">' + _('Hide Search Matches') + '</a></p>')
|
||||
.appendTo($('#searchbox'));
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* init the domain index toggle buttons
|
||||
*/
|
||||
initIndexTable : function() {
|
||||
var togglers = $('img.toggler').click(function() {
|
||||
var src = $(this).attr('src');
|
||||
var idnum = $(this).attr('id').substr(7);
|
||||
$('tr.cg-' + idnum).toggle();
|
||||
if (src.substr(-9) === 'minus.png')
|
||||
$(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
|
||||
else
|
||||
$(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
|
||||
}).css('display', '');
|
||||
if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) {
|
||||
togglers.click();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* helper function to hide the search marks again
|
||||
*/
|
||||
hideSearchWords : function() {
|
||||
$('#searchbox .highlight-link').fadeOut(300);
|
||||
$('span.highlighted').removeClass('highlighted');
|
||||
},
|
||||
|
||||
/**
|
||||
* make the url absolute
|
||||
*/
|
||||
makeURL : function(relativeURL) {
|
||||
return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL;
|
||||
},
|
||||
|
||||
/**
|
||||
* get the current relative url
|
||||
*/
|
||||
getCurrentURL : function() {
|
||||
var path = document.location.pathname;
|
||||
var parts = path.split(/\//);
|
||||
$.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
|
||||
if (this === '..')
|
||||
parts.pop();
|
||||
});
|
||||
var url = parts.join('/');
|
||||
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
|
||||
},
|
||||
|
||||
initOnKeyListeners: function() {
|
||||
$(document).keydown(function(event) {
|
||||
var activeElementType = document.activeElement.tagName;
|
||||
// don't navigate when in search box or textarea
|
||||
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
|
||||
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
|
||||
switch (event.keyCode) {
|
||||
case 37: // left
|
||||
var prevHref = $('link[rel="prev"]').prop('href');
|
||||
if (prevHref) {
|
||||
window.location.href = prevHref;
|
||||
return false;
|
||||
}
|
||||
case 39: // right
|
||||
var nextHref = $('link[rel="next"]').prop('href');
|
||||
if (nextHref) {
|
||||
window.location.href = nextHref;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// quick alias for translations
|
||||
_ = Documentation.gettext;
|
||||
|
||||
$(document).ready(function() {
|
||||
Documentation.init();
|
||||
});
|
||||
@@ -0,0 +1,12 @@
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
|
||||
VERSION: 'v5.00.01',
|
||||
LANGUAGE: 'None',
|
||||
COLLAPSE_INDEX: false,
|
||||
BUILDER: 'html',
|
||||
FILE_SUFFIX: '.html',
|
||||
LINK_SUFFIX: '.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt',
|
||||
NAVIGATION_WITH_KEYS: false
|
||||
};
|
||||
|
After Width: | Height: | Size: 286 B |
|
After Width: | Height: | Size: 434 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,2 @@
|
||||
/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:f,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){b(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(d(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(d(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g.apply([],a)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var h=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,k="sizzle"+1*new Date,m=n.document,S=0,r=0,p=ue(),x=ue(),N=ue(),A=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",$=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}({4:function(e,t,r){}});
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
|
||||
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
|
||||
*/
|
||||
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){returnLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(i,o,function(e){return n[e]}.bind(null,o));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){t(1),n.exports=t(3)},function(n,e,t){(function(){var e="undefined"!=typeof window?window.jQuery:t(2);n.exports.ThemeNav={navBar:null,win:null,winScroll:!1,winResize:!1,linkScroll:!1,winPosition:0,winHeight:null,docHeight:null,isRunning:!1,enable:function(n){var t=this;void 0===n&&(n=!0),t.isRunning||(t.isRunning=!0,e((function(e){t.init(e),t.reset(),t.win.on("hashchange",t.reset),n&&t.win.on("scroll",(function(){t.linkScroll||t.winScroll||(t.winScroll=!0,requestAnimationFrame((function(){t.onScroll()})))})),t.win.on("resize",(function(){t.winResize||(t.winResize=!0,requestAnimationFrame((function(){t.onResize()})))})),t.onResize()})))},enableSticky:function(){this.enable(!0)},init:function(n){n(document);var e=this;this.navBar=n("div.wy-side-scroll:first"),this.win=n(window),n(document).on("click","[data-toggle='wy-nav-top']",(function(){n("[data-toggle='wy-nav-shift']").toggleClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift")})).on("click",".wy-menu-vertical .current ul li a",(function(){var t=n(this);n("[data-toggle='wy-nav-shift']").removeClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift"),e.toggleCurrent(t),e.hashChange()})).on("click","[data-toggle='rst-current-version']",(function(){n("[data-toggle='rst-versions']").toggleClass("shift-up")})),n("table.docutils:not(.field-list,.footnote,.citation)").wrap("<div class='wy-table-responsive'></div>"),n("table.docutils.footnote").wrap("<div class='wy-table-responsive footnote'></div>"),n("table.docutils.citation").wrap("<div class='wy-table-responsive citation'></div>"),n(".wy-menu-vertical ul").not(".simple").siblings("a").each((function(){var t=n(this);expand=n('<button class="toctree-expand" title="Open/close menu"></button>'),expand.on("click",(function(n){return e.toggleCurrent(t),n.stopPropagation(),!1})),t.prepend(expand)}))},reset:function(){var n=encodeURI(window.location.hash)||"#";try{var e=$(".wy-menu-vertical"),t=e.find('[href="'+n+'"]');if(0===t.length){var i=$('.document [id="'+n.substring(1)+'"]').closest("div.section");0===(t=e.find('[href="#'+i.attr("id")+'"]')).length&&(t=e.find('[href="#"]'))}if(t.length>0){$(".wy-menu-vertical .current").removeClass("current").attr("aria-expanded","false"),t.addClass("current").attr("aria-expanded","true"),t.closest("li.toctree-l1").parent().addClass("current").attr("aria-expanded","true");for(let n=1;n<=10;n++)t.closest("li.toctree-l"+n).addClass("current").attr("aria-expanded","true");t[0].scrollIntoView()}}catch(n){console.log("Error expanding nav for anchor",n)}},onScroll:function(){this.winScroll=!1;var n=this.win.scrollTop(),e=n+this.winHeight,t=this.navBar.scrollTop()+(n-this.winPosition);n<0||e>this.docHeight||(this.navBar.scrollTop(t),this.winPosition=n)},onResize:function(){this.winResize=!1,this.winHeight=this.win.height(),this.docHeight=$(document).height()},hashChange:function(){this.linkScroll=!0,this.win.one("hashchange",(function(){this.linkScroll=!1}))},toggleCurrent:function(n){var e=n.closest("li");e.siblings("li.current").removeClass("current").attr("aria-expanded","false"),e.siblings().find("li.current").removeClass("current").attr("aria-expanded","false");var t=e.find("> ul li");t.length&&(t.removeClass("current").attr("aria-expanded","false"),e.toggleClass("current").attr("aria-expanded",(function(n,e){return"true"==e?"false":"true"})))}},"undefined"!=typeof window&&(window.SphinxRtdTheme={Navigation:n.exports.ThemeNav,StickyNav:n.exports.ThemeNav}),function(){for(var n=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),o=Math.max(0,16-(i-n)),r=window.setTimeout((function(){e(i+o)}),o);return n=i+o,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})}()}).call(window)},function(n,e){n.exports=jQueLine truncated
|
||||
@@ -0,0 +1,297 @@
|
||||
/*
|
||||
* language_data.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* This script contains the language-specific data used by searchtools.js,
|
||||
* namely the list of stopwords, stemmer, scorer and splitter.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
|
||||
|
||||
|
||||
/* Non-minified version JS is _stemmer.js if file is provided */
|
||||
/**
|
||||
* Porter Stemmer
|
||||
*/
|
||||
var Stemmer = function() {
|
||||
|
||||
var step2list = {
|
||||
ational: 'ate',
|
||||
tional: 'tion',
|
||||
enci: 'ence',
|
||||
anci: 'ance',
|
||||
izer: 'ize',
|
||||
bli: 'ble',
|
||||
alli: 'al',
|
||||
entli: 'ent',
|
||||
eli: 'e',
|
||||
ousli: 'ous',
|
||||
ization: 'ize',
|
||||
ation: 'ate',
|
||||
ator: 'ate',
|
||||
alism: 'al',
|
||||
iveness: 'ive',
|
||||
fulness: 'ful',
|
||||
ousness: 'ous',
|
||||
aliti: 'al',
|
||||
iviti: 'ive',
|
||||
biliti: 'ble',
|
||||
logi: 'log'
|
||||
};
|
||||
|
||||
var step3list = {
|
||||
icate: 'ic',
|
||||
ative: '',
|
||||
alize: 'al',
|
||||
iciti: 'ic',
|
||||
ical: 'ic',
|
||||
ful: '',
|
||||
ness: ''
|
||||
};
|
||||
|
||||
var c = "[^aeiou]"; // consonant
|
||||
var v = "[aeiouy]"; // vowel
|
||||
var C = c + "[^aeiouy]*"; // consonant sequence
|
||||
var V = v + "[aeiou]*"; // vowel sequence
|
||||
|
||||
var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0
|
||||
var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1
|
||||
var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1
|
||||
var s_v = "^(" + C + ")?" + v; // vowel in stem
|
||||
|
||||
this.stemWord = function (w) {
|
||||
var stem;
|
||||
var suffix;
|
||||
var firstch;
|
||||
var origword = w;
|
||||
|
||||
if (w.length < 3)
|
||||
return w;
|
||||
|
||||
var re;
|
||||
var re2;
|
||||
var re3;
|
||||
var re4;
|
||||
|
||||
firstch = w.substr(0,1);
|
||||
if (firstch == "y")
|
||||
w = firstch.toUpperCase() + w.substr(1);
|
||||
|
||||
// Step 1a
|
||||
re = /^(.+?)(ss|i)es$/;
|
||||
re2 = /^(.+?)([^s])s$/;
|
||||
|
||||
if (re.test(w))
|
||||
w = w.replace(re,"$1$2");
|
||||
else if (re2.test(w))
|
||||
w = w.replace(re2,"$1$2");
|
||||
|
||||
// Step 1b
|
||||
re = /^(.+?)eed$/;
|
||||
re2 = /^(.+?)(ed|ing)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
re = new RegExp(mgr0);
|
||||
if (re.test(fp[1])) {
|
||||
re = /.$/;
|
||||
w = w.replace(re,"");
|
||||
}
|
||||
}
|
||||
else if (re2.test(w)) {
|
||||
var fp = re2.exec(w);
|
||||
stem = fp[1];
|
||||
re2 = new RegExp(s_v);
|
||||
if (re2.test(stem)) {
|
||||
w = stem;
|
||||
re2 = /(at|bl|iz)$/;
|
||||
re3 = new RegExp("([^aeiouylsz])\\1$");
|
||||
re4 = new RegExp("^" + C + v + "[^aeiouwxy]$");
|
||||
if (re2.test(w))
|
||||
w = w + "e";
|
||||
else if (re3.test(w)) {
|
||||
re = /.$/;
|
||||
w = w.replace(re,"");
|
||||
}
|
||||
else if (re4.test(w))
|
||||
w = w + "e";
|
||||
}
|
||||
}
|
||||
|
||||
// Step 1c
|
||||
re = /^(.+?)y$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
re = new RegExp(s_v);
|
||||
if (re.test(stem))
|
||||
w = stem + "i";
|
||||
}
|
||||
|
||||
// Step 2
|
||||
re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
suffix = fp[2];
|
||||
re = new RegExp(mgr0);
|
||||
if (re.test(stem))
|
||||
w = stem + step2list[suffix];
|
||||
}
|
||||
|
||||
// Step 3
|
||||
re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
suffix = fp[2];
|
||||
re = new RegExp(mgr0);
|
||||
if (re.test(stem))
|
||||
w = stem + step3list[suffix];
|
||||
}
|
||||
|
||||
// Step 4
|
||||
re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;
|
||||
re2 = /^(.+?)(s|t)(ion)$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
re = new RegExp(mgr1);
|
||||
if (re.test(stem))
|
||||
w = stem;
|
||||
}
|
||||
else if (re2.test(w)) {
|
||||
var fp = re2.exec(w);
|
||||
stem = fp[1] + fp[2];
|
||||
re2 = new RegExp(mgr1);
|
||||
if (re2.test(stem))
|
||||
w = stem;
|
||||
}
|
||||
|
||||
// Step 5
|
||||
re = /^(.+?)e$/;
|
||||
if (re.test(w)) {
|
||||
var fp = re.exec(w);
|
||||
stem = fp[1];
|
||||
re = new RegExp(mgr1);
|
||||
re2 = new RegExp(meq1);
|
||||
re3 = new RegExp("^" + C + v + "[^aeiouwxy]$");
|
||||
if (re.test(stem) || (re2.test(stem) && !(re3.test(stem))))
|
||||
w = stem;
|
||||
}
|
||||
re = /ll$/;
|
||||
re2 = new RegExp(mgr1);
|
||||
if (re.test(w) && re2.test(w)) {
|
||||
re = /.$/;
|
||||
w = w.replace(re,"");
|
||||
}
|
||||
|
||||
// and turn initial Y back to y
|
||||
if (firstch == "y")
|
||||
w = firstch.toLowerCase() + w.substr(1);
|
||||
return w;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var splitChars = (function() {
|
||||
var result = {};
|
||||
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,
|
||||
1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702,
|
||||
2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971,
|
||||
2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345,
|
||||
3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761,
|
||||
3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823,
|
||||
4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125,
|
||||
8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695,
|
||||
11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587,
|
||||
43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141];
|
||||
var i, j, start, end;
|
||||
for (i = 0; i < singles.length; i++) {
|
||||
result[singles[i]] = true;
|
||||
}
|
||||
var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709],
|
||||
[722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161],
|
||||
[1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568],
|
||||
[1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807],
|
||||
[1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047],
|
||||
[2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383],
|
||||
[2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450],
|
||||
[2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547],
|
||||
[2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673],
|
||||
[2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820],
|
||||
[2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946],
|
||||
[2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023],
|
||||
[3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173],
|
||||
[3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332],
|
||||
[3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481],
|
||||
[3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718],
|
||||
[3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791],
|
||||
[3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095],
|
||||
[4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205],
|
||||
[4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687],
|
||||
[4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968],
|
||||
[4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869],
|
||||
[5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102],
|
||||
[6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271],
|
||||
[6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592],
|
||||
[6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822],
|
||||
[6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167],
|
||||
[7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959],
|
||||
[7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143],
|
||||
[8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318],
|
||||
[8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483],
|
||||
[8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101],
|
||||
[10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567],
|
||||
[11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292],
|
||||
[12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444],
|
||||
[12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783],
|
||||
[12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311],
|
||||
[19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511],
|
||||
[42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774],
|
||||
[42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071],
|
||||
[43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263],
|
||||
[43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519],
|
||||
[43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647],
|
||||
[43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967],
|
||||
[44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295],
|
||||
[57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274],
|
||||
[64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007],
|
||||
[65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381],
|
||||
[65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]];
|
||||
for (i = 0; i < ranges.length; i++) {
|
||||
start = ranges[i][0];
|
||||
end = ranges[i][1];
|
||||
for (j = start; j <= end; j++) {
|
||||
result[j] = true;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
})();
|
||||
|
||||
function splitQuery(query) {
|
||||
var result = [];
|
||||
var start = -1;
|
||||
for (var i = 0; i < query.length; i++) {
|
||||
if (splitChars[query.charCodeAt(i)]) {
|
||||
if (start !== -1) {
|
||||
result.push(query.slice(start, i));
|
||||
start = -1;
|
||||
}
|
||||
} else if (start === -1) {
|
||||
start = i;
|
||||
}
|
||||
}
|
||||
if (start !== -1) {
|
||||
result.push(query.slice(start));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 90 B |
|
After Width: | Height: | Size: 90 B |
@@ -0,0 +1,67 @@
|
||||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight { background: #ffffff; }
|
||||
.highlight .c { color: #999988; font-style: italic } /* Comment */
|
||||
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
|
||||
.highlight .k { font-weight: bold } /* Keyword */
|
||||
.highlight .o { font-weight: bold } /* Operator */
|
||||
.highlight .ch { color: #999988; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #999988; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .gr { color: #aa0000 } /* Generic.Error */
|
||||
.highlight .gh { color: #999999 } /* Generic.Heading */
|
||||
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
|
||||
.highlight .go { color: #888888 } /* Generic.Output */
|
||||
.highlight .gp { color: #555555 } /* Generic.Prompt */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
|
||||
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
|
||||
.highlight .kc { font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
|
||||
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
|
||||
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
|
||||
.highlight .m { color: #009999 } /* Literal.Number */
|
||||
.highlight .s { color: #bb8844 } /* Literal.String */
|
||||
.highlight .na { color: #008080 } /* Name.Attribute */
|
||||
.highlight .nb { color: #999999 } /* Name.Builtin */
|
||||
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #008080 } /* Name.Constant */
|
||||
.highlight .ni { color: #800080 } /* Name.Entity */
|
||||
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
|
||||
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
|
||||
.highlight .nn { color: #555555 } /* Name.Namespace */
|
||||
.highlight .nt { color: #000080 } /* Name.Tag */
|
||||
.highlight .nv { color: #008080 } /* Name.Variable */
|
||||
.highlight .ow { font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.highlight .mb { color: #009999 } /* Literal.Number.Bin */
|
||||
.highlight .mf { color: #009999 } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
|
||||
.highlight .sa { color: #bb8844 } /* Literal.String.Affix */
|
||||
.highlight .sb { color: #bb8844 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #bb8844 } /* Literal.String.Char */
|
||||
.highlight .dl { color: #bb8844 } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #bb8844 } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #bb8844 } /* Literal.String.Double */
|
||||
.highlight .se { color: #bb8844 } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #bb8844 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #bb8844 } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #bb8844 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #808000 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #bb8844 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #bb8844 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
|
||||
.highlight .fm { color: #990000; font-weight: bold } /* Name.Function.Magic */
|
||||
.highlight .vc { color: #008080 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #008080 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
|
||||
.highlight .vm { color: #008080 } /* Name.Variable.Magic */
|
||||
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
|
||||
@@ -0,0 +1,515 @@
|
||||
/*
|
||||
* searchtools.js
|
||||
* ~~~~~~~~~~~~~~~~
|
||||
*
|
||||
* Sphinx JavaScript utilities for the full-text search.
|
||||
*
|
||||
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
||||
* :license: BSD, see LICENSE for details.
|
||||
*
|
||||
*/
|
||||
|
||||
if (!Scorer) {
|
||||
/**
|
||||
* Simple result scoring code.
|
||||
*/
|
||||
var Scorer = {
|
||||
// Implement the following function to further tweak the score for each result
|
||||
// The function takes a result array [filename, title, anchor, descr, score]
|
||||
// and returns the new score.
|
||||
/*
|
||||
score: function(result) {
|
||||
return result[4];
|
||||
},
|
||||
*/
|
||||
|
||||
// query matches the full name of an object
|
||||
objNameMatch: 11,
|
||||
// or matches in the last dotted part of the object name
|
||||
objPartialMatch: 6,
|
||||
// Additive scores depending on the priority of the object
|
||||
objPrio: {0: 15, // used to be importantResults
|
||||
1: 5, // used to be objectResults
|
||||
2: -5}, // used to be unimportantResults
|
||||
// Used when the priority is not in the mapping.
|
||||
objPrioDefault: 0,
|
||||
|
||||
// query found in title
|
||||
title: 15,
|
||||
partialTitle: 7,
|
||||
// query found in terms
|
||||
term: 5,
|
||||
partialTerm: 2
|
||||
};
|
||||
}
|
||||
|
||||
if (!splitQuery) {
|
||||
function splitQuery(query) {
|
||||
return query.split(/\s+/);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Search Module
|
||||
*/
|
||||
var Search = {
|
||||
|
||||
_index : null,
|
||||
_queued_query : null,
|
||||
_pulse_status : -1,
|
||||
|
||||
htmlToText : function(htmlString) {
|
||||
var htmlElement = document.createElement('span');
|
||||
htmlElement.innerHTML = htmlString;
|
||||
$(htmlElement).find('.headerlink').remove();
|
||||
docContent = $(htmlElement).find('[role=main]')[0];
|
||||
if(docContent === undefined) {
|
||||
console.warn("Content block not found. Sphinx search tries to obtain it " +
|
||||
"via '[role=main]'. Could you check your theme or template.");
|
||||
return "";
|
||||
}
|
||||
return docContent.textContent || docContent.innerText;
|
||||
},
|
||||
|
||||
init : function() {
|
||||
var params = $.getQueryParameters();
|
||||
if (params.q) {
|
||||
var query = params.q[0];
|
||||
$('input[name="q"]')[0].value = query;
|
||||
this.performSearch(query);
|
||||
}
|
||||
},
|
||||
|
||||
loadIndex : function(url) {
|
||||
$.ajax({type: "GET", url: url, data: null,
|
||||
dataType: "script", cache: true,
|
||||
complete: function(jqxhr, textstatus) {
|
||||
if (textstatus != "success") {
|
||||
document.getElementById("searchindexloader").src = url;
|
||||
}
|
||||
}});
|
||||
},
|
||||
|
||||
setIndex : function(index) {
|
||||
var q;
|
||||
this._index = index;
|
||||
if ((q = this._queued_query) !== null) {
|
||||
this._queued_query = null;
|
||||
Search.query(q);
|
||||
}
|
||||
},
|
||||
|
||||
hasIndex : function() {
|
||||
return this._index !== null;
|
||||
},
|
||||
|
||||
deferQuery : function(query) {
|
||||
this._queued_query = query;
|
||||
},
|
||||
|
||||
stopPulse : function() {
|
||||
this._pulse_status = 0;
|
||||
},
|
||||
|
||||
startPulse : function() {
|
||||
if (this._pulse_status >= 0)
|
||||
return;
|
||||
function pulse() {
|
||||
var i;
|
||||
Search._pulse_status = (Search._pulse_status + 1) % 4;
|
||||
var dotString = '';
|
||||
for (i = 0; i < Search._pulse_status; i++)
|
||||
dotString += '.';
|
||||
Search.dots.text(dotString);
|
||||
if (Search._pulse_status > -1)
|
||||
window.setTimeout(pulse, 500);
|
||||
}
|
||||
pulse();
|
||||
},
|
||||
|
||||
/**
|
||||
* perform a search for something (or wait until index is loaded)
|
||||
*/
|
||||
performSearch : function(query) {
|
||||
// create the required interface elements
|
||||
this.out = $('#search-results');
|
||||
this.title = $('<h2>' + _('Searching') + '</h2>').appendTo(this.out);
|
||||
this.dots = $('<span></span>').appendTo(this.title);
|
||||
this.status = $('<p class="search-summary"> </p>').appendTo(this.out);
|
||||
this.output = $('<ul class="search"/>').appendTo(this.out);
|
||||
|
||||
$('#search-progress').text(_('Preparing search...'));
|
||||
this.startPulse();
|
||||
|
||||
// index already loaded, the browser was quick!
|
||||
if (this.hasIndex())
|
||||
this.query(query);
|
||||
else
|
||||
this.deferQuery(query);
|
||||
},
|
||||
|
||||
/**
|
||||
* execute search (requires search index to be loaded)
|
||||
*/
|
||||
query : function(query) {
|
||||
var i;
|
||||
|
||||
// stem the searchterms and add them to the correct list
|
||||
var stemmer = new Stemmer();
|
||||
var searchterms = [];
|
||||
var excluded = [];
|
||||
var hlterms = [];
|
||||
var tmp = splitQuery(query);
|
||||
var objectterms = [];
|
||||
for (i = 0; i < tmp.length; i++) {
|
||||
if (tmp[i] !== "") {
|
||||
objectterms.push(tmp[i].toLowerCase());
|
||||
}
|
||||
|
||||
if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i].match(/^\d+$/) ||
|
||||
tmp[i] === "") {
|
||||
// skip this "word"
|
||||
continue;
|
||||
}
|
||||
// stem the word
|
||||
var word = stemmer.stemWord(tmp[i].toLowerCase());
|
||||
// prevent stemmer from cutting word smaller than two chars
|
||||
if(word.length < 3 && tmp[i].length >= 3) {
|
||||
word = tmp[i];
|
||||
}
|
||||
var toAppend;
|
||||
// select the correct list
|
||||
if (word[0] == '-') {
|
||||
toAppend = excluded;
|
||||
word = word.substr(1);
|
||||
}
|
||||
else {
|
||||
toAppend = searchterms;
|
||||
hlterms.push(tmp[i].toLowerCase());
|
||||
}
|
||||
// only add if not already in the list
|
||||
if (!$u.contains(toAppend, word))
|
||||
toAppend.push(word);
|
||||
}
|
||||
var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" "));
|
||||
|
||||
// console.debug('SEARCH: searching for:');
|
||||
// console.info('required: ', searchterms);
|
||||
// console.info('excluded: ', excluded);
|
||||
|
||||
// prepare search
|
||||
var terms = this._index.terms;
|
||||
var titleterms = this._index.titleterms;
|
||||
|
||||
// array of [filename, title, anchor, descr, score]
|
||||
var results = [];
|
||||
$('#search-progress').empty();
|
||||
|
||||
// lookup as object
|
||||
for (i = 0; i < objectterms.length; i++) {
|
||||
var others = [].concat(objectterms.slice(0, i),
|
||||
objectterms.slice(i+1, objectterms.length));
|
||||
results = results.concat(this.performObjectSearch(objectterms[i], others));
|
||||
}
|
||||
|
||||
// lookup as search terms in fulltext
|
||||
results = results.concat(this.performTermsSearch(searchterms, excluded, terms, titleterms));
|
||||
|
||||
// let the scorer override scores with a custom scoring function
|
||||
if (Scorer.score) {
|
||||
for (i = 0; i < results.length; i++)
|
||||
results[i][4] = Scorer.score(results[i]);
|
||||
}
|
||||
|
||||
// now sort the results by score (in opposite order of appearance, since the
|
||||
// display function below uses pop() to retrieve items) and then
|
||||
// alphabetically
|
||||
results.sort(function(a, b) {
|
||||
var left = a[4];
|
||||
var right = b[4];
|
||||
if (left > right) {
|
||||
return 1;
|
||||
} else if (left < right) {
|
||||
return -1;
|
||||
} else {
|
||||
// same score: sort alphabetically
|
||||
left = a[1].toLowerCase();
|
||||
right = b[1].toLowerCase();
|
||||
return (left > right) ? -1 : ((left < right) ? 1 : 0);
|
||||
}
|
||||
});
|
||||
|
||||
// for debugging
|
||||
//Search.lastresults = results.slice(); // a copy
|
||||
//console.info('search results:', Search.lastresults);
|
||||
|
||||
// print the results
|
||||
var resultCount = results.length;
|
||||
function displayNextItem() {
|
||||
// results left, load the summary and display it
|
||||
if (results.length) {
|
||||
var item = results.pop();
|
||||
var listItem = $('<li style="display:none"></li>');
|
||||
var requestUrl = "";
|
||||
var linkUrl = "";
|
||||
if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
|
||||
// dirhtml builder
|
||||
var dirname = item[0] + '/';
|
||||
if (dirname.match(/\/index\/$/)) {
|
||||
dirname = dirname.substring(0, dirname.length-6);
|
||||
} else if (dirname == 'index/') {
|
||||
dirname = '';
|
||||
}
|
||||
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname;
|
||||
linkUrl = requestUrl;
|
||||
|
||||
} else {
|
||||
// normal html builders
|
||||
requestUrl = DOCUMENTATION_OPTIONS.URL_ROOT + item[0] + DOCUMENTATION_OPTIONS.FILE_SUFFIX;
|
||||
linkUrl = item[0] + DOCUMENTATION_OPTIONS.LINK_SUFFIX;
|
||||
}
|
||||
listItem.append($('<a/>').attr('href',
|
||||
linkUrl +
|
||||
highlightstring + item[2]).html(item[1]));
|
||||
if (item[3]) {
|
||||
listItem.append($('<span> (' + item[3] + ')</span>'));
|
||||
Search.output.append(listItem);
|
||||
listItem.slideDown(5, function() {
|
||||
displayNextItem();
|
||||
});
|
||||
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
|
||||
$.ajax({url: requestUrl,
|
||||
dataType: "text",
|
||||
complete: function(jqxhr, textstatus) {
|
||||
var data = jqxhr.responseText;
|
||||
if (data !== '' && data !== undefined) {
|
||||
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
|
||||
}
|
||||
Search.output.append(listItem);
|
||||
listItem.slideDown(5, function() {
|
||||
displayNextItem();
|
||||
});
|
||||
}});
|
||||
} else {
|
||||
// no source available, just display title
|
||||
Search.output.append(listItem);
|
||||
listItem.slideDown(5, function() {
|
||||
displayNextItem();
|
||||
});
|
||||
}
|
||||
}
|
||||
// search finished, update title and status message
|
||||
else {
|
||||
Search.stopPulse();
|
||||
Search.title.text(_('Search Results'));
|
||||
if (!resultCount)
|
||||
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
|
||||
else
|
||||
Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
|
||||
Search.status.fadeIn(500);
|
||||
}
|
||||
}
|
||||
displayNextItem();
|
||||
},
|
||||
|
||||
/**
|
||||
* search for object names
|
||||
*/
|
||||
performObjectSearch : function(object, otherterms) {
|
||||
var filenames = this._index.filenames;
|
||||
var docnames = this._index.docnames;
|
||||
var objects = this._index.objects;
|
||||
var objnames = this._index.objnames;
|
||||
var titles = this._index.titles;
|
||||
|
||||
var i;
|
||||
var results = [];
|
||||
|
||||
for (var prefix in objects) {
|
||||
for (var name in objects[prefix]) {
|
||||
var fullname = (prefix ? prefix + '.' : '') + name;
|
||||
var fullnameLower = fullname.toLowerCase()
|
||||
if (fullnameLower.indexOf(object) > -1) {
|
||||
var score = 0;
|
||||
var parts = fullnameLower.split('.');
|
||||
// check for different match types: exact matches of full name or
|
||||
// "last name" (i.e. last dotted part)
|
||||
if (fullnameLower == object || parts[parts.length - 1] == object) {
|
||||
score += Scorer.objNameMatch;
|
||||
// matches in last name
|
||||
} else if (parts[parts.length - 1].indexOf(object) > -1) {
|
||||
score += Scorer.objPartialMatch;
|
||||
}
|
||||
var match = objects[prefix][name];
|
||||
var objname = objnames[match[1]][2];
|
||||
var title = titles[match[0]];
|
||||
// If more than one term searched for, we require other words to be
|
||||
// found in the name/title/description
|
||||
if (otherterms.length > 0) {
|
||||
var haystack = (prefix + ' ' + name + ' ' +
|
||||
objname + ' ' + title).toLowerCase();
|
||||
var allfound = true;
|
||||
for (i = 0; i < otherterms.length; i++) {
|
||||
if (haystack.indexOf(otherterms[i]) == -1) {
|
||||
allfound = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!allfound) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
var descr = objname + _(', in ') + title;
|
||||
|
||||
var anchor = match[3];
|
||||
if (anchor === '')
|
||||
anchor = fullname;
|
||||
else if (anchor == '-')
|
||||
anchor = objnames[match[1]][1] + '-' + fullname;
|
||||
// add custom score for some objects according to scorer
|
||||
if (Scorer.objPrio.hasOwnProperty(match[2])) {
|
||||
score += Scorer.objPrio[match[2]];
|
||||
} else {
|
||||
score += Scorer.objPrioDefault;
|
||||
}
|
||||
results.push([docnames[match[0]], fullname, '#'+anchor, descr, score, filenames[match[0]]]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return results;
|
||||
},
|
||||
|
||||
/**
|
||||
* search for full-text terms in the index
|
||||
*/
|
||||
performTermsSearch : function(searchterms, excluded, terms, titleterms) {
|
||||
var docnames = this._index.docnames;
|
||||
var filenames = this._index.filenames;
|
||||
var titles = this._index.titles;
|
||||
|
||||
var i, j, file;
|
||||
var fileMap = {};
|
||||
var scoreMap = {};
|
||||
var results = [];
|
||||
|
||||
// perform the search on the required terms
|
||||
for (i = 0; i < searchterms.length; i++) {
|
||||
var word = searchterms[i];
|
||||
var files = [];
|
||||
var _o = [
|
||||
{files: terms[word], score: Scorer.term},
|
||||
{files: titleterms[word], score: Scorer.title}
|
||||
];
|
||||
// add support for partial matches
|
||||
if (word.length > 2) {
|
||||
for (var w in terms) {
|
||||
if (w.match(word) && !terms[word]) {
|
||||
_o.push({files: terms[w], score: Scorer.partialTerm})
|
||||
}
|
||||
}
|
||||
for (var w in titleterms) {
|
||||
if (w.match(word) && !titleterms[word]) {
|
||||
_o.push({files: titleterms[w], score: Scorer.partialTitle})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// no match but word was a required one
|
||||
if ($u.every(_o, function(o){return o.files === undefined;})) {
|
||||
break;
|
||||
}
|
||||
// found search word in contents
|
||||
$u.each(_o, function(o) {
|
||||
var _files = o.files;
|
||||
if (_files === undefined)
|
||||
return
|
||||
|
||||
if (_files.length === undefined)
|
||||
_files = [_files];
|
||||
files = files.concat(_files);
|
||||
|
||||
// set score for the word in each file to Scorer.term
|
||||
for (j = 0; j < _files.length; j++) {
|
||||
file = _files[j];
|
||||
if (!(file in scoreMap))
|
||||
scoreMap[file] = {};
|
||||
scoreMap[file][word] = o.score;
|
||||
}
|
||||
});
|
||||
|
||||
// create the mapping
|
||||
for (j = 0; j < files.length; j++) {
|
||||
file = files[j];
|
||||
if (file in fileMap && fileMap[file].indexOf(word) === -1)
|
||||
fileMap[file].push(word);
|
||||
else
|
||||
fileMap[file] = [word];
|
||||
}
|
||||
}
|
||||
|
||||
// now check if the files don't contain excluded terms
|
||||
for (file in fileMap) {
|
||||
var valid = true;
|
||||
|
||||
// check if all requirements are matched
|
||||
var filteredTermCount = // as search terms with length < 3 are discarded: ignore
|
||||
searchterms.filter(function(term){return term.length > 2}).length
|
||||
if (
|
||||
fileMap[file].length != searchterms.length &&
|
||||
fileMap[file].length != filteredTermCount
|
||||
) continue;
|
||||
|
||||
// ensure that none of the excluded terms is in the search result
|
||||
for (i = 0; i < excluded.length; i++) {
|
||||
if (terms[excluded[i]] == file ||
|
||||
titleterms[excluded[i]] == file ||
|
||||
$u.contains(terms[excluded[i]] || [], file) ||
|
||||
$u.contains(titleterms[excluded[i]] || [], file)) {
|
||||
valid = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// if we have still a valid result we can add it to the result list
|
||||
if (valid) {
|
||||
// select one (max) score for the file.
|
||||
// for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
|
||||
var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
|
||||
results.push([docnames[file], titles[file], '', null, score, filenames[file]]);
|
||||
}
|
||||
}
|
||||
return results;
|
||||
},
|
||||
|
||||
/**
|
||||
* helper function to return a node containing the
|
||||
* search summary for a given text. keywords is a list
|
||||
* of stemmed words, hlwords is the list of normal, unstemmed
|
||||
* words. the first one is used to find the occurrence, the
|
||||
* latter for highlighting it.
|
||||
*/
|
||||
makeSearchSummary : function(htmlText, keywords, hlwords) {
|
||||
var text = Search.htmlToText(htmlText);
|
||||
var textLower = text.toLowerCase();
|
||||
var start = 0;
|
||||
$.each(keywords, function() {
|
||||
var i = textLower.indexOf(this.toLowerCase());
|
||||
if (i > -1)
|
||||
start = i;
|
||||
});
|
||||
start = Math.max(start - 120, 0);
|
||||
var excerpt = ((start > 0) ? '...' : '') +
|
||||
$.trim(text.substr(start, 240)) +
|
||||
((start + 240 - text.length) ? '...' : '');
|
||||
var rv = $('<div class="context"></div>').text(excerpt);
|
||||
$.each(hlwords, function() {
|
||||
rv = rv.highlightText(this, 'highlighted');
|
||||
});
|
||||
return rv;
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
Search.init();
|
||||
});
|
||||
@@ -0,0 +1,221 @@
|
||||
|
||||
/* Open Sans Latin
|
||||
base64 encode done on opensans_latin_v13.woff2 */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('data:font/woff2;base64,d09GMgABAAAAADzUABIAAAAAhjgAADxwAAEZmgAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbDBx0BmAAgUwIgSIJjzQREAqBpESBjUIBNgIkA4ZsE70QC4M8AAQgBYIyB4QoDIIJG8J3CQg7WxX5j0PthLRbJVvedpUoKlTzFUWwcUCG52fZ/////3lJxxAlWAMiaNd12/9PqJmJKW5iyEExieloQ9KxVuZAQ07T1g7vfgVloomBA/UEiuEMCGVsPBsLc9rD3dPKhTisOejgNULCLyjxoeYlBGuZsjRKads6GS6b8QRDIttvKSa68bAbLrwP31TZsuGVyrv7lPcTS4bG9tKpUh76wlIon84X/sDUs5lHxlTP/if+Ns2eosU/nf/Bfw/riGqqb+ffLOvzVA9JiiYPkV3xr7qrZ/bum4pAxULkIPkZgBBQJu/2AG2zs1GxcgYq2FMQpj1RETESsbAKmzJyopiJzNnDKkTX5pwurDm2/l+kLvK/+x/AP6A2ZgrZRvjS1KSQBer9XuGyk3Iw3zfX+1eWZFmG4CQDj7CYnr8CXBV4ueyfuup7tsiSJbYtuxH/jmfaSz7qPupZoCCZ+kF0QXRpQIvhcQTov6omea3KKY0pFP4oK73IomFDl+ISgLSDg2T3m9LqWHnZhsdUX6Zbs2x9S8bARE7Ay+y7Qf/nllVniRftubDauc4suapKNQPzE8citiadRhUeQAB2Or6gcE01zLrqvv3azJyYfdvFLJRBRNN+rORtiKb4r90jEQolkS9CXdeapUUtovJYdjvKac7KcpzMaA1l/uGrT4aVVrGvMVAuLrBgPpJTtAv0AsQv4mpVYhTdrISsR3HVOUDRuJh4nIdPy752XK3pgwsJHaOiCfRBCMYnBZa2NQIs0MJBCLKQcLAUFiLHsSb1NBwDuVM++S0pbMpCb4wnNT80UzMTE9QxNEqUXUj+XtWyBRikfCGFLhWNnelMh67A+x+BHyAogRS0C1I6L0lJt9RGUJGUzgZAjQekU04ENxHSBYHaRMdLMVd257vKTeW69pbnoi9NTzZ4puUyQp2QCOOWBcHlBVHZINQPsqpeQjArJqPxaQKweFrTR1P/k+Xq+/E66DKZ2KGI2ZjJZNOIfxEploB4nMfYbCEuPnLbpwkSihwCCsbniQTAguiPVErkU4mUNL+UgcJFiymBc06kZQAgwjK+x5hwzplJMQDIJhWEDSTOGJKlWpoIMEUadBm6RwiOj8PFkZ74BMmB3NPHvuQZdmtwhPKxaCIC1O5pSECsQvXqWxLjy0SwLDAMtWW45JcEf9qVQU4AAOvKcpvthncBrrn3f6P2TFH5pL6ErAoIPAgbyH0bD2BVQtHJQvXeU9iytiHI6oIFw3FX7KYd/ws48OV6eVger6oIUYdoQXQh+hBbCAZCg0ws5P//30+hOw99btm1DAYcrQBRhWi8jM0FaH419ud9hVS/0ut62vSv6Q/T11+iySYajVNbtUV/b5/exPSeyXTDklT41IpZiv4R2m3Dfcp9KWoG9CMAOmZLgoOTwv9t/XjG7O9no/SNV51dlkUn2AXcpNQTLI0adKlSGjJgNWg3YlhoCCEQH+Dv5+vj7eXp4Y5zw7piXJyd0I6nHeztbG2srSxPIeDmZidNDQ30YVA9XR1tprpw1uhWsieLKhwIhGlDCFAphITMFTNSlJXCvFS7BnGYV1RMYWUSk86rwpJKpWQBZbBSCbm2Z1laCiZ6RfcBbuU87snz7Dx7R5L4WZIjvKrod+rtYCMx9O8mwhLRGcX3ibFESNJCqbD2cGBXU/ncuJtPLlOhOxfmmcPUG5mPZuIouu1w9CKPimlUnXUEk4VEgpJLUlkHBxWtYuH7JsyXkXXj7AS4sDsaU8uIxeWw2Z6h9iA3uWnrBnnWSoOFDnWyWxohn666Da3a54egEGCM4tGe/q6VLupikmKFCY7LkmodtkTc48IxKTyS9g+Eon9/U0Gfmor/91YEWgYeaf9eEUU9e7fPaySLVll/ZPSApEe2n04/31YHDfx09bMcma9lC2vvLpFPB/ysabdbsZqgVGlqkCjKQZaCw9RL5J8Wfq78fbpRRBgkAAxoN+77EOTWB8wGH4agD/WBsmqI94A+FBiQym357qjcbDkjVNVS8mFxqGkbhEW5Q0rbxes+9DWsbK1TFiIP2X/hky3m5JlDhoxIiRi5oUREAgQUJuwkwnKXsPYD82bP2nAFm5nLbZFniAVCw4pU+qg9HOyqPE6GeWwEVpAL1OD4ReXMWGnlZg8RK1l6TAzjjnw3zNBtlCkyLGpSVg1rGp+rMhHlAiC6HaUwo4ZUViqrXkR1biihit4A5P8VJcWHBXYcMDHm+VEtaISkshedHnqp6MBKe1ILH2yAviHdNTbXS94mvwv/XjJusom6TmqUVBr6dCPYTMTqM4WFYrEPaeGMiEBczEg9JsYNFvESiiy+aBSdP6UREzNPxAMb5yCrnRydl5oLRghNYHpYqm5Mgj6bGcLtSEgUSpzEqZvZQFUoCd/491qYH9vIUigQkxnUr0rZ1DjE2gzGWOAk0qO4y+JrS01dMjSQ4BtaLQQN1jAHBNY3Z6by+icjUAwNoFPEHxGQX4a1QACbwPpnIaq0UdSymS9t3E1qlrFMKJ/BEWWA/Wb4dE4kRd6bmY5kiLfD64zt8+WeHB+cZTDDLXesW9PnCSGUaC/E0/g8RZElPKlHYd4R7O5c/qbimL+pNfRGnjFI1Yl+T0jLaWSclz9Gb1iMoXN8hCL0wWchLqS69sXHGrHBDM6USOEEjrLDEcJdS7xNCJA/n3BSiMbMyQ2EY0xIu4G4X+P7uAO45rs8N8kzl2cvL4xlqOUwSd5HLl85EA942MMMthyFVM0aP+LaJViU0jrK0n3ILadidX5Df0hDFXwCIWJ0r4T58QM6uleTuOxYSd5zM7DK9LQcKM+QeJzGwd2LDM6BRtSKpoM5txsh5UZ5vkuBS74pKpYGVnlVvQ5o+QbwNE+9qX3yYO35Jmz+n5HIpUfJ2vyfcGnkNDFvIWM3+l0SAJ48tws8taOvAL+PojsDoRsZILghY5rGbIwyhURLrWp55YC9KERyteUrrJvBxgK83RyXPcVHMCoV1zkeyAymKLA4qBuCE17rUFLPeFWiZKX9NFIPkWfjuZHm4voKGHuz5gt7xXpTvCZPhpARHTMjea8/wnPKhOSEpZhhrY3kuKgm88Euz4ZRsxiLqrUUXDCM2Sh/KjJmOI83BylGUktaOGk4F61UfJ35fCC5yHDGsBjkhYxBFaw8KhGxVNLhVakk7yq4dSzlWFZijCc1zkeTkYwYnyJoLlobOWOUa2uxks1KRCtDLiVjk7zikMsiyxS/O+RxwCZCqTBKXOZTycx5EuMsI/y25wHe4lzgXyOx2rgm/VNMKc6TRgCgiHfgRiM/FYcSvBA7nUJ2UqhAvL6znIECFAsKRIF0WBJkLQgKX9nAKe6KytVSyscM/YoBzpAcZ0LQDwAHwYTaxCTnK7Eg7dJpjEys+mX+ymSpJybTABwIUK3FISB+vfEPpaYfX6dhYCS/ArvbXpMxAOujddHcKCy9oAuosBwO/d66aodBZ6D7bZbgOVjxhKzQcG9DNEl3hATNHPFDklxcc4NylfRkG88t2VfSoUwj1nL97IcKprRrU0xLaftUQLvKqBE0YCLFJ3XjQTVlx5kKoTYQIvTnMDpYqQumFfIquUaT3+TlFnBAUcDaS6Ykgm4D6mHZ3T5LS7ASqCHVNII69RkiqGYX8m+KFuRyLBfKpASn+ovFuh8NjOEFNgt3km/K1AYKDnTQbKHVKfxpUg74CJVZ/QzVmPSrAGHPRrKIU8EQJywFPBHiZyoRp9ZiqatfCUYZAy10RUjDNhY0ApFk/RCyRru7v1GbH2EdpTUYrJNxdP9Ib3+Ky+LdDlcvu7brITIlW20bGBWyvH0bbUTBXw42+LKEajBc93Xyvzg460i8KDqQpbI8P3hvRfdjuH3yYpVuP7ea3AJpxwwZtyHxnXa/nKVrKjEQL0ouoeIxVpsuMrmtKoWLpgAemjUmg13xepWbjuhaStVsQCvFIriQZRKfAWu5xpjxjqLR+92hNWoQUpec70wOSdjJSPAalndek2pgvd9VjXFyCq44wwNIpqzRTtwaEINuYuVywyQb9DmkDnaB+Qq/KBrBntgVwLySNWNI3LTiTgU3U4wpJTHRMn+LtfsYleDP1XfFrU2cbdHOGW1GMxq7WE17UZzrbpJsXeX1zvkSyQmmvmRPyMTrQqFtbSYuvTlGSycJKvDElm2kcqatiRtM+XAOliz6XR6Ql9bpw5unABUyOZmgUjozRPHLFnqBm/wT1OcWK8qbpMEwmn6fkxQEFdGYoZxDwFdZbaHVC/ztMekCVCMn9lawhkKL7TRk45pkUC+5tZSrFzs5CgqwTej3T7yWhaE5gLHwn+0h+1rVeqVTATVL7Tx7iWvUzv/Jv4Af1N+6fX3rQ6vzx0zd7AM9pZGZ08pB7ixFyHMPMxRekmvk8+3fknvFVjbKAAscRdHPQn3bUdqk4DItx4uAP4uJoEdaEbR9+hVL1jrs8QEmOsah78uflhUlTGTIDO74+gLrewWOW3kkDAFWPFFoTSDBczNkV+TIpFW0FdcpU7qk8OkJ36V4143X8/RiB6b0k02n+PhuQfsjDBbaNp6O24mTETI5ypKMLGM+Slrrls1SDdfGMEMfrBVHTthLvtRiagZGJqAA2xWj/LQSS0wDnrjYqKDWY/RsARcIH4dVTFwMoU+ztku1jDMPKPHUi0CfPBUERXHmkBwha9YGGWoT4OvQAnlRhh0FcT9RN9eB9p2k9lUBEL4Kdj9SqUBb3XloMCJaYYQk4unEKTGtoGNjJ0UjPt+F0WKcKYdukt4QMO73z5xqVuff5E9rtA/fYyz/MnjX2wNnKQ6l27H9CWD+RO1+1pn9i7z/JfyrHBDGtR4e3FSyLine truncated
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
|
||||
}
|
||||
|
||||
/* Open Sans Semibold Latin
|
||||
base64 encode done on opensans_semibold_latin_v13.woff2 */
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: url('data:font/woff2;base64,d09GMgABAAAAAD8kABIAAAAAiowAAD7AAAEZmgAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbDBx0BmAAgUwIgSYJjzQRDAqBrFiBlGQBNgIkA4ZsE70QC4M8AAQgBYJoB4QoDIIYG6l7Z9BbO0QSerOUWMD9/1cTRZXq2KKIMQ6wzSjJ/v///7TkRIYSYiG1VafTff+DiA2TMhx6R6GCiKKipNXRGIIlEUHG3ELP2MRhdzx4LfCiOw5RpfZw4irWRaVroe2CMIx3WUxkQNxk6z461hFuVKenMJLHnEzY2FGtGIcST7Sp1cxTYd8E50vso/yPErfe33BNR2HDauKu3AktsDKFzxgVf7HfsTCZGph8ip/4Uwt9iS3xxX/jfik50+uSSvluohaoxGhW+QffZ0VxQ/GM8sOOfD3skKRo8vC8f/27ju6d9yKpcgWhygSeSCgqcvLLdBLvHsBtzrwRdYwKMEHBAIxCG6PBxMBITIzIX70341Y99elDvde3/30frfnvzA4t8N0FHiQ/nyhlhYpTFKZKttIVlLGFqAtdnOXCPfh/ppp/5s/MptmdsGE2YZeAAAIiCELEKsEJcKJwJ/KynfnO1bVyn4tOV3TO9YVUOtHOcq59RemitP+pqmCq3alMuiDl8/5IMr1QhE46pskVkHI+0pVKL2OFsw0Pdt+yZtn6Fo+Zb26vHjKL5K9xJojdAa1M3xoi2sTMDYexavi4tFLAtdy6hn5NhRHIvdLOsRxnVwW7mrbd/dLaMceF1hxqKaWqy1M0wnGOUpUjcZlXCIOSPyiwgRYekEwk0wQSeYETiachON3GSksRmej5eOx5AgFckz8qFxU4sFuBDwh2aNMare3AjGQ4P3L7FXIFJNjEd3EIjsBrNet/jg/qRyg6IBQYDvgdMlk3NkNNgB+qwG7TqarbF/I8LPB7hDBogrwqc+2nJJCrmTE6e/O3AQw9WXmJicB2G0w+CQKLMusyiTVt+7VeBVQSlulYqexUqapgXzGwx058eVSam5Ez/+qsWpG8bIipC1c0vuzbiq7kJ8HXR3gQZsaCScAk2ZMEttfCnh1JcHeCS9i7uQq5uxgQkxCzfoeYlIwvhVCl0IVcNN12t9cdPdngmZbLCHVCIoxbFgSXF0Rlg1A/yKp6CYHaWA+i8bm1dBjU8NCvvWp+i8tPihQN4Xy4MWSPrDmG2TSlyfUr8c9+GtZUM29n7LsMByrIY8kQ1PSvN5MwN7xjeYm+Z6Fjs63IOyxLAcXRh0WHA3Sqhv/AGHf0OMAboONkkhqh6SqMber2rJnbwoSAyHiIyrZsPBhdDfcIJb1nz97ZXbZD3r3ZFlX9JDujMWp3NHVAWo4OtbwMm74D8lx9V0Y15/oRyh+3InYAAFhd436DrdGmAGD5+NuJDlyQOSrMzssDFPcaaerubRRgeZJJFtd9djWV1yY2p3ObD5ylFJt2/adoQueV/Dg/XT4TExATEQOJSYnpiZmJRYvdAHH8/y+jtWSl2ZY9ZgB1bSrGJybUT/cDGJ8qjlexgDmei4II/f/X39P/Tz7C0c2jG0c9R51H5Uf5R14frfzfuZJeMY2qWxgvm6qGecX0LG078j3V3XHJBsQFAKcMC4MEe/7/yuP9kBhfhu4hm/7KaGIj0k6NG9SmfP41vG3Zrkm1SRWSNuu/e/aao7dacorBO2u0EiaE6x12ujLc4K/PVqeL+fFsemsy7svMaJWUFIM3FSaHwOESCaBWCCiq1AtWXDTiiFS1TONIcT2HKAj3o0GLG41VDRcQOcGCtdgk52DWC7r180lc4Pl0QVx4gd6WCT+HaQMvW/rMvV1qCH3fTjJoJZ5UIggyI4IgoVpSWH1R2pWcPCfPJeJLXJvrm4iEiydOtD+eimF+5HD4kheX0rA65wh6RJWAyj1SxSz2W1qlMghMHDWRluntJCyhuxbhJUQk6uLtGl6EG/9mC7ysmM7DgVmeLW5rBOxijW1gxT4/OLkQI5yW/ObPgeqSOYxzqjBW4pJspA5LVt3PxUNI+Uz2D1Dz1r8/AZsLS/+dSkBLwEMdfCVknc3u7fMqU91qa2/4psvks3WTyec7tZBhX+efc8PvvTSw+vUC2bz05k2zneojGQqtjgapOpXFH7C442UOzsig8vzVuvWICkgAMIC5UhBAoCx6LLoXq2AO9IITTeQS8OHQgPTdvu9TSuN9JpJXzjmAxWZUWyeomrOsmF26aMN0IYo7XNkd+0j/ywvbfIXOHjbZKBEUpnQJIQsgUMCQOo2gNUva6kX4jXdyX9qbSmUPnWUUMFmtWOU/8ouymnsMxRHWQylQjjU4PaS4EFZWuenDmRNFvkx2U05uhSl+hCIngoU45VV3VKcnecajWAPomTiDKaVTeVJWHwS16yrjlt6EOf8jaZBcnhMnwKQpF6Jc0whYyp7PzqOTy1mIfJ60DMAGaBvWc0bmFrHf6R8y+GJGTXYwprNRzlptfQYLfBOierCgUijOYy3tEVKIqh7S2xrbTSrq/0pQ/SBzcmGbRUT1rKkPNroDpXZicoG01xAZAQ7hXE1qLs0Cr40IwceagKo1ShLC79OButaQgQm+5DjaNhGpUpCZ9iSLVeM2FwBTuQeEAv2GbBSqEt+cNM+x4ZLAtzRdEBrEYAIEYjcRU/XYlR6oMBkw8IhfQiAfhtVQApvE2nUkrrX+qG+jkGxUZqMWschJoQCpJkB+c3ymIn8LXmsOZ7RA/RmKctblKy1ZKs8hmCKbs1aO6gsZgS2R38s3086QF5m3NZbEkSNInPQ+Hzg+3B219WZWCPF4rJcIaSlPjBu8X6Q3hRB8x0swhhdeAUuhI5E3WmzkJgswT1jwF4rzVxsIn33RIIKffNmksyqRWdBdfzDOGT1Bf9Rn0JfkAK52V/pC3MO9PEApajj8TZdihx6CiDFYTmIKG64AG7k11kPjxlg+9ZghNsRaTqpVnbT1chLyoC2oREi+EnHkPgCnF2km0ayUFLwzpdWmpSlQdkj9TPKA8pIAHQCLZuGkE5dzCRIyuee97L/sDXORLLDs5VUbh5ZuAbdtxjo6YB9i73dps1tCohcGpb3N/o2lChSykdkIjUYjvG9OTk8f6PeAeeZl4RsBoOwLyHOz/E0A5RAStnLRutoJ1uwgiYXLr+E0HccEPK/CdjBLBFKtnFrhVBQxFIHMI0VgGb0ci4Z3ZZbMgg9AZQaF9dd6qiT1BRASK6uXNStArgxCupzRTBgjKtNNyxe1MAojJoOOa6Kkt6kTKaP2VfKjQzFXSlVy5E3XjHlt+ip6X4dQBZNhk4sS+XzgfAY6h3jmZ3nMIfSZ77GwTWveLWWz3fuSCs6xVGy6lrA75Hw83W35lLf4yOfNDUanh7xnPst5ddz7IZonglh3LlIy9zwee55J3vPavK7JvI+Du6/issBTOysy5+mULZZbAVsOD9ilPSn/QWZz/r8P7Ttkj9mdcGtYwrZodSLJQ+6QwW7EqQrd1qYCeIoNvJiJBj+HUloE21dP0OZOArKgmfeqoENgiIYReCWDTpT3sjOR42oe2bZzNvekQiDdTIY3kYWQzzZk2y20TNXjMTKEmU3WNYvOQe5npVEGnBXPzeRCNNRrmWtXTDiJ88ey+fTQkOtB3lcYBvue6kmMQ4aBJt+36ZyanpCTqW7MmpnJNc5EgRIBPME5l+LH0xqsAgYEiMWH66keclCIIam//SlPGhZigOzVcLRjPnRSL1G9ypYipsukjrlHnZRQYQ/1l+njnCxKkrKsdUYHsv5BhLzFBAtlZmmEeKFj0Mll2z0B+ekC3QSnu183K1BOP4rN5ytSUDSVUl3jTyPDYKaLA4SqRMwyq0H8nLLp+gGD4ox9qVaOSYG+zjm7njrpFQUJ+1SV0oMszjTQ8aQY/5N8fzYDLlAVQFoyilNy7kI2Wqb+lNg2s7D9sWSAdYnbu5Nl0Lo/9IDx8VOdA0hzsrzyuCbBM8yrFPJ548FJ5PEePHVGyIDEOssj1SnSiX7r2XDD/MqVq0+WU7QiW518PVzmZGrFAUh5cSzHbuepYnJUzfVe8vUXBJ0XGSUDJPQo2vZM+iz3MTpUq9oasCSV9WKB51W2UnR4SP+LPDnkaUDV1hS4xVK5iJaKlRJNiHSbJDYpy53lq/KmczRL4rQkS2MVqBGwD3NZZLSejKXO8HJsWS6lfDLy8oBVIgjXlM4zrUqIalKrbIJnWX7gxPZPoMZAU+56EbNGQMA5VPDU9ApfLcGKKov0G0MhorJE/bCv+DhndWCyI7k7jtgtazSSe8pCs9TCNmXeXxnj9WTbvB0ue9Nd0eJTUzdGVYzG7kHcuM5Xl/naqlhZE8u2preKWGqL+gYmvy7HDm4F8EzYDNtKWM5Exps5DwBXl7Mqq9kQ7mXC+3ugpiQPEueMNhYXt3YjM9kucrbbT1q1vUaJlpLcXUBRpSOyfb/Yss49aSU3Nhj43W0xAoqiwLaKx2l0uhuryEPut4BaROoDlOFSDDjXRmkjQrB8BEeRpRyMrBsDwoL8lZzd2K6QykvH+eSp0XwamLEbvLa1LkVft6S40qV1LFXOis34riXFSJmcOE6T7ZOXtrN2GrO2b9K1z4L5Fb4oE+VLSLHVl5YeJzWNaQKVjtwu8zyRiRpCAyQw+oFkpUUWDFbBlnWNHkqmL2VhxHShTTlPC922JexLPaXgzXpFJv5eCp14MTrbvUH+WI9gica0DOFbhQxEEMO4o21dAx87XIWKzBgCAbwYEcVYWqlY8z5XGhNt2uQVRdOkVn0qTGJPbuR/p8XLm2LTW/7KJ0A1gxMNAFRuno+Lh4l34i2hZ6DH/kAyplaVVm30WOpw60ZGug0V5yDJJfjtiFcQQosvxpncSRafyoaFXT5o1l01obLuYI3uMcZsQeGYfBIM4GhoUsbpJuoQs853zYBh6HTjaJ9TxoIB6aZQU7oCGxYrDRkpjM2O0UYx7CKjpM9JJTWgm6Q2wSgZLine truncated
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
|
||||
}
|
||||
|
||||
/* Font Awesome
|
||||
base64 encode done on opensans_semibold_latin_v13.woff2 */
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
font-style: normal;
|
||||
src: url('data:font/woff2;base64,d09GRgABAAAAAP+sAA4AAAABtiAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABRAAAABwAAAAcZ7MpnUdERUYAAAFgAAAAHwAAACACLQAET1MvMgAAAYAAAAA+AAAAYIsCekxjbWFwAAABwAAAAUcAAAKy1JOsXGdhc3AAAAMIAAAACAAAAAj//wADZ2x5ZgAAAxAAAOg2AAGNvE1SIIpoZWFkAADrSAAAADEAAAA2CGYR2mhoZWEAAOt8AAAAHwAAACQPAgnbaG10eAAA65wAAAJHAAAH/BwkFHpsb2NhAADt5AAAA/QAAAQCAX+d+m1heHAAAPHYAAAAHwAAACACVgIcbmFtZQAA8fgAAAF1AAADOEwidUBwb3N0AADzcAAADDIAABRicQ3ecXdlYmYAAP+kAAAABgAAAAazrlP8AAAAAQAAAADMPaLPAAAAAMtTIqAAAAAA0CJkLXjaY2BkYGDgA2IJBhBgYmBkYGT8DyRZwDwGAA9LATMAeNpjYGaTZpzAwMrAwtLDYszAwNAGoZmKGaLAfJygoLKomMGBQeErAxvDfyCfjYFRGUgxIilRYGAEALqzCE0AAHjazZHLSkJxEMbneKss/E93LbGj0LaiBxChvbho0yI7i9biE4hPID6BuCwIkWgRLcJVS3EZgRdo0U7ms7SL5r9jglDQJgj6hplh4GN+MENEThpnkAy7knFmT8bn7DLydrcoRm4y7SjSKZXogm7o1vSa2+ZROBIJRazNgfgkJFGJS1JSkpGcFKQk51KVhrRlCB9C2EIUcSSRQgY5FFDCNapooI1hx9clrW3SiHAyIdAXAglLWGKSEEvSkpW8FKUsFalJSwQEhokdxJCAhTSyyKOIMiqooQXp0Iig7/WxPtQHel/v6d3WbPOhedno1fv1q7sNDvI6B9jPq7zCy7zEi7zA8+xiJzvYYFJaDdW7Gqi+elOv6kU9q57qqif1qDoKSub0+Hp/K8NDE4zhsIvju2H8yv+gKY9/2r024w386HD9au8Hys+a/wAAAAAB//8AAnjavL0JfFTV2TB+zzl3mX3mzp0tk8lkJrMmgSTMGrIOYScB2QQExIiiCC6oIIgLo1AVxA0UqVYNWlH6tn3tYr9WxXe62a+L1LbUbn79YlvbvlVb37Y/WyFz+T/n3JnJJCSiff/vB5l7z74+55znec7zPJfD3BaOIzYRHpzEcdmgHCRyUB5GBTW3BQ9tEQKntojcKY7+Q1zVv2nUf+EZTnxKyHN14HFISA4mXA4xFGyIpjLJoIyi6VQPSgYTfiQ+1Vy8C+W80ah3JE+fKFe8qzkcdwt5dzwszAlBdJGLpqLwRzi8oznkrtXpalmdUAcHdTSDR3ZYcEMLTvXgZMItC2O9qUwWZZIJl8jN2nj56ss3zoLX1CtWFsd6o36SM9ni7ULg9FBiUbPT2bzoUnjFcM27xc7qAPKd+qQBcXw7h1kb8tAGiQtC121cgP4QdLUhhuARjmKbPRMO8C67E4bBxefVD9R71Q+QhK4j0kAqE1aPfemN+9TTx6+55jgSkB8Jx6+5Ga2MYEiAJC2xmk8NRNGKm0dTXHNcPX3fG19Sj0Xo7HBn8hIncJyX6+YWclxEFiVesuBmGAEUi0aiMdnhgrHOyF24hcAciE6H2+X285040UOymWwPysra5KRlOj0wUPlARP3748ncVW0ItV2VSz6u/j0SUMxCwawgQTTpTuXMysGvvyZ2NGRbHAg5WrINHeJrX89cmF/XdyrXt25dn1DoWxcgXNh/Yk9z27Rpbc17TvjDRc6sKHwc2/WyziAo5me3Hn5amOaN2O0R7zTh6cPNDwyeLtDcPC1Dm2Patzzn4zgehrSFT0MLE37s7iEwoXRMySMpe/F+Q2igq1Ud7rntmsXh8OJrbusZVt8qPpC349W68EWX3jvzjX82z8+Fw7n5zf984/+8VXxWK/tzMHfDXIMGowoUR+ctIsATADSrUDDNRpRMwq0IMCZe9aEVyOlQnGqv2gsT6sQr1Adr2tH7bypdypvo/XZyo8urPq6aJLOzzvTOO6Y6p2hBf0fra50R/Xz0ncZGdfp8PV0iuFK3nkKvHkWMMLUkIpTbMXkz+GtRQl19/Li6GiXmo53oRvQd1q7GyZuFHaixB92q3t6j/kxd853vEEO5mYkPaSVtI0A2jH09FwOoKkFIqkeg45+gK8svcDYxELVlAkL+wI0jh248IDkDmTkbuvV9yz5xxyeW9em7N8zJBJySWnhT/cabb6Ke3TvuvntHesO2Sy+aGW9ON8NffOZFl27bQP6gxb/JcUa6piRarxVqbuV6ufO4i7hruF3cfdwT3L9znJBORZtRg1iHHK5OBGB9Dj+SU1EG9aVlgMbHf8z056pv/GJC+aiX7WyTPHgu6i1y1EPgOcKNxghVOdV8dapzlQnL8AO2kERYSLlKFHpkImfRi1nBKn3yo+GnR52kOon6yDkKfOEUq1tgi5inAC9WzyfdrceMUA0aN2LniCfcQErlUgMDKcyeo26SnywGc3QbHUgh+sQ/qPKM/GCyGI4tVrb/nA2LHHJqrepGWqvkcX70P+wfXx/m2uNqId7eHkc5+hx143y1r5ifPO6jp6x2owBz0gf6ecVZHHWSCUPPmaCqMAChCefi//dZ+OijKkDMCAsjEHaamzyu2v0vjtWYoYCz60bOIt7Jf5FzgQ/ODElsaEUomupFcEro4VGPxDt9xSl3+Rb77lIP+XzUgaL4fuonf13Monx3oU3U7/Opv8APgBfKvfrMnwU7f4ALcVzYYUViQ0yPaNnRVFY/tnyXQ9Ijwc5KVn+p/lIrCUXBVaoNRUul/xJCPzTWVylFw2e0/SIEZ+MsbYabtQedlpA2N52wLcMj4apDcBChEubFTYZ58ZxiHlbMgLYMAwoy6hyDj/WnJ8PH8PBZOanz91VI2vOb+idB0qr7ZOXcXNtZUPvR2l8s0Fpx7uO1mrX3I7e0dO6LdLk1cmmKGWGRD0Br0il7NuNyu0TJAq1nGAAcfLEWBPij22Wne7a2Q1M8e+cJ9Xfq/1Z/d2LnkQPNV9QHrE3rNy/Zd/y14/uWbF7fZA3Ub2o6cKSYH9g4AH84/ymacucJ5PvUV1DfVQFLc9MVgQWv37gRkkOujTe+viBwRVOzJXCV+jJeUGQbNGYbNPwTKjji6L7ARSrgogFJRNb8tH0T+dG5/JzdUrDY2QPlP557sOywX6cyJ8rB869F5sbUja4boS8LoUHor6eYR6Ce0flgNMbV4E9FG0SHK0EhCNanBDPigBkJwRoVJfhPWw3LNSZRQIrGKOoI+D0EtSA6GLCAs+XQJKziDOD/rIewoN1ZQK2BMqBotQVJEOQHuDt08tChk/iQzfQ1xRGaZ9DX3u8yWfZNabWZpbpfW5zIN63xHoPVYrw1Jums8+y1lv9lttmML1hq4jMNeu8DLrN5bOJ79Vaz6bYwS+y1QmLsojUcQlf92uTCvkwkscrkNUTu1V/ptt6V8Mnmr9qcm/XG6zIGs8noXFOTmFaLnWaWtqVl+hKTyWAO32fYXJ3YsD2ps2iJ23zYyc6OEi6rwUgnN5O7XMNDqmdZOIdfAfrX4ad0aw9CQRjdoCgJDNIqCEuovKazjL6FMWRniN3C5hQeaBJ3fiRvsRKSI1ZLcRAV2iSD+k2DRK6xWwbX9Y0APjXIQCc9x7qInjCLrHNQ2mIngSowskziLvrJl0cGAOblCL9gmx5j/UMQPDKw7MZty8hXWe3PRFKpyDN2bf17YcAuEwinsPXPugYdL+FfaT1yZQHQQuxkiFFYo9Q1gFJpP3bKbthUAD9V82cA5wJcFffiXvR/e3RmYtYVB4oDJpNZ16PDBvzDwKrA39nS+JUB44AaoIgtRXTRMOIR+qUaxTMW6LGEZxT/Q4ewfoGhVodXer0/+Cbtm7rxK5QPoO2tdIoVaDmcWwC1znEIpFuSg9EYnDlaL4Ky8JIv3h4/xc5Uko8P+vagHQaT+h0TukQdBMSH4/f4BuOn8zRehLM77pul3lVnQtNNp+w8nO1oiDE+SGVtOmDvnjKK2Wr7TglsOFsLCliQzY8CGc6GYTeFrR12dgKbhLYjDGvgMHTglPrzUwcOnELxU+i6E+oT6jr1iRMn0MXoSXQxGVYrcENhoahCqgOlHPii6qQnTrB5TAC+tAi2RxmgnUNp0oIomSIRp6jROY4QUDcxCKbUjkREoHYaYGNAFHIb6ObCktGdI0THELn4lR7kML9gdiAPspv+brLj91uKObMdOSBYfQ/CHchuLuZavOiILuxAyyDECiFHIYkVkqBljrAOHfFiH4/YyaQWeJPNBvSmYkaUNWA+A8/5mR7eofgUs7ZvmsF5+p2eMh0hUiTQykW4bsBQSnth+a2MmXa3K9FLVx9ySRSPQdEsZT1pAOGUgwlB4yqhKHsdBXBgSBr60Z0dn+q4C70Wb1dflOvVnD1jV3P1styEgDRDlPjimo6mtFz0DwVG8b672uEPy411ak5RUKGuMYYKjG7KVcGKhwszHMBRaVcFVJxyEraLErD0IFuUr4IXftCgft3oMaoFq07nKrCFA38/qMDMgQNnQQ0eNJnUr+v1KGdTHAxuLOqQHSeqIO34WaAzQVu1PU7bDDW2BMUE0eRtXVfVQgPqhWajnPXHH9rUBx3qENvkBu0Wkwn16vVqwYY++JCmYgYTFAUws5UfbEExEiRweAXdwcgoNGQVbTd2Ky5yBnUhgk4Wu07CC3VdhHJ4MOo9BRtVzZ8NaS/JedOGP9fgHDEQ9J5qwyZceFL1M87kb3q6cbymoaGm+PPuqjGycrWUQ0LxcHbo0gozMDaTLHt+KFActso2WyAQrMeBD130+OkFdrWg1ykRnI8odkUtfP/DVj2qtClZ2Yti0V4UDTVYMOBsyQQ97xP0YJdEvoJkJhM8nP2A2nEUUptkuX7fg98tI1/bT86XbBbjXj3SLine truncated
|
||||
}
|
||||
|
||||
|
||||
/* Override table width restrictions */
|
||||
@media screen and (min-width: 767px) {
|
||||
|
||||
.wy-table-responsive table td {
|
||||
/* !important prevents the common CSS stylesheets from
|
||||
overriding this as on RTD they are loaded after this stylesheet */
|
||||
white-space: normal !important;
|
||||
}
|
||||
|
||||
.wy-table-responsive {
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
.wy-nav-content {
|
||||
max-width: 1024px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide the TI header on small screens */
|
||||
@media screen and (max-width: 768px) {
|
||||
#tiHeader {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Override colors */
|
||||
|
||||
.wy-nav-top {
|
||||
background-color: #CC0000; /* TI red */
|
||||
}
|
||||
|
||||
.wy-nav-side {
|
||||
background-color: #f9f9f9 !important; /* TI website Nav background*/
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.wy-side-nav-search {
|
||||
background-color: #555; /* TI dark gray */
|
||||
}
|
||||
|
||||
.wy-side-nav-search input[type=text] {
|
||||
border-color : rgba(255,255,255,0.8); /* Lighter gray outline */
|
||||
}
|
||||
|
||||
|
||||
/* Links in general. */
|
||||
a {
|
||||
color: #189; /* TI website inline link color */
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
a .rst-content code {
|
||||
color: #189;
|
||||
}
|
||||
|
||||
/* SIDEBAR
|
||||
=============================================================================*/
|
||||
|
||||
.wy-menu-vertical a {
|
||||
color: #555;
|
||||
background-color: #f9f9f9 !important; /* TI website Nav background*/
|
||||
border-top: none !important;
|
||||
border-right: none !important;
|
||||
border-bottom: solid 1px #c9c9c9 !important;
|
||||
}
|
||||
|
||||
.wy-menu-vertical li.on a, .wy-menu-vertical li.current > a {
|
||||
color: #555; /* TI website current nav link */
|
||||
}
|
||||
|
||||
.wy-nav-side li.current {
|
||||
background-color: #f9f9f9 !important; /* TI website Nav background*/
|
||||
}
|
||||
|
||||
.wy-side-nav-search>div.version {
|
||||
color: rgba(255,255,255,0.8);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* FONTS AND SIZES
|
||||
=============================================================================*/
|
||||
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-size: 16px;
|
||||
color: #555;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* HEADER AND FOOTER
|
||||
=============================================================================*/
|
||||
|
||||
#tiHeader {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
div.top {
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
#tiHeader ul {
|
||||
list-style-type: none;
|
||||
padding-left: 30px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#tiHeader .nav {
|
||||
background: #c00;
|
||||
height: 41.375px;
|
||||
}
|
||||
|
||||
#tiHeader #top_logo {
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 1em;
|
||||
max-width: 1200px;
|
||||
overflow: auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#tiFooter {
|
||||
clear: both;
|
||||
color: #b0b0b0;
|
||||
font-size: .9em;
|
||||
padding: 1em 2em;
|
||||
padding: 1em 2rem;
|
||||
border-top: 1px solid #e0e0e0;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
#tiFooter p {
|
||||
max-width: 60em;
|
||||
}
|
||||
|
||||
#tiFooter a {
|
||||
color: #b0b0b0;
|
||||
}
|
||||
|
||||
#tiFooter a:hover {
|
||||
color: #c00;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,999 @@
|
||||
// Underscore.js 1.3.1
|
||||
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Underscore is freely distributable under the MIT license.
|
||||
// Portions of Underscore are inspired or borrowed from Prototype,
|
||||
// Oliver Steele's Functional, and John Resig's Micro-Templating.
|
||||
// For all details and documentation:
|
||||
// http://documentcloud.github.com/underscore
|
||||
|
||||
(function() {
|
||||
|
||||
// Baseline setup
|
||||
// --------------
|
||||
|
||||
// Establish the root object, `window` in the browser, or `global` on the server.
|
||||
var root = this;
|
||||
|
||||
// Save the previous value of the `_` variable.
|
||||
var previousUnderscore = root._;
|
||||
|
||||
// Establish the object that gets returned to break out of a loop iteration.
|
||||
var breaker = {};
|
||||
|
||||
// Save bytes in the minified (but not gzipped) version:
|
||||
var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
|
||||
|
||||
// Create quick reference variables for speed access to core prototypes.
|
||||
var slice = ArrayProto.slice,
|
||||
unshift = ArrayProto.unshift,
|
||||
toString = ObjProto.toString,
|
||||
hasOwnProperty = ObjProto.hasOwnProperty;
|
||||
|
||||
// All **ECMAScript 5** native function implementations that we hope to use
|
||||
// are declared here.
|
||||
var
|
||||
nativeForEach = ArrayProto.forEach,
|
||||
nativeMap = ArrayProto.map,
|
||||
nativeReduce = ArrayProto.reduce,
|
||||
nativeReduceRight = ArrayProto.reduceRight,
|
||||
nativeFilter = ArrayProto.filter,
|
||||
nativeEvery = ArrayProto.every,
|
||||
nativeSome = ArrayProto.some,
|
||||
nativeIndexOf = ArrayProto.indexOf,
|
||||
nativeLastIndexOf = ArrayProto.lastIndexOf,
|
||||
nativeIsArray = Array.isArray,
|
||||
nativeKeys = Object.keys,
|
||||
nativeBind = FuncProto.bind;
|
||||
|
||||
// Create a safe reference to the Underscore object for use below.
|
||||
var _ = function(obj) { return new wrapper(obj); };
|
||||
|
||||
// Export the Underscore object for **Node.js**, with
|
||||
// backwards-compatibility for the old `require()` API. If we're in
|
||||
// the browser, add `_` as a global object via a string identifier,
|
||||
// for Closure Compiler "advanced" mode.
|
||||
if (typeof exports !== 'undefined') {
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
exports = module.exports = _;
|
||||
}
|
||||
exports._ = _;
|
||||
} else {
|
||||
root['_'] = _;
|
||||
}
|
||||
|
||||
// Current version.
|
||||
_.VERSION = '1.3.1';
|
||||
|
||||
// Collection Functions
|
||||
// --------------------
|
||||
|
||||
// The cornerstone, an `each` implementation, aka `forEach`.
|
||||
// Handles objects with the built-in `forEach`, arrays, and raw objects.
|
||||
// Delegates to **ECMAScript 5**'s native `forEach` if available.
|
||||
var each = _.each = _.forEach = function(obj, iterator, context) {
|
||||
if (obj == null) return;
|
||||
if (nativeForEach && obj.forEach === nativeForEach) {
|
||||
obj.forEach(iterator, context);
|
||||
} else if (obj.length === +obj.length) {
|
||||
for (var i = 0, l = obj.length; i < l; i++) {
|
||||
if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;
|
||||
}
|
||||
} else {
|
||||
for (var key in obj) {
|
||||
if (_.has(obj, key)) {
|
||||
if (iterator.call(context, obj[key], key, obj) === breaker) return;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Return the results of applying the iterator to each element.
|
||||
// Delegates to **ECMAScript 5**'s native `map` if available.
|
||||
_.map = _.collect = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
if (obj == null) return results;
|
||||
if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
results[results.length] = iterator.call(context, value, index, list);
|
||||
});
|
||||
if (obj.length === +obj.length) results.length = obj.length;
|
||||
return results;
|
||||
};
|
||||
|
||||
// **Reduce** builds up a single result from a list of values, aka `inject`,
|
||||
// or `foldl`. Delegates to **ECMAScript 5**'s native `reduce` if available.
|
||||
_.reduce = _.foldl = _.inject = function(obj, iterator, memo, context) {
|
||||
var initial = arguments.length > 2;
|
||||
if (obj == null) obj = [];
|
||||
if (nativeReduce && obj.reduce === nativeReduce) {
|
||||
if (context) iterator = _.bind(iterator, context);
|
||||
return initial ? obj.reduce(iterator, memo) : obj.reduce(iterator);
|
||||
}
|
||||
each(obj, function(value, index, list) {
|
||||
if (!initial) {
|
||||
memo = value;
|
||||
initial = true;
|
||||
} else {
|
||||
memo = iterator.call(context, memo, value, index, list);
|
||||
}
|
||||
});
|
||||
if (!initial) throw new TypeError('Reduce of empty array with no initial value');
|
||||
return memo;
|
||||
};
|
||||
|
||||
// The right-associative version of reduce, also known as `foldr`.
|
||||
// Delegates to **ECMAScript 5**'s native `reduceRight` if available.
|
||||
_.reduceRight = _.foldr = function(obj, iterator, memo, context) {
|
||||
var initial = arguments.length > 2;
|
||||
if (obj == null) obj = [];
|
||||
if (nativeReduceRight && obj.reduceRight === nativeReduceRight) {
|
||||
if (context) iterator = _.bind(iterator, context);
|
||||
return initial ? obj.reduceRight(iterator, memo) : obj.reduceRight(iterator);
|
||||
}
|
||||
var reversed = _.toArray(obj).reverse();
|
||||
if (context && !initial) iterator = _.bind(iterator, context);
|
||||
return initial ? _.reduce(reversed, iterator, memo, context) : _.reduce(reversed, iterator);
|
||||
};
|
||||
|
||||
// Return the first value which passes a truth test. Aliased as `detect`.
|
||||
_.find = _.detect = function(obj, iterator, context) {
|
||||
var result;
|
||||
any(obj, function(value, index, list) {
|
||||
if (iterator.call(context, value, index, list)) {
|
||||
result = value;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
// Return all the elements that pass a truth test.
|
||||
// Delegates to **ECMAScript 5**'s native `filter` if available.
|
||||
// Aliased as `select`.
|
||||
_.filter = _.select = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
if (obj == null) return results;
|
||||
if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
if (iterator.call(context, value, index, list)) results[results.length] = value;
|
||||
});
|
||||
return results;
|
||||
};
|
||||
|
||||
// Return all the elements for which a truth test fails.
|
||||
_.reject = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
if (obj == null) return results;
|
||||
each(obj, function(value, index, list) {
|
||||
if (!iterator.call(context, value, index, list)) results[results.length] = value;
|
||||
});
|
||||
return results;
|
||||
};
|
||||
|
||||
// Determine whether all of the elements match a truth test.
|
||||
// Delegates to **ECMAScript 5**'s native `every` if available.
|
||||
// Aliased as `all`.
|
||||
_.every = _.all = function(obj, iterator, context) {
|
||||
var result = true;
|
||||
if (obj == null) return result;
|
||||
if (nativeEvery && obj.every === nativeEvery) return obj.every(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
if (!(result = result && iterator.call(context, value, index, list))) return breaker;
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
// Determine if at least one element in the object matches a truth test.
|
||||
// Delegates to **ECMAScript 5**'s native `some` if available.
|
||||
// Aliased as `any`.
|
||||
var any = _.some = _.any = function(obj, iterator, context) {
|
||||
iterator || (iterator = _.identity);
|
||||
var result = false;
|
||||
if (obj == null) return result;
|
||||
if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context);
|
||||
each(obj, function(value, index, list) {
|
||||
if (result || (result = iterator.call(context, value, index, list))) return breaker;
|
||||
});
|
||||
return !!result;
|
||||
};
|
||||
|
||||
// Determine if a given value is included in the array or object using `===`.
|
||||
// Aliased as `contains`.
|
||||
_.include = _.contains = function(obj, target) {
|
||||
var found = false;
|
||||
if (obj == null) return found;
|
||||
if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) != -1;
|
||||
found = any(obj, function(value) {
|
||||
return value === target;
|
||||
});
|
||||
return found;
|
||||
};
|
||||
|
||||
// Invoke a method (with arguments) on every item in a collection.
|
||||
_.invoke = function(obj, method) {
|
||||
var args = slice.call(arguments, 2);
|
||||
return _.map(obj, function(value) {
|
||||
return (_.isFunction(method) ? method || value : value[method]).apply(value, args);
|
||||
});
|
||||
};
|
||||
|
||||
// Convenience version of a common use case of `map`: fetching a property.
|
||||
_.pluck = function(obj, key) {
|
||||
return _.map(obj, function(value){ return value[key]; });
|
||||
};
|
||||
|
||||
// Return the maximum element or (element-based computation).
|
||||
_.max = function(obj, iterator, context) {
|
||||
if (!iterator && _.isArray(obj)) return Math.max.apply(Math, obj);
|
||||
if (!iterator && _.isEmpty(obj)) return -Infinity;
|
||||
var result = {computed : -Infinity};
|
||||
each(obj, function(value, index, list) {
|
||||
var computed = iterator ? iterator.call(context, value, index, list) : value;
|
||||
computed >= result.computed && (result = {value : value, computed : computed});
|
||||
});
|
||||
return result.value;
|
||||
};
|
||||
|
||||
// Return the minimum element (or element-based computation).
|
||||
_.min = function(obj, iterator, context) {
|
||||
if (!iterator && _.isArray(obj)) return Math.min.apply(Math, obj);
|
||||
if (!iterator && _.isEmpty(obj)) return Infinity;
|
||||
var result = {computed : Infinity};
|
||||
each(obj, function(value, index, list) {
|
||||
var computed = iterator ? iterator.call(context, value, index, list) : value;
|
||||
computed < result.computed && (result = {value : value, computed : computed});
|
||||
});
|
||||
return result.value;
|
||||
};
|
||||
|
||||
// Shuffle an array.
|
||||
_.shuffle = function(obj) {
|
||||
var shuffled = [], rand;
|
||||
each(obj, function(value, index, list) {
|
||||
if (index == 0) {
|
||||
shuffled[0] = value;
|
||||
} else {
|
||||
rand = Math.floor(Math.random() * (index + 1));
|
||||
shuffled[index] = shuffled[rand];
|
||||
shuffled[rand] = value;
|
||||
}
|
||||
});
|
||||
return shuffled;
|
||||
};
|
||||
|
||||
// Sort the object's values by a criterion produced by an iterator.
|
||||
_.sortBy = function(obj, iterator, context) {
|
||||
return _.pluck(_.map(obj, function(value, index, list) {
|
||||
return {
|
||||
value : value,
|
||||
criteria : iterator.call(context, value, index, list)
|
||||
};
|
||||
}).sort(function(left, right) {
|
||||
var a = left.criteria, b = right.criteria;
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
}), 'value');
|
||||
};
|
||||
|
||||
// Groups the object's values by a criterion. Pass either a string attribute
|
||||
// to group by, or a function that returns the criterion.
|
||||
_.groupBy = function(obj, val) {
|
||||
var result = {};
|
||||
var iterator = _.isFunction(val) ? val : function(obj) { return obj[val]; };
|
||||
each(obj, function(value, index) {
|
||||
var key = iterator(value, index);
|
||||
(result[key] || (result[key] = [])).push(value);
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
// Use a comparator function to figure out at what index an object should
|
||||
// be inserted so as to maintain order. Uses binary search.
|
||||
_.sortedIndex = function(array, obj, iterator) {
|
||||
iterator || (iterator = _.identity);
|
||||
var low = 0, high = array.length;
|
||||
while (low < high) {
|
||||
var mid = (low + high) >> 1;
|
||||
iterator(array[mid]) < iterator(obj) ? low = mid + 1 : high = mid;
|
||||
}
|
||||
return low;
|
||||
};
|
||||
|
||||
// Safely convert anything iterable into a real, live array.
|
||||
_.toArray = function(iterable) {
|
||||
if (!iterable) return [];
|
||||
if (iterable.toArray) return iterable.toArray();
|
||||
if (_.isArray(iterable)) return slice.call(iterable);
|
||||
if (_.isArguments(iterable)) return slice.call(iterable);
|
||||
return _.values(iterable);
|
||||
};
|
||||
|
||||
// Return the number of elements in an object.
|
||||
_.size = function(obj) {
|
||||
return _.toArray(obj).length;
|
||||
};
|
||||
|
||||
// Array Functions
|
||||
// ---------------
|
||||
|
||||
// Get the first element of an array. Passing **n** will return the first N
|
||||
// values in the array. Aliased as `head`. The **guard** check allows it to work
|
||||
// with `_.map`.
|
||||
_.first = _.head = function(array, n, guard) {
|
||||
return (n != null) && !guard ? slice.call(array, 0, n) : array[0];
|
||||
};
|
||||
|
||||
// Returns everything but the last entry of the array. Especcialy useful on
|
||||
// the arguments object. Passing **n** will return all the values in
|
||||
// the array, excluding the last N. The **guard** check allows it to work with
|
||||
// `_.map`.
|
||||
_.initial = function(array, n, guard) {
|
||||
return slice.call(array, 0, array.length - ((n == null) || guard ? 1 : n));
|
||||
};
|
||||
|
||||
// Get the last element of an array. Passing **n** will return the last N
|
||||
// values in the array. The **guard** check allows it to work with `_.map`.
|
||||
_.last = function(array, n, guard) {
|
||||
if ((n != null) && !guard) {
|
||||
return slice.call(array, Math.max(array.length - n, 0));
|
||||
} else {
|
||||
return array[array.length - 1];
|
||||
}
|
||||
};
|
||||
|
||||
// Returns everything but the first entry of the array. Aliased as `tail`.
|
||||
// Especially useful on the arguments object. Passing an **index** will return
|
||||
// the rest of the values in the array from that index onward. The **guard**
|
||||
// check allows it to work with `_.map`.
|
||||
_.rest = _.tail = function(array, index, guard) {
|
||||
return slice.call(array, (index == null) || guard ? 1 : index);
|
||||
};
|
||||
|
||||
// Trim out all falsy values from an array.
|
||||
_.compact = function(array) {
|
||||
return _.filter(array, function(value){ return !!value; });
|
||||
};
|
||||
|
||||
// Return a completely flattened version of an array.
|
||||
_.flatten = function(array, shallow) {
|
||||
return _.reduce(array, function(memo, value) {
|
||||
if (_.isArray(value)) return memo.concat(shallow ? value : _.flatten(value));
|
||||
memo[memo.length] = value;
|
||||
return memo;
|
||||
}, []);
|
||||
};
|
||||
|
||||
// Return a version of the array that does not contain the specified value(s).
|
||||
_.without = function(array) {
|
||||
return _.difference(array, slice.call(arguments, 1));
|
||||
};
|
||||
|
||||
// Produce a duplicate-free version of the array. If the array has already
|
||||
// been sorted, you have the option of using a faster algorithm.
|
||||
// Aliased as `unique`.
|
||||
_.uniq = _.unique = function(array, isSorted, iterator) {
|
||||
var initial = iterator ? _.map(array, iterator) : array;
|
||||
var result = [];
|
||||
_.reduce(initial, function(memo, el, i) {
|
||||
if (0 == i || (isSorted === true ? _.last(memo) != el : !_.include(memo, el))) {
|
||||
memo[memo.length] = el;
|
||||
result[result.length] = array[i];
|
||||
}
|
||||
return memo;
|
||||
}, []);
|
||||
return result;
|
||||
};
|
||||
|
||||
// Produce an array that contains the union: each distinct element from all of
|
||||
// the passed-in arrays.
|
||||
_.union = function() {
|
||||
return _.uniq(_.flatten(arguments, true));
|
||||
};
|
||||
|
||||
// Produce an array that contains every item shared between all the
|
||||
// passed-in arrays. (Aliased as "intersect" for back-compat.)
|
||||
_.intersection = _.intersect = function(array) {
|
||||
var rest = slice.call(arguments, 1);
|
||||
return _.filter(_.uniq(array), function(item) {
|
||||
return _.every(rest, function(other) {
|
||||
return _.indexOf(other, item) >= 0;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Take the difference between one array and a number of other arrays.
|
||||
// Only the elements present in just the first array will remain.
|
||||
_.difference = function(array) {
|
||||
var rest = _.flatten(slice.call(arguments, 1));
|
||||
return _.filter(array, function(value){ return !_.include(rest, value); });
|
||||
};
|
||||
|
||||
// Zip together multiple lists into a single array -- elements that share
|
||||
// an index go together.
|
||||
_.zip = function() {
|
||||
var args = slice.call(arguments);
|
||||
var length = _.max(_.pluck(args, 'length'));
|
||||
var results = new Array(length);
|
||||
for (var i = 0; i < length; i++) results[i] = _.pluck(args, "" + i);
|
||||
return results;
|
||||
};
|
||||
|
||||
// If the browser doesn't supply us with indexOf (I'm looking at you, **MSIE**),
|
||||
// we need this function. Return the position of the first occurrence of an
|
||||
// item in an array, or -1 if the item is not included in the array.
|
||||
// Delegates to **ECMAScript 5**'s native `indexOf` if available.
|
||||
// If the array is large and already in sort order, pass `true`
|
||||
// for **isSorted** to use binary search.
|
||||
_.indexOf = function(array, item, isSorted) {
|
||||
if (array == null) return -1;
|
||||
var i, l;
|
||||
if (isSorted) {
|
||||
i = _.sortedIndex(array, item);
|
||||
return array[i] === item ? i : -1;
|
||||
}
|
||||
if (nativeIndexOf && array.indexOf === nativeIndexOf) return array.indexOf(item);
|
||||
for (i = 0, l = array.length; i < l; i++) if (i in array && array[i] === item) return i;
|
||||
return -1;
|
||||
};
|
||||
|
||||
// Delegates to **ECMAScript 5**'s native `lastIndexOf` if available.
|
||||
_.lastIndexOf = function(array, item) {
|
||||
if (array == null) return -1;
|
||||
if (nativeLastIndexOf && array.lastIndexOf === nativeLastIndexOf) return array.lastIndexOf(item);
|
||||
var i = array.length;
|
||||
while (i--) if (i in array && array[i] === item) return i;
|
||||
return -1;
|
||||
};
|
||||
|
||||
// Generate an integer Array containing an arithmetic progression. A port of
|
||||
// the native Python `range()` function. See
|
||||
// [the Python documentation](http://docs.python.org/library/functions.html#range).
|
||||
_.range = function(start, stop, step) {
|
||||
if (arguments.length <= 1) {
|
||||
stop = start || 0;
|
||||
start = 0;
|
||||
}
|
||||
step = arguments[2] || 1;
|
||||
|
||||
var len = Math.max(Math.ceil((stop - start) / step), 0);
|
||||
var idx = 0;
|
||||
var range = new Array(len);
|
||||
|
||||
while(idx < len) {
|
||||
range[idx++] = start;
|
||||
start += step;
|
||||
}
|
||||
|
||||
return range;
|
||||
};
|
||||
|
||||
// Function (ahem) Functions
|
||||
// ------------------
|
||||
|
||||
// Reusable constructor function for prototype setting.
|
||||
var ctor = function(){};
|
||||
|
||||
// Create a function bound to a given object (assigning `this`, and arguments,
|
||||
// optionally). Binding with arguments is also known as `curry`.
|
||||
// Delegates to **ECMAScript 5**'s native `Function.bind` if available.
|
||||
// We check for `func.bind` first, to fail fast when `func` is undefined.
|
||||
_.bind = function bind(func, context) {
|
||||
var bound, args;
|
||||
if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
|
||||
if (!_.isFunction(func)) throw new TypeError;
|
||||
args = slice.call(arguments, 2);
|
||||
return bound = function() {
|
||||
if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
|
||||
ctor.prototype = func.prototype;
|
||||
var self = new ctor;
|
||||
var result = func.apply(self, args.concat(slice.call(arguments)));
|
||||
if (Object(result) === result) return result;
|
||||
return self;
|
||||
};
|
||||
};
|
||||
|
||||
// Bind all of an object's methods to that object. Useful for ensuring that
|
||||
// all callbacks defined on an object belong to it.
|
||||
_.bindAll = function(obj) {
|
||||
var funcs = slice.call(arguments, 1);
|
||||
if (funcs.length == 0) funcs = _.functions(obj);
|
||||
each(funcs, function(f) { obj[f] = _.bind(obj[f], obj); });
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Memoize an expensive function by storing its results.
|
||||
_.memoize = function(func, hasher) {
|
||||
var memo = {};
|
||||
hasher || (hasher = _.identity);
|
||||
return function() {
|
||||
var key = hasher.apply(this, arguments);
|
||||
return _.has(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments));
|
||||
};
|
||||
};
|
||||
|
||||
// Delays a function for the given number of milliseconds, and then calls
|
||||
// it with the arguments supplied.
|
||||
_.delay = function(func, wait) {
|
||||
var args = slice.call(arguments, 2);
|
||||
return setTimeout(function(){ return func.apply(func, args); }, wait);
|
||||
};
|
||||
|
||||
// Defers a function, scheduling it to run after the current call stack has
|
||||
// cleared.
|
||||
_.defer = function(func) {
|
||||
return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
|
||||
};
|
||||
|
||||
// Returns a function, that, when invoked, will only be triggered at most once
|
||||
// during a given window of time.
|
||||
_.throttle = function(func, wait) {
|
||||
var context, args, timeout, throttling, more;
|
||||
var whenDone = _.debounce(function(){ more = throttling = false; }, wait);
|
||||
return function() {
|
||||
context = this; args = arguments;
|
||||
var later = function() {
|
||||
timeout = null;
|
||||
if (more) func.apply(context, args);
|
||||
whenDone();
|
||||
};
|
||||
if (!timeout) timeout = setTimeout(later, wait);
|
||||
if (throttling) {
|
||||
more = true;
|
||||
} else {
|
||||
func.apply(context, args);
|
||||
}
|
||||
whenDone();
|
||||
throttling = true;
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function, that, as long as it continues to be invoked, will not
|
||||
// be triggered. The function will be called after it stops being called for
|
||||
// N milliseconds.
|
||||
_.debounce = function(func, wait) {
|
||||
var timeout;
|
||||
return function() {
|
||||
var context = this, args = arguments;
|
||||
var later = function() {
|
||||
timeout = null;
|
||||
func.apply(context, args);
|
||||
};
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(later, wait);
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function that will be executed at most one time, no matter how
|
||||
// often you call it. Useful for lazy initialization.
|
||||
_.once = function(func) {
|
||||
var ran = false, memo;
|
||||
return function() {
|
||||
if (ran) return memo;
|
||||
ran = true;
|
||||
return memo = func.apply(this, arguments);
|
||||
};
|
||||
};
|
||||
|
||||
// Returns the first function passed as an argument to the second,
|
||||
// allowing you to adjust arguments, run code before and after, and
|
||||
// conditionally execute the original function.
|
||||
_.wrap = function(func, wrapper) {
|
||||
return function() {
|
||||
var args = [func].concat(slice.call(arguments, 0));
|
||||
return wrapper.apply(this, args);
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function that is the composition of a list of functions, each
|
||||
// consuming the return value of the function that follows.
|
||||
_.compose = function() {
|
||||
var funcs = arguments;
|
||||
return function() {
|
||||
var args = arguments;
|
||||
for (var i = funcs.length - 1; i >= 0; i--) {
|
||||
args = [funcs[i].apply(this, args)];
|
||||
}
|
||||
return args[0];
|
||||
};
|
||||
};
|
||||
|
||||
// Returns a function that will only be executed after being called N times.
|
||||
_.after = function(times, func) {
|
||||
if (times <= 0) return func();
|
||||
return function() {
|
||||
if (--times < 1) { return func.apply(this, arguments); }
|
||||
};
|
||||
};
|
||||
|
||||
// Object Functions
|
||||
// ----------------
|
||||
|
||||
// Retrieve the names of an object's properties.
|
||||
// Delegates to **ECMAScript 5**'s native `Object.keys`
|
||||
_.keys = nativeKeys || function(obj) {
|
||||
if (obj !== Object(obj)) throw new TypeError('Invalid object');
|
||||
var keys = [];
|
||||
for (var key in obj) if (_.has(obj, key)) keys[keys.length] = key;
|
||||
return keys;
|
||||
};
|
||||
|
||||
// Retrieve the values of an object's properties.
|
||||
_.values = function(obj) {
|
||||
return _.map(obj, _.identity);
|
||||
};
|
||||
|
||||
// Return a sorted list of the function names available on the object.
|
||||
// Aliased as `methods`
|
||||
_.functions = _.methods = function(obj) {
|
||||
var names = [];
|
||||
for (var key in obj) {
|
||||
if (_.isFunction(obj[key])) names.push(key);
|
||||
}
|
||||
return names.sort();
|
||||
};
|
||||
|
||||
// Extend a given object with all the properties in passed-in object(s).
|
||||
_.extend = function(obj) {
|
||||
each(slice.call(arguments, 1), function(source) {
|
||||
for (var prop in source) {
|
||||
obj[prop] = source[prop];
|
||||
}
|
||||
});
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Fill in a given object with default properties.
|
||||
_.defaults = function(obj) {
|
||||
each(slice.call(arguments, 1), function(source) {
|
||||
for (var prop in source) {
|
||||
if (obj[prop] == null) obj[prop] = source[prop];
|
||||
}
|
||||
});
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Create a (shallow-cloned) duplicate of an object.
|
||||
_.clone = function(obj) {
|
||||
if (!_.isObject(obj)) return obj;
|
||||
return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
|
||||
};
|
||||
|
||||
// Invokes interceptor with the obj, and then returns obj.
|
||||
// The primary purpose of this method is to "tap into" a method chain, in
|
||||
// order to perform operations on intermediate results within the chain.
|
||||
_.tap = function(obj, interceptor) {
|
||||
interceptor(obj);
|
||||
return obj;
|
||||
};
|
||||
|
||||
// Internal recursive comparison function.
|
||||
function eq(a, b, stack) {
|
||||
// Identical objects are equal. `0 === -0`, but they aren't identical.
|
||||
// See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.
|
||||
if (a === b) return a !== 0 || 1 / a == 1 / b;
|
||||
// A strict comparison is necessary because `null == undefined`.
|
||||
if (a == null || b == null) return a === b;
|
||||
// Unwrap any wrapped objects.
|
||||
if (a._chain) a = a._wrapped;
|
||||
if (b._chain) b = b._wrapped;
|
||||
// Invoke a custom `isEqual` method if one is provided.
|
||||
if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);
|
||||
if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);
|
||||
// Compare `[[Class]]` names.
|
||||
var className = toString.call(a);
|
||||
if (className != toString.call(b)) return false;
|
||||
switch (className) {
|
||||
// Strings, numbers, dates, and booleans are compared by value.
|
||||
case '[object String]':
|
||||
// Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
|
||||
// equivalent to `new String("5")`.
|
||||
return a == String(b);
|
||||
case '[object Number]':
|
||||
// `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for
|
||||
// other numeric values.
|
||||
return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);
|
||||
case '[object Date]':
|
||||
case '[object Boolean]':
|
||||
// Coerce dates and booleans to numeric primitive values. Dates are compared by their
|
||||
// millisecond representations. Note that invalid dates with millisecond representations
|
||||
// of `NaN` are not equivalent.
|
||||
return +a == +b;
|
||||
// RegExps are compared by their source patterns and flags.
|
||||
case '[object RegExp]':
|
||||
return a.source == b.source &&
|
||||
a.global == b.global &&
|
||||
a.multiline == b.multiline &&
|
||||
a.ignoreCase == b.ignoreCase;
|
||||
}
|
||||
if (typeof a != 'object' || typeof b != 'object') return false;
|
||||
// Assume equality for cyclic structures. The algorithm for detecting cyclic
|
||||
// structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
|
||||
var length = stack.length;
|
||||
while (length--) {
|
||||
// Linear search. Performance is inversely proportional to the number of
|
||||
// unique nested structures.
|
||||
if (stack[length] == a) return true;
|
||||
}
|
||||
// Add the first object to the stack of traversed objects.
|
||||
stack.push(a);
|
||||
var size = 0, result = true;
|
||||
// Recursively compare objects and arrays.
|
||||
if (className == '[object Array]') {
|
||||
// Compare array lengths to determine if a deep comparison is necessary.
|
||||
size = a.length;
|
||||
result = size == b.length;
|
||||
if (result) {
|
||||
// Deep compare the contents, ignoring non-numeric properties.
|
||||
while (size--) {
|
||||
// Ensure commutative equality for sparse arrays.
|
||||
if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Objects with different constructors are not equivalent.
|
||||
if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;
|
||||
// Deep compare objects.
|
||||
for (var key in a) {
|
||||
if (_.has(a, key)) {
|
||||
// Count the expected number of properties.
|
||||
size++;
|
||||
// Deep compare each member.
|
||||
if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;
|
||||
}
|
||||
}
|
||||
// Ensure that both objects contain the same number of properties.
|
||||
if (result) {
|
||||
for (key in b) {
|
||||
if (_.has(b, key) && !(size--)) break;
|
||||
}
|
||||
result = !size;
|
||||
}
|
||||
}
|
||||
// Remove the first object from the stack of traversed objects.
|
||||
stack.pop();
|
||||
return result;
|
||||
}
|
||||
|
||||
// Perform a deep comparison to check if two objects are equal.
|
||||
_.isEqual = function(a, b) {
|
||||
return eq(a, b, []);
|
||||
};
|
||||
|
||||
// Is a given array, string, or object empty?
|
||||
// An "empty" object has no enumerable own-properties.
|
||||
_.isEmpty = function(obj) {
|
||||
if (_.isArray(obj) || _.isString(obj)) return obj.length === 0;
|
||||
for (var key in obj) if (_.has(obj, key)) return false;
|
||||
return true;
|
||||
};
|
||||
|
||||
// Is a given value a DOM element?
|
||||
_.isElement = function(obj) {
|
||||
return !!(obj && obj.nodeType == 1);
|
||||
};
|
||||
|
||||
// Is a given value an array?
|
||||
// Delegates to ECMA5's native Array.isArray
|
||||
_.isArray = nativeIsArray || function(obj) {
|
||||
return toString.call(obj) == '[object Array]';
|
||||
};
|
||||
|
||||
// Is a given variable an object?
|
||||
_.isObject = function(obj) {
|
||||
return obj === Object(obj);
|
||||
};
|
||||
|
||||
// Is a given variable an arguments object?
|
||||
_.isArguments = function(obj) {
|
||||
return toString.call(obj) == '[object Arguments]';
|
||||
};
|
||||
if (!_.isArguments(arguments)) {
|
||||
_.isArguments = function(obj) {
|
||||
return !!(obj && _.has(obj, 'callee'));
|
||||
};
|
||||
}
|
||||
|
||||
// Is a given value a function?
|
||||
_.isFunction = function(obj) {
|
||||
return toString.call(obj) == '[object Function]';
|
||||
};
|
||||
|
||||
// Is a given value a string?
|
||||
_.isString = function(obj) {
|
||||
return toString.call(obj) == '[object String]';
|
||||
};
|
||||
|
||||
// Is a given value a number?
|
||||
_.isNumber = function(obj) {
|
||||
return toString.call(obj) == '[object Number]';
|
||||
};
|
||||
|
||||
// Is the given value `NaN`?
|
||||
_.isNaN = function(obj) {
|
||||
// `NaN` is the only value for which `===` is not reflexive.
|
||||
return obj !== obj;
|
||||
};
|
||||
|
||||
// Is a given value a boolean?
|
||||
_.isBoolean = function(obj) {
|
||||
return obj === true || obj === false || toString.call(obj) == '[object Boolean]';
|
||||
};
|
||||
|
||||
// Is a given value a date?
|
||||
_.isDate = function(obj) {
|
||||
return toString.call(obj) == '[object Date]';
|
||||
};
|
||||
|
||||
// Is the given value a regular expression?
|
||||
_.isRegExp = function(obj) {
|
||||
return toString.call(obj) == '[object RegExp]';
|
||||
};
|
||||
|
||||
// Is a given value equal to null?
|
||||
_.isNull = function(obj) {
|
||||
return obj === null;
|
||||
};
|
||||
|
||||
// Is a given variable undefined?
|
||||
_.isUndefined = function(obj) {
|
||||
return obj === void 0;
|
||||
};
|
||||
|
||||
// Has own property?
|
||||
_.has = function(obj, key) {
|
||||
return hasOwnProperty.call(obj, key);
|
||||
};
|
||||
|
||||
// Utility Functions
|
||||
// -----------------
|
||||
|
||||
// Run Underscore.js in *noConflict* mode, returning the `_` variable to its
|
||||
// previous owner. Returns a reference to the Underscore object.
|
||||
_.noConflict = function() {
|
||||
root._ = previousUnderscore;
|
||||
return this;
|
||||
};
|
||||
|
||||
// Keep the identity function around for default iterators.
|
||||
_.identity = function(value) {
|
||||
return value;
|
||||
};
|
||||
|
||||
// Run a function **n** times.
|
||||
_.times = function (n, iterator, context) {
|
||||
for (var i = 0; i < n; i++) iterator.call(context, i);
|
||||
};
|
||||
|
||||
// Escape a string for HTML interpolation.
|
||||
_.escape = function(string) {
|
||||
return (''+string).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/\//g,'/');
|
||||
};
|
||||
|
||||
// Add your own custom functions to the Underscore object, ensuring that
|
||||
// they're correctly added to the OOP wrapper as well.
|
||||
_.mixin = function(obj) {
|
||||
each(_.functions(obj), function(name){
|
||||
addToWrapper(name, _[name] = obj[name]);
|
||||
});
|
||||
};
|
||||
|
||||
// Generate a unique integer id (unique within the entire client session).
|
||||
// Useful for temporary DOM ids.
|
||||
var idCounter = 0;
|
||||
_.uniqueId = function(prefix) {
|
||||
var id = idCounter++;
|
||||
return prefix ? prefix + id : id;
|
||||
};
|
||||
|
||||
// By default, Underscore uses ERB-style template delimiters, change the
|
||||
// following template settings to use alternative delimiters.
|
||||
_.templateSettings = {
|
||||
evaluate : /<%([\s\S]+?)%>/g,
|
||||
interpolate : /<%=([\s\S]+?)%>/g,
|
||||
escape : /<%-([\s\S]+?)%>/g
|
||||
};
|
||||
|
||||
// When customizing `templateSettings`, if you don't want to define an
|
||||
// interpolation, evaluation or escaping regex, we need one that is
|
||||
// guaranteed not to match.
|
||||
var noMatch = /.^/;
|
||||
|
||||
// Within an interpolation, evaluation, or escaping, remove HTML escaping
|
||||
// that had been previously added.
|
||||
var unescape = function(code) {
|
||||
return code.replace(/\\\\/g, '\\').replace(/\\'/g, "'");
|
||||
};
|
||||
|
||||
// JavaScript micro-templating, similar to John Resig's implementation.
|
||||
// Underscore templating handles arbitrary delimiters, preserves whitespace,
|
||||
// and correctly escapes quotes within interpolated code.
|
||||
_.template = function(str, data) {
|
||||
var c = _.templateSettings;
|
||||
var tmpl = 'var __p=[],print=function(){__p.push.apply(__p,arguments);};' +
|
||||
'with(obj||{}){__p.push(\'' +
|
||||
str.replace(/\\/g, '\\\\')
|
||||
.replace(/'/g, "\\'")
|
||||
.replace(c.escape || noMatch, function(match, code) {
|
||||
return "',_.escape(" + unescape(code) + "),'";
|
||||
})
|
||||
.replace(c.interpolate || noMatch, function(match, code) {
|
||||
return "'," + unescape(code) + ",'";
|
||||
})
|
||||
.replace(c.evaluate || noMatch, function(match, code) {
|
||||
return "');" + unescape(code).replace(/[\r\n\t]/g, ' ') + ";__p.push('";
|
||||
})
|
||||
.replace(/\r/g, '\\r')
|
||||
.replace(/\n/g, '\\n')
|
||||
.replace(/\t/g, '\\t')
|
||||
+ "');}return __p.join('');";
|
||||
var func = new Function('obj', '_', tmpl);
|
||||
if (data) return func(data, _);
|
||||
return function(data) {
|
||||
return func.call(this, data, _);
|
||||
};
|
||||
};
|
||||
|
||||
// Add a "chain" function, which will delegate to the wrapper.
|
||||
_.chain = function(obj) {
|
||||
return _(obj).chain();
|
||||
};
|
||||
|
||||
// The OOP Wrapper
|
||||
// ---------------
|
||||
|
||||
// If Underscore is called as a function, it returns a wrapped object that
|
||||
// can be used OO-style. This wrapper holds altered versions of all the
|
||||
// underscore functions. Wrapped objects may be chained.
|
||||
var wrapper = function(obj) { this._wrapped = obj; };
|
||||
|
||||
// Expose `wrapper.prototype` as `_.prototype`
|
||||
_.prototype = wrapper.prototype;
|
||||
|
||||
// Helper function to continue chaining intermediate results.
|
||||
var result = function(obj, chain) {
|
||||
return chain ? _(obj).chain() : obj;
|
||||
};
|
||||
|
||||
// A method to easily add functions to the OOP wrapper.
|
||||
var addToWrapper = function(name, func) {
|
||||
wrapper.prototype[name] = function() {
|
||||
var args = slice.call(arguments);
|
||||
unshift.call(args, this._wrapped);
|
||||
return result(func.apply(_, args), this._chain);
|
||||
};
|
||||
};
|
||||
|
||||
// Add all of the Underscore functions to the wrapper object.
|
||||
_.mixin(_);
|
||||
|
||||
// Add all mutator Array functions to the wrapper.
|
||||
each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
|
||||
var method = ArrayProto[name];
|
||||
wrapper.prototype[name] = function() {
|
||||
var wrapped = this._wrapped;
|
||||
method.apply(wrapped, arguments);
|
||||
var length = wrapped.length;
|
||||
if ((name == 'shift' || name == 'splice') && length === 0) delete wrapped[0];
|
||||
return result(wrapped, this._chain);
|
||||
};
|
||||
});
|
||||
|
||||
// Add all accessor Array functions to the wrapper.
|
||||
each(['concat', 'join', 'slice'], function(name) {
|
||||
var method = ArrayProto[name];
|
||||
wrapper.prototype[name] = function() {
|
||||
return result(method.apply(this._wrapped, arguments), this._chain);
|
||||
};
|
||||
});
|
||||
|
||||
// Start chaining a wrapped Underscore object.
|
||||
wrapper.prototype.chain = function() {
|
||||
this._chain = true;
|
||||
return this;
|
||||
};
|
||||
|
||||
// Extracts the result from a wrapped and chained object.
|
||||
wrapper.prototype.value = function() {
|
||||
return this._wrapped;
|
||||
};
|
||||
|
||||
}).call(this);
|
||||
@@ -0,0 +1,31 @@
|
||||
// Underscore.js 1.3.1
|
||||
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Underscore is freely distributable under the MIT license.
|
||||
// Portions of Underscore are inspired or borrowed from Prototype,
|
||||
// Oliver Steele's Functional, and John Resig's Micro-Templating.
|
||||
// For all details and documentation:
|
||||
// http://documentcloud.github.com/underscore
|
||||
(function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case "[object String]":return a==String(c);case "[object Number]":return a!=+a?c!=+c:a==0?1/a==1/c:a==+c;case "[object Date]":case "[object Boolean]":return+a==+c;case "[object RegExp]":return a.source==
|
||||
c.source&&a.global==c.global&&a.multiline==c.multiline&&a.ignoreCase==c.ignoreCase}if(typeof a!="object"||typeof c!="object")return false;for(var f=d.length;f--;)if(d[f]==a)return true;d.push(a);var f=0,g=true;if(e=="[object Array]"){if(f=a.length,g=f==c.length)for(;f--;)if(!(g=f in a==f in c&&q(a[f],c[f],d)))break}else{if("constructor"in a!="constructor"in c||a.constructor!=c.constructor)return false;for(var h in a)if(b.has(a,h)&&(f++,!(g=b.has(c,h)&&q(a[h],c[h],d))))break;if(g){for(h in c)if(b.has(c,
|
||||
h)&&!f--)break;g=!f}}d.pop();return g}var r=this,G=r._,n={},k=Array.prototype,o=Object.prototype,i=k.slice,H=k.unshift,l=o.toString,I=o.hasOwnProperty,w=k.forEach,x=k.map,y=k.reduce,z=k.reduceRight,A=k.filter,B=k.every,C=k.some,p=k.indexOf,D=k.lastIndexOf,o=Array.isArray,J=Object.keys,s=Function.prototype.bind,b=function(a){return new m(a)};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports)exports=module.exports=b;exports._=b}else r._=b;b.VERSION="1.3.1";var j=b.each=
|
||||
b.forEach=function(a,c,d){if(a!=null)if(w&&a.forEach===w)a.forEach(c,d);else if(a.length===+a.length)for(var e=0,f=a.length;e<f;e++){if(e in a&&c.call(d,a[e],e,a)===n)break}else for(e in a)if(b.has(a,e)&&c.call(d,a[e],e,a)===n)break};b.map=b.collect=function(a,c,b){var e=[];if(a==null)return e;if(x&&a.map===x)return a.map(c,b);j(a,function(a,g,h){e[e.length]=c.call(b,a,g,h)});if(a.length===+a.length)e.length=a.length;return e};b.reduce=b.foldl=b.inject=function(a,c,d,e){var f=arguments.length>2;a==
|
||||
null&&(a=[]);if(y&&a.reduce===y)return e&&(c=b.bind(c,e)),f?a.reduce(c,d):a.reduce(c);j(a,function(a,b,i){f?d=c.call(e,d,a,b,i):(d=a,f=true)});if(!f)throw new TypeError("Reduce of empty array with no initial value");return d};b.reduceRight=b.foldr=function(a,c,d,e){var f=arguments.length>2;a==null&&(a=[]);if(z&&a.reduceRight===z)return e&&(c=b.bind(c,e)),f?a.reduceRight(c,d):a.reduceRight(c);var g=b.toArray(a).reverse();e&&!f&&(c=b.bind(c,e));return f?b.reduce(g,c,d,e):b.reduce(g,c)};b.find=b.detect=
|
||||
function(a,c,b){var e;E(a,function(a,g,h){if(c.call(b,a,g,h))return e=a,true});return e};b.filter=b.select=function(a,c,b){var e=[];if(a==null)return e;if(A&&a.filter===A)return a.filter(c,b);j(a,function(a,g,h){c.call(b,a,g,h)&&(e[e.length]=a)});return e};b.reject=function(a,c,b){var e=[];if(a==null)return e;j(a,function(a,g,h){c.call(b,a,g,h)||(e[e.length]=a)});return e};b.every=b.all=function(a,c,b){var e=true;if(a==null)return e;if(B&&a.every===B)return a.every(c,b);j(a,function(a,g,h){if(!(e=
|
||||
e&&c.call(b,a,g,h)))return n});return e};var E=b.some=b.any=function(a,c,d){c||(c=b.identity);var e=false;if(a==null)return e;if(C&&a.some===C)return a.some(c,d);j(a,function(a,b,h){if(e||(e=c.call(d,a,b,h)))return n});return!!e};b.include=b.contains=function(a,c){var b=false;if(a==null)return b;return p&&a.indexOf===p?a.indexOf(c)!=-1:b=E(a,function(a){return a===c})};b.invoke=function(a,c){var d=i.call(arguments,2);return b.map(a,function(a){return(b.isFunction(c)?c||a:a[c]).apply(a,d)})};b.pluck=
|
||||
function(a,c){return b.map(a,function(a){return a[c]})};b.max=function(a,c,d){if(!c&&b.isArray(a))return Math.max.apply(Math,a);if(!c&&b.isEmpty(a))return-Infinity;var e={computed:-Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b>=e.computed&&(e={value:a,computed:b})});return e.value};b.min=function(a,c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);if(!c&&b.isEmpty(a))return Infinity;var e={computed:Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b<e.computed&&(e={value:a,computed:b})});
|
||||
return e.value};b.shuffle=function(a){var b=[],d;j(a,function(a,f){f==0?b[0]=a:(d=Math.floor(Math.random()*(f+1)),b[f]=b[d],b[d]=a)});return b};b.sortBy=function(a,c,d){return b.pluck(b.map(a,function(a,b,g){return{value:a,criteria:c.call(d,a,b,g)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};b.groupBy=function(a,c){var d={},e=b.isFunction(c)?c:function(a){return a[c]};j(a,function(a,b){var c=e(a,b);(d[c]||(d[c]=[])).push(a)});return d};b.sortedIndex=function(a,
|
||||
c,d){d||(d=b.identity);for(var e=0,f=a.length;e<f;){var g=e+f>>1;d(a[g])<d(c)?e=g+1:f=g}return e};b.toArray=function(a){return!a?[]:a.toArray?a.toArray():b.isArray(a)?i.call(a):b.isArguments(a)?i.call(a):b.values(a)};b.size=function(a){return b.toArray(a).length};b.first=b.head=function(a,b,d){return b!=null&&!d?i.call(a,0,b):a[0]};b.initial=function(a,b,d){return i.call(a,0,a.length-(b==null||d?1:b))};b.last=function(a,b,d){return b!=null&&!d?i.call(a,Math.max(a.length-b,0)):a[a.length-1]};b.rest=
|
||||
b.tail=function(a,b,d){return i.call(a,b==null||d?1:b)};b.compact=function(a){return b.filter(a,function(a){return!!a})};b.flatten=function(a,c){return b.reduce(a,function(a,e){if(b.isArray(e))return a.concat(c?e:b.flatten(e));a[a.length]=e;return a},[])};b.without=function(a){return b.difference(a,i.call(arguments,1))};b.uniq=b.unique=function(a,c,d){var d=d?b.map(a,d):a,e=[];b.reduce(d,function(d,g,h){if(0==h||(c===true?b.last(d)!=g:!b.include(d,g)))d[d.length]=g,e[e.length]=a[h];return d},[]);
|
||||
return e};b.union=function(){return b.uniq(b.flatten(arguments,true))};b.intersection=b.intersect=function(a){var c=i.call(arguments,1);return b.filter(b.uniq(a),function(a){return b.every(c,function(c){return b.indexOf(c,a)>=0})})};b.difference=function(a){var c=b.flatten(i.call(arguments,1));return b.filter(a,function(a){return!b.include(c,a)})};b.zip=function(){for(var a=i.call(arguments),c=b.max(b.pluck(a,"length")),d=Array(c),e=0;e<c;e++)d[e]=b.pluck(a,""+e);return d};b.indexOf=function(a,c,
|
||||
d){if(a==null)return-1;var e;if(d)return d=b.sortedIndex(a,c),a[d]===c?d:-1;if(p&&a.indexOf===p)return a.indexOf(c);for(d=0,e=a.length;d<e;d++)if(d in a&&a[d]===c)return d;return-1};b.lastIndexOf=function(a,b){if(a==null)return-1;if(D&&a.lastIndexOf===D)return a.lastIndexOf(b);for(var d=a.length;d--;)if(d in a&&a[d]===b)return d;return-1};b.range=function(a,b,d){arguments.length<=1&&(b=a||0,a=0);for(var d=arguments[2]||1,e=Math.max(Math.ceil((b-a)/d),0),f=0,g=Array(e);f<e;)g[f++]=a,a+=d;return g};
|
||||
var F=function(){};b.bind=function(a,c){var d,e;if(a.bind===s&&s)return s.apply(a,i.call(arguments,1));if(!b.isFunction(a))throw new TypeError;e=i.call(arguments,2);return d=function(){if(!(this instanceof d))return a.apply(c,e.concat(i.call(arguments)));F.prototype=a.prototype;var b=new F,g=a.apply(b,e.concat(i.call(arguments)));return Object(g)===g?g:b}};b.bindAll=function(a){var c=i.call(arguments,1);c.length==0&&(c=b.functions(a));j(c,function(c){a[c]=b.bind(a[c],a)});return a};b.memoize=function(a,
|
||||
c){var d={};c||(c=b.identity);return function(){var e=c.apply(this,arguments);return b.has(d,e)?d[e]:d[e]=a.apply(this,arguments)}};b.delay=function(a,b){var d=i.call(arguments,2);return setTimeout(function(){return a.apply(a,d)},b)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(i.call(arguments,1)))};b.throttle=function(a,c){var d,e,f,g,h,i=b.debounce(function(){h=g=false},c);return function(){d=this;e=arguments;var b;f||(f=setTimeout(function(){f=null;h&&a.apply(d,e);i()},c));g?h=true:
|
||||
a.apply(d,e);i();g=true}};b.debounce=function(a,b){var d;return function(){var e=this,f=arguments;clearTimeout(d);d=setTimeout(function(){d=null;a.apply(e,f)},b)}};b.once=function(a){var b=false,d;return function(){if(b)return d;b=true;return d=a.apply(this,arguments)}};b.wrap=function(a,b){return function(){var d=[a].concat(i.call(arguments,0));return b.apply(this,d)}};b.compose=function(){var a=arguments;return function(){for(var b=arguments,d=a.length-1;d>=0;d--)b=[a[d].apply(this,b)];return b[0]}};
|
||||
b.after=function(a,b){return a<=0?b():function(){if(--a<1)return b.apply(this,arguments)}};b.keys=J||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var c=[],d;for(d in a)b.has(a,d)&&(c[c.length]=d);return c};b.values=function(a){return b.map(a,b.identity)};b.functions=b.methods=function(a){var c=[],d;for(d in a)b.isFunction(a[d])&&c.push(d);return c.sort()};b.extend=function(a){j(i.call(arguments,1),function(b){for(var d in b)a[d]=b[d]});return a};b.defaults=function(a){j(i.call(arguments,
|
||||
1),function(b){for(var d in b)a[d]==null&&(a[d]=b[d])});return a};b.clone=function(a){return!b.isObject(a)?a:b.isArray(a)?a.slice():b.extend({},a)};b.tap=function(a,b){b(a);return a};b.isEqual=function(a,b){return q(a,b,[])};b.isEmpty=function(a){if(b.isArray(a)||b.isString(a))return a.length===0;for(var c in a)if(b.has(a,c))return false;return true};b.isElement=function(a){return!!(a&&a.nodeType==1)};b.isArray=o||function(a){return l.call(a)=="[object Array]"};b.isObject=function(a){return a===Object(a)};
|
||||
b.isArguments=function(a){return l.call(a)=="[object Arguments]"};if(!b.isArguments(arguments))b.isArguments=function(a){return!(!a||!b.has(a,"callee"))};b.isFunction=function(a){return l.call(a)=="[object Function]"};b.isString=function(a){return l.call(a)=="[object String]"};b.isNumber=function(a){return l.call(a)=="[object Number]"};b.isNaN=function(a){return a!==a};b.isBoolean=function(a){return a===true||a===false||l.call(a)=="[object Boolean]"};b.isDate=function(a){return l.call(a)=="[object Date]"};
|
||||
b.isRegExp=function(a){return l.call(a)=="[object RegExp]"};b.isNull=function(a){return a===null};b.isUndefined=function(a){return a===void 0};b.has=function(a,b){return I.call(a,b)};b.noConflict=function(){r._=G;return this};b.identity=function(a){return a};b.times=function(a,b,d){for(var e=0;e<a;e++)b.call(d,e)};b.escape=function(a){return(""+a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")};b.mixin=function(a){j(b.functions(a),
|
||||
function(c){K(c,b[c]=a[c])})};var L=0;b.uniqueId=function(a){var b=L++;return a?a+b:b};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var t=/.^/,u=function(a){return a.replace(/\\\\/g,"\\").replace(/\\'/g,"'")};b.template=function(a,c){var d=b.templateSettings,d="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.escape||t,function(a,b){return"',_.escape("+
|
||||
u(b)+"),'"}).replace(d.interpolate||t,function(a,b){return"',"+u(b)+",'"}).replace(d.evaluate||t,function(a,b){return"');"+u(b).replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",e=new Function("obj","_",d);return c?e(c,b):function(a){return e.call(this,a,b)}};b.chain=function(a){return b(a).chain()};var m=function(a){this._wrapped=a};b.prototype=m.prototype;var v=function(a,c){return c?b(a).chain():a},K=function(a,c){m.prototype[a]=
|
||||
function(){var a=i.call(arguments);H.call(a,this._wrapped);return v(c.apply(b,a),this._chain)}};b.mixin(b);j("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=k[a];m.prototype[a]=function(){var d=this._wrapped;b.apply(d,arguments);var e=d.length;(a=="shift"||a=="splice")&&e===0&&delete d[0];return v(d,this._chain)}});j(["concat","join","slice"],function(a){var b=k[a];m.prototype[a]=function(){return v(b.apply(this._wrapped,arguments),this._chain)}});m.prototype.chain=function(){this._chain=
|
||||
true;return this};m.prototype.value=function(){return this._wrapped}}).call(this);
|
||||
@@ -0,0 +1,275 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Safety Feature and Diagnostic Examples — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="next" title="Using DCSM for Freedom From Interference (FFI)" href="sdl_ex_dcsm_ffi.html"/>
|
||||
<link rel="prev" title="STA_User Functions" href="../sta/sta_user.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Safety Feature and Diagnostic Examples</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Safety Feature and Diagnostic Examples</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="safety-feature-and-diagnostic-examples">
|
||||
<span id="examples"></span><h1>Safety Feature and Diagnostic Examples<a class="headerlink" href="#safety-feature-and-diagnostic-examples" title="Permalink to this headline">¶</a></h1>
|
||||
<p>Many of the safety features and diagnostics documented in the device safety
|
||||
manual are very system-specific and not well suited to being implemented as SDL
|
||||
APIs. However many still require special procedures or hardware test modes that
|
||||
may require some demonstration beyond their documented descriptions. For these
|
||||
particular cases, a series of examples have been created as part of the SDL to
|
||||
provide such a demonstration.</p>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../sta/sta_user.html" class="btn btn-neutral float-left" title="STA_User Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sdl_ex_dcsm_ffi.html" class="btn btn-neutral float-right" title="Using DCSM for Freedom From Interference (FFI)" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,285 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Using DCSM for Freedom From Interference (FFI) — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
<link rel="next" title="Test of ECC logic in Flash" href="sdl_ex_flash_ecc_test.html"/>
|
||||
<link rel="prev" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Safety Feature and Diagnostic Examples</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Safety Feature and Diagnostic Examples</a> »</li>
|
||||
<li>Using DCSM for Freedom From Interference (FFI)</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="using-dcsm-for-freedom-from-interference-ffi">
|
||||
<span id="sdl-ex-dcsm-ffi"></span><h1>Using DCSM for Freedom From Interference (FFI)<a class="headerlink" href="#using-dcsm-for-freedom-from-interference-ffi" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sdl__ex__dcsm__ffi"></span><em>group</em> <code class="sig-name descname">sdl_ex_dcsm_ffi</code></dt>
|
||||
<dd><p><em>sdl_ex_dcsm_ffi</em></p>
|
||||
<p>This example demonstrates how to configure and use DCSM and how the DCSM blocks writes from one secured zone to another, simulating the its use to create firewalls between code of different safety requirement criticality.</p>
|
||||
<p>It uses the default passwords to allocate one LSRAM block and one flash sector to zone 1 and another to zone 2. In this example, zoning of memories is done by programming the DCSM OTP. The values that are programmed can be found in in dcsm.asm. Secured RAM blocks are partitioned to contain data arrays used in the example, and secured Flash sectors contain the program code. Once secure, both zone1LockedArray and zone2LockedArray are immutable outside of the safety functions residing in the same zone.</p>
|
||||
<p>!!IMPORTANT!! By default, assignments in dcsm.asm are commented out and the sections mapped to OTP in dcsm.cmd are given the “type = DSECT” attribute to prevent programming of the OTP. In this state, this example is expected to fail (result = FAIL) because the memories won’t actually be secured. If you are sure you want to permanently update the zones’ link pointers and zone select blocks, uncomment the code in dcsm.asm and remove “type = DSECT” from dcsm.cmd.</p>
|
||||
<p>Parts of this example where generated with assistance from the DCSM Tool. We strongly recommend using this tool to generate the code for your DCSM configuration. Refer to the following guide for more information: <a class="reference external" href="http://www.ti.com/lit/pdf/spracp8">http://www.ti.com/lit/pdf/spracp8</a></p>
|
||||
<p><strong>External</strong> <strong>Connections</strong> <ul class="simple">
|
||||
<li><p>None.</p></li>
|
||||
</ul>
|
||||
<dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This example assumes you have not written to the DCSM OTP before and that the first zone select block is available for use. If this is not the case, you will need to update the link pointer, zone select block address, and passwords to use the next available zone select block.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><strong>Watch</strong> <strong>Variables</strong> <ul class="simple">
|
||||
<li><p><strong>result</strong> - Status indicating success of blocking writes to secured zones.</p></li>
|
||||
<li><p><strong>errorZone1NotChanged</strong>, errorZone2NotChanged, errorZone1Changed, errorZone2Changed - Count of errors found during execution.</p></li>
|
||||
<li><p><strong>zone1LockedArray</strong> - Array located in zone 1 secured memory.</p></li>
|
||||
<li><p><strong>zone2LockedArray</strong> - Array located in zone 2 secured memory. </p></li>
|
||||
</ul>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="index.html" class="btn btn-neutral float-left" title="Safety Feature and Diagnostic Examples" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sdl_ex_flash_ecc_test.html" class="btn btn-neutral float-right" title="Test of ECC logic in Flash" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,287 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Test of ECC logic in Flash — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
<link rel="next" title="Test of Flash Prefetch, Data Cache, and Wait-States" href="sdl_ex_flash_prefetch_test.html"/>
|
||||
<link rel="prev" title="Using DCSM for Freedom From Interference (FFI)" href="sdl_ex_dcsm_ffi.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Safety Feature and Diagnostic Examples</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Safety Feature and Diagnostic Examples</a> »</li>
|
||||
<li>Test of ECC logic in Flash</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="test-of-ecc-logic-in-flash">
|
||||
<span id="sdl-ex-flash-ecc-test"></span><h1>Test of ECC logic in Flash<a class="headerlink" href="#test-of-ecc-logic-in-flash" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sdl__ex__flash__ecc__test"></span><em>group</em> <code class="sig-name descname">sdl_ex_flash_ecc_test</code></dt>
|
||||
<dd><p><em>sdl_ex_flash_ecc_test</em></p>
|
||||
<p>This example demonstrates how to test the Flash ECC logic functionality.</p>
|
||||
<p>A software test of the Flash ECC logic can be performed with the help of ECC test registers. Using the test registers, you can generate both single bit errors and uncorrectable errors. For additional details on the implementation of this diagnostic, see the “SECDED Logic Correctness Check” section in the device technical reference manual.</p>
|
||||
<p><strong>External</strong> <strong>Connections</strong> <ul class="simple">
|
||||
<li><p>None.</p></li>
|
||||
</ul>
|
||||
<dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>When using the flash test mode, you should not execute code from Flash. Note the #pragma CODE_SECTION lines below.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><strong>Watch</strong> <strong>Variables</strong> <ul class="simple">
|
||||
<li><p><strong>nmiISRFlag</strong> - Indicates that the NMI was triggered and called the ISR.</p></li>
|
||||
<li><p><strong>nmiStatus</strong> - NMI status flags read in the ISR.</p></li>
|
||||
<li><p><strong>errorISRFlag</strong> - Indicates that the correctable ECC error interrupt was triggered and called the ISR.</p></li>
|
||||
<li><p><strong>errorStatus</strong> - Error status flags read in the ISR, indicating whether an error was single-bit or uncorrectable.</p></li>
|
||||
<li><p><strong>errorCount</strong> - Number of correctable errors detected read in the ISR.</p></li>
|
||||
<li><p><strong>errorType</strong> - For a single-bit error, indicates whether it was in the data or ECC bits.</p></li>
|
||||
<li><p><strong>dataOut</strong> - For a single-bit error, displays the corrected data.</p></li>
|
||||
<li><p><strong>result</strong> - Status of a successful detection and handling of ECC errors. </p></li>
|
||||
</ul>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sdl_ex_dcsm_ffi.html" class="btn btn-neutral float-left" title="Using DCSM for Freedom From Interference (FFI)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sdl_ex_flash_prefetch_test.html" class="btn btn-neutral float-right" title="Test of Flash Prefetch, Data Cache, and Wait-States" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,278 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Test of Flash Prefetch, Data Cache, and Wait-States — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
<link rel="next" title="Missing clock detection" href="sdl_ex_mcd_test.html"/>
|
||||
<link rel="prev" title="Test of ECC logic in Flash" href="sdl_ex_flash_ecc_test.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Safety Feature and Diagnostic Examples</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Safety Feature and Diagnostic Examples</a> »</li>
|
||||
<li>Test of Flash Prefetch, Data Cache, and Wait-States</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="test-of-flash-prefetch-data-cache-and-wait-states">
|
||||
<span id="sdl-ex-flash-prefetch-test"></span><h1>Test of Flash Prefetch, Data Cache, and Wait-States<a class="headerlink" href="#test-of-flash-prefetch-data-cache-and-wait-states" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sdl__ex__flash__prefetch__test"></span><em>group</em> <code class="sig-name descname">sdl_ex_flash_prefetch_test</code></dt>
|
||||
<dd><p><em>sdl_ex_flash_prefetch_test</em></p>
|
||||
<p>This example demonstrates how to test the behavior of the flash prefetch, data cache, and wait-states. Each of these configurations are altered one by one and the impact they have on a test function’s execution time is measured. It is expected that an increase in the execution time will be observed in each case.</p>
|
||||
<p>Note that as mentioned in the safety manual description of this diagnostic, a golden value may be used to check the execution time. This wasn’t used for this example because of possible compiler differences between users’ environments, but can be used in your actual application.</p>
|
||||
<p><strong>External</strong> <strong>Connections</strong> <ul class="simple">
|
||||
<li><p>None.</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><strong>Watch</strong> <strong>Variables</strong> <ul class="simple">
|
||||
<li><p><strong>baseCycles</strong> - Execution time of runPrefetchTestCode();</p></li>
|
||||
<li><p><strong>failCount</strong> - Number of tests that returned failures.</p></li>
|
||||
<li><p><strong>result</strong> - Status of flash configuration logic test. </p></li>
|
||||
</ul>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sdl_ex_flash_ecc_test.html" class="btn btn-neutral float-left" title="Test of ECC logic in Flash" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sdl_ex_mcd_test.html" class="btn btn-neutral float-right" title="Missing clock detection" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,281 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Missing clock detection — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
<link rel="next" title="RAM access protection violation detection" href="sdl_ex_ram_access_protect.html"/>
|
||||
<link rel="prev" title="Test of Flash Prefetch, Data Cache, and Wait-States" href="sdl_ex_flash_prefetch_test.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Safety Feature and Diagnostic Examples</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Safety Feature and Diagnostic Examples</a> »</li>
|
||||
<li>Missing clock detection</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="missing-clock-detection">
|
||||
<span id="sdl-ex-mcd-test"></span><h1>Missing clock detection<a class="headerlink" href="#missing-clock-detection" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sdl__ex__mcd__test"></span><em>group</em> <code class="sig-name descname">sdl_ex_mcd_test</code></dt>
|
||||
<dd><p><em>sdl_ex_mcd_test</em></p>
|
||||
<p>This example demonstrates how to check the missing clock detection functionality.</p>
|
||||
<p>Once the MCD is simulated by disconnecting the clock to the MCD module an NMI is generated. This NMI determines that an MCD error was generated due to a clock failure which is handled in the ISR.</p>
|
||||
<p>Before the MCD the clock frequency will be as per device initialization. Post MCD error, the clock will be running at the speed of INTOSC1 with the PLL disabled (10 MHz).</p>
|
||||
<p>The example also shows how to lock the PLL after missing clock detection, by first explicitly switching the clock source to INTOSC1, resetting the missing clock detect circuit and then re-locking the PLL. After that the clock frequency will be restored to the original configuration.</p>
|
||||
<p><strong>External</strong> <strong>Connections</strong> <ul class="simple">
|
||||
<li><p>None.</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><strong>Watch</strong> <strong>Variables</strong> <ul class="simple">
|
||||
<li><p><strong>fail</strong> - Indicates that a missing clock was either not detected or was not handled correctly.</p></li>
|
||||
<li><p><strong>nmiISRFlag</strong> - Indicates that the missing clock failure caused an NMI to be triggered and called the ISR to handle it.</p></li>
|
||||
<li><p><strong>mcdDetect</strong> - Indicates that a missing clock was detected.</p></li>
|
||||
<li><p><strong>result</strong> - Status of a successful handling of missing clock detection. </p></li>
|
||||
</ul>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sdl_ex_flash_prefetch_test.html" class="btn btn-neutral float-left" title="Test of Flash Prefetch, Data Cache, and Wait-States" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sdl_ex_ram_access_protect.html" class="btn btn-neutral float-right" title="RAM access protection violation detection" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,279 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>RAM access protection violation detection — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
<link rel="next" title="Test of parity/ECC logic in SRAM" href="sdl_ex_ram_ecc_parity_test.html"/>
|
||||
<link rel="prev" title="Missing clock detection" href="sdl_ex_mcd_test.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Safety Feature and Diagnostic Examples</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Safety Feature and Diagnostic Examples</a> »</li>
|
||||
<li>RAM access protection violation detection</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="ram-access-protection-violation-detection">
|
||||
<span id="sdl-ex-ram-access-protect"></span><h1>RAM access protection violation detection<a class="headerlink" href="#ram-access-protection-violation-detection" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sdl__ex__ram__access__protect"></span><em>group</em> <code class="sig-name descname">sdl_ex_ram_access_protect</code></dt>
|
||||
<dd><p><em>sdl_ex_ram_access_protect</em></p>
|
||||
<p>This example demonstrates a functional test of the RAM access protection violation detection and handling for several different types accesses. The example generates a number of controller or non-controller fetch, write, or read violations from the CPU, CLA, and DMA as applicable to the device.</p>
|
||||
<p><strong>External</strong> <strong>Connections</strong> <ul class="simple">
|
||||
<li><p>None.</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><strong>Watch</strong> <strong>Variables</strong> <ul class="simple">
|
||||
<li><p><strong>violationISRFlag</strong> - Indicates that the access violation interrupt was triggered and called the ISR.</p></li>
|
||||
<li><p><strong>illegalISRFlag</strong> - Indicates that a CPU fetch violation interrupt was generated and the ITRAP ISR ran.</p></li>
|
||||
<li><p><strong>violationStatus</strong> - Access protection violation status flags read in the ISR.</p></li>
|
||||
<li><p><strong>violationAddr</strong> - Address at which the access violation occurred.</p></li>
|
||||
<li><p><strong>result</strong> - Status of a successful detection and handling of RAM access protection violations. </p></li>
|
||||
</ul>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sdl_ex_mcd_test.html" class="btn btn-neutral float-left" title="Missing clock detection" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sdl_ex_ram_ecc_parity_test.html" class="btn btn-neutral float-right" title="Test of parity/ECC logic in SRAM" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,286 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Test of parity/ECC logic in SRAM — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
<link rel="next" title="Software test of watchdog operation" href="sdl_ex_watchdog.html"/>
|
||||
<link rel="prev" title="RAM access protection violation detection" href="sdl_ex_ram_access_protect.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Safety Feature and Diagnostic Examples</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Safety Feature and Diagnostic Examples</a> »</li>
|
||||
<li>Test of parity/ECC logic in SRAM</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="test-of-parity-ecc-logic-in-sram">
|
||||
<span id="sdl-ex-ram-ecc-parity-test"></span><h1>Test of parity/ECC logic in SRAM<a class="headerlink" href="#test-of-parity-ecc-logic-in-sram" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sdl__ex__ram__ecc__parity__test"></span><em>group</em> <code class="sig-name descname">sdl_ex_ram_ecc_parity_test</code></dt>
|
||||
<dd><p><em>sdl_ex_ram_ecc_parity_test</em></p>
|
||||
<p>This example demonstrates how to check the SRAM ECC or parity logic functionality.</p>
|
||||
<p>Three types of SRAM errors are generated to demonstrate the use of the SRAM test modes and the checking of the related flag and information registers. These types are parity errors, correctable ECC errors, and uncorrectable ECC errors. See your device data sheet to determine which memories have ECC and which have parity.</p>
|
||||
<p>The flow for most of these tests to to put the SRAM into a test mode that either allows the data to be written with an update to the ECC/parity or allows the ECC/parity to be written to directly. A bit or multiple bits at a location in that SRAM block are then flipped depending on the type of error being tested. The test mode is then disabled and a read is performed at that location, prompting the detection or correction of the error. This process is then repeated, moving to the next bit or pair of bits until all 32 bits of that location are tested.</p>
|
||||
<p>Note that each SRAM (GS0, GS1, etc…) has its own wrapper logic, so this test should be performed for each SRAM in use.</p>
|
||||
<p>On some devices, there is also a test of the EtherCAT RAM which initializes the EtherCAT RAM, introduces an error, and then reads location in the RAM to detect it. An NMI will occur if the error is correctly detected.</p>
|
||||
<p>When debugging this example, single-stepping over parts of the code can cause the example to fail, as the error handling ISRs may be prevented from executing. If you run into this issue, instead of using the “step into” and “step over” to examine the code, place breakpoints and run from breakpoint to breakpoint to allow the interrupts to execute.</p>
|
||||
<p><strong>External</strong> <strong>Connections</strong> <ul class="simple">
|
||||
<li><p>None.</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><strong>Watch</strong> <strong>Variables</strong> <ul class="simple">
|
||||
<li><p><strong>nmiISRFlag</strong> - Indicates that the NMI was triggered and called the ISR.</p></li>
|
||||
<li><p><strong>nmiStatus</strong> - NMI status flags read in the ISR.</p></li>
|
||||
<li><p><strong>errorISRFlag</strong> - Indicates that the correctable RAM error interrupt was triggered and called the ISR.</p></li>
|
||||
<li><p><strong>errorStatus</strong> - Correctable RAM error status flags read in the ISR.</p></li>
|
||||
<li><p><strong>errorCount</strong> - Number of correctable errors detected read in the ISR.</p></li>
|
||||
<li><p><strong>errorAddr</strong> - Address at which the error was detected.</p></li>
|
||||
<li><p><strong>result</strong> - Status of a successful detection and handling of RAM errors. </p></li>
|
||||
</ul>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sdl_ex_ram_access_protect.html" class="btn btn-neutral float-left" title="RAM access protection violation detection" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sdl_ex_watchdog.html" class="btn btn-neutral float-right" title="Software test of watchdog operation" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,276 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Software test of watchdog operation — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Safety Feature and Diagnostic Examples" href="index.html"/>
|
||||
<link rel="next" title="Integration Notes" href="../profiling.html"/>
|
||||
<link rel="prev" title="Test of parity/ECC logic in SRAM" href="sdl_ex_ram_ecc_parity_test.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Safety Feature and Diagnostic Examples</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Safety Feature and Diagnostic Examples</a> »</li>
|
||||
<li>Software test of watchdog operation</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="software-test-of-watchdog-operation">
|
||||
<span id="sdl-ex-watchdog"></span><h1>Software test of watchdog operation<a class="headerlink" href="#software-test-of-watchdog-operation" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sdl__ex__watchdog"></span><em>group</em> <code class="sig-name descname">sdl_ex_watchdog</code></dt>
|
||||
<dd><p><em>sdl_ex_watchdog</em></p>
|
||||
<p>This example shows how to use the wakeup interrupt to test the operation of the watchdog. The example generates two watchdog interrupts. The first is caused by delaying the reset of the watchdog too long, causing it to overflow. The second uses the windowing functionality to reset the counter before the minimum threshold can be reached.</p>
|
||||
<p><strong>External</strong> <strong>Connections</strong> <ul class="simple">
|
||||
<li><p>None.</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><strong>Watch</strong> <strong>Variables</strong> <ul class="simple">
|
||||
<li><p><strong>wakeISRFlag</strong> - Indicates the watchdog ISR was executed.</p></li>
|
||||
<li><p><strong>result</strong> - Status of successful generation of expected watchdog pulse. </p></li>
|
||||
</ul>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sdl_ex_ram_ecc_parity_test.html" class="btn btn-neutral float-left" title="Test of parity/ECC logic in SRAM" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="../profiling.html" class="btn btn-neutral float-right" title="Integration Notes" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,803 @@
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Index — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="#"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="index.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Index</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
|
||||
<h1 id="index">Index</h1>
|
||||
|
||||
<div class="genindex-jumpbox">
|
||||
<a href="#H"><strong>H</strong></a>
|
||||
| <a href="#P"><strong>P</strong></a>
|
||||
| <a href="#S"><strong>S</strong></a>
|
||||
|
||||
</div>
|
||||
<h2 id="H">H</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_CSTCSEM_SEMAPHORE">HWBIST_CSTCSEM_SEMAPHORE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCCADDR">HWBIST_O_CSTCCADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCCONFIG">HWBIST_O_CSTCCONFIG (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCCPCR">HWBIST_O_CSTCCPCR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCCRD">HWBIST_O_CSTCCRD (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR0">HWBIST_O_CSTCGCR0 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR1">HWBIST_O_CSTCGCR1 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR2">HWBIST_O_CSTCGCR2 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR3">HWBIST_O_CSTCGCR3 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR4">HWBIST_O_CSTCGCR4 (C macro)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR5">HWBIST_O_CSTCGCR5 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR6">HWBIST_O_CSTCGCR6 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR7">HWBIST_O_CSTCGCR7 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCGCR8">HWBIST_O_CSTCGCR8 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCPCNT">HWBIST_O_CSTCPCNT (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCRET">HWBIST_O_CSTCRET (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCSADDR">HWBIST_O_CSTCSADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCSEM">HWBIST_O_CSTCSEM (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTCTEST">HWBIST_O_CSTCTEST (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.HWBIST_O_CSTGSTAT">HWBIST_O_CSTGSTAT (C macro)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="P">P</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="library/stl_hwbist.html#c.PIEVECTTABLE_O_NMI">PIEVECTTABLE_O_NMI (C macro)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="S">S</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="sta/sta_tests.html#_CPPv418STA_CAN_RAM_PARITY">STA_CAN_RAM_PARITY (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_comm.html#c.STA_COMM_BAUD_RATE">STA_COMM_BAUD_RATE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_comm.html#_CPPv419STA_Comm_configSCIAv">STA_Comm_configSCIA (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_comm.html#_CPPv421STA_Comm_transmitDataPh">STA_Comm_transmitData (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv411STA_CPU_REG">STA_CPU_REG (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv413STA_FLASH_CRC">STA_FLASH_CRC (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv411STA_FPU_REG">STA_FPU_REG (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv415STA_HWBIST_FULL">STA_HWBIST_FULL (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv416STA_HWBIST_MICRO">STA_HWBIST_MICRO (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv49STA_MARCH">STA_MARCH (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv413STA_MARCH_CAN">STA_MARCH_CAN (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv418STA_MARCH_CAN_COPY">STA_MARCH_CAN_COPY (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv414STA_MARCH_COPY">STA_MARCH_COPY (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv414STA_MARCH_MCAN">STA_MARCH_MCAN (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv419STA_MARCH_MCAN_COPY">STA_MARCH_MCAN_COPY (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv416STA_MCAN_RAM_ECC">STA_MCAN_RAM_ECC (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv410STA_OSC_CT">STA_OSC_CT (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv410STA_OSC_HR">STA_OSC_HR (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv412STA_TEST_END">STA_TEST_END (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv420STA_TEST_PIE_HANDLER">STA_TEST_PIE_HANDLER (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv416STA_TEST_PIE_RAM">STA_TEST_PIE_RAM (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv414STA_TEST_START">STA_TEST_START (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv421STA_Tests_cycleCounts">STA_Tests_cycleCounts (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#c.STA_TESTS_FAIL">STA_TESTS_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv428STA_Tests_injectErrorDisablev">STA_Tests_injectErrorDisable (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv427STA_Tests_injectErrorEnablev">STA_Tests_injectErrorEnable (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv417STA_TESTS_NUMBERS">STA_TESTS_NUMBERS (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#c.STA_TESTS_PASS">STA_TESTS_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv419STA_Tests_testArray">STA_Tests_testArray (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv420STA_Tests_testDevice14STA_TestsTypes">STA_Tests_testDevice (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv414STA_TestsTypes">STA_TestsTypes (C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_timer.html#_CPPv422STA_Timer_clearTimeOutv">STA_Timer_clearTimeOut (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_timer.html#_CPPv416STA_Timer_config8uint16_t">STA_Timer_config (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_timer.html#_CPPv420STA_Timer_isTimedOutv">STA_Timer_isTimedOut (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_timer.html#_CPPv417STA_Timer_restartv">STA_Timer_restart (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv426STA_User_canErrorReturnVal">STA_User_canErrorReturnVal (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv425STA_User_canInterruptFlag">STA_User_canInterruptFlag (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_CRC_DATA_SIZE">STA_USER_CRC_DATA_SIZE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv416STA_User_crcData">STA_User_crcData (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_GOLDEN_CRC">STA_USER_GOLDEN_CRC (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv418STA_User_initMarchv">STA_User_initMarch (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv424STA_User_initMCANRAMTestv">STA_User_initMCANRAMTest (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv422STA_User_initOSCHRTestv">STA_User_initOSCHRTest (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv426STA_User_initOSCTimer2Testv">STA_User_initOSCTimer2Test (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_CAN_SIZE">STA_USER_MARCH_CAN_SIZE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_CANA_OBJ15_END_ADDR">STA_USER_MARCH_CANA_OBJ15_END_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_CANA_OBJ32_START_ADDR">STA_USER_MARCH_CANA_OBJ32_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_CANA_OBJ4_END_ADDR">STA_USER_MARCH_CANA_OBJ4_END_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_CANA_OBJ6_START_ADDR">STA_USER_MARCH_CANA_OBJ6_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_COPY_SIZE">STA_USER_MARCH_COPY_SIZE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_DATA_SIZE">STA_USER_MARCH_DATA_SIZE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_MCAN_END_ADDR">STA_USER_MARCH_MCAN_END_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MARCH_MCAN_START_ADDR">STA_USER_MARCH_MCAN_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv425STA_User_marchErrorHandle">STA_User_marchErrorHandle (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv422STA_User_marchErrorObj">STA_User_marchErrorObj (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv422STA_User_marchTestData">STA_User_marchTestData (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv426STA_User_marchTestDataCopy">STA_User_marchTestDataCopy (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_EXT_ID_AND_MASK">STA_USER_MCAN_EXT_ID_AND_MASK (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_EXT_ID_FILT_START_ADDR">STA_USER_MCAN_EXT_ID_FILT_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_EXT_ID_FILTER_NUM">STA_USER_MCAN_EXT_ID_FILTER_NUM (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_FIFO_0_NUM">STA_USER_MCAN_FIFO_0_NUM (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_FIFO_0_START_ADDR">STA_USER_MCAN_FIFO_0_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_FIFO_1_NUM">STA_USER_MCAN_FIFO_1_NUM (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_FIFO_1_START_ADDR">STA_USER_MCAN_FIFO_1_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_MSG_INT">STA_USER_MCAN_MSG_INT (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_RX_BUFF_START_ADDR">STA_USER_MCAN_RX_BUFF_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_STD_ID_FILT_START_ADDR">STA_USER_MCAN_STD_ID_FILT_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_STD_ID_FILTER_NUM">STA_USER_MCAN_STD_ID_FILTER_NUM (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_TX_BUFF_SIZE">STA_USER_MCAN_TX_BUFF_SIZE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_TX_BUFF_START_ADDR">STA_USER_MCAN_TX_BUFF_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_TX_EVENT_SIZE">STA_USER_MCAN_TX_EVENT_SIZE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_MCAN_TX_EVENT_START_ADDR">STA_USER_MCAN_TX_EVENT_START_ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv425STA_User_mcanDEDReturnVal">STA_User_mcanDEDReturnVal (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv425STA_User_mcanSECReturnVal">STA_User_mcanSECReturnVal (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_OSC_DELAY_US">STA_USER_OSC_DELAY_US (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_OSC_HR_MEP">STA_USER_OSC_HR_MEP (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_OSC_HR_MEP_MAX">STA_USER_OSC_HR_MEP_MAX (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_OSC_HR_MEP_MIN">STA_USER_OSC_HR_MEP_MIN (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_OSC_MAX_COUNT">STA_USER_OSC_MAX_COUNT (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_OSC_MIN_COUNT">STA_USER_OSC_MIN_COUNT (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv420STA_User_oscHRHandle">STA_User_oscHRHandle (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv417STA_User_oscHRObj">STA_User_oscHRObj (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv424STA_User_oscTimer2Handle">STA_User_oscTimer2Handle (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv421STA_User_oscTimer2Obj">STA_User_oscTimer2Obj (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv424STA_User_parityErrorCode">STA_User_parityErrorCode (C++ member)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_PIE_RAM_ENTRY">STA_USER_PIE_RAM_ENTRY (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_PIE_TEST_INT">STA_USER_PIE_TEST_INT (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#c.STA_USER_PIE_TEST_INT_GROUP_M">STA_USER_PIE_TEST_INT_GROUP_M (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_user.html#_CPPv421STA_User_pieVectErrorv">STA_User_pieVectError (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_util.html#_CPPv423STA_Util_configProfiler8uint32_t">STA_Util_configProfiler (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_util.html#c.STA_UTIL_PROFILE">STA_UTIL_PROFILE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_util.html#_CPPv422STA_Util_startProfiler8uint32_t">STA_Util_startProfiler (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_util.html#_CPPv421STA_Util_stopProfiler8uint32_t">STA_Util_stopProfiler (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="sta/sta_tests.html#_CPPv412STA_VCRC_REG">STA_VCRC_REG (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#c.STL_CAN_RAM_ADDR_OFFSET">STL_CAN_RAM_ADDR_OFFSET (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#_CPPv428STL_CAN_RAM_checkErrorStatusK8uint32_t">STL_CAN_RAM_checkErrorStatus (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#c.STL_CAN_RAM_ERROR">STL_CAN_RAM_ERROR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#_CPPv423STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t">STL_CAN_RAM_injectError (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#c.STL_CAN_RAM_MAX_ADDR_OFFSET">STL_CAN_RAM_MAX_ADDR_OFFSET (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#c.STL_CAN_RAM_NO_COPY">STL_CAN_RAM_NO_COPY (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#c.STL_CAN_RAM_PARITY_OFF">STL_CAN_RAM_PARITY_OFF (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#c.STL_CAN_RAM_PASS">STL_CAN_RAM_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_can_ram.html#_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t">STL_CAN_RAM_testRAM (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#_CPPv429STL_CPU_REG_checkCPURegistersb">STL_CPU_REG_checkCPURegisters (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#_CPPv429STL_CPU_REG_checkFPURegistersb">STL_CPU_REG_checkFPURegisters (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#_CPPv430STL_CPU_REG_checkVCRCRegistersb">STL_CPU_REG_checkVCRCRegisters (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#c.STL_CPU_REG_FAIL">STL_CPU_REG_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#c.STL_CPU_REG_PASS">STL_CPU_REG_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#_CPPv428STL_CPU_REG_testCPURegistersb">STL_CPU_REG_testCPURegisters (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#_CPPv428STL_CPU_REG_testFPURegistersb">STL_CPU_REG_testFPURegisters (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_cpu_reg.html#_CPPv429STL_CPU_REG_testVCRCRegistersP8uint32_tb">STL_CPU_REG_testVCRCRegisters (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv417STL_CRC_calculateK14STL_CRC_Handle">STL_CRC_calculate (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv425STL_CRC_calculateLowBytesK14STL_CRC_Handle">STL_CRC_calculateLowBytes (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv416STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t">STL_CRC_checkCRC (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#c.STL_CRC_FAIL">STL_CRC_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv414STL_CRC_Handle">STL_CRC_Handle (C++ type)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#c.STL_CRC_INIT_CRC">STL_CRC_INIT_CRC (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv411STL_CRC_Obj">STL_CRC_Obj (C++ struct)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv414STL_CRC_Parity">STL_CRC_Parity (C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv419STL_CRC_PARITY_EVEN">STL_CRC_PARITY_EVEN (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#_CPPv418STL_CRC_PARITY_ODD">STL_CRC_PARITY_ODD (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_crc.html#c.STL_CRC_PASS">STL_CRC_PASS (C macro)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="library/stl_crc.html#_CPPv413STL_CRC_resetv">STL_CRC_reset (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv413STL_HWBIST_95">STL_HWBIST_95 (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv418STL_HWBIST_99_RUN1">STL_HWBIST_99_RUN1 (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv418STL_HWBIST_99_RUN2">STL_HWBIST_99_RUN2 (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_BIST_DONE">STL_HWBIST_BIST_DONE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_BIST_FAIL">STL_HWBIST_BIST_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_C28ADDR">STL_HWBIST_C28ADDR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_C28MAP">STL_HWBIST_C28MAP (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_C28OBJ">STL_HWBIST_C28OBJ (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv425STL_HWBIST_claimSemaphoreK15STL_HWBIST_Core">STL_HWBIST_claimSemaphore (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_CLRC_OVM">STL_HWBIST_CLRC_OVM (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_CLRC_PAGE0">STL_HWBIST_CLRC_PAGE0 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv415STL_HWBIST_Core">STL_HWBIST_Core (C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv419STL_HWBIST_Coverage">STL_HWBIST_Coverage (C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv416STL_HWBIST_CPU01">STL_HWBIST_CPU01 (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv416STL_HWBIST_CPU02">STL_HWBIST_CPU02 (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv416STL_HWBIST_Error">STL_HWBIST_Error (C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv424STL_HWBIST_FINAL_COMPARE">STL_HWBIST_FINAL_COMPARE (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv415STL_HWBIST_initK19STL_HWBIST_Coverage">STL_HWBIST_init (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv422STL_HWBIST_injectErrorK16STL_HWBIST_Error">STL_HWBIST_injectError (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_INT_COMP_FAIL">STL_HWBIST_INT_COMP_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_LCR_HANDLE_RESET_FXN">STL_HWBIST_LCR_HANDLE_RESET_FXN (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv422STL_HWBIST_LOGIC_FAULT">STL_HWBIST_LOGIC_FAULT (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_MACRO_DONE">STL_HWBIST_MACRO_DONE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_MICRO_LIMIT_95">STL_HWBIST_MICRO_LIMIT_95 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_MICRO_LIMIT_99">STL_HWBIST_MICRO_LIMIT_99 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_MICRO_LIMIT_99_RUN1">STL_HWBIST_MICRO_LIMIT_99_RUN1 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_MICRO_LIMIT_99_RUN2">STL_HWBIST_MICRO_LIMIT_99_RUN2 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_MOV_SP_STACK">STL_HWBIST_MOV_SP_STACK (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_MOVW_DP_0">STL_HWBIST_MOVW_DP_0 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_NMI">STL_HWBIST_NMI (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv419STL_HWBIST_NMI_TRAP">STL_HWBIST_NMI_TRAP (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv419STL_HWBIST_NO_ERROR">STL_HWBIST_NO_ERROR (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_OVERRUN_FAIL">STL_HWBIST_OVERRUN_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_REF_HANDLE_RESET_FXN">STL_HWBIST_REF_HANDLE_RESET_FXN (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_REF_STACK">STL_HWBIST_REF_STACK (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv427STL_HWBIST_releaseSemaphorev">STL_HWBIST_releaseSemaphore (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv425STL_HWBIST_restoreContextv">STL_HWBIST_restoreContext (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv418STL_HWBIST_runFullK16STL_HWBIST_Error">STL_HWBIST_runFull (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv419STL_HWBIST_runMicrov">STL_HWBIST_runMicro (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_SPM_0">STL_HWBIST_SPM_0 (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#_CPPv418STL_HWBIST_TIMEOUT">STL_HWBIST_TIMEOUT (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_hwbist.html#c.STL_HWBIST_TO_FAIL">STL_HWBIST_TO_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#c.STL_MARCH_BOTH_ERROR">STL_MARCH_BOTH_ERROR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv426STL_March_checkErrorStatusv">STL_March_checkErrorStatus (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#c.STL_MARCH_CORR_ERROR">STL_MARCH_CORR_ERROR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv421STL_March_injectErrorK27STL_March_InjectErrorHandle">STL_March_injectError (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv427STL_March_InjectErrorHandle">STL_March_InjectErrorHandle (C++ type)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv424STL_March_InjectErrorObj">STL_March_InjectErrorObj (C++ struct)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#c.STL_MARCH_PASS">STL_MARCH_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv417STL_March_Pattern">STL_March_Pattern (C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv422STL_MARCH_PATTERN_FOUR">STL_MARCH_PATTERN_FOUR (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv421STL_MARCH_PATTERN_ONE">STL_MARCH_PATTERN_ONE (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv423STL_MARCH_PATTERN_THREE">STL_MARCH_PATTERN_THREE (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv421STL_MARCH_PATTERN_TWO">STL_MARCH_PATTERN_TWO (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv417STL_March_testRAMK17STL_March_PatternK8uint32_tK8uint32_t">STL_March_testRAM (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#_CPPv421STL_March_testRAMCopyK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t">STL_March_testRAMCopy (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_march.html#c.STL_MARCH_UNC_ERROR">STL_MARCH_UNC_ERROR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_mcan_ram.html#_CPPv429STL_MCAN_RAM_checkErrorStatusK8uint32_tP17MCAN_ECCErrStatus">STL_MCAN_RAM_checkErrorStatus (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_mcan_ram.html#c.STL_MCAN_RAM_ERROR">STL_MCAN_RAM_ERROR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_mcan_ram.html#_CPPv424STL_MCAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t">STL_MCAN_RAM_injectError (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_mcan_ram.html#c.STL_MCAN_RAM_MAX_ADDR_OFFSET">STL_MCAN_RAM_MAX_ADDR_OFFSET (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_mcan_ram.html#c.STL_MCAN_RAM_NO_COPY">STL_MCAN_RAM_NO_COPY (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_mcan_ram.html#c.STL_MCAN_RAM_PASS">STL_MCAN_RAM_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_mcan_ram.html#_CPPv420STL_MCAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t">STL_MCAN_RAM_testRAM (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_ct.html#c.STL_OSC_CT_FAIL">STL_OSC_CT_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_ct.html#_CPPv417STL_OSC_CT_Handle">STL_OSC_CT_Handle (C++ type)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_ct.html#_CPPv414STL_OSC_CT_Obj">STL_OSC_CT_Obj (C++ struct)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_ct.html#c.STL_OSC_CT_PASS">STL_OSC_CT_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_ct.html#c.STL_OSC_CT_PERIOD">STL_OSC_CT_PERIOD (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_ct.html#_CPPv420STL_OSC_CT_startTestK17STL_OSC_CT_Handle">STL_OSC_CT_startTest (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_ct.html#_CPPv419STL_OSC_CT_stopTestK17STL_OSC_CT_Handle">STL_OSC_CT_stopTest (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#c.STL_OSC_HR_FAIL">STL_OSC_HR_FAIL (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#_CPPv417STL_OSC_HR_Handle">STL_OSC_HR_Handle (C++ type)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#_CPPv414STL_OSC_HR_Obj">STL_OSC_HR_Obj (C++ struct)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#c.STL_OSC_HR_PASS">STL_OSC_HR_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#c.STL_OSC_HR_SFO_COMPLETE">STL_OSC_HR_SFO_COMPLETE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#c.STL_OSC_HR_SFO_ERROR">STL_OSC_HR_SFO_ERROR (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#c.STL_OSC_HR_SFO_INCOMPLETE">STL_OSC_HR_SFO_INCOMPLETE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_osc_hr.html#_CPPv418STL_OSC_HR_testSFOK17STL_OSC_HR_Handle">STL_OSC_HR_testSFO (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#_CPPv425STL_PIE_RAM_configHandlerPKv">STL_PIE_RAM_configHandler (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_FAIL_HANDLER">STL_PIE_RAM_FAIL_HANDLER (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#_CPPv419STL_PIE_RAM_handlerv">STL_PIE_RAM_handler (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#_CPPv423STL_PIE_RAM_injectFaultK8uint16_t">STL_PIE_RAM_injectFault (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_MAX_INDEX">STL_PIE_RAM_MAX_INDEX (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_MIN_INDEX">STL_PIE_RAM_MIN_INDEX (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_PASS">STL_PIE_RAM_PASS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_REDUNDANT_PIE_ADDRESS">STL_PIE_RAM_REDUNDANT_PIE_ADDRESS (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#_CPPv424STL_PIE_RAM_restoreTablePK8uint32_t">STL_PIE_RAM_restoreTable (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#_CPPv425STL_PIE_RAM_restoreVectorK8uint16_t">STL_PIE_RAM_restoreVector (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_TABLE_COL_M">STL_PIE_RAM_TABLE_COL_M (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_TABLE_COL_S">STL_PIE_RAM_TABLE_COL_S (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_TABLE_ROW_M">STL_PIE_RAM_TABLE_ROW_M (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#_CPPv423STL_PIE_RAM_testHandlerK8uint32_t">STL_PIE_RAM_testHandler (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#_CPPv419STL_PIE_RAM_testRAMv">STL_PIE_RAM_testRAM (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_VECT_ID_M">STL_PIE_RAM_VECT_ID_M (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_pie_ram.html#c.STL_PIE_RAM_VECT_ID_S">STL_PIE_RAM_VECT_ID_S (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv419STL_UTIL_ALL_ERRORS">STL_UTIL_ALL_ERRORS (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv423STL_UTIL_CAN_RAM_PARITY">STL_UTIL_CAN_RAM_PARITY (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv423STL_Util_clearErrorFlagK18STL_Util_ErrorFlag">STL_Util_clearErrorFlag (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#c.STL_UTIL_CPU_RATE">STL_UTIL_CPU_RATE (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv416STL_UTIL_CPU_REG">STL_UTIL_CPU_REG (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv412STL_UTIL_CRC">STL_UTIL_CRC (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv416STL_Util_delayUS8uint32_t">STL_Util_delayUS (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv418STL_Util_ErrorFlag">STL_Util_ErrorFlag (C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv416STL_UTIL_FPU_REG">STL_UTIL_FPU_REG (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv421STL_Util_getErrorFlagv">STL_Util_getErrorFlag (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv420STL_UTIL_HWBIST_FAIL">STL_UTIL_HWBIST_FAIL (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv423STL_UTIL_HWBIST_NMI_INT">STL_UTIL_HWBIST_NMI_INT (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv424STL_UTIL_HWBIST_NMI_TEST">STL_UTIL_HWBIST_NMI_TEST (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv423STL_UTIL_HWBIST_OVERRUN">STL_UTIL_HWBIST_OVERRUN (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv414STL_UTIL_MARCH">STL_UTIL_MARCH (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv421STL_UTIL_MCAN_RAM_ECC">STL_UTIL_MCAN_RAM_ECC (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv421STL_UTIL_OSC_HR_DELAY">STL_UTIL_OSC_HR_DELAY (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv425STL_UTIL_OSC_HR_MEP_RANGE">STL_UTIL_OSC_HR_MEP_RANGE (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv419STL_UTIL_OSC_HR_SFO">STL_UTIL_OSC_HR_SFO (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv419STL_UTIL_OSC_TIMER2">STL_UTIL_OSC_TIMER2 (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv420STL_UTIL_PIE_RAM_INT">STL_UTIL_PIE_RAM_INT (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv425STL_UTIL_PIE_RAM_MISMATCH">STL_UTIL_PIE_RAM_MISMATCH (C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#c.STL_UTIL_PIEVECTTABLE_NMI">STL_UTIL_PIEVECTTABLE_NMI (C macro)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv421STL_Util_setErrorFlagK18STL_Util_ErrorFlag">STL_Util_setErrorFlag (C++ function)</a>
|
||||
</li>
|
||||
<li><a href="library/stl_util.html#_CPPv417STL_UTIL_VCRC_REG">STL_UTIL_VCRC_REG (C++ enumerator)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,284 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Texas Instruments F2838x Software Diagnostic Library — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="#"/>
|
||||
<link rel="next" title="Introduction" href="intro.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="#" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="#">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="#" class="icon icon-home"></a> »</li>
|
||||
<li>Texas Instruments F2838x Software Diagnostic Library</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="texas-instruments-f2838x-software-diagnostic-library">
|
||||
<span id="f2838x-sdl-guide"></span><h1>Texas Instruments F2838x Software Diagnostic Library<a class="headerlink" href="#texas-instruments-f2838x-software-diagnostic-library" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="intro.html#terms-and-abbreviations">Terms and Abbreviations</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="intro.html#references">References</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Software Diagnostic Library</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="library/index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="library/index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="library/index.html#library-modules">Library Modules</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta/index.html">Self-Test Application</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sta/index.html#getting-started">Getting Started</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sta/index.html#example-behavior">Example Behavior</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="sta/index.html#sta-utility-functions">STA Utility Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Safety Feature and Diagnostic Examples</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="examples/sdl_ex_dcsm_ffi.html">Using DCSM for Freedom From Interference (FFI)</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="examples/sdl_ex_flash_ecc_test.html">Test of ECC logic in Flash</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="examples/sdl_ex_flash_prefetch_test.html">Test of Flash Prefetch, Data Cache, and Wait-States</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="examples/sdl_ex_mcd_test.html">Missing clock detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="examples/sdl_ex_ram_access_protect.html">RAM access protection violation detection</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="examples/sdl_ex_ram_ecc_parity_test.html">Test of parity/ECC logic in SRAM</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="examples/sdl_ex_watchdog.html">Software test of watchdog operation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="profiling.html">Integration Notes</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="profiling.html#cycle-time">Cycle Time</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="profiling.html#memory-usage">Memory Usage</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="intro.html" class="btn btn-neutral float-right" title="Introduction" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,379 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Introduction — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="index.html"/>
|
||||
<link rel="next" title="Software Diagnostic Library" href="library/index.html"/>
|
||||
<link rel="prev" title="Texas Instruments F2838x Software Diagnostic Library" href="index.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Introduction</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#terms-and-abbreviations">Terms and Abbreviations</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#references">References</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Introduction</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="introduction">
|
||||
<span id="intro"></span><h1>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h1>
|
||||
<p>This is a release of the C2000™ Software Diagnostic
|
||||
Library for F2838x devices. The Diagnostic Library is a collection of
|
||||
self-test libraries (STL) and examples. This document will provide an overview
|
||||
of the Software Diagnostic Library (SDL) and its functions.</p>
|
||||
<p>Manufacturers of end equipments must take steps to ensure safe and reliable
|
||||
operation of their products in order to meet specific industry safety standards.
|
||||
Specific safety measures and diagnostic tests are recommended or required in
|
||||
order to meet each particular safety standard. The SDL is designed to enable
|
||||
customers to more efficiently and effectively work to meet such safety standards
|
||||
by their systems.</p>
|
||||
<p><strong>Note that the SDL has not itself undergone any third-party
|
||||
assessment or certification to a particular standard.</strong> It is intended to provide
|
||||
reference implementations of diagnostics and usage examples of hardware
|
||||
diagnostic features. The system integrator should consider which safety
|
||||
mechanisms are required by the standard they are targeting and whether the SDL
|
||||
will aid in achieving those safety mechanisms.</p>
|
||||
<p>Considerations for integrating the SDL should include but are not limited to:</p>
|
||||
<ul class="simple">
|
||||
<li><p>the safety mechanism as such</p></li>
|
||||
<li><p>the targeted faults of the diagnostic test</p></li>
|
||||
<li><p>the API definitions (parameters, functionality, return values)</p></li>
|
||||
<li><p>the global error flags which could be set on a detected fault</p></li>
|
||||
<li><p>the error injection techniques available</p></li>
|
||||
<li><p>the memory requirements of the software components</p></li>
|
||||
<li><p>the time or cycle requirements for the diagnostic test</p></li>
|
||||
<li><p>the effect of the diagnostic test on the state of the peripheral and/or system</p></li>
|
||||
<li><p>the interrupt service routines used in the SDL</p></li>
|
||||
</ul>
|
||||
<p>The source code of the SDL is provided to enable the system integrator to modify
|
||||
and test the software components as desired. For instance, a subset of SDL
|
||||
components utilize their own interrupt service routines. It may be desirable
|
||||
to integrate the functionality of the SDL ISRs into the system ISRs. In this
|
||||
case, the same ISR could be used to serve the purpose of the system as well as
|
||||
the diagnostic test.</p>
|
||||
<div class="section" id="terms-and-abbreviations">
|
||||
<h2>Terms and Abbreviations<a class="headerlink" href="#terms-and-abbreviations" title="Permalink to this headline">¶</a></h2>
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col style="width: 19%" />
|
||||
<col style="width: 81%" />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="row-odd"><td><p>API</p></td>
|
||||
<td><p>Application Programming Interface</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>C2000Ware</p></td>
|
||||
<td><p>A cohesive set of development software and documentation designed to
|
||||
minimize software development time. From device-specific drivers and
|
||||
libraries to device peripheral examples, C2000Ware provides a solid
|
||||
foundation to begin development and evaluation of your product.</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>C28x Driverlib</p></td>
|
||||
<td><p>A set of header files describing the hardware and a set of drivers that
|
||||
use those header files to access the peripherals. The Driverlib and its
|
||||
examples are intended to be used with Code Composer Studio and TI’s
|
||||
C2000 C Compiler. They will be delivered within C2000Ware.</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>CCS</p></td>
|
||||
<td><p>Code Composer Studio</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>PEST</p></td>
|
||||
<td><p>Periodic Self-Test</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>POST</p></td>
|
||||
<td><p>Power-On Self-Test</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>SDL</p></td>
|
||||
<td><p>Software Diagnostic Library</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>SFO</p></td>
|
||||
<td><p>Scale Factor Optimization</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>SM</p></td>
|
||||
<td><p>Safety Mechanisms</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STA</p></td>
|
||||
<td><p>Self-Test Application</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL</p></td>
|
||||
<td><p>Self-Test Library</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>SW</p></td>
|
||||
<td><p>Software</p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="section" id="references">
|
||||
<h2>References<a class="headerlink" href="#references" title="Permalink to this headline">¶</a></h2>
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col style="width: 49%" />
|
||||
<col style="width: 51%" />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="row-odd"><td><p><a class="reference external" href="https://www.ti.com/lit/pdf/sprsp14">SPRSP14</a></p></td>
|
||||
<td><p>TMS320F2838x Real-Time Microcontrollers With Connectivity
|
||||
Manager datasheet</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p><a class="reference external" href="https://www.ti.com/lit/pdf/sprz458">SPRZ458</a></p></td>
|
||||
<td><p>TMS320F2838x Real-Time MCUs Silicon Errata</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p><a class="reference external" href="https://www.ti.com/lit/pdf/SPRUII0">SPRUII0</a></p></td>
|
||||
<td><p>TMS320F2838x Real-Time Microcontrollers With Connectivity
|
||||
Manager Technical Reference Manual</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p><a class="reference external" href="https://www.ti.com/lit/pdf/spraca7">SPRACA7</a></p></td>
|
||||
<td><p>C2000™ Hardware Built-In Self-Test</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p><a class="reference external" href="https://www.ti.com/lit/pdf/sffs022">SFFS022</a></p></td>
|
||||
<td><p>Safety Manual for TMS320F2838x</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p><a class="reference external" href="https://www.ti.com/tool/safeti_cqkit">SAFETI_CQKIT</a></p></td>
|
||||
<td><p>SafeTI™ Compiler Qualification Kit</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p><a class="reference external" href="https://www.ti.com/lit/pdf/swab013">SWAB013</a></p></td>
|
||||
<td><p>Industrial Functional Safety for C2000™ Real-Time
|
||||
Microcontrollers</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p><a class="reference external" href="https://www.ti.com/lit/pdf/swab014">SWAB014</a></p></td>
|
||||
<td><p>Automotive Functional Safety for C2000™ Real-Time
|
||||
Microcontrollers</p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="index.html" class="btn btn-neutral float-left" title="Texas Instruments F2838x Software Diagnostic Library" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="library/index.html" class="btn btn-neutral float-right" title="Software Diagnostic Library" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,428 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Software Diagnostic Library — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="next" title="CAN Message RAM API Functions" href="stl_can_ram.html"/>
|
||||
<link rel="prev" title="Introduction" href="../intro.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Software Diagnostic Library</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#overview-of-the-library">Overview of the Library</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#error-reporting">Error Reporting</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#library-files">Library Files</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#using-the-library">Using the Library</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#library-build-options">Library Build Options</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#rebuilding-the-library">Rebuilding the Library</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#library-modules">Library Modules</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Software Diagnostic Library</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="software-diagnostic-library">
|
||||
<span id="library"></span><h1>Software Diagnostic Library<a class="headerlink" href="#software-diagnostic-library" title="Permalink to this headline">¶</a></h1>
|
||||
<p>Current and future C2000™ microcontrollers are designed with integrated
|
||||
features that can be used in safety-critical systems. Manufacturers
|
||||
of end equipment must take steps to ensure safe and reliable operation of their
|
||||
systems in order to meet the relevant standards.</p>
|
||||
<p>Hardware features such as write-protected registers and supervisory circuits
|
||||
have all been integrated in C2000 MCUs. These features, leveraged to the
|
||||
diagnostic test and safety mechanism requirements of the targeted safety
|
||||
standard, make compliance in the electronic segment of the tests more easily
|
||||
achievable.</p>
|
||||
<p>The C2000™ Software Diagnostic Library is a collection of optimized
|
||||
independent test functions for C2000 MCUs. The library includes C-callable
|
||||
optimized test functions that return the status of the test performed.
|
||||
In case of a failure returned signifying a detected fault, it is up
|
||||
to the user application to determine the appropriate action to take.</p>
|
||||
<p>The SDL consists of individual functions that are called and managed by the
|
||||
user’s application software. Each function is designed with a specific task to
|
||||
verify functionality of a device component using a specific safety mechanism
|
||||
consistent with safety standards with minimal impact on the real-time control
|
||||
performance of the target MCU. STL functions are provided to support POST,
|
||||
PEST, or both.</p>
|
||||
<p>In addition to the library modules, the SDL also contains examples to
|
||||
demonstrate the use of the library and the configuration of hardware diagnostic
|
||||
features.</p>
|
||||
<div class="section" id="overview-of-the-library">
|
||||
<h2>Overview of the Library<a class="headerlink" href="#overview-of-the-library" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The following subsections briefly list and describe the error reporting
|
||||
mechanisms, contents, and coverage of the diagnostic library.
|
||||
The library is delivered with several example CCS projects. The
|
||||
<em>test_application</em> demonstrates the use of all the library modules. See
|
||||
the Self-Test Application section of this document for more details on the
|
||||
example.</p>
|
||||
<div class="figure align-center" id="id1">
|
||||
<a class="reference internal image-reference" href="../_images/directory.jpg"><img alt="../_images/directory.jpg" src="../_images/directory.jpg" style="width: 211.0px; height: 240.0px;" /></a>
|
||||
<p class="caption"><span class="caption-number">Fig. 1 </span><span class="caption-text">Directory Structure</span><a class="headerlink" href="#id1" title="Permalink to this image">¶</a></p>
|
||||
</div>
|
||||
<div class="section" id="error-reporting">
|
||||
<h3>Error Reporting<a class="headerlink" href="#error-reporting" title="Permalink to this headline">¶</a></h3>
|
||||
<p>All the API functions in the diagnostic library return the status of the test.
|
||||
If the test fails, the functions set a unique error code to a 32-bit global
|
||||
variable, <strong>STL_Util_globalErrorFlags</strong>. All codes are defined in stl_util.h and
|
||||
start with <strong>STL_UTIL_</strong> followed by a representation of the test. For example,
|
||||
<strong>STL_UTIL_OSC_TIMER2</strong> represents the error code the oscillator frequency test.</p>
|
||||
</div>
|
||||
<div class="section" id="library-files">
|
||||
<h3>Library Files<a class="headerlink" href="#library-files" title="Permalink to this headline">¶</a></h3>
|
||||
<p>The diagnostic library consists of the following files. All source files with a
|
||||
.c and .asm extension have an associated header file that contains function
|
||||
prototypes and data structures. For example for stl_osc_ct.c there is an
|
||||
associated stl_osc_ct.h file that declares the function prototypes, data
|
||||
types, and #defines.</p>
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col style="width: 25%" />
|
||||
<col style="width: 75%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="row-odd"><th class="head"><p>File Name</p></th>
|
||||
<th class="head"><p>Source Description</p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p>stl_can_ram.c</p></td>
|
||||
<td><p>CAN Message RAM March and parity logic test</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>stl_cpu_reg.asm</p></td>
|
||||
<td><p>C-callable assembly test of CPU, FPU, VCRC registers</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>stl_crc.c</p></td>
|
||||
<td><p>CRC code for E2E communications and memory tests</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>stl_crc_s.asm</p></td>
|
||||
<td><p>C-callable assembly CRC code</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>stl_march.c</p></td>
|
||||
<td><p>March test</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>stl_march_s.asm</p></td>
|
||||
<td><p>C-callable assembly for March test</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>stl_hwbist.c</p></td>
|
||||
<td><p>Hardware Built-In Self-Test (HWBIST)</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>stl_hwbist_s.asm</p></td>
|
||||
<td><p>C-callable assembly HWBIST</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>stl_mcan_ram.c</p></td>
|
||||
<td><p>MCAN RAM March and ECC logic test</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>stl_osc_ct.c</p></td>
|
||||
<td><p>Internal OSC Frequency test</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>stl_osc_hr.c</p></td>
|
||||
<td><p>High Resolution OSC (HRPWM) Frequency test</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>stl_pie_ram.c</p></td>
|
||||
<td><p>PIE RAM Redundancy test</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>stl_util.c</p></td>
|
||||
<td><p>Utility functions, primarily for managing error flags</p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="using-the-library">
|
||||
<h2>Using the Library<a class="headerlink" href="#using-the-library" title="Permalink to this headline">¶</a></h2>
|
||||
<p>This section describes all the necessary steps that are required to rebuild and
|
||||
use the library in an application.</p>
|
||||
<div class="section" id="library-build-options">
|
||||
<h3>Library Build Options<a class="headerlink" href="#library-build-options" title="Permalink to this headline">¶</a></h3>
|
||||
<p>The current version of the library was built with CCSv12 using C28x Codegen
|
||||
Tools 22.6.1.LTS with the following options:</p>
|
||||
<ul class="simple">
|
||||
<li><p>-v28</p></li>
|
||||
<li><p>-ml</p></li>
|
||||
<li><p>-mt</p></li>
|
||||
<li><p>–vcu_support=vcrc</p></li>
|
||||
<li><p>–float_support=fpu64</p></li>
|
||||
<li><p>–tmu_support=tmu0</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="rebuilding-the-library">
|
||||
<h3>Rebuilding the Library<a class="headerlink" href="#rebuilding-the-library" title="Permalink to this headline">¶</a></h3>
|
||||
<p>The diagnostic safety library ships with the original CCS projectspec file that
|
||||
was used to build the library. This project can be used as a template to modify
|
||||
and rebuild the library.</p>
|
||||
<ol class="arabic simple">
|
||||
<li><p>Create a new workspace.</p></li>
|
||||
<li><p>Import the projectspec file found in the <em>ccs</em> folder</p></li>
|
||||
<li><p>Make the required changes.</p></li>
|
||||
<li><p>Right click project and select Build Configurations -> Clean All and when
|
||||
that completes Build Configurations -> Build All.</p></li>
|
||||
<li><p>The new library will be placed in the <em>lib</em> folder.</p></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="library-modules">
|
||||
<h2>Library Modules<a class="headerlink" href="#library-modules" title="Permalink to this headline">¶</a></h2>
|
||||
<p>This section provides an API reference guide for the SDL modules.</p>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../intro.html" class="btn btn-neutral float-left" title="Introduction" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_can_ram.html" class="btn btn-neutral float-right" title="CAN Message RAM API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,397 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>CAN Message RAM API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="CPU Registers Test API Functions" href="stl_cpu_reg.html"/>
|
||||
<link rel="prev" title="Software Diagnostic Library" href="index.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">CAN Message RAM API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>CAN Message RAM API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="can-message-ram-api-functions">
|
||||
<span id="stl-can-ram"></span><h1>CAN Message RAM API Functions<a class="headerlink" href="#can-message-ram-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_can_ram.c</span></code>
|
||||
with <code class="docutils literal notranslate"><span class="pre">include/stl_can_ram.h</span></code> containing the API declarations
|
||||
for use by applications.</p>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>To inject errors to be detected with the <strong>STL_CAN_RAM_testRAM()</strong> and
|
||||
<strong>STL_CAN_RAM_checkErrorStatus()</strong> functions, call <strong>STL_CAN_RAM_injectError()</strong> with
|
||||
an <em>xorMask</em> value that will cause errors. Note that when running the test
|
||||
in “NO_COPY” mode, any injected errors will be overwritten by the first
|
||||
pattern written to the RAM location since this triggers a recalculation of the parity.</p>
|
||||
</div>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__can__ram"></span><em>group</em> <code class="sig-name descname">stl_can_ram</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CAN_RAM_PASS">
|
||||
<span class="target" id="group__stl__can__ram_1gad64987788c1dd4da921ff20d9bc0c3d6"></span><code class="sig-name descname">STL_CAN_RAM_PASS</code> 0U<a class="headerlink" href="#c.STL_CAN_RAM_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CAN_RAM_ERROR">
|
||||
<span class="target" id="group__stl__can__ram_1gaa6c29ed0b7445c7d17bc9c16251b6666"></span><code class="sig-name descname">STL_CAN_RAM_ERROR</code> 1U<a class="headerlink" href="#c.STL_CAN_RAM_ERROR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CAN_RAM_ADDR_OFFSET">
|
||||
<span class="target" id="group__stl__can__ram_1ga1231e3a3b1f9d0cb358581180342faf2"></span><code class="sig-name descname">STL_CAN_RAM_ADDR_OFFSET</code> 0x1000U<a class="headerlink" href="#c.STL_CAN_RAM_ADDR_OFFSET" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CAN_RAM_MAX_ADDR_OFFSET">
|
||||
<span class="target" id="group__stl__can__ram_1ga6d6ddbb80596e3b329f56d3674ccf319"></span><code class="sig-name descname">STL_CAN_RAM_MAX_ADDR_OFFSET</code> 0x13F1U<a class="headerlink" href="#c.STL_CAN_RAM_MAX_ADDR_OFFSET" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CAN_RAM_PARITY_OFF">
|
||||
<span class="target" id="group__stl__can__ram_1ga579b1ce84edf96fe901459b96f9a1965"></span><code class="sig-name descname">STL_CAN_RAM_PARITY_OFF</code> (5U << CAN_CTL_PMD_S)<a class="headerlink" href="#c.STL_CAN_RAM_PARITY_OFF" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CAN_RAM_NO_COPY">
|
||||
<span class="target" id="group__stl__can__ram_1ga76de364f70a5ef17344f3c847f392af1"></span><code class="sig-name descname">STL_CAN_RAM_NO_COPY</code> 0xFFFFFFFFU<a class="headerlink" href="#c.STL_CAN_RAM_NO_COPY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Value to indicate to <a class="reference internal" href="#group__stl__can__ram_1ga55ba883f4fbc554467e659d5e600316c"><span class="std std-ref">STL_CAN_RAM_testRAM()</span></a> through the <strong>copyAddress</strong> parameter that the test should run a destructive test on the region of CAN message RAM without saving and restoring its contents. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t">
|
||||
<span id="_CPPv319STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"></span><span id="_CPPv219STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"></span><span id="STL_CAN_RAM_testRAM__uint32_tC.STL_March_PatternC.uint32_tC.uint32_tC.uint32_tC"></span><span class="target" id="group__stl__can__ram_1ga55ba883f4fbc554467e659d5e600316c"></span>void <code class="sig-name descname">STL_CAN_RAM_testRAM</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>canBase</em>, <em class="property">const</em> <a class="reference internal" href="stl_march.html#_CPPv417STL_March_Pattern" title="STL_March_Pattern">STL_March_Pattern</a> <em>pattern</em>, <em class="property">const</em> uint32_t <em>startAddress</em>, <em class="property">const</em> uint32_t <em>endAddress</em>, <em class="property">const</em> uint32_t <em>copyAddress</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Performs a March13N memory test on the specified range of CAN message RAM objects. </p>
|
||||
<p><p>This function performs a March13N memory test on the range of CAN message RAM objects specified by </p>
|
||||
<strong>canBase</strong>, <strong>startAddress</strong> and <strong>endAddress</strong>. The test can save and restore the original contents of the message RAM by passing an address to a back up buffer through the <strong>copyAddress</strong> parameter. The test will copy the original contents of the memory to <strong>copyAddress</strong>, perform the memory test, and then copy the original contents back to the memory under test. To skip the save and restore, use a value of <strong>STL_CAN_RAM_NO_COPY</strong> for the <strong>copyAddress</strong> and a destructive test will be performed instead.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">canBase</span></code>: is the base address of the CAN controller. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">pattern</span></code>: is the test pattern to use. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">startAddress</span></code>: is the starting address (inclusive) of the CAN message RAM range to test. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">endAddress</span></code>: is the end address (inclusive) of the CAN message RAM range to test. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">copyAddress</span></code>: is the address to copy the original contents of the memory under test. It will be used to restore the original memory at the end of the March13N memory test. If no save and restore is required, use a value of <strong>STL_CAN_RAM_NO_COPY</strong>.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The test patterns and the March13N memory test algorithm provided test the memory for stuck-at-faults. The parity bits will show if any were detected. Use <a class="reference internal" href="#group__stl__can__ram_1ga5044c429894ecd3759b20c5e40585427"><span class="std std-ref">STL_CAN_RAM_checkErrorStatus()</span></a> to read the parity status.</p>
|
||||
<p><dl>
|
||||
<dt><strong>Note</strong></dt><dd><p>Note to take care calculating the size of memory needed for <strong>copyAddress</strong>. The March13N function is not specific to the CAN message RAM and does not take the byte addressability of the memory into account. Use a buffer twice the size of the actual message RAM region you are testing.</p>
|
||||
<p>The STL_March functions called by this test disable global CPU interrupts (DINT) and then re-enable them after the test has completed.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t">
|
||||
<span id="_CPPv323STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t"></span><span id="_CPPv223STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t"></span><span id="STL_CAN_RAM_injectError__uint32_tC.uint32_tC.uint32_tC"></span><span class="target" id="group__stl__can__ram_1ga8287926fbff23877d30164710fbf5c1e"></span>void <code class="sig-name descname">STL_CAN_RAM_injectError</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>canBase</em>, <em class="property">const</em> uint32_t <em>address</em>, <em class="property">const</em> uint32_t <em>xorMask</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Injects an error into a CAN message RAM address. </p>
|
||||
<p><p>This function injects an error at a specific memory </p>
|
||||
<strong>address</strong>. <strong>xorMask</strong> specifies which bit to flip in order to corrupt the data or parity bits.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">canBase</span></code>: is the base address of the CAN controller. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">address</span></code>: is the address of the word in the message RAM where the error will be injected. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">xorMask</span></code>: mask of the bit to flip in <strong>address</strong>.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv428STL_CAN_RAM_checkErrorStatusK8uint32_t">
|
||||
<span id="_CPPv328STL_CAN_RAM_checkErrorStatusK8uint32_t"></span><span id="_CPPv228STL_CAN_RAM_checkErrorStatusK8uint32_t"></span><span id="STL_CAN_RAM_checkErrorStatus__uint32_tC"></span><span class="target" id="group__stl__can__ram_1ga5044c429894ecd3759b20c5e40585427"></span>uint16_t <code class="sig-name descname">STL_CAN_RAM_checkErrorStatus</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>canBase</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv428STL_CAN_RAM_checkErrorStatusK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the status of the CAN message RAM parity error detected bit. </p>
|
||||
<p><p>This function checks if any parity errors have been detected by the CAN message RAM parity logic.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">canBase</span></code>: is the base address of the CAN controller.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>If the CAN error status register indicates a parity error the function returns <strong>STL_CAN_RAM_ERROR</strong>. Otherwise, the function returns <strong>STL_CAN_RAM_PASS</strong>.</p>
|
||||
</dd>
|
||||
<dt><strong>Note</strong></dt><dd><p>Several bits in the CAN error status register (CAN_ES) are cleared on a CPU read of the register which this function performs. If the potential clearing of these bits (see device Technical Reference Manual for details) is undesired behavior for your application, use different means of reading the status. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="index.html" class="btn btn-neutral float-left" title="Software Diagnostic Library" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_cpu_reg.html" class="btn btn-neutral float-right" title="CPU Registers Test API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,904 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>CPU Registers Test API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="CRC API Functions" href="stl_crc.html"/>
|
||||
<link rel="prev" title="CAN Message RAM API Functions" href="stl_can_ram.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">CPU Registers Test API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#pseudocode">Pseudocode</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>CPU Registers Test API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="cpu-registers-test-api-functions">
|
||||
<span id="stl-cpu-reg"></span><h1>CPU Registers Test API Functions<a class="headerlink" href="#cpu-registers-test-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_cpu_reg_s.asm</span></code>
|
||||
with <code class="docutils literal notranslate"><span class="pre">include/stl_cpu_reg.h</span></code> containing the API declarations
|
||||
for use by applications.</p>
|
||||
<p>Note that these tests only check the core registers for stuck bits. If your
|
||||
application requires a much more complete CPU test, see STL_HWBIST instead.</p>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The functions in this module all have an <em>injectError</em> parameter that when
|
||||
set to true, will overwrite an incorrect test pattern to a register
|
||||
instead of the expected pattern in order to generate a failure.</p>
|
||||
<p>The CCS Registers view can also be used to inject errors in nearly any of these
|
||||
registers while debugging. Place a breakpoint in the assembly function on the
|
||||
line after the test pattern is written to the register but before the comparison
|
||||
is done. Find that register in the “Core Registers” section of the Registers view
|
||||
and flip a bit. Resume the application and confirm that the function return
|
||||
value indicates an error was detected.</p>
|
||||
</div>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__cpu__reg"></span><em>group</em> <code class="sig-name descname">stl_cpu_reg</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CPU_REG_PASS">
|
||||
<span class="target" id="group__stl__cpu__reg_1gade757029db2c6d98d3ebbf5ec95a71a2"></span><code class="sig-name descname">STL_CPU_REG_PASS</code> 0x0U<a class="headerlink" href="#c.STL_CPU_REG_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CPU_REG_FAIL">
|
||||
<span class="target" id="group__stl__cpu__reg_1ga5bd849a4dde658c980d714ca93dff356"></span><code class="sig-name descname">STL_CPU_REG_FAIL</code> 0x1U<a class="headerlink" href="#c.STL_CPU_REG_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv428STL_CPU_REG_testCPURegistersb">
|
||||
<span id="_CPPv328STL_CPU_REG_testCPURegistersb"></span><span id="_CPPv228STL_CPU_REG_testCPURegistersb"></span><span id="STL_CPU_REG_testCPURegisters__b"></span><span class="target" id="group__stl__cpu__reg_1ga7b60fb1e28bea41cf09c1f163f712499"></span>uint16_t <code class="sig-name descname">STL_CPU_REG_testCPURegisters</code><span class="sig-paren">(</span>bool <em>injectError</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv428STL_CPU_REG_testCPURegistersb" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv428STL_CPU_REG_testFPURegistersb">
|
||||
<span id="_CPPv328STL_CPU_REG_testFPURegistersb"></span><span id="_CPPv228STL_CPU_REG_testFPURegistersb"></span><span id="STL_CPU_REG_testFPURegisters__b"></span><span class="target" id="group__stl__cpu__reg_1gae74c783a8c0fa2eb5e2262891d57672c"></span>uint16_t <code class="sig-name descname">STL_CPU_REG_testFPURegisters</code><span class="sig-paren">(</span>bool <em>injectError</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv428STL_CPU_REG_testFPURegistersb" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv429STL_CPU_REG_testVCRCRegistersP8uint32_tb">
|
||||
<span id="_CPPv329STL_CPU_REG_testVCRCRegistersP8uint32_tb"></span><span id="_CPPv229STL_CPU_REG_testVCRCRegistersP8uint32_tb"></span><span id="STL_CPU_REG_testVCRCRegisters__uint32_tP.b"></span><span class="target" id="group__stl__cpu__reg_1gaaa6be3fdfe43724956fe2596298ca6a5"></span>uint16_t <code class="sig-name descname">STL_CPU_REG_testVCRCRegisters</code><span class="sig-paren">(</span>uint32_t *<em>scratchRAM</em>, bool <em>injectError</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv429STL_CPU_REG_testVCRCRegistersP8uint32_tb" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv429STL_CPU_REG_checkCPURegistersb">
|
||||
<span id="_CPPv329STL_CPU_REG_checkCPURegistersb"></span><span id="_CPPv229STL_CPU_REG_checkCPURegistersb"></span><span id="STL_CPU_REG_checkCPURegisters__b"></span><span class="target" id="group__stl__cpu__reg_1ga3c3de838714215d3f48ae01736fd81bd"></span><em class="property">static</em> uint16_t <code class="sig-name descname">STL_CPU_REG_checkCPURegisters</code><span class="sig-paren">(</span>bool <em>injectError</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv429STL_CPU_REG_checkCPURegistersb" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Tests CPU registers. </p>
|
||||
<p><p>This function tests CPU core registers for stuck bits. The following registers are tested:</p>
|
||||
<ul class="simple">
|
||||
<li><p>ACC</p></li>
|
||||
<li><p>P</p></li>
|
||||
<li><p>XAR0 to XAR7</p></li>
|
||||
<li><p>XT</p></li>
|
||||
<li><p>SP</p></li>
|
||||
<li><p>IFR, IER and DBGIER</p></li>
|
||||
<li><p>ST0</p></li>
|
||||
<li><p>ST1 (excluding IDLESTAT and LOOP bits)</p></li>
|
||||
<li><p>DP</p></li>
|
||||
</ul>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">injectError</span></code>: when <em>false</em> the test writes the test pattern to the registers as expected. When <em>true</em>, the test will write an unexpected error pattern to ACC to simulate a stuck bit, causing the test to fail.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The values of ST0, ST1, DP, IER, IFR, and DBGIER and the save-on-entry XAR registers, as defined by the compiler calling convention, are saved and restored in this test.</p>
|
||||
<p>Note that the IDLESTAT and LOOP bits of ST1 are not tested by this function as they are read-only. IDLESTAT is set when the IDLE instruction is used to enter a low-power mode. Performing a functional test of the low-power mode will indirectly serve as a test of IDLESTAT.</p>
|
||||
<p>The LOOP bit is set by the LOOPZ and LOOPNZ instructions. The C2000 compiler will not generate code that uses these instructions. If an application contains hand-coded assembly that uses them, the LOOP bit may also be tested by performing a functional test of the applicable LOOP instruction.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>You should disable interrupts before calling this test. Also note this test was written with POST use in mind, particularly before interrupts are enabled even at the PIE or CPU IER level. Keep in mind that INTM being set doesn’t prevent interrupts from propagating to the IFR registers, so although this function saves and restores IFR, an interrupt arriving in IFR during this test will be cleared by the restore or could cause a failure of this test. If this test needs to be used during runtime, you may want to modify <a class="reference internal" href="#group__stl__cpu__reg_1ga7b60fb1e28bea41cf09c1f163f712499"><span class="std std-ref">STL_CPU_REG_testCPURegisters()</span></a> in stl_cpu_reg.asm to remove the IFR test (and related save and restore). Alternatively, you can disable all interrupts at the PIE level (PIEIER) or in the case of non-PIE interrupts (like CPU Timers 1 and 2) at the peripheral level and restore them after <a class="reference internal" href="#group__stl__cpu__reg_1ga3c3de838714215d3f48ae01736fd81bd"><span class="std std-ref">STL_CPU_REG_checkCPURegisters()</span></a> completes.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the test passes, the routine returns <strong>STL_CPU_REG_PASS</strong>. Otherwise, it returns <strong>STL_CPU_REG_FAIL</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv429STL_CPU_REG_checkFPURegistersb">
|
||||
<span id="_CPPv329STL_CPU_REG_checkFPURegistersb"></span><span id="_CPPv229STL_CPU_REG_checkFPURegistersb"></span><span id="STL_CPU_REG_checkFPURegisters__b"></span><span class="target" id="group__stl__cpu__reg_1ga8dd79bc3e76b2f90ce842fb2fbf8431e"></span><em class="property">static</em> uint16_t <code class="sig-name descname">STL_CPU_REG_checkFPURegisters</code><span class="sig-paren">(</span>bool <em>injectError</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv429STL_CPU_REG_checkFPURegistersb" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Tests FPU registers. </p>
|
||||
<p><p>This function tests FPU registers for stuck bits. The following registers are tested:</p>
|
||||
<ul class="simple">
|
||||
<li><p>R0 to R7</p></li>
|
||||
<li><p>RND32, TF, ZI, NI, ZF, NF bits of STF register.</p></li>
|
||||
<li><p>Shadow registers for R0 to R7 and STF</p></li>
|
||||
</ul>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">injectError</span></code>: when <em>false</em> the test writes the test pattern to the registers as expected. When <em>true</em>, the test will write an unexpected error pattern to R5H to simulate a stuck bit, causing the test to fail.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The values of STF and the save-on-entry RnH registers, as defined by the compiler calling convention, are saved and restored in this test.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>You should disable interrupts before calling this test.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the test passes, the routine returns <strong>STL_CPU_REG_PASS</strong>. Otherwise, it returns <strong>STL_CPU_REG_FAIL</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv430STL_CPU_REG_checkVCRCRegistersb">
|
||||
<span id="_CPPv330STL_CPU_REG_checkVCRCRegistersb"></span><span id="_CPPv230STL_CPU_REG_checkVCRCRegistersb"></span><span id="STL_CPU_REG_checkVCRCRegisters__b"></span><span class="target" id="group__stl__cpu__reg_1ga5b7fefc3460d679e8162ec0f5bdbade0"></span><em class="property">static</em> uint16_t <code class="sig-name descname">STL_CPU_REG_checkVCRCRegisters</code><span class="sig-paren">(</span>bool <em>injectError</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv430STL_CPU_REG_checkVCRCRegistersb" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Tests VCRC registers. </p>
|
||||
<p><p>This function tests VCRC (Cyclic Redundancy Check Unit) registers for stuck bits. The following registers are tested:</p>
|
||||
<ul class="simple">
|
||||
<li><p>VCRCPOLY</p></li>
|
||||
<li><p>VCRCSIZE</p></li>
|
||||
<li><p>VCRC</p></li>
|
||||
<li><p>VSTATUS</p></li>
|
||||
</ul>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">injectError</span></code>: when <em>false</em> the test writes the test pattern to the registers as expected. When <em>true</em>, the test will write an unexpected error pattern to VCRCPOLY to simulate a stuck bit, causing the test to fail.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The values of VCRCPOLY, VCRCSIZE, and VSTATUS are saved and restored in this test.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>You should disable interrupts before calling this test.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the test passes, the routine returns <strong>STL_CPU_REG_PASS</strong>. Otherwise, it returns <strong>STL_CPU_REG_FAIL</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="pseudocode">
|
||||
<h2>Pseudocode<a class="headerlink" href="#pseudocode" title="Permalink to this headline">¶</a></h2>
|
||||
<p>Since the functions in this module are written in assembly, it may be hard to
|
||||
follow for users who are not will versed in the C28x instruction set. Some
|
||||
pseudocode versions of the module functions are provided below to make them
|
||||
easier to understand. Some knowledge of the C28x core registers may still be
|
||||
helpful however. See the <a class="reference external" href="https://www.ti.com/lit/pdf/spru430">C28x CPU and Instruction Set Guide</a>
|
||||
and the <a class="reference external" href="https://www.ti.com/lit/pdf/spruhs1">C28x Extended Instruction Sets Manual</a>
|
||||
for more details.</p>
|
||||
<div class="section" id="stl-cpu-reg-testcpuregisters">
|
||||
<h3>STL_CPU_REG_testCPURegisters<a class="headerlink" href="#stl-cpu-reg-testcpuregisters" title="Permalink to this headline">¶</a></h3>
|
||||
<p>This is pseudocode for the <strong>STL_CPU_REG_testCPURegisters()</strong> assembly function
|
||||
that is used by C function <strong>STL_CPU_REG_checkCPURegisters()</strong>.</p>
|
||||
<div class="highlight-cpp notranslate"><div class="highlight"><pre><span></span><span class="c1">//</span>
|
||||
<span class="c1">// To keep pseudocode less complicated, adjustment of the length of the</span>
|
||||
<span class="c1">// pattern given the size of the register is not shown below. REG_TEST_PATTERN</span>
|
||||
<span class="c1">// will either mean 0xAAAA or 0xAAAAAAAA depending on what is appropriate for</span>
|
||||
<span class="c1">// the register being tested.</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">REG_TEST_PATTERN</span> <span class="o">=</span> <span class="mh">0xAAAA</span> <span class="n">or</span> <span class="mh">0xAAAAAAAA</span>
|
||||
<span class="n">REG_ERROR_PATTERN</span> <span class="o">=</span> <span class="mh">0x555D</span>
|
||||
|
||||
<span class="n">ST1_CLR_TEST_MASK</span> <span class="o">=</span> <span class="mh">0xFF5B</span> <span class="c1">// PAGE0 is always 1, IDLESTAT and LOOP not tested</span>
|
||||
<span class="n">ST1_SET_TEST_MASK</span> <span class="o">=</span> <span class="mh">0x0A00</span> <span class="c1">// M0M1MAP and OBJMODE are always 1</span>
|
||||
|
||||
<span class="n">TEST_ITERATIONS</span> <span class="o">=</span> <span class="mi">1</span>
|
||||
|
||||
<span class="kt">uint16_t</span> <span class="n">STL_CPU_REG_testCPURegisters</span><span class="p">(</span><span class="kt">bool</span> <span class="n">injectError</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="p">[</span><span class="n">context</span> <span class="n">save</span> <span class="p">(</span><span class="n">see</span> <span class="n">conventions</span> <span class="n">in</span> <span class="nl">https</span><span class="p">:</span><span class="c1">//www.ti.com/lit/pdf/spru514)]</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of the accumulator (ACC, lower half AL, upper half AH)</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">injectError</span> <span class="o">==</span> <span class="nb">true</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">AL</span> <span class="o">=</span> <span class="n">REG_ERROR_PATTERN</span> <span class="c1">// Write incorrect pattern to AL</span>
|
||||
<span class="p">}</span>
|
||||
<span class="k">else</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">AL</span> <span class="o">=</span> <span class="n">REG_TEST_PATTERN</span> <span class="c1">// Write usual test pattern to AL</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">AL</span> <span class="o">!=</span> <span class="n">REG_TEST_PATTERN</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">AH</span> <span class="o">=</span> <span class="n">REG_TEST_PATTERN</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">AH</span> <span class="o">!=</span> <span class="n">REG_TEST_PATTERN</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Now repeat the test with the inverted pattern</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">AL</span> <span class="o">=</span> <span class="o">~</span><span class="n">REG_TEST_PATTERN</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">AL</span> <span class="o">!=</span> <span class="o">~</span><span class="n">REG_TEST_PATTERN</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">AH</span> <span class="o">=</span> <span class="o">~</span><span class="n">REG_TEST_PATTERN</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">AH</span> <span class="o">!=</span> <span class="o">~</span><span class="n">REG_TEST_PATTERN</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of the P register</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">P</span> <span class="o">=</span> <span class="n">REG_TEST_PATTERN</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">P</span> <span class="o">!=</span> <span class="n">REG_TEST_PATTERN</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">P</span> <span class="o">=</span> <span class="o">~</span><span class="n">REG_TEST_PATTERN</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">P</span> <span class="o">!=</span> <span class="o">~</span><span class="n">REG_TEST_PATTERN</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of auxiliary (XARn) and multiplicand (XT) registers</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">iterations</span> <span class="o">=</span> <span class="n">TEST_ITERATIONS</span>
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">REG_TEST_PATTERN</span>
|
||||
|
||||
<span class="k">while</span><span class="p">(</span><span class="n">iterations</span> <span class="o">>=</span> <span class="mi">0</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="o">~</span><span class="n">pattern</span>
|
||||
|
||||
<span class="n">XAR0</span><span class="p">.</span><span class="mf">.7</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">XAR0</span><span class="p">.</span><span class="mf">.7</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">XT</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">XT</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">iterations</span><span class="o">--</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of stack pointer (SP)</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">saveSP</span> <span class="o">=</span> <span class="n">SP</span>
|
||||
<span class="n">SP</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">SP</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">SP</span> <span class="o">=</span> <span class="n">saveSP</span> <span class="c1">// Restore the SP first</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="o">~</span><span class="n">pattern</span>
|
||||
<span class="n">SP</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">SP</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">SP</span> <span class="o">=</span> <span class="n">saveSP</span> <span class="c1">// Restore the SP first</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of return program counter (RPC)</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">saveRPC</span> <span class="o">=</span> <span class="n">RPC</span>
|
||||
<span class="n">savePattern</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">&=</span> <span class="mh">0x003F</span> <span class="c1">// RPC is 22 bits</span>
|
||||
|
||||
<span class="n">RPC</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">RPC</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">RPC</span> <span class="o">=</span> <span class="n">saveRPC</span> <span class="c1">// Restore the RPC first</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="o">~</span><span class="n">pattern</span>
|
||||
<span class="n">pattern</span> <span class="o">&=</span> <span class="mh">0x003F</span>
|
||||
|
||||
<span class="n">RPC</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">RPC</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">RPC</span> <span class="o">=</span> <span class="n">saveRPC</span> <span class="c1">// Restore the RPC first</span>
|
||||
<span class="k">goto</span> <span class="n">failCPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">RPC</span> <span class="o">=</span> <span class="n">saveRPC</span> <span class="c1">// Restore the RPC</span>
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">savePattern</span> <span class="c1">// Restore the full pattern</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of various 16-bit registers (ST0, ST1, DP, IER, IFR and DBGIER)</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">saveST0</span> <span class="o">=</span> <span class="n">ST0</span>
|
||||
<span class="n">saveST1</span> <span class="o">=</span> <span class="n">ST1</span>
|
||||
<span class="n">saveDP</span> <span class="o">=</span> <span class="n">DP</span>
|
||||
<span class="n">saveIER</span> <span class="o">=</span> <span class="n">IER</span>
|
||||
<span class="n">saveIFR</span> <span class="o">=</span> <span class="n">IFR</span>
|
||||
<span class="n">saveDBGIER</span> <span class="o">=</span> <span class="n">DBGIER</span>
|
||||
|
||||
<span class="n">iterations</span> <span class="o">=</span> <span class="n">TEST_ITERATIONS</span>
|
||||
|
||||
<span class="k">while</span><span class="p">(</span><span class="n">iterations</span> <span class="o">>=</span> <span class="mi">0</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">DP</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">DP</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span> <span class="c1">// Note these 16-bit reg tests have a</span>
|
||||
<span class="k">goto</span> <span class="n">fail16BitRegTest</span> <span class="c1">// different fail path because of the need</span>
|
||||
<span class="p">}</span> <span class="c1">// to restore their original values</span>
|
||||
|
||||
<span class="n">ST0</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">ST0</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">fail16BitRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">IFR</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">IFR</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">fail16BitRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">DBGIER</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">DBGIER</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">fail16BitRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">IER</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">IER</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">fail16BitRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="o">~</span><span class="n">pattern</span>
|
||||
<span class="n">iterations</span><span class="o">--</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// ST1 is tested separately because it needs some special bits masked</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">savePattern</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="n">IER</span> <span class="o">=</span> <span class="mi">0</span> <span class="c1">// Clear IER so we can set INTM safely</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">&=</span> <span class="n">ST1_CLR_TEST_MASK</span>
|
||||
<span class="n">pattern</span> <span class="o">|=</span> <span class="n">ST1_SET_TEST_MASK</span>
|
||||
|
||||
<span class="n">ST1</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">ST1</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">fail16BitRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="o">~</span><span class="n">pattern</span>
|
||||
<span class="n">pattern</span> <span class="o">&=</span> <span class="n">ST1_CLR_TEST_MASK</span>
|
||||
<span class="n">pattern</span> <span class="o">|=</span> <span class="n">ST1_SET_TEST_MASK</span>
|
||||
|
||||
<span class="n">ST1</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">ST1</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">fail16BitRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">savePattern</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Finally, set PASS/FAIL status and finish context restore</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">TEST_PASSED</span>
|
||||
<span class="k">goto</span> <span class="n">restore16BitReg</span>
|
||||
|
||||
<span class="nl">fail16BitRegTest</span><span class="p">:</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">TEST_FAILED</span>
|
||||
|
||||
<span class="nl">restore16BitReg</span><span class="p">:</span>
|
||||
<span class="n">ST0</span> <span class="o">=</span> <span class="n">saveST0</span>
|
||||
<span class="n">ST1</span> <span class="o">=</span> <span class="n">saveST1</span>
|
||||
<span class="n">DP</span> <span class="o">=</span> <span class="n">saveDP</span>
|
||||
<span class="n">IER</span> <span class="o">=</span> <span class="n">saveIER</span>
|
||||
<span class="n">IFR</span> <span class="o">=</span> <span class="n">saveIFR</span>
|
||||
<span class="n">DBGIER</span> <span class="o">=</span> <span class="n">saveDBGIER</span>
|
||||
<span class="k">goto</span> <span class="n">endCPURegTest</span>
|
||||
|
||||
<span class="nl">failCPURegTest</span><span class="p">:</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">TEST_FAILED</span>
|
||||
|
||||
<span class="nl">endCPURegTest</span><span class="p">:</span>
|
||||
<span class="p">[</span><span class="n">context</span> <span class="n">restore</span><span class="p">]</span>
|
||||
|
||||
<span class="k">return</span><span class="p">(</span><span class="n">status</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="stl-cpu-test-testfpuregisters">
|
||||
<h3>STL_CPU_TEST_testFPURegisters<a class="headerlink" href="#stl-cpu-test-testfpuregisters" title="Permalink to this headline">¶</a></h3>
|
||||
<p>This is pseudocode for the <strong>STL_CPU_TEST_testFPURegisters()</strong> assembly function
|
||||
that is used by C function <strong>STL_CPU_REG_checkFPURegisters()</strong>.</p>
|
||||
<div class="highlight-cpp notranslate"><div class="highlight"><pre><span></span><span class="c1">//</span>
|
||||
<span class="c1">// To keep pseudocode less complicated, adjustment of the length of the</span>
|
||||
<span class="c1">// pattern given the size of the register is not shown below. REG_TEST_PATTERN</span>
|
||||
<span class="c1">// will either mean 0xAAAA or 0xAAAAAAAA depending on what is appropriate for</span>
|
||||
<span class="c1">// the register being tested.</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">REG_TEST_PATTERN</span> <span class="o">=</span> <span class="mh">0xAAAA</span> <span class="n">or</span> <span class="mh">0xAAAAAAAA</span>
|
||||
<span class="n">REG_ERROR_PATTERN</span> <span class="o">=</span> <span class="mh">0x555D</span>
|
||||
|
||||
<span class="n">STF_TEST_MASK_MSB</span> <span class="o">=</span> <span class="mh">0x0000</span> <span class="c1">// Masks for unwritable or reserved bits</span>
|
||||
<span class="n">STF_TEST_MASK_LSB</span> <span class="o">=</span> <span class="mh">0x027C</span>
|
||||
|
||||
<span class="n">TEST_ITERATIONS</span> <span class="o">=</span> <span class="mi">1</span>
|
||||
|
||||
<span class="kt">uint16_t</span> <span class="n">STL_CPU_TEST_testFPURegisters</span><span class="p">(</span><span class="kt">bool</span> <span class="n">injectError</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="p">[</span><span class="n">context</span> <span class="n">save</span> <span class="p">(</span><span class="n">see</span> <span class="n">conventions</span> <span class="n">in</span> <span class="nl">https</span><span class="p">:</span><span class="c1">//www.ti.com/lit/pdf/spru514)]</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of floating-point result and status registers RnH, RnL, and STF</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">iterations</span> <span class="o">=</span> <span class="n">TEST_ITERATIONS</span>
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">REG_TEST_PATTERN</span>
|
||||
|
||||
<span class="k">while</span><span class="p">(</span><span class="n">iterations</span> <span class="o">>=</span> <span class="mi">0</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="o">~</span><span class="n">pattern</span>
|
||||
|
||||
<span class="n">R0H</span><span class="p">..</span><span class="n">R7H</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="n">R0L</span><span class="p">..</span><span class="n">R7L</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">injectError</span> <span class="o">==</span> <span class="nb">true</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">R5H</span> <span class="o">=</span> <span class="n">REG_ERROR_PATTERN</span> <span class="c1">// Write incorrect pattern to R5H</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="p">[</span><span class="n">trigger</span> <span class="n">a</span> <span class="n">shadow</span> <span class="k">register</span> <span class="n">save</span> <span class="n">and</span> <span class="n">restore</span><span class="p">]</span>
|
||||
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">R0H</span><span class="p">..</span><span class="n">R7H</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failFPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">R0L</span><span class="p">..</span><span class="n">R7L</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failFPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// STF is tested separately because it needs some special bits masked</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">savePattern</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="n">pattern</span> <span class="o">&=</span> <span class="p">((</span><span class="n">STF_TEST_MASK_MSB</span> <span class="o"><<</span> <span class="mi">16</span><span class="p">)</span> <span class="o">|</span> <span class="n">STF_TEST_MASK_LSB</span><span class="p">)</span>
|
||||
|
||||
<span class="n">STF</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="p">[</span><span class="n">trigger</span> <span class="n">a</span> <span class="n">shadow</span> <span class="k">register</span> <span class="n">save</span> <span class="n">and</span> <span class="n">restore</span><span class="p">]</span>
|
||||
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">STF</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failFPURegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">savePattern</span>
|
||||
|
||||
<span class="n">iterations</span><span class="o">--</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Finally, set PASS/FAIL status and finish context restore</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">TEST_PASSED</span>
|
||||
<span class="k">goto</span> <span class="n">endFPURegTest</span>
|
||||
|
||||
<span class="nl">failFPURegTest</span><span class="p">:</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">TEST_FAILED</span>
|
||||
|
||||
<span class="nl">endFPURegTest</span><span class="p">:</span>
|
||||
<span class="p">[</span><span class="n">context</span> <span class="n">restore</span><span class="p">]</span>
|
||||
|
||||
<span class="k">return</span><span class="p">(</span><span class="n">status</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="stl-cpu-reg-testvcrcregisters">
|
||||
<h3>STL_CPU_REG_testVCRCRegisters<a class="headerlink" href="#stl-cpu-reg-testvcrcregisters" title="Permalink to this headline">¶</a></h3>
|
||||
<p>This is pseudocode for the <strong>STL_CPU_REG_testVCRCRegisters()</strong> assembly function
|
||||
that is used by C function <strong>STL_CPU_REG_checkVCRCRegisters()</strong>.</p>
|
||||
<div class="highlight-cpp notranslate"><div class="highlight"><pre><span></span><span class="c1">//</span>
|
||||
<span class="c1">// To keep pseudocode less complicated, adjustment of the length of the</span>
|
||||
<span class="c1">// pattern given the size of the register is not shown below. REG_TEST_PATTERN</span>
|
||||
<span class="c1">// will either mean 0xAAAA or 0xAAAAAAAA depending on what is appropriate for</span>
|
||||
<span class="c1">// the register being tested.</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">REG_TEST_PATTERN</span> <span class="o">=</span> <span class="mh">0xAAAA</span> <span class="n">or</span> <span class="mh">0xAAAAAAAA</span>
|
||||
<span class="n">REG_ERROR_PATTERN</span> <span class="o">=</span> <span class="mh">0x555D</span>
|
||||
|
||||
<span class="n">VSTATUS_TEST_MASK_MSB</span> <span class="o">=</span> <span class="mh">0x8000</span> <span class="c1">// Masks for unwritable or reserved bits</span>
|
||||
<span class="n">VSTATUS_TEST_MASK_LSB</span> <span class="o">=</span> <span class="mh">0x0000</span>
|
||||
<span class="n">VCRCSIZE_TEST_MASK_MSB</span> <span class="o">=</span> <span class="mh">0x001F</span>
|
||||
<span class="n">VCRCSIZE_TEST_MASK_LSB</span> <span class="o">=</span> <span class="mh">0x0007</span>
|
||||
|
||||
<span class="n">TEST_ITERATIONS</span> <span class="o">=</span> <span class="mi">1</span>
|
||||
|
||||
<span class="kt">uint16_t</span> <span class="n">STL_CPU_REG_testVCRCRegisters</span><span class="p">(</span><span class="kt">uint32_t</span> <span class="o">*</span><span class="n">scratchRAM</span><span class="p">,</span> <span class="kt">bool</span> <span class="n">injectError</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="p">[</span><span class="n">context</span> <span class="n">save</span> <span class="p">(</span><span class="n">see</span> <span class="n">conventions</span> <span class="n">in</span> <span class="nl">https</span><span class="p">:</span><span class="c1">//www.ti.com/lit/pdf/spru514)]</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Test of VCRC registers VSTATUS, VCRC, VCRCPOLY, and VCRCSIZE</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">iterations</span> <span class="o">=</span> <span class="n">TEST_ITERATIONS</span>
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">REG_TEST_PATTERN</span>
|
||||
|
||||
<span class="k">while</span><span class="p">(</span><span class="n">iterations</span> <span class="o">>=</span> <span class="mi">0</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="o">~</span><span class="n">pattern</span>
|
||||
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// *scratchRAM is used since nearly all of the move instructions for</span>
|
||||
<span class="c1">// the VCRC registers require a memory location as an operand, although</span>
|
||||
<span class="c1">// it may look like an unnecessary intermediate step below.</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="o">*</span><span class="n">scratchRAM</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="n">VCRC</span> <span class="o">=</span> <span class="o">*</span><span class="n">scratchRAM</span>
|
||||
<span class="n">VCRCPOLY</span> <span class="o">=</span> <span class="o">*</span><span class="n">scratchRAM</span>
|
||||
|
||||
<span class="k">if</span><span class="p">(</span><span class="n">injectError</span> <span class="o">==</span> <span class="nb">true</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="n">VCRCPOLY</span> <span class="o">=</span> <span class="n">REG_ERROR_PATTERN</span> <span class="c1">// Write incorrect pattern to VCRCPOLY</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="o">*</span><span class="n">scratchRAM</span> <span class="o">=</span> <span class="n">VCRC</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="o">*</span><span class="n">scratchRAM</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failVCRCRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="o">*</span><span class="n">scratchRAM</span> <span class="o">=</span> <span class="n">VCRCPOLY</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="o">*</span><span class="n">scratchRAM</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failVCRCRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// VSTATUS is tested separately because it needs some bits masked</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">savePattern</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="n">pattern</span> <span class="o">&=</span> <span class="p">((</span><span class="n">VSTATUS_TEST_MASK_MSB</span> <span class="o"><<</span> <span class="mi">16</span><span class="p">)</span> <span class="o">|</span> <span class="n">VSTATUS_TEST_MASK_LSB</span><span class="p">)</span>
|
||||
<span class="o">*</span><span class="n">scratchRAM</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
|
||||
<span class="n">VSTATUS</span> <span class="o">=</span> <span class="o">*</span><span class="n">scratchRAM</span>
|
||||
|
||||
<span class="o">*</span><span class="n">scratchRAM</span> <span class="o">=</span> <span class="n">VSTATUS</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="o">*</span><span class="n">scratchRAM</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failVCRCRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">savePattern</span>
|
||||
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// VCRCSIZE is tested separately because it needs some bits masked</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="n">savePattern</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
<span class="n">pattern</span> <span class="o">&=</span> <span class="p">((</span><span class="n">VCRCSIZE_TEST_MASK_MSB</span> <span class="o"><<</span> <span class="mi">16</span><span class="p">)</span> <span class="o">|</span> <span class="n">VCRCSIZE_TEST_MASK_LSB</span><span class="p">)</span>
|
||||
<span class="o">*</span><span class="n">scratchRAM</span> <span class="o">=</span> <span class="n">pattern</span>
|
||||
|
||||
<span class="n">VCRCSIZE</span> <span class="o">=</span> <span class="o">*</span><span class="n">scratchRAM</span>
|
||||
|
||||
<span class="o">*</span><span class="n">scratchRAM</span> <span class="o">=</span> <span class="n">VCRCSIZE</span>
|
||||
<span class="k">if</span><span class="p">(</span><span class="o">*</span><span class="n">scratchRAM</span> <span class="o">!=</span> <span class="n">pattern</span><span class="p">)</span>
|
||||
<span class="p">{</span>
|
||||
<span class="k">goto</span> <span class="n">failVCRCRegTest</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="n">pattern</span> <span class="o">=</span> <span class="n">savePattern</span>
|
||||
|
||||
<span class="n">iterations</span><span class="o">--</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">// Finally, set PASS/FAIL status and finish context restore</span>
|
||||
<span class="c1">//</span>
|
||||
<span class="c1">//************************************************************************</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">TEST_PASSED</span>
|
||||
<span class="k">goto</span> <span class="n">endVCRCRegTest</span>
|
||||
|
||||
<span class="nl">failVCRCRegTest</span><span class="p">:</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">TEST_FAILED</span>
|
||||
|
||||
<span class="nl">endVCRCRegTest</span><span class="p">:</span>
|
||||
<span class="p">[</span><span class="n">context</span> <span class="n">restore</span><span class="p">]</span>
|
||||
|
||||
<span class="k">return</span><span class="p">(</span><span class="n">status</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_can_ram.html" class="btn btn-neutral float-left" title="CAN Message RAM API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_crc.html" class="btn btn-neutral float-right" title="CRC API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,435 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>CRC API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="HWBIST API Functions" href="stl_hwbist.html"/>
|
||||
<link rel="prev" title="CPU Registers Test API Functions" href="stl_cpu_reg.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">CRC API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>CRC API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="crc-api-functions">
|
||||
<span id="stl-crc"></span><h1>CRC API Functions<a class="headerlink" href="#crc-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_crc.c</span></code>
|
||||
and <code class="docutils literal notranslate"><span class="pre">source/stl_crc_s.asm</span></code>, with <code class="docutils literal notranslate"><span class="pre">include/stl_crc.h</span></code> containing
|
||||
the API declarations for use by applications.</p>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__crc"></span><em>group</em> <code class="sig-name descname">stl_crc</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CRC_INIT_CRC">
|
||||
<span class="target" id="group__stl__crc_1gaa767de3bcc0ddcc991684de95fd7a763"></span><code class="sig-name descname">STL_CRC_INIT_CRC</code> 0x0UL<a class="headerlink" href="#c.STL_CRC_INIT_CRC" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Initial CRC Register Value. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CRC_PASS">
|
||||
<span class="target" id="group__stl__crc_1ga5c12c9f4560937e82ca07044f9f9ed78"></span><code class="sig-name descname">STL_CRC_PASS</code> 0x0U<a class="headerlink" href="#c.STL_CRC_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_CRC_FAIL">
|
||||
<span class="target" id="group__stl__crc_1ga249aed20c9fca80c33b5ba5fd06e7dee"></span><code class="sig-name descname">STL_CRC_FAIL</code> 0x1U<a class="headerlink" href="#c.STL_CRC_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Typedefs</p>
|
||||
<dl class="cpp type">
|
||||
<dt id="_CPPv414STL_CRC_Handle">
|
||||
<span id="_CPPv314STL_CRC_Handle"></span><span id="_CPPv214STL_CRC_Handle"></span><span id="STL_CRC_Handle"></span><span class="target" id="group__stl__crc_1ga5cb497e069bcca7769c1b6f9b6835557"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv411STL_CRC_Obj" title="STL_CRC_Obj">STL_CRC_Obj</a> *<code class="sig-name descname">STL_CRC_Handle</code><a class="headerlink" href="#_CPPv414STL_CRC_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Handle to the CRC structure. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv414STL_CRC_Parity">
|
||||
<span id="_CPPv314STL_CRC_Parity"></span><span id="_CPPv214STL_CRC_Parity"></span><span class="target" id="group__stl__crc_1gacaffda81b063f3ee1f76d599b41cfcef"></span><em class="property">enum </em><code class="sig-name descname">STL_CRC_Parity</code><a class="headerlink" href="#_CPPv414STL_CRC_Parity" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Parity enumeration. </p>
|
||||
<p>The parity is used by the CRC algorithm to determine whether to begin calculations from the low byte (EVEN) or from the high byte (ODD) of the first word (16-bit) in the message. <p> For example, if your message had 10 bytes and started at the address 0x8000 but the first byte was at the high byte position of the first 16-bit word, the user would call the CRC function with odd parity i.e. STL_CRC_PARITY_ODD </p>
|
||||
<p> Address: HI LO </p>
|
||||
<p> 0x8000 : B0 XX </p>
|
||||
<p> 0x8001 : B2 B1 </p>
|
||||
<p> 0x8002 : B4 B3 </p>
|
||||
<p> 0x8003 : B6 B5 </p>
|
||||
<p> 0x8004 : B8 B7 </p>
|
||||
<p> 0x8005 : XX B9 </p>
|
||||
<p> However, if the first byte was at the low byte position of the first 16-bit word, the user would call the CRC function with even parity i.e. STL_CRC_PARITY_EVEN </p>
|
||||
<p> Address: HI LO </p>
|
||||
<p> 0x8000 : B1 B0 </p>
|
||||
<p> 0x8001 : B3 B2 </p>
|
||||
<p> 0x8002 : B5 B4 </p>
|
||||
<p> 0x8003 : B7 B6 </p>
|
||||
<p> 0x8004 : B9 B8 </p>
|
||||
</p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv419STL_CRC_PARITY_EVEN">
|
||||
<span id="_CPPv319STL_CRC_PARITY_EVEN"></span><span id="_CPPv219STL_CRC_PARITY_EVEN"></span><span class="target" id="group__stl__crc_1ggacaffda81b063f3ee1f76d599b41cfcefa5f6839023021f765f0259cca4784b5f5"></span><code class="sig-name descname">STL_CRC_PARITY_EVEN</code> = 0U<a class="headerlink" href="#_CPPv419STL_CRC_PARITY_EVEN" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Even parity, CRC starts at the low byte of the first word (16-bit) </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv418STL_CRC_PARITY_ODD">
|
||||
<span id="_CPPv318STL_CRC_PARITY_ODD"></span><span id="_CPPv218STL_CRC_PARITY_ODD"></span><span class="target" id="group__stl__crc_1ggacaffda81b063f3ee1f76d599b41cfcefaea6d57dbcf9e8eef38dbc5abbf9a5fbe"></span><code class="sig-name descname">STL_CRC_PARITY_ODD</code> = 1U<a class="headerlink" href="#_CPPv418STL_CRC_PARITY_ODD" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Odd parity, CRC starts at the high byte of the first word (16-bit) </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv413STL_CRC_resetv">
|
||||
<span id="_CPPv313STL_CRC_resetv"></span><span id="_CPPv213STL_CRC_resetv"></span><span id="STL_CRC_reset__void"></span><span class="target" id="group__stl__crc_1gac5473597805ddfc87225bffb961cc1d5"></span>void <code class="sig-name descname">STL_CRC_reset</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv413STL_CRC_resetv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Workaround to the silicon issue of first VCU calculation on power up being erroneous. </p>
|
||||
<p>Due to the internal power-up state of the VCU module, it is possible that the first CRC result will be incorrect. This condition applies to the first result from each of the eight CRC instructions. This rare condition can only occur after a power-on reset, but will not necessarily occur on every power on. A warm reset will not cause this condition to reappear.</p>
|
||||
<p>Workaround(s): The application can reset the internal VCU CRC logic by performing a CRC calculation of a single byte in the initialization routine. This routine only needs to perform one CRC calculation and can use any of the CRC instructions.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv417STL_CRC_calculateK14STL_CRC_Handle">
|
||||
<span id="_CPPv317STL_CRC_calculateK14STL_CRC_Handle"></span><span id="_CPPv217STL_CRC_calculateK14STL_CRC_Handle"></span><span id="STL_CRC_calculate__STL_CRC_HandleC"></span><span class="target" id="group__stl__crc_1gabece331773db5d74d71d1792b2e21b61"></span>void <code class="sig-name descname">STL_CRC_calculate</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv414STL_CRC_Handle" title="STL_CRC_Handle">STL_CRC_Handle</a> <em>crcHandle</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417STL_CRC_calculateK14STL_CRC_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Runs the 32-bit CRC routine using polynomial 0x04c11db7. </p>
|
||||
<p><p>Calculates the 32-bit CRC using polynomial 0x04c11db7 on the VCU or VCRC. Depending on the parity chosen the CRC begins at either the low byte (STL_CRC_PARITY_EVEN) or the high byte (STL_CRC_PARITY_ODD) of the first word (16-bit).</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">crcHandle</span></code>: handle to the CRC object</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>The size of the message (bytes) is limited to 65535 bytes.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425STL_CRC_calculateLowBytesK14STL_CRC_Handle">
|
||||
<span id="_CPPv325STL_CRC_calculateLowBytesK14STL_CRC_Handle"></span><span id="_CPPv225STL_CRC_calculateLowBytesK14STL_CRC_Handle"></span><span id="STL_CRC_calculateLowBytes__STL_CRC_HandleC"></span><span class="target" id="group__stl__crc_1ga4980d0cc1cce768635cbbd6d36a5ae3e"></span>void <code class="sig-name descname">STL_CRC_calculateLowBytes</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv414STL_CRC_Handle" title="STL_CRC_Handle">STL_CRC_Handle</a> <em>crcHandle</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425STL_CRC_calculateLowBytesK14STL_CRC_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Runs the 32-bit CRC routine using polynomial 0x04c11db7. </p>
|
||||
<p><p>Calculates the 32-bit CRC using polynomial 0x04c11db7 on the VCU or VCRC. This algorithm performs a CRC32 only on the low bytes (LSB) of each 16-bit word. The input </p>
|
||||
<strong>parity</strong> has no effect. This function works on unpacked data.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">crcHandle</span></code>: handle to the CRC object</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>The size of the message (bytes) is limited to 65535 bytes.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t">
|
||||
<span id="_CPPv316STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t"></span><span id="_CPPv216STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t"></span><span id="STL_CRC_checkCRC__uint32_tC.uint32_tC.uint32_tC"></span><span class="target" id="group__stl__crc_1ga2344e034072d2e227fa179981de2d543"></span>uint16_t <code class="sig-name descname">STL_CRC_checkCRC</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>startAddress</em>, <em class="property">const</em> uint32_t <em>endAddress</em>, <em class="property">const</em> uint32_t <em>goldenCRC</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Calculates a CRC-32 value for specific memory range and compares it with the goldenCRC value. </p>
|
||||
<p><p>This function performs a test of the memory range by calculating the CRC-32 value for the input memory range and comparing it with the golden CRC value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">startAddress</span></code>: - start address of CRC calculation. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">endAddress</span></code>: - end address of CRC calculation, inclusive. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">goldenCRC</span></code>: - golden CRC value.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This function could be used with many memory types including Flash and Boot ROM.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the calculated CRC matches the golden CRC, then the function returns <strong>STL_CRC_PASS</strong>. Otherwise, it returns <strong>STL_CRC_FAIL</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<dl class="cpp struct">
|
||||
<dt id="_CPPv411STL_CRC_Obj">
|
||||
<span id="_CPPv311STL_CRC_Obj"></span><span id="_CPPv211STL_CRC_Obj"></span><span id="STL_CRC_Obj"></span><span class="target" id="struct_s_t_l___c_r_c___obj"></span><em class="property">struct </em><code class="sig-name descname">STL_CRC_Obj</code><a class="headerlink" href="#_CPPv411STL_CRC_Obj" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><em>#include <stl_crc.h></em><p>CRC structure. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_cpu_reg.html" class="btn btn-neutral float-left" title="CPU Registers Test API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_hwbist.html" class="btn btn-neutral float-right" title="HWBIST API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,734 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>HWBIST API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="March13N Test API Functions" href="stl_march.html"/>
|
||||
<link rel="prev" title="CRC API Functions" href="stl_crc.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">HWBIST API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>HWBIST API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="hwbist-api-functions">
|
||||
<span id="stl-hwbist"></span><h1>HWBIST API Functions<a class="headerlink" href="#hwbist-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_hwbist.c</span></code> and
|
||||
<code class="docutils literal notranslate"><span class="pre">source/stl_hwbist_s.asm</span></code>, with <code class="docutils literal notranslate"><span class="pre">include/stl_hwbist.h</span></code>
|
||||
containing the API declarations for use by applications.</p>
|
||||
<p>See the application note <a class="reference external" href="https://www.ti.com/lit/pdf/spraca7">Hardware Built-In Self-Test</a>
|
||||
for more information about HWBIST.</p>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>To inject errors for <strong>STL_HWBIST_runFull()</strong>, pass it an <em>errorType</em> value that is
|
||||
not <strong>STL_HWBIST_NO_ERROR</strong>. To inject an error for a micro-run call
|
||||
<strong>STL_HWBIST_injectError()</strong> before calling <strong>STL_HWBIST_runMicro()</strong>.</p>
|
||||
</div>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__hwbist"></span><em>group</em> <code class="sig-name descname">stl_hwbist</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_BIST_DONE">
|
||||
<span class="target" id="group__stl__hwbist_1ga991c0ff7f120c8974f35980bb96dcd74"></span><code class="sig-name descname">STL_HWBIST_BIST_DONE</code> 0x0001U<a class="headerlink" href="#c.STL_HWBIST_BIST_DONE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The full HWBIST operation is complete. HWBIST has either completed the full number of micro-runs to be meet the selected coverage level or has detected an error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_MACRO_DONE">
|
||||
<span class="target" id="group__stl__hwbist_1gaa9eb3802d7b9487b1f90e13c9f738c32"></span><code class="sig-name descname">STL_HWBIST_MACRO_DONE</code> 0x0002U<a class="headerlink" href="#c.STL_HWBIST_MACRO_DONE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The micro-run has completed. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_NMI">
|
||||
<span class="target" id="group__stl__hwbist_1ga93aaece96dbb156c6b3fdedd28ae7f26"></span><code class="sig-name descname">STL_HWBIST_NMI</code> 0x0004U<a class="headerlink" href="#c.STL_HWBIST_NMI" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>An NMI was generated by the HWBIST controller. This could be caused by an external NMI, a time-out failure, or a detected logic error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_BIST_FAIL">
|
||||
<span class="target" id="group__stl__hwbist_1ga44c0d8f554dd3be5d0df4a9b779dfc7f"></span><code class="sig-name descname">STL_HWBIST_BIST_FAIL</code> 0x0008U<a class="headerlink" href="#c.STL_HWBIST_BIST_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The HWBIST detected an error. This could be caused by a time-out failure or a detected logic error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_INT_COMP_FAIL">
|
||||
<span class="target" id="group__stl__hwbist_1ga6ab2bf30a0f1e535a75f1a68314c6e65"></span><code class="sig-name descname">STL_HWBIST_INT_COMP_FAIL</code> 0x0010U<a class="headerlink" href="#c.STL_HWBIST_INT_COMP_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>HWBIST detected a logic error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_TO_FAIL">
|
||||
<span class="target" id="group__stl__hwbist_1ga8da4076178c230b309e7e626b4ec3a13"></span><code class="sig-name descname">STL_HWBIST_TO_FAIL</code> 0x0020U<a class="headerlink" href="#c.STL_HWBIST_TO_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>HWBIST has experienced a time-out failure. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_OVERRUN_FAIL">
|
||||
<span class="target" id="group__stl__hwbist_1ga8e0fc181cc25629e13d291cc4ca9f04f"></span><code class="sig-name descname">STL_HWBIST_OVERRUN_FAIL</code> 0x0040U<a class="headerlink" href="#c.STL_HWBIST_OVERRUN_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>The HWBIST has run enough micro-runs to meet the configured coverage level but still is not reporting <strong>STL_HWBIST_BIST_DONE</strong> status as expected. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR0">
|
||||
<span class="target" id="group__stl__hwbist_1ga78beb06f7df9924294c421e562063988"></span><code class="sig-name descname">HWBIST_O_CSTCGCR0</code> 0x0U<a class="headerlink" href="#c.HWBIST_O_CSTCGCR0" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR1">
|
||||
<span class="target" id="group__stl__hwbist_1gaaf21fe3d50d44d83fe46bbbeb863de75"></span><code class="sig-name descname">HWBIST_O_CSTCGCR1</code> 0x4U<a class="headerlink" href="#c.HWBIST_O_CSTCGCR1" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR2">
|
||||
<span class="target" id="group__stl__hwbist_1gaf1488cf2f313efcc0d4dffb89da12979"></span><code class="sig-name descname">HWBIST_O_CSTCGCR2</code> 0x8U<a class="headerlink" href="#c.HWBIST_O_CSTCGCR2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR3">
|
||||
<span class="target" id="group__stl__hwbist_1gacacfeed95b4e0f3fafb49a37f6dbb32e"></span><code class="sig-name descname">HWBIST_O_CSTCGCR3</code> 0xCU<a class="headerlink" href="#c.HWBIST_O_CSTCGCR3" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR4">
|
||||
<span class="target" id="group__stl__hwbist_1gaaf9e1b4fc324de15e3ba1ce1279c7594"></span><code class="sig-name descname">HWBIST_O_CSTCGCR4</code> 0x10U<a class="headerlink" href="#c.HWBIST_O_CSTCGCR4" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR5">
|
||||
<span class="target" id="group__stl__hwbist_1gab839e9ac40b45ee9b150d5eff5b5e897"></span><code class="sig-name descname">HWBIST_O_CSTCGCR5</code> 0x14U<a class="headerlink" href="#c.HWBIST_O_CSTCGCR5" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR6">
|
||||
<span class="target" id="group__stl__hwbist_1ga740a5fbc7e9f6f2db97c5a6590b1a592"></span><code class="sig-name descname">HWBIST_O_CSTCGCR6</code> 0x18U<a class="headerlink" href="#c.HWBIST_O_CSTCGCR6" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR7">
|
||||
<span class="target" id="group__stl__hwbist_1gaa44f6b28ecfbb121c243a20b361b1b45"></span><code class="sig-name descname">HWBIST_O_CSTCGCR7</code> 0x1CU<a class="headerlink" href="#c.HWBIST_O_CSTCGCR7" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCGCR8">
|
||||
<span class="target" id="group__stl__hwbist_1gabcc4ff2be615468a92d9a2cc9f6a7148"></span><code class="sig-name descname">HWBIST_O_CSTCGCR8</code> 0x20U<a class="headerlink" href="#c.HWBIST_O_CSTCGCR8" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCPCNT">
|
||||
<span class="target" id="group__stl__hwbist_1ga41e3619eeb01e465130c6e5c7dad7dbe"></span><code class="sig-name descname">HWBIST_O_CSTCPCNT</code> 0x24U<a class="headerlink" href="#c.HWBIST_O_CSTCPCNT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCCONFIG">
|
||||
<span class="target" id="group__stl__hwbist_1ga827797070341c5292a8f881c25f80899"></span><code class="sig-name descname">HWBIST_O_CSTCCONFIG</code> 0x28U<a class="headerlink" href="#c.HWBIST_O_CSTCCONFIG" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCSADDR">
|
||||
<span class="target" id="group__stl__hwbist_1ga34faa6bfaed9f553e9d56e4b0cf61db9"></span><code class="sig-name descname">HWBIST_O_CSTCSADDR</code> 0x2CU<a class="headerlink" href="#c.HWBIST_O_CSTCSADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCTEST">
|
||||
<span class="target" id="group__stl__hwbist_1gaec7d4479cab849558d1ec36777c1afee"></span><code class="sig-name descname">HWBIST_O_CSTCTEST</code> 0x30U<a class="headerlink" href="#c.HWBIST_O_CSTCTEST" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCRET">
|
||||
<span class="target" id="group__stl__hwbist_1ga72512004bea372f9f2dadd7d7759e2e7"></span><code class="sig-name descname">HWBIST_O_CSTCRET</code> 0x34U<a class="headerlink" href="#c.HWBIST_O_CSTCRET" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCCRD">
|
||||
<span class="target" id="group__stl__hwbist_1gaebdf08a9bd7e78b91211a3da5b505eb9"></span><code class="sig-name descname">HWBIST_O_CSTCCRD</code> 0x38U<a class="headerlink" href="#c.HWBIST_O_CSTCCRD" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTGSTAT">
|
||||
<span class="target" id="group__stl__hwbist_1ga2be3c631f9b7bb5445178c8790135cd4"></span><code class="sig-name descname">HWBIST_O_CSTGSTAT</code> 0x40U<a class="headerlink" href="#c.HWBIST_O_CSTGSTAT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCCPCR">
|
||||
<span class="target" id="group__stl__hwbist_1gac3f4b155187c03b4352d8e316a19f0b7"></span><code class="sig-name descname">HWBIST_O_CSTCCPCR</code> 0x48U<a class="headerlink" href="#c.HWBIST_O_CSTCCPCR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCCADDR">
|
||||
<span class="target" id="group__stl__hwbist_1gae6ecf7ee46d30055c575da129fd6f0c6"></span><code class="sig-name descname">HWBIST_O_CSTCCADDR</code> 0x4CU<a class="headerlink" href="#c.HWBIST_O_CSTCCADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_O_CSTCSEM">
|
||||
<span class="target" id="group__stl__hwbist_1gaf6753123dd62fb7f905693a922d12f92"></span><code class="sig-name descname">HWBIST_O_CSTCSEM</code> 0xA0U<a class="headerlink" href="#c.HWBIST_O_CSTCSEM" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.HWBIST_CSTCSEM_SEMAPHORE">
|
||||
<span class="target" id="group__stl__hwbist_1ga430fd4c1203fae7346571440a877f897"></span><code class="sig-name descname">HWBIST_CSTCSEM_SEMAPHORE</code> 0x03U<a class="headerlink" href="#c.HWBIST_CSTCSEM_SEMAPHORE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.PIEVECTTABLE_O_NMI">
|
||||
<span class="target" id="group__stl__hwbist_1gaeb77069ddbebe6bc6a611360ffee949b"></span><code class="sig-name descname">PIEVECTTABLE_O_NMI</code> ((INT_NMI >> 16) * 2U)<a class="headerlink" href="#c.PIEVECTTABLE_O_NMI" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_MICRO_LIMIT_95">
|
||||
<span class="target" id="group__stl__hwbist_1ga5131303214d583bd99df3d5424afc1bb"></span><code class="sig-name descname">STL_HWBIST_MICRO_LIMIT_95</code> 650UL<a class="headerlink" href="#c.STL_HWBIST_MICRO_LIMIT_95" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_MICRO_LIMIT_99_RUN1">
|
||||
<span class="target" id="group__stl__hwbist_1gaeb8abe44a53e38842af9175313b18458"></span><code class="sig-name descname">STL_HWBIST_MICRO_LIMIT_99_RUN1</code> 1700UL<a class="headerlink" href="#c.STL_HWBIST_MICRO_LIMIT_99_RUN1" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_MICRO_LIMIT_99_RUN2">
|
||||
<span class="target" id="group__stl__hwbist_1ga4491ba47dbac19cac7f389dc03bb9706"></span><code class="sig-name descname">STL_HWBIST_MICRO_LIMIT_99_RUN2</code> 300UL<a class="headerlink" href="#c.STL_HWBIST_MICRO_LIMIT_99_RUN2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_MICRO_LIMIT_99">
|
||||
<span class="target" id="group__stl__hwbist_1ga1f862507dbe5fbee79dc9e014854d1a6"></span><code class="sig-name descname">STL_HWBIST_MICRO_LIMIT_99</code> (<a class="reference internal" href="#group__stl__hwbist_1gaeb8abe44a53e38842af9175313b18458"><span class="std std-ref">STL_HWBIST_MICRO_LIMIT_99_RUN1</span></a><p> + \</p>
|
||||
<a class="reference internal" href="#group__stl__hwbist_1ga4491ba47dbac19cac7f389dc03bb9706"><span class="std std-ref">STL_HWBIST_MICRO_LIMIT_99_RUN2</span></a>)<a class="headerlink" href="#c.STL_HWBIST_MICRO_LIMIT_99" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_REF_STACK">
|
||||
<span class="target" id="group__stl__hwbist_1ga55530afec5582a97748218e2bbe2fc12"></span><code class="sig-name descname">STL_HWBIST_REF_STACK</code> __asm(" .ref __stack")<a class="headerlink" href="#c.STL_HWBIST_REF_STACK" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_MOV_SP_STACK">
|
||||
<span class="target" id="group__stl__hwbist_1ga184310720ec12491366bb4919d227d1b"></span><code class="sig-name descname">STL_HWBIST_MOV_SP_STACK</code> __asm(" MOV SP, #__stack")<a class="headerlink" href="#c.STL_HWBIST_MOV_SP_STACK" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_C28OBJ">
|
||||
<span class="target" id="group__stl__hwbist_1ga92d51302475b8db656d61914fb977c68"></span><code class="sig-name descname">STL_HWBIST_C28OBJ</code> __asm(" C28OBJ")<a class="headerlink" href="#c.STL_HWBIST_C28OBJ" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_C28ADDR">
|
||||
<span class="target" id="group__stl__hwbist_1ga5883860f3876a377610fdff960849767"></span><code class="sig-name descname">STL_HWBIST_C28ADDR</code> __asm(" C28ADDR")<a class="headerlink" href="#c.STL_HWBIST_C28ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_C28MAP">
|
||||
<span class="target" id="group__stl__hwbist_1gab636e38edd27686da99790008bc04997"></span><code class="sig-name descname">STL_HWBIST_C28MAP</code> __asm(" C28MAP")<a class="headerlink" href="#c.STL_HWBIST_C28MAP" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_CLRC_PAGE0">
|
||||
<span class="target" id="group__stl__hwbist_1gaeb59468b75c263009a31bd5eb3a0c932"></span><code class="sig-name descname">STL_HWBIST_CLRC_PAGE0</code> __asm(" CLRC PAGE0")<a class="headerlink" href="#c.STL_HWBIST_CLRC_PAGE0" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_MOVW_DP_0">
|
||||
<span class="target" id="group__stl__hwbist_1ga8258064b24feed28a4e3b31007581b92"></span><code class="sig-name descname">STL_HWBIST_MOVW_DP_0</code> __asm(" MOVW DP,#0")<a class="headerlink" href="#c.STL_HWBIST_MOVW_DP_0" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_CLRC_OVM">
|
||||
<span class="target" id="group__stl__hwbist_1ga298a28bfa3d41e6ae84384895c58b2b4"></span><code class="sig-name descname">STL_HWBIST_CLRC_OVM</code> __asm(" CLRC OVM")<a class="headerlink" href="#c.STL_HWBIST_CLRC_OVM" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_SPM_0">
|
||||
<span class="target" id="group__stl__hwbist_1ga748a6b4806ef27d29c5fa4b6f1a35e16"></span><code class="sig-name descname">STL_HWBIST_SPM_0</code> __asm(" SPM 0")<a class="headerlink" href="#c.STL_HWBIST_SPM_0" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_REF_HANDLE_RESET_FXN">
|
||||
<span class="target" id="group__stl__hwbist_1ga7bb1ccdf9b7c11b6f0f6c0b53aacdec1"></span><code class="sig-name descname">STL_HWBIST_REF_HANDLE_RESET_FXN</code> __asm(" .ref STL_HWBIST_handleReset")<a class="headerlink" href="#c.STL_HWBIST_REF_HANDLE_RESET_FXN" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_HWBIST_LCR_HANDLE_RESET_FXN">
|
||||
<span class="target" id="group__stl__hwbist_1gaf247f6a28721daa0f4589b760b68b1be"></span><code class="sig-name descname">STL_HWBIST_LCR_HANDLE_RESET_FXN</code> __asm(" LCR STL_HWBIST_handleReset")<a class="headerlink" href="#c.STL_HWBIST_LCR_HANDLE_RESET_FXN" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv415STL_HWBIST_Core">
|
||||
<span id="_CPPv315STL_HWBIST_Core"></span><span id="_CPPv215STL_HWBIST_Core"></span><span class="target" id="group__stl__hwbist_1ga8e6c5cbe404410e2b29364c8541f113e"></span><em class="property">enum </em><code class="sig-name descname">STL_HWBIST_Core</code><a class="headerlink" href="#_CPPv415STL_HWBIST_Core" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values that must be used for as a parameter to <a class="reference internal" href="#group__stl__hwbist_1ga7d473322ff0852d0016e6d3284bbac49"><span class="std std-ref">STL_HWBIST_claimSemaphore()</span></a> in order to claim the semaphore properly for the CPU in use. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv416STL_HWBIST_CPU01">
|
||||
<span id="_CPPv316STL_HWBIST_CPU01"></span><span id="_CPPv216STL_HWBIST_CPU01"></span><span class="target" id="group__stl__hwbist_1gga8e6c5cbe404410e2b29364c8541f113eaf556ae2026e049e9a870add4bbe028be"></span><code class="sig-name descname">STL_HWBIST_CPU01</code> = 0x02<a class="headerlink" href="#_CPPv416STL_HWBIST_CPU01" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU01. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv416STL_HWBIST_CPU02">
|
||||
<span id="_CPPv316STL_HWBIST_CPU02"></span><span id="_CPPv216STL_HWBIST_CPU02"></span><span class="target" id="group__stl__hwbist_1gga8e6c5cbe404410e2b29364c8541f113ea4c69f6eb7d2feea1ab766e7c6842a6cb"></span><code class="sig-name descname">STL_HWBIST_CPU02</code> = 0x01<a class="headerlink" href="#_CPPv416STL_HWBIST_CPU02" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU02. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv416STL_HWBIST_Error">
|
||||
<span id="_CPPv316STL_HWBIST_Error"></span><span id="_CPPv216STL_HWBIST_Error"></span><span class="target" id="group__stl__hwbist_1ga389245d4227f42fd72fe9799378a22c4"></span><em class="property">enum </em><code class="sig-name descname">STL_HWBIST_Error</code><a class="headerlink" href="#_CPPv416STL_HWBIST_Error" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values that must be used as parameter to <a class="reference internal" href="#group__stl__hwbist_1ga9572fe546bf1841f3fc30f5d2e418b13"><span class="std std-ref">STL_HWBIST_injectError()</span></a> and <a class="reference internal" href="#group__stl__hwbist_1ga611cab1c324ff007990b027ba3785823"><span class="std std-ref">STL_HWBIST_runFull()</span></a> in order to specify the type of error to inject before executing HWBIST. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv419STL_HWBIST_NO_ERROR">
|
||||
<span id="_CPPv319STL_HWBIST_NO_ERROR"></span><span id="_CPPv219STL_HWBIST_NO_ERROR"></span><span class="target" id="group__stl__hwbist_1gga389245d4227f42fd72fe9799378a22c4ab327ddbb3b4d7af77be3eb01f072d227"></span><code class="sig-name descname">STL_HWBIST_NO_ERROR</code> = 0x0000<a class="headerlink" href="#_CPPv419STL_HWBIST_NO_ERROR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>No error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv418STL_HWBIST_TIMEOUT">
|
||||
<span id="_CPPv318STL_HWBIST_TIMEOUT"></span><span id="_CPPv218STL_HWBIST_TIMEOUT"></span><span class="target" id="group__stl__hwbist_1gga389245d4227f42fd72fe9799378a22c4a7ec143c5edb37dc8216123a8028d9086"></span><code class="sig-name descname">STL_HWBIST_TIMEOUT</code> = 0x000A<a class="headerlink" href="#_CPPv418STL_HWBIST_TIMEOUT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Time-out error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv424STL_HWBIST_FINAL_COMPARE">
|
||||
<span id="_CPPv324STL_HWBIST_FINAL_COMPARE"></span><span id="_CPPv224STL_HWBIST_FINAL_COMPARE"></span><span class="target" id="group__stl__hwbist_1gga389245d4227f42fd72fe9799378a22c4a52cef603d38a3926550c79078ef8716e"></span><code class="sig-name descname">STL_HWBIST_FINAL_COMPARE</code> = 0x00A0<a class="headerlink" href="#_CPPv424STL_HWBIST_FINAL_COMPARE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Final MISR compare error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv419STL_HWBIST_NMI_TRAP">
|
||||
<span id="_CPPv319STL_HWBIST_NMI_TRAP"></span><span id="_CPPv219STL_HWBIST_NMI_TRAP"></span><span class="target" id="group__stl__hwbist_1gga389245d4227f42fd72fe9799378a22c4abc8f4c0a6b4ab1e0bbcb1ca060cbb87c"></span><code class="sig-name descname">STL_HWBIST_NMI_TRAP</code> = 0x0A00<a class="headerlink" href="#_CPPv419STL_HWBIST_NMI_TRAP" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>NMI trap error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv422STL_HWBIST_LOGIC_FAULT">
|
||||
<span id="_CPPv322STL_HWBIST_LOGIC_FAULT"></span><span id="_CPPv222STL_HWBIST_LOGIC_FAULT"></span><span class="target" id="group__stl__hwbist_1gga389245d4227f42fd72fe9799378a22c4a02d8c30e34e0666cedda2fa53bbfacc2"></span><code class="sig-name descname">STL_HWBIST_LOGIC_FAULT</code> = 0x2000<a class="headerlink" href="#_CPPv422STL_HWBIST_LOGIC_FAULT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Logic error. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv419STL_HWBIST_Coverage">
|
||||
<span id="_CPPv319STL_HWBIST_Coverage"></span><span id="_CPPv219STL_HWBIST_Coverage"></span><span class="target" id="group__stl__hwbist_1gae8f8e2e1414b9c4ce8f9a1e022715dc3"></span><em class="property">enum </em><code class="sig-name descname">STL_HWBIST_Coverage</code><a class="headerlink" href="#_CPPv419STL_HWBIST_Coverage" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values that must be used as a parameter to <a class="reference internal" href="#group__stl__hwbist_1ga7cb3c38cc64da3c1bb84dae4947e9a80"><span class="std std-ref">STL_HWBIST_init()</span></a> in order to initialize the HWBIST engine before a micro-run for a specific target coverage. Note that not all devices support multiple coverage levels. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv418STL_HWBIST_99_RUN1">
|
||||
<span id="_CPPv318STL_HWBIST_99_RUN1"></span><span id="_CPPv218STL_HWBIST_99_RUN1"></span><span class="target" id="group__stl__hwbist_1ggae8f8e2e1414b9c4ce8f9a1e022715dc3af4d35a110035f4454224597bd08de946"></span><code class="sig-name descname">STL_HWBIST_99_RUN1</code> = 0x0000<a class="headerlink" href="#_CPPv418STL_HWBIST_99_RUN1" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>99% coverage, run 1 patterns </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv418STL_HWBIST_99_RUN2">
|
||||
<span id="_CPPv318STL_HWBIST_99_RUN2"></span><span id="_CPPv218STL_HWBIST_99_RUN2"></span><span class="target" id="group__stl__hwbist_1ggae8f8e2e1414b9c4ce8f9a1e022715dc3a8106b68f03e36edfce36009a70e42f05"></span><code class="sig-name descname">STL_HWBIST_99_RUN2</code> = 0x0002<a class="headerlink" href="#_CPPv418STL_HWBIST_99_RUN2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>99% coverage, run 2 patterns </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv413STL_HWBIST_95">
|
||||
<span id="_CPPv313STL_HWBIST_95"></span><span id="_CPPv213STL_HWBIST_95"></span><span class="target" id="group__stl__hwbist_1ggae8f8e2e1414b9c4ce8f9a1e022715dc3a7e0e46683a9ac13cf5f692817a0c8158"></span><code class="sig-name descname">STL_HWBIST_95</code> = 0x0001<a class="headerlink" href="#_CPPv413STL_HWBIST_95" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>95% coverage </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__hwbist_1ga41ddfdb27cdab06306b8d36f6cbdf0da"></span><code class="sig-name descname">__interrupt void STL_HWBIST_errorNMIISR(void)</code></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418STL_HWBIST_runFullK16STL_HWBIST_Error">
|
||||
<span id="_CPPv318STL_HWBIST_runFullK16STL_HWBIST_Error"></span><span id="_CPPv218STL_HWBIST_runFullK16STL_HWBIST_Error"></span><span id="STL_HWBIST_runFull__STL_HWBIST_ErrorC"></span><span class="target" id="group__stl__hwbist_1ga611cab1c324ff007990b027ba3785823"></span>uint16_t <code class="sig-name descname">STL_HWBIST_runFull</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv416STL_HWBIST_Error" title="STL_HWBIST_Error">STL_HWBIST_Error</a> <em>errorType</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418STL_HWBIST_runFullK16STL_HWBIST_Error" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Performs a hardware built-in self-test of the CPU under test. </p>
|
||||
<p><p>This function initializes the HWBIST engine and then injects the </p>
|
||||
<strong>errorType</strong>. It also registers the <a class="reference internal" href="#group__stl__hwbist_1ga41ddfdb27cdab06306b8d36f6cbdf0da"><span class="std std-ref">STL_HWBIST_errorNMIISR()</span></a> as the NMI vector. It then performs a full hardware built-in self-test achieving 99% coverage. If there is a failure in the HWBIST, then a global error flag will be set and the return value will specify a failure. Additionally, if the coverage is not achieved in the expected micro-runs then the test will fail due to an overrun. Before returning, the function will restore the previous NMI vector. vector.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">errorType</span></code>: is an enumerated type <strong>STL_HWBIST_Error</strong> which specifies the type of error to inject before executing a full run of HWBIST test.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>This function expects the HWBIST semaphore to be claimed by the CPU attempting to run HWBIST by calling <a class="reference internal" href="#group__stl__hwbist_1ga7d473322ff0852d0016e6d3284bbac49"><span class="std std-ref">STL_HWBIST_claimSemaphore()</span></a>.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>There is a corner case where a spurious CPU Timer 1 or CPU Timer 2 interrupt may be triggered when HWBIST completes. This test contains a workaround which clears the TIE bits of Timer 1 and 2 before starting HWBIST interrupt logging and restores them after HWBIST runs.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the HWBIST full run test passes with no errors within the expected number of micro-runs, then this function returns the status of the HWBIST and the value will be a bitwise OR of <strong>STL_HWBIST_BIST_DONE</strong>, and <strong>STL_HWBIST_MACRO_DONE</strong>. If the test fails, then the status of the HWBIST and the return value of the function will have contain a bitwise OR of some combination of the following values: <strong>STL_HWBIST_NMI</strong>, <strong>STL_HWBIST_BIST_FAIL</strong>, STL_HWBIST_INT_COMP_FAIL, <strong>STL_HWBIST_TO_FAIL</strong>, and <strong>STL_HWBIST_OVERRUN_FAIL</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419STL_HWBIST_runMicrov">
|
||||
<span id="_CPPv319STL_HWBIST_runMicrov"></span><span id="_CPPv219STL_HWBIST_runMicrov"></span><span id="STL_HWBIST_runMicro__void"></span><span class="target" id="group__stl__hwbist_1ga34512ab366088a0b90d11c321c5b5f07"></span>uint16_t <code class="sig-name descname">STL_HWBIST_runMicro</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419STL_HWBIST_runMicrov" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Performs a micro-run of the hardware built-in self-test of the CPU under test. </p>
|
||||
<p>This function expects the HWBIST engine to already be initialized with <a class="reference internal" href="#group__stl__hwbist_1ga7cb3c38cc64da3c1bb84dae4947e9a80"><span class="std std-ref">STL_HWBIST_init()</span></a> before it is called. This function performs a HWBIST micro-run and returns its status. Before returning, the function will also restore the previous NMI vector.</p>
|
||||
<p>In order to achieve 95% coverage, the user needs to initialize the HWBIST controller for 95% coverage and then execute <em>STL_HWBIST_MICRO_LIMIT_95</em> micro-runs. The HWBIST will complete in <em>STL_HWBIST_MICRO_LIMIT_95</em> micro-runs if there are no detected faults.</p>
|
||||
<p>In order to achieve 99% coverage, the user needs to initialize the HWBIST controller for 99% coverage RUN 1 and then execute <em>STL_HWBIST_MICRO_LIMIT_99_RUN1</em> micro-runs. The HWBIST will complete in <em>STL_HWBIST_MICRO_LIMIT_99_RUN1</em> micro-runs if there are no detected faults. The HWBIST should then be reinitialized to 99% coverage RUN 2 and then executed for <em>STL_HWBIST_MICRO_LIMIT_99_RUN2</em> micro-runs to complete 99% coverage.</p>
|
||||
<p>This function expects the HWBIST semaphore to be claimed by the CPU attempting to run HWBIST by calling <a class="reference internal" href="#group__stl__hwbist_1ga7d473322ff0852d0016e6d3284bbac49"><span class="std std-ref">STL_HWBIST_claimSemaphore()</span></a>.</p>
|
||||
<p><dl>
|
||||
<dt><strong>Note</strong></dt><dd><p>This function performs a HWBIST micro-run and is designed to be used as a periodic self-test or PEST.</p>
|
||||
<p>There is a corner case where a spurious CPU Timer 1 or CPU Timer 2 interrupt may be triggered when HWBIST completes. This test contains a workaround which clears the TIE bits of Timer 1 and 2 before starting HWBIST interrupt logging and restores them after HWBIST runs.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>This function returns the status of the HWBIST after the micro-run executes. If the HWBIST micro-run test passes with no errors, then the value will be either <strong>STL_HWBIST_MACRO_DONE</strong> or a bitwise OR of <strong>STL_HWBIST_BIST_DONE</strong> | <strong>STL_HWBIST_MACRO_DONE</strong>. <strong>STL_HWBIST_BIST_DONE</strong> should be be set after the expected number of micro-runs have been executed to reach the configured coverage level. If the test fails, then the status of the HWBIST and the return value of the function will have contain a bitwise OR of some combination of the following values: <strong>STL_HWBIST_NMI</strong>, <strong>STL_HWBIST_BIST_FAIL</strong>, <strong>STL_HWBIST_INT_COMP_FAIL</strong>, and <strong>STL_HWBIST_TO_FAIL</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425STL_HWBIST_restoreContextv">
|
||||
<span id="_CPPv325STL_HWBIST_restoreContextv"></span><span id="_CPPv225STL_HWBIST_restoreContextv"></span><span id="STL_HWBIST_restoreContext__void"></span><span class="target" id="group__stl__hwbist_1gac248aa22ae3535e52bee95639ace2cdf"></span>void <code class="sig-name descname">STL_HWBIST_restoreContext</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425STL_HWBIST_restoreContextv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Begins the context restore after a CPU reset after a HWBIST micro-run. </p>
|
||||
<p>This function should not be called by the user, but must be placed at the beginning of RAMM0, memory address 0x0000. After a HWBIST micro-run completes, the CPU will reset and begin executing instructions from 0x0000. The user is responsible for placing this function at memory address 0x0000. This can be done using the linker command file and program sections.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv415STL_HWBIST_initK19STL_HWBIST_Coverage">
|
||||
<span id="_CPPv315STL_HWBIST_initK19STL_HWBIST_Coverage"></span><span id="_CPPv215STL_HWBIST_initK19STL_HWBIST_Coverage"></span><span id="STL_HWBIST_init__STL_HWBIST_CoverageC"></span><span class="target" id="group__stl__hwbist_1ga7cb3c38cc64da3c1bb84dae4947e9a80"></span>void <code class="sig-name descname">STL_HWBIST_init</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv419STL_HWBIST_Coverage" title="STL_HWBIST_Coverage">STL_HWBIST_Coverage</a> <em>coverage</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv415STL_HWBIST_initK19STL_HWBIST_Coverage" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Initializes the HWBIST engine for operation. </p>
|
||||
<p><p>This function initializes the HWBIST engine for the specified level of coverage. This function is intended to be used with </p>
|
||||
<a class="reference internal" href="#group__stl__hwbist_1ga34512ab366088a0b90d11c321c5b5f07"><span class="std std-ref">STL_HWBIST_runMicro()</span></a>. This function should be called once to initialize the HWBIST and not called again until the HWBIST is done which is indicated by a return value of <strong>STL_HWBIST_BIST_DONE</strong> as this function resets the HWBIST engine.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">coverage</span></code>: is an enumerated type <strong>STL_HWBIST_Coverage</strong> which specifies the coverage to achieve.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv422STL_HWBIST_injectErrorK16STL_HWBIST_Error">
|
||||
<span id="_CPPv322STL_HWBIST_injectErrorK16STL_HWBIST_Error"></span><span id="_CPPv222STL_HWBIST_injectErrorK16STL_HWBIST_Error"></span><span id="STL_HWBIST_injectError__STL_HWBIST_ErrorC"></span><span class="target" id="group__stl__hwbist_1ga9572fe546bf1841f3fc30f5d2e418b13"></span><em class="property">static</em> void <code class="sig-name descname">STL_HWBIST_injectError</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv416STL_HWBIST_Error" title="STL_HWBIST_Error">STL_HWBIST_Error</a> <em>errorType</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422STL_HWBIST_injectErrorK16STL_HWBIST_Error" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Injects an error into the HWBIST engine for operation. </p>
|
||||
<p><p>This function injects an error into the HWBIST using the HWBIST registers.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">errorType</span></code>: is an enumerated type <strong>STL_HWBIST_Error</strong> which specifies the error to inject.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This function should be called after <a class="reference internal" href="#group__stl__hwbist_1ga7cb3c38cc64da3c1bb84dae4947e9a80"><span class="std std-ref">STL_HWBIST_init()</span></a> because <a class="reference internal" href="#group__stl__hwbist_1ga7cb3c38cc64da3c1bb84dae4947e9a80"><span class="std std-ref">STL_HWBIST_init()</span></a> resets the HWBIST engine and initializes the test.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425STL_HWBIST_claimSemaphoreK15STL_HWBIST_Core">
|
||||
<span id="_CPPv325STL_HWBIST_claimSemaphoreK15STL_HWBIST_Core"></span><span id="_CPPv225STL_HWBIST_claimSemaphoreK15STL_HWBIST_Core"></span><span id="STL_HWBIST_claimSemaphore__STL_HWBIST_CoreC"></span><span class="target" id="group__stl__hwbist_1ga7d473322ff0852d0016e6d3284bbac49"></span><em class="property">static</em> bool <code class="sig-name descname">STL_HWBIST_claimSemaphore</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv415STL_HWBIST_Core" title="STL_HWBIST_Core">STL_HWBIST_Core</a> <em>core</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425STL_HWBIST_claimSemaphoreK15STL_HWBIST_Core" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Attempts to claim the HWBIST semaphore for the specified core. </p>
|
||||
<p><p>This function attempts to claim the semaphore for the specified core.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">core</span></code>: is an enumerated type <strong>STL_HWBIST_Core</strong> which specifies the core attempting to claim the HWBIST semaphore.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This function should be called before <strong><a class="reference internal" href="#group__stl__hwbist_1ga7cb3c38cc64da3c1bb84dae4947e9a80"><span class="std std-ref">STL_HWBIST_init()</span></a></strong>, <strong><a class="reference internal" href="#group__stl__hwbist_1ga34512ab366088a0b90d11c321c5b5f07"><span class="std std-ref">STL_HWBIST_runMicro()</span></a></strong> and <strong><a class="reference internal" href="#group__stl__hwbist_1ga611cab1c324ff007990b027ba3785823"><span class="std std-ref">STL_HWBIST_runFull()</span></a></strong>.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the semaphore was claimed successfully, then <strong>true</strong> is returned. If the semaphore was unable to be claimed, then <strong>false</strong> is returned. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv427STL_HWBIST_releaseSemaphorev">
|
||||
<span id="_CPPv327STL_HWBIST_releaseSemaphorev"></span><span id="_CPPv227STL_HWBIST_releaseSemaphorev"></span><span id="STL_HWBIST_releaseSemaphore__void"></span><span class="target" id="group__stl__hwbist_1ga63369cba64a6cf3253b336ce3052a716"></span><em class="property">static</em> void <code class="sig-name descname">STL_HWBIST_releaseSemaphore</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv427STL_HWBIST_releaseSemaphorev" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Releases the HWBIST semaphore. </p>
|
||||
<p>This function releases the semaphore.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_crc.html" class="btn btn-neutral float-left" title="CRC API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_march.html" class="btn btn-neutral float-right" title="March13N Test API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,593 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>March13N Test API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="MCAN Message RAM API Functions" href="stl_mcan_ram.html"/>
|
||||
<link rel="prev" title="HWBIST API Functions" href="stl_hwbist.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">March13N Test API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#pseudocode">Pseudocode</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>March13N Test API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="march13n-test-api-functions">
|
||||
<span id="stl-march"></span><h1>March13N Test API Functions<a class="headerlink" href="#march13n-test-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_march.c</span></code> and
|
||||
<code class="docutils literal notranslate"><span class="pre">source/stl_march_s.asm</span></code>, with <code class="docutils literal notranslate"><span class="pre">include/stl_march.h</span></code>
|
||||
containing the API declarations for use by applications.</p>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>To inject errors to be detected with the <strong>STL_March_testRAMCopy()</strong> and
|
||||
<strong>STL_March_checkErrorStatus()</strong> functions, call <strong>STL_March_injectError()</strong> to set
|
||||
up an error in a RAM location. See your device’s Technical Reference Manual
|
||||
for details on parity/ECC bit placement while the RAM is in test mode to select
|
||||
an appropriate <em>xorMask</em> value. Note that when running <strong>STL_March_testRAM()</strong>, any
|
||||
injected errors will be overwritten by the first pattern written to the
|
||||
RAM location since this triggers a recalculation of the parity/ECC.</p>
|
||||
<p>Take care not to inject an error into the region of memory being used to
|
||||
contain the stack. The <strong>STL_March_injectError()</strong> needs to be able to use the
|
||||
stack, but will not be able to read and write to it as expected after the RAM
|
||||
is put into test mode.</p>
|
||||
</div>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__march"></span><em>group</em> <code class="sig-name descname">stl_march</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MARCH_PASS">
|
||||
<span class="target" id="group__stl__march_1ga589d8ac266fc79d2ba7fb6b045dfb55e"></span><code class="sig-name descname">STL_MARCH_PASS</code> 0U<a class="headerlink" href="#c.STL_MARCH_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MARCH_CORR_ERROR">
|
||||
<span class="target" id="group__stl__march_1gae1ca4cd4e600c814c88b61b7feed2668"></span><code class="sig-name descname">STL_MARCH_CORR_ERROR</code> 1U<a class="headerlink" href="#c.STL_MARCH_CORR_ERROR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MARCH_UNC_ERROR">
|
||||
<span class="target" id="group__stl__march_1gafe477d5d804c0cad19bd99c1a39f480d"></span><code class="sig-name descname">STL_MARCH_UNC_ERROR</code> 2U<a class="headerlink" href="#c.STL_MARCH_UNC_ERROR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MARCH_BOTH_ERROR">
|
||||
<span class="target" id="group__stl__march_1ga25c7353040d6c56f25317d7cf3309a92"></span><code class="sig-name descname">STL_MARCH_BOTH_ERROR</code> 3U<a class="headerlink" href="#c.STL_MARCH_BOTH_ERROR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Typedefs</p>
|
||||
<dl class="cpp type">
|
||||
<dt id="_CPPv427STL_March_InjectErrorHandle">
|
||||
<span id="_CPPv327STL_March_InjectErrorHandle"></span><span id="_CPPv227STL_March_InjectErrorHandle"></span><span id="STL_March_InjectErrorHandle"></span><span class="target" id="group__stl__march_1ga50d83c02f4fb073d2bf9975251336910"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv424STL_March_InjectErrorObj" title="STL_March_InjectErrorObj">STL_March_InjectErrorObj</a> *<code class="sig-name descname">STL_March_InjectErrorHandle</code><a class="headerlink" href="#_CPPv427STL_March_InjectErrorHandle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Defines the RAM error logic test handle </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv417STL_March_Pattern">
|
||||
<span id="_CPPv317STL_March_Pattern"></span><span id="_CPPv217STL_March_Pattern"></span><span class="target" id="group__stl__march_1ga70899b03ea106698038cd5335b88a91a"></span><em class="property">enum </em><code class="sig-name descname">STL_March_Pattern</code><a class="headerlink" href="#_CPPv417STL_March_Pattern" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values that must be used to pass to determine the test pattern for <a class="reference internal" href="#group__stl__march_1ga35601eb00989fd5bbb1bdb16d0359cc7"><span class="std std-ref">STL_March_testRAMCopy()</span></a> and <a class="reference internal" href="#group__stl__march_1ga996b54ec54eb27feb20eda8d1b2808c1"><span class="std std-ref">STL_March_testRAM()</span></a> </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv421STL_MARCH_PATTERN_ONE">
|
||||
<span id="_CPPv321STL_MARCH_PATTERN_ONE"></span><span id="_CPPv221STL_MARCH_PATTERN_ONE"></span><span class="target" id="group__stl__march_1gga70899b03ea106698038cd5335b88a91aa50911f1722cf57c8f0579dc9c990b701"></span><code class="sig-name descname">STL_MARCH_PATTERN_ONE</code> = 0x96966969U<a class="headerlink" href="#_CPPv421STL_MARCH_PATTERN_ONE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Test Pattern One. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv421STL_MARCH_PATTERN_TWO">
|
||||
<span id="_CPPv321STL_MARCH_PATTERN_TWO"></span><span id="_CPPv221STL_MARCH_PATTERN_TWO"></span><span class="target" id="group__stl__march_1gga70899b03ea106698038cd5335b88a91aa663fa4893e826d199263ae480d515a25"></span><code class="sig-name descname">STL_MARCH_PATTERN_TWO</code> = 0x0000FFFEU<a class="headerlink" href="#_CPPv421STL_MARCH_PATTERN_TWO" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Test Pattern Two. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv423STL_MARCH_PATTERN_THREE">
|
||||
<span id="_CPPv323STL_MARCH_PATTERN_THREE"></span><span id="_CPPv223STL_MARCH_PATTERN_THREE"></span><span class="target" id="group__stl__march_1gga70899b03ea106698038cd5335b88a91aa97482a30ecd2410d3904a74277224cc4"></span><code class="sig-name descname">STL_MARCH_PATTERN_THREE</code> = 0x2AAA5555U<a class="headerlink" href="#_CPPv423STL_MARCH_PATTERN_THREE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Test Pattern Three. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv422STL_MARCH_PATTERN_FOUR">
|
||||
<span id="_CPPv322STL_MARCH_PATTERN_FOUR"></span><span id="_CPPv222STL_MARCH_PATTERN_FOUR"></span><span class="target" id="group__stl__march_1gga70899b03ea106698038cd5335b88a91aaad1ac96ac1a0c175b7ca11211f03db7f"></span><code class="sig-name descname">STL_MARCH_PATTERN_FOUR</code> = 0xCC3723CCU<a class="headerlink" href="#_CPPv422STL_MARCH_PATTERN_FOUR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Test Pattern Four. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421STL_March_testRAMCopyK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t">
|
||||
<span id="_CPPv321STL_March_testRAMCopyK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"></span><span id="_CPPv221STL_March_testRAMCopyK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"></span><span id="STL_March_testRAMCopy__STL_March_PatternC.uint32_tC.uint32_tC.uint32_tC"></span><span class="target" id="group__stl__march_1ga35601eb00989fd5bbb1bdb16d0359cc7"></span>void <code class="sig-name descname">STL_March_testRAMCopy</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv417STL_March_Pattern" title="STL_March_Pattern">STL_March_Pattern</a> <em>pattern</em>, <em class="property">const</em> uint32_t <em>startAddress</em>, <em class="property">const</em> uint32_t <em>length</em>, <em class="property">const</em> uint32_t <em>copyAddress</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421STL_March_testRAMCopyK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Performs a March13N non-destructive memory test on the specified RAM memory. </p>
|
||||
<p><p>This function performs a March13N memory test on RAM specified by </p>
|
||||
<strong>startAddress</strong> and <strong>length</strong>. This function performs a non-destructive memory test. This means that it will begin by copying the original contents of the memory to <strong>copyAddress</strong>, perform the memory test, and then copy the original contents back to the memory under test. The test patterns along with the March13N memory test algorithm provided, test memory for stuck-at-faults as well as boundary cases including worst case timings tailored for the C2000 RAM bank architecture.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">pattern</span></code>: is the test pattern to use. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">startAddress</span></code>: is the address to start the memory test. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">length</span></code>: is the number of 32-bit words of the memory test minus 1. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">copyAddress</span></code>: is the address to copy the original contents of the memory under test. It will be used to restore the original memory at the end of the March13N memory test.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>This test is implemented to be able to perform a memory test on any section of RAM including the stack.</p>
|
||||
<p><dl>
|
||||
<dt><strong>Note</strong></dt><dd><p>If this code is running from RAM, be careful not to perform this memory test on itself, meaning do not perform the March13N memory test on the March13N program code in RAM. This will likely lead to an ITRAP. In order to test the program code for this March13N algorithm, the user can create a copy of this function in RAM or flash and run the memory test code from the copy.</p>
|
||||
<p>This function disables global CPU interrupts (DINT) and then re-enables them after the test has completed.</p>
|
||||
<p><strong>length</strong> is the number of 32-bits words to test minus 1. For example, in order to test 8 32-bit words, length is 7.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv417STL_March_testRAMK17STL_March_PatternK8uint32_tK8uint32_t">
|
||||
<span id="_CPPv317STL_March_testRAMK17STL_March_PatternK8uint32_tK8uint32_t"></span><span id="_CPPv217STL_March_testRAMK17STL_March_PatternK8uint32_tK8uint32_t"></span><span id="STL_March_testRAM__STL_March_PatternC.uint32_tC.uint32_tC"></span><span class="target" id="group__stl__march_1ga996b54ec54eb27feb20eda8d1b2808c1"></span>void <code class="sig-name descname">STL_March_testRAM</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv417STL_March_Pattern" title="STL_March_Pattern">STL_March_Pattern</a> <em>pattern</em>, <em class="property">const</em> uint32_t <em>startAddress</em>, <em class="property">const</em> uint32_t <em>length</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417STL_March_testRAMK17STL_March_PatternK8uint32_tK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Performs a March13N destructive memory test on the specified RAM memory. </p>
|
||||
<p><p>This function performs a March13N memory test on RAM specified by </p>
|
||||
<strong>startAddress</strong> and <strong>length</strong>. This test performs a destructive memory test, meaning the original contents will be lost by this test. The test patterns along with the March13N memory test algorithm provided, test memory for stuck-at-faults as well as boundary cases including worst case timings tailored for the C2000 RAM bank architecture.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">pattern</span></code>: is the test pattern to use. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">startAddress</span></code>: is the address to start the memory test. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">length</span></code>: is the number of 32-bit words of the memory test minus 1.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl>
|
||||
<dt><strong>Note</strong></dt><dd><p>If this code is running from RAM, be careful not to perform this memory test on itself, meaning do not perform the March13N memory test on the March13N program code in RAM. This will likely lead to an ITRAP. In order to test the program code for this March13N algorithm, the user can create a copy of this function in RAM or flash and run the memory test code from the copy.</p>
|
||||
<p>This function disables global CPU interrupts (DINT) and then re-enables them after the test has completed.</p>
|
||||
<p><strong>length</strong> is the number of 32-bits words to test minus 1. For example, in order to test 8 32-bit words, length is 7.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421STL_March_injectErrorK27STL_March_InjectErrorHandle">
|
||||
<span id="_CPPv321STL_March_injectErrorK27STL_March_InjectErrorHandle"></span><span id="_CPPv221STL_March_injectErrorK27STL_March_InjectErrorHandle"></span><span id="STL_March_injectError__STL_March_InjectErrorHandleC"></span><span class="target" id="group__stl__march_1ga4bd25a429d8a5902a2b7542aa68ce99e"></span>void <code class="sig-name descname">STL_March_injectError</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv427STL_March_InjectErrorHandle" title="STL_March_InjectErrorHandle">STL_March_InjectErrorHandle</a> <em>errorHandle</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421STL_March_injectErrorK27STL_March_InjectErrorHandle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Injects an error into a RAM memory address. </p>
|
||||
<p><p>This function injects an error at a specific memory </p>
|
||||
<strong>address</strong> in a specific <strong>ramSection</strong>. <strong>testMode</strong> specifies whether the error will be injected in the data or ECC/parity bits. <strong>xorMask</strong> specifies which bit or bits to flip in order to corrupt either the data or ECC/parity bits.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">errorHandle</span></code>: the inject error handle specifying where and what type of error to inject into RAM.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv426STL_March_checkErrorStatusv">
|
||||
<span id="_CPPv326STL_March_checkErrorStatusv"></span><span id="_CPPv226STL_March_checkErrorStatusv"></span><span id="STL_March_checkErrorStatus__void"></span><span class="target" id="group__stl__march_1ga49504225c2dedba1ea22de8ba2fac554"></span>uint16_t <code class="sig-name descname">STL_March_checkErrorStatus</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv426STL_March_checkErrorStatusv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the status of the Memory Error Registers for RAM. </p>
|
||||
<p>This function checks if there are any correctable or uncorrectable errors indicated by the Memory Error Registers and returns the status.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>If the Memory Error Registers indicate a correctable error and/or an uncorrectable error in RAM, then the function returns <strong>STL_MARCH_CORR_ERROR</strong>, <strong>STL_MARCH_UNC_ERROR</strong>, or <strong>STL_MARCH_BOTH_ERROR</strong>. Otherwise, the function returns <strong>STL_MARCH_PASS</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<dl class="cpp struct">
|
||||
<dt id="_CPPv424STL_March_InjectErrorObj">
|
||||
<span id="_CPPv324STL_March_InjectErrorObj"></span><span id="_CPPv224STL_March_InjectErrorObj"></span><span id="STL_March_InjectErrorObj"></span><span class="target" id="struct_s_t_l___march___inject_error_obj"></span><em class="property">struct </em><code class="sig-name descname">STL_March_InjectErrorObj</code><a class="headerlink" href="#_CPPv424STL_March_InjectErrorObj" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><em>#include <stl_march.h></em><p>Defines the March memory test inject error object. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="pseudocode">
|
||||
<h2>Pseudocode<a class="headerlink" href="#pseudocode" title="Permalink to this headline">¶</a></h2>
|
||||
<p>Since the core functions in this module are written in assembly, it may be hard to
|
||||
follow for users who are not will versed in the C28x instruction set. Some
|
||||
pseudo-C code versions of the module functions are provided below to make them
|
||||
easier to understand. Some knowledge of the C28x core registers may still be
|
||||
helpful however. See the <a class="reference external" href="https://www.ti.com/lit/pdf/spru430">C28x CPU and Instruction Set Guide</a>
|
||||
for more details.</p>
|
||||
<p>Pseudocode for <strong>STL_March_testRAMCopy()</strong> is shown below. <strong>STL_March_testRAM()</strong>
|
||||
is simply a subset of this code without the save and restore of the RAM contents.</p>
|
||||
<dl>
|
||||
<dt>::</dt><dd><p>//
|
||||
// startAddress and copyAddress aren’t pointer types in the prototype
|
||||
// in stl_march.h, but we’ll treat them like pointers for simplicity of
|
||||
// the pseudocode. Increments/decrements to currentPointer and copyPointer
|
||||
// should be assumed to behave like pointer arithmetic, moving from one
|
||||
// 32-bit word to the next.
|
||||
//
|
||||
void STL_March_testRAMCopy(const STL_March_Pattern pattern,</p>
|
||||
<blockquote>
|
||||
<div><p>const uint32_t startAddress,
|
||||
const uint32_t length,
|
||||
const uint32_t copyAddress)</p>
|
||||
</div></blockquote>
|
||||
<dl>
|
||||
<dt>{</dt><dd><p>iterations = 1
|
||||
wordCount = length
|
||||
currentPointer = startAddress
|
||||
copyPointer = copyAddress</p>
|
||||
<p>DINT // Disable interrupts since we’ll be corrupting memory</p>
|
||||
<p>//
|
||||
// Save the contents of the RAM we’ll be testing
|
||||
//
|
||||
// aSave
|
||||
while(wordCount != 0)
|
||||
{</p>
|
||||
<blockquote>
|
||||
<div><p><a href="#id1"><span class="problematic" id="id2">*</span></a>copyPointer = <a href="#id3"><span class="problematic" id="id4">*</span></a>currentPointer</p>
|
||||
<p>copyPointer++
|
||||
currentPointer++
|
||||
wordCount–</p>
|
||||
</div></blockquote>
|
||||
<p>}</p>
|
||||
<p>wordCount = length
|
||||
currentPointer = startAddress</p>
|
||||
<p>//
|
||||
// Fill the memory range with the pattern
|
||||
//
|
||||
// aFill
|
||||
while(wordCount != 0)
|
||||
{</p>
|
||||
<blockquote>
|
||||
<div><p><a href="#id5"><span class="problematic" id="id6">*</span></a>currentPointer = pattern</p>
|
||||
<p>currentPointer++
|
||||
wordCount–</p>
|
||||
</div></blockquote>
|
||||
<p>}</p>
|
||||
<p>//
|
||||
// Perform pattern reads and writes, working in an ascending address
|
||||
// direction. Note that it’s just reading the memory location, but not
|
||||
// checking the value. The ECC/parity check that happens in hardware
|
||||
// is what will catch any errors.
|
||||
//
|
||||
// This loop runs twice–once with ~pattern, then with pattern
|
||||
//
|
||||
// aAscend
|
||||
while(iterations >= 0)
|
||||
{</p>
|
||||
<blockquote>
|
||||
<div><p>pattern = ~pattern
|
||||
wordCount = length
|
||||
currentPointer = startAddress</p>
|
||||
<p>// aAscendInner
|
||||
while(wordCount != 0)
|
||||
{</p>
|
||||
<blockquote>
|
||||
<div><p>temp = <a href="#id7"><span class="problematic" id="id8">*</span></a>currentPointer // read location
|
||||
<a href="#id9"><span class="problematic" id="id10">*</span></a>currentPointer = pattern // write pattern
|
||||
temp = <a href="#id11"><span class="problematic" id="id12">*</span></a>currentPointer // read location</p>
|
||||
<p>currentPointer++
|
||||
wordCount–</p>
|
||||
</div></blockquote>
|
||||
<p>}</p>
|
||||
<p>iterations–</p>
|
||||
</div></blockquote>
|
||||
<p>}</p>
|
||||
<p>iterations = 1
|
||||
endPointer = currentPointer // Save the end address+1 for future use</p>
|
||||
<p>//
|
||||
// Perform pattern reads and writes, this time working in a descending
|
||||
// address direction.
|
||||
//
|
||||
// This loop runs twice–once with ~pattern, then with pattern
|
||||
//
|
||||
// aDescend
|
||||
while(iterations >= 0)
|
||||
{</p>
|
||||
<blockquote>
|
||||
<div><p>pattern = ~pattern
|
||||
wordCount = length</p>
|
||||
<p>// aDescendInner
|
||||
while(wordCount != 0)
|
||||
{</p>
|
||||
<blockquote>
|
||||
<div><p>currentPointer–</p>
|
||||
<p>temp = <a href="#id13"><span class="problematic" id="id14">*</span></a>currentPointer // read location
|
||||
<a href="#id15"><span class="problematic" id="id16">*</span></a>currentPointer = pattern // write pattern
|
||||
temp = <a href="#id17"><span class="problematic" id="id18">*</span></a>currentPointer // read location</p>
|
||||
<p>wordCount–</p>
|
||||
</div></blockquote>
|
||||
<p>}</p>
|
||||
<p>currentPointer = endPointer
|
||||
iterations–</p>
|
||||
</div></blockquote>
|
||||
<p>}</p>
|
||||
<p>wordCount = length</p>
|
||||
<p>//
|
||||
// Restore RAM contents, working from end to start
|
||||
//
|
||||
// aRestore
|
||||
while(wordCount != 0)
|
||||
{</p>
|
||||
<blockquote>
|
||||
<div><p>copyPointer–
|
||||
currentPointer–</p>
|
||||
<p><a href="#id19"><span class="problematic" id="id20">*</span></a>currentPointer = <a href="#id21"><span class="problematic" id="id22">*</span></a>copyPointer</p>
|
||||
<p>wordCount–</p>
|
||||
</div></blockquote>
|
||||
<p>}</p>
|
||||
<p>EINT</p>
|
||||
<p>return</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>}</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_hwbist.html" class="btn btn-neutral float-left" title="HWBIST API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_mcan_ram.html" class="btn btn-neutral float-right" title="MCAN Message RAM API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,386 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>MCAN Message RAM API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="Oscillator CPU Timer API Functions" href="stl_osc_ct.html"/>
|
||||
<link rel="prev" title="March13N Test API Functions" href="stl_march.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">MCAN Message RAM API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>MCAN Message RAM API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="mcan-message-ram-api-functions">
|
||||
<span id="stl-mcan-ram"></span><h1>MCAN Message RAM API Functions<a class="headerlink" href="#mcan-message-ram-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_mcan_ram.c</span></code>
|
||||
with <code class="docutils literal notranslate"><span class="pre">include/stl_mcan_ram.h</span></code> containing the API declarations
|
||||
for use by applications.</p>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>To inject errors to be detected with the <strong>STL_MCAN_RAM_testRAM()</strong> and
|
||||
<strong>STL_MCAN_RAM_checkErrorStatus()</strong> functions, call <strong>STL_MCAN_RAM_injectError()</strong> with
|
||||
an <em>xorMask</em> value that will cause errors. Note that when running the test
|
||||
in “NO_COPY” mode, any injected errors will be overwritten by the first
|
||||
pattern written to the RAM location since this triggers a recalculation of the ECC.</p>
|
||||
</div>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__mcan__ram"></span><em>group</em> <code class="sig-name descname">stl_mcan_ram</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MCAN_RAM_PASS">
|
||||
<span class="target" id="group__stl__mcan__ram_1ga23c77d3452d518f4bfa5ec9c20746f55"></span><code class="sig-name descname">STL_MCAN_RAM_PASS</code> 0U<a class="headerlink" href="#c.STL_MCAN_RAM_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MCAN_RAM_ERROR">
|
||||
<span class="target" id="group__stl__mcan__ram_1gaa492f5536043614b1aeac5a56a739575"></span><code class="sig-name descname">STL_MCAN_RAM_ERROR</code> 1U<a class="headerlink" href="#c.STL_MCAN_RAM_ERROR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MCAN_RAM_MAX_ADDR_OFFSET">
|
||||
<span class="target" id="group__stl__mcan__ram_1ga460c7db5a864665f5b3456e4d29df260"></span><code class="sig-name descname">STL_MCAN_RAM_MAX_ADDR_OFFSET</code> 0x43FFU<a class="headerlink" href="#c.STL_MCAN_RAM_MAX_ADDR_OFFSET" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_MCAN_RAM_NO_COPY">
|
||||
<span class="target" id="group__stl__mcan__ram_1ga8dfec0bfeaab42ce121befefd7219add"></span><code class="sig-name descname">STL_MCAN_RAM_NO_COPY</code> 0xFFFFFFFFU<a class="headerlink" href="#c.STL_MCAN_RAM_NO_COPY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Value to indicate to <a class="reference internal" href="#group__stl__mcan__ram_1gaf9d5759f5a1d2dfc3d02895bcf0c8612"><span class="std std-ref">STL_MCAN_RAM_testRAM()</span></a> through the <strong>copyAddress</strong> parameter that the test should run a destructive test on the region of MCAN message RAM without saving and restoring its contents. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420STL_MCAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t">
|
||||
<span id="_CPPv320STL_MCAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"></span><span id="_CPPv220STL_MCAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"></span><span id="STL_MCAN_RAM_testRAM__uint32_tC.STL_March_PatternC.uint32_tC.uint32_tC.uint32_tC"></span><span class="target" id="group__stl__mcan__ram_1gaf9d5759f5a1d2dfc3d02895bcf0c8612"></span>void <code class="sig-name descname">STL_MCAN_RAM_testRAM</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>mcanBase</em>, <em class="property">const</em> <a class="reference internal" href="stl_march.html#_CPPv417STL_March_Pattern" title="STL_March_Pattern">STL_March_Pattern</a> <em>pattern</em>, <em class="property">const</em> uint32_t <em>startAddress</em>, <em class="property">const</em> uint32_t <em>endAddress</em>, <em class="property">const</em> uint32_t <em>copyAddress</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420STL_MCAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Performs a March13N memory test on the specified range of MCAN message RAM objects. </p>
|
||||
<p><p>This function performs a March13N memory test on the range of MCAN message RAM specified by </p>
|
||||
<strong>mcanBase</strong>, <strong>startAddress</strong> and <strong>endAddress</strong>. The test can save and restore the original contents of the message RAM by passing an address to a back up buffer through the <strong>copyAddress</strong> parameter. The test will copy the original contents of the memory to <strong>copyAddress</strong>, perform the memory test, and then copy the original contents back to the memory under test. To skip the save and restore, use a value of <strong>STL_MCAN_RAM_NO_COPY</strong> for the <strong>copyAddress</strong> and a destructive test will be performed instead.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">mcanBase</span></code>: is the base address of the MCAN instance. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">pattern</span></code>: is the test pattern to use. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">startAddress</span></code>: is the starting address (inclusive) of the MCAN message RAM range to test. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">endAddress</span></code>: is the end address (inclusive) of the MCAN message RAM range to test. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">copyAddress</span></code>: is the address to copy the original contents of the memory under test. It will be used to restore the original memory at the end of the March13N memory test. If no save and restore is required, use a value of <strong>STL_MCAN_RAM_NO_COPY</strong>.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The test patterns and the March13N memory test algorithm provided test the memory for stuck-at-faults. The message RAM ECC logic will be used to detect issues. Use <a class="reference internal" href="#group__stl__mcan__ram_1gaf4b03c3b8bb631aec1a0631653a6026c"><span class="std std-ref">STL_MCAN_RAM_checkErrorStatus()</span></a> to read the ECC status.</p>
|
||||
<p><dl>
|
||||
<dt><strong>Note</strong></dt><dd><p>Note to take care calculating the size of memory needed for <strong>copyAddress</strong>. The March13N function is not specific to the MCAN message RAM and does not take the byte addressability of the memory into account. Use a buffer twice the size of the actual message RAM region you are testing.</p>
|
||||
<p>The STL_March functions called by this test disable global CPU interrupts (DINT) and then re-enable them after the test has completed.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv424STL_MCAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t">
|
||||
<span id="_CPPv324STL_MCAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t"></span><span id="_CPPv224STL_MCAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t"></span><span id="STL_MCAN_RAM_injectError__uint32_tC.uint32_tC.uint32_tC"></span><span class="target" id="group__stl__mcan__ram_1ga9253a91992574ddf4c88fb08cd41a4e4"></span>void <code class="sig-name descname">STL_MCAN_RAM_injectError</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>mcanBase</em>, <em class="property">const</em> uint32_t <em>address</em>, <em class="property">const</em> uint32_t <em>xorMask</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv424STL_MCAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Injects an error into a MCAN message RAM address. </p>
|
||||
<p><p>This function injects an error at a specific memory </p>
|
||||
<strong>address</strong>. <strong>xorMask</strong> specifies which bit to flip in order to corrupt the data.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">mcanBase</span></code>: is the base address of the MCAN instance. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">address</span></code>: is the address of the word in the message RAM where the error will be injected. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">xorMask</span></code>: mask of the bit or bits to flip in <strong>address</strong>.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv429STL_MCAN_RAM_checkErrorStatusK8uint32_tP17MCAN_ECCErrStatus">
|
||||
<span id="_CPPv329STL_MCAN_RAM_checkErrorStatusK8uint32_tP17MCAN_ECCErrStatus"></span><span id="_CPPv229STL_MCAN_RAM_checkErrorStatusK8uint32_tP17MCAN_ECCErrStatus"></span><span id="STL_MCAN_RAM_checkErrorStatus__uint32_tC.MCAN_ECCErrStatusP"></span><span class="target" id="group__stl__mcan__ram_1gaf4b03c3b8bb631aec1a0631653a6026c"></span>uint16_t <code class="sig-name descname">STL_MCAN_RAM_checkErrorStatus</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>mcanBase</em>, MCAN_ECCErrStatus *<em>errStatus</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv429STL_MCAN_RAM_checkErrorStatusK8uint32_tP17MCAN_ECCErrStatus" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Returns the MCAN message RAM ECC error status. </p>
|
||||
<p><p>This function checks if any ECC errors have been detected or corrected by the MCAN message RAM ECC logic.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">mcanBase</span></code>: is the base address of the MCAN instance. </p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">errStatus</span></code>: is a pointer to the structure in which the detailed ECC error status will be returned.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>If the MCAN error status register indicates an ECC error the function returns <strong>STL_MCAN_RAM_ERROR</strong> and <strong>errStatus</strong> will contain additional details about the type of error. Otherwise, the function returns <strong>STL_MCAN_RAM_PASS</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_march.html" class="btn btn-neutral float-left" title="March13N Test API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_osc_ct.html" class="btn btn-neutral float-right" title="Oscillator CPU Timer API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,388 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Oscillator CPU Timer API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="Oscillator HRPWM API Functions" href="stl_osc_hr.html"/>
|
||||
<link rel="prev" title="MCAN Message RAM API Functions" href="stl_mcan_ram.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">Oscillator CPU Timer API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#id1">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>Oscillator CPU Timer API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="oscillator-cpu-timer-api-functions">
|
||||
<span id="stl-osc-ct"></span><h1>Oscillator CPU Timer API Functions<a class="headerlink" href="#oscillator-cpu-timer-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_osc_ct.c</span></code>, with
|
||||
<code class="docutils literal notranslate"><span class="pre">include/stl_osc_ct.h</span></code> containing the API declarations for use by
|
||||
applications.</p>
|
||||
<p>Note that the Dual-Clock Compare (DCC) hardware diagnostic is the recommended
|
||||
method for Clock checks. However, the STL_OSC_CT module is provided for
|
||||
scenarios where DCC may not be used, such as all available DCC instances being
|
||||
already in use. See your device technical reference manual and device DCC
|
||||
examples in C2000Ware for more details about using DCC.</p>
|
||||
</div>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>To inject an error to be detected by <strong>STL_OSC_CT_startTest()</strong> and <strong>STL_OSC_CT_stopTest()</strong>,
|
||||
you can do one of the following:</p>
|
||||
<ul class="simple">
|
||||
<li><p>Set <em>maxCount</em> and <em>minCount</em> to values so that the Timer 2 counter will be
|
||||
out of range.</p></li>
|
||||
<li><p>Set the <em>prescaler</em> so that the Timer 2 counter will not be in the
|
||||
<em>minCount/maxCount</em> range.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id1">
|
||||
<h2>Module Details<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__osc__ct"></span><em>group</em> <code class="sig-name descname">stl_osc_ct</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_CT_FAIL">
|
||||
<span class="target" id="group__stl__osc__ct_1gad9ec1c494ad4a59d761bf87acb08c80c"></span><code class="sig-name descname">STL_OSC_CT_FAIL</code> 1U<a class="headerlink" href="#c.STL_OSC_CT_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_CT_PASS">
|
||||
<span class="target" id="group__stl__osc__ct_1gae19a0db9ce4ddc088b28ebddca0974fb"></span><code class="sig-name descname">STL_OSC_CT_PASS</code> 0U<a class="headerlink" href="#c.STL_OSC_CT_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_CT_PERIOD">
|
||||
<span class="target" id="group__stl__osc__ct_1gad84dcff87669bb66d9c588f1581916d4"></span><code class="sig-name descname">STL_OSC_CT_PERIOD</code> 0xFFFFFFFFU<a class="headerlink" href="#c.STL_OSC_CT_PERIOD" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Typedefs</p>
|
||||
<dl class="cpp type">
|
||||
<dt id="_CPPv417STL_OSC_CT_Handle">
|
||||
<span id="_CPPv317STL_OSC_CT_Handle"></span><span id="_CPPv217STL_OSC_CT_Handle"></span><span id="STL_OSC_CT_Handle"></span><span class="target" id="group__stl__osc__ct_1ga43b25d40d3e3a04ad333319dcc3c67a7"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv414STL_OSC_CT_Obj" title="STL_OSC_CT_Obj">STL_OSC_CT_Obj</a> *<code class="sig-name descname">STL_OSC_CT_Handle</code><a class="headerlink" href="#_CPPv417STL_OSC_CT_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Defines the OSC Timer 2 test handle. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420STL_OSC_CT_startTestK17STL_OSC_CT_Handle">
|
||||
<span id="_CPPv320STL_OSC_CT_startTestK17STL_OSC_CT_Handle"></span><span id="_CPPv220STL_OSC_CT_startTestK17STL_OSC_CT_Handle"></span><span id="STL_OSC_CT_startTest__STL_OSC_CT_HandleC"></span><span class="target" id="group__stl__osc__ct_1ga2a7d1edbb100928b0adf0743ca8b2628"></span>void <code class="sig-name descname">STL_OSC_CT_startTest</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv417STL_OSC_CT_Handle" title="STL_OSC_CT_Handle">STL_OSC_CT_Handle</a> <em>oscTimer2Handle</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420STL_OSC_CT_startTestK17STL_OSC_CT_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Starts CPU Timer 2 to test the oscillator source. </p>
|
||||
<p><p>This function disables CPU Timer 2 interrupts, configures the CPU Timer 2 to use the specified clock source and prescaler, starts the timer, and then returns.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">oscTimer2Handle</span></code>: is a pointer to the Oscillator Timer 2 object.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The user should configure the PLL and CPU Timer with independent clock sources.</p>
|
||||
<p>The user must preserve and restore the registers modified by this function. The following CPU Timer 2 and System Control registers are modified by the function.<ul class="simple">
|
||||
<li><p>TCR</p></li>
|
||||
<li><p>PRD</p></li>
|
||||
<li><p>TPRH</p></li>
|
||||
<li><p>TPR</p></li>
|
||||
<li><p>TMR2CLKCTL</p></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>When <strong>CPUTIMER_CLOCK_SOURCE_SYS</strong> is selected as the <strong>clockSource</strong>, the <strong>prescaler</strong> is bypassed.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419STL_OSC_CT_stopTestK17STL_OSC_CT_Handle">
|
||||
<span id="_CPPv319STL_OSC_CT_stopTestK17STL_OSC_CT_Handle"></span><span id="_CPPv219STL_OSC_CT_stopTestK17STL_OSC_CT_Handle"></span><span id="STL_OSC_CT_stopTest__STL_OSC_CT_HandleC"></span><span class="target" id="group__stl__osc__ct_1gab8366f82afd8e8d2ee89fc78e63bcf6d"></span>uint16_t <code class="sig-name descname">STL_OSC_CT_stopTest</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv417STL_OSC_CT_Handle" title="STL_OSC_CT_Handle">STL_OSC_CT_Handle</a> <em>oscTimer2Handle</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419STL_OSC_CT_stopTestK17STL_OSC_CT_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Stops CPU Timer 2 and checks the elapsed time. </p>
|
||||
<p><p>This function stops CPU Timer 2 and then compares the number of ticks that have elapsed with the min and max boundaries. This function is intended to be used in combination with </p>
|
||||
<a class="reference internal" href="#group__stl__osc__ct_1ga2a7d1edbb100928b0adf0743ca8b2628"><span class="std std-ref">STL_OSC_CT_startTest()</span></a> to perform a periodic test of the oscillator source.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">oscTimer2Handle</span></code>: is a pointer to the Oscillator Timer 2 object.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>If the elapsed number of ticks is not within the min and max boundaries, the function returns <strong>STL_OSC_CT_FAIL</strong>. Otherwise, it returns <strong>STL_OSC_CT_PASS</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<dl class="cpp struct">
|
||||
<dt id="_CPPv414STL_OSC_CT_Obj">
|
||||
<span id="_CPPv314STL_OSC_CT_Obj"></span><span id="_CPPv214STL_OSC_CT_Obj"></span><span id="STL_OSC_CT_Obj"></span><span class="target" id="struct_s_t_l___o_s_c___c_t___obj"></span><em class="property">struct </em><code class="sig-name descname">STL_OSC_CT_Obj</code><a class="headerlink" href="#_CPPv414STL_OSC_CT_Obj" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><em>#include <stl_osc_ct.h></em><p>Defines the OSC Timer 2 test object. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_mcan_ram.html" class="btn btn-neutral float-left" title="MCAN Message RAM API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_osc_hr.html" class="btn btn-neutral float-right" title="Oscillator HRPWM API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,372 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Oscillator HRPWM API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="PIE RAM API Functions" href="stl_pie_ram.html"/>
|
||||
<link rel="prev" title="Oscillator CPU Timer API Functions" href="stl_osc_ct.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">Oscillator HRPWM API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#id1">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>Oscillator HRPWM API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="oscillator-hrpwm-api-functions">
|
||||
<span id="stl-osc-hr"></span><h1>Oscillator HRPWM API Functions<a class="headerlink" href="#oscillator-hrpwm-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_osc_hr.c</span></code>, with
|
||||
<code class="docutils literal notranslate"><span class="pre">include/stl_osc_hr.h</span></code> containing the API declarations for use by
|
||||
applications.</p>
|
||||
<p>Note that the Dual-Clock Compare (DCC) hardware diagnostic is the recommended
|
||||
method for Clock checks. However, the STL_OSC_CT or STL_OSC_HR modules are
|
||||
provided for scenarios where DCC may not be used, such as all available DCC
|
||||
instances being already in use. See your device technical reference manual and
|
||||
device DCC examples in C2000Ware for more details about using DCC.</p>
|
||||
</div>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>To inject an error to be detected by <strong>STL_OSC_HR_testSFO()</strong>, you can do one of
|
||||
the following:</p>
|
||||
<ul class="simple">
|
||||
<li><p>Set <em>mepMax</em> and <em>mepMin</em> the same value so that the MEP scale factor
|
||||
calculated by SFO calibration will be out of range.</p></li>
|
||||
<li><p>Disable HRPWM clock by clearing HRPWM bit in the PCLKCR0 register.</p></li>
|
||||
<li><p>Set <em>sfoDelay</em> to 0 to cause timeout.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="id1">
|
||||
<h2>Module Details<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__osc__hr"></span><em>group</em> <code class="sig-name descname">stl_osc_hr</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_HR_PASS">
|
||||
<span class="target" id="group__stl__osc__hr_1ga10e34f64b63a0da515caf65bdef5930b"></span><code class="sig-name descname">STL_OSC_HR_PASS</code> 0U<a class="headerlink" href="#c.STL_OSC_HR_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_HR_FAIL">
|
||||
<span class="target" id="group__stl__osc__hr_1gaadc6133216d2b683de950f9dbf50db87"></span><code class="sig-name descname">STL_OSC_HR_FAIL</code> 1U<a class="headerlink" href="#c.STL_OSC_HR_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_HR_SFO_INCOMPLETE">
|
||||
<span class="target" id="group__stl__osc__hr_1ga954d0a34003ac58b641002c618f01b73"></span><code class="sig-name descname">STL_OSC_HR_SFO_INCOMPLETE</code> 0<a class="headerlink" href="#c.STL_OSC_HR_SFO_INCOMPLETE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_HR_SFO_COMPLETE">
|
||||
<span class="target" id="group__stl__osc__hr_1ga8300402feda0714a0c65d74e2d4816f2"></span><code class="sig-name descname">STL_OSC_HR_SFO_COMPLETE</code> 1<a class="headerlink" href="#c.STL_OSC_HR_SFO_COMPLETE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_OSC_HR_SFO_ERROR">
|
||||
<span class="target" id="group__stl__osc__hr_1ga5f6539053a9533a5bedf74c24e63edc1"></span><code class="sig-name descname">STL_OSC_HR_SFO_ERROR</code> 2<a class="headerlink" href="#c.STL_OSC_HR_SFO_ERROR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Typedefs</p>
|
||||
<dl class="cpp type">
|
||||
<dt id="_CPPv417STL_OSC_HR_Handle">
|
||||
<span id="_CPPv317STL_OSC_HR_Handle"></span><span id="_CPPv217STL_OSC_HR_Handle"></span><span id="STL_OSC_HR_Handle"></span><span class="target" id="group__stl__osc__hr_1ga9dac08505b5dd45656b9f275a612030b"></span><em class="property">typedef </em><a class="reference internal" href="#_CPPv414STL_OSC_HR_Obj" title="STL_OSC_HR_Obj">STL_OSC_HR_Obj</a> *<code class="sig-name descname">STL_OSC_HR_Handle</code><a class="headerlink" href="#_CPPv417STL_OSC_HR_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Defines the OSC HR test handle. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418STL_OSC_HR_testSFOK17STL_OSC_HR_Handle">
|
||||
<span id="_CPPv318STL_OSC_HR_testSFOK17STL_OSC_HR_Handle"></span><span id="_CPPv218STL_OSC_HR_testSFOK17STL_OSC_HR_Handle"></span><span id="STL_OSC_HR_testSFO__STL_OSC_HR_HandleC"></span><span class="target" id="group__stl__osc__hr_1gaffdad83975c7057d414b825b5a0082a9"></span>uint16_t <code class="sig-name descname">STL_OSC_HR_testSFO</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv417STL_OSC_HR_Handle" title="STL_OSC_HR_Handle">STL_OSC_HR_Handle</a> <em>oscHRHandle</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418STL_OSC_HR_testSFOK17STL_OSC_HR_Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Tests the HRPWM SFO library’s calibration process to ensure execution completion and verify value of MEP scale factor. </p>
|
||||
<p><p>This function runs calibration using the SFO Library Software to calculate an appropriate Micro Edge Positioner (MEP) scale factor for HRPWM-supported ePWM modules to verify this value.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">oscHRHandle</span></code>: is a pointer to the OSC HR object.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p>The ePWM module used for the test is selected by <em>ePWMBase</em> member of the OSC HR test object. The valid range of inputs is from EPWM1_BASE to EPWMx_BASE where x is the value specified by PWM_CH - 1. PWM_CH is defined in the SFO library header file SFO_V8.h. The channel member can be configured to select between channels A and B. The <em>mepEdgeMode</em> value is configured for the PWM edges to be controlled by MEP. The values <em>mepMin</em> and <em>mepMax</em> define the minimum and maximum bounds of the expected MEP scale factor range. The expected MEP scale factor for EPWMCLK of 100 MHz, given a step size of 150 ps, is about 66 MEP steps. (1/EPWMCLK)/Step size = (1/100 MHz)/150 ps is about 66.</p>
|
||||
<p>The <em>sfoDelay</em> value is the delay count required for the SFO() to finish calibration. The typical EPWM cycles required for SFO() to complete calibration if called repeatedly without interrupts is 130,000 EPWMCLK cycles. Please refer to <strong>Appendix</strong> <strong>A:</strong> <strong>SFO</strong> <strong>Library</strong> <strong>Software</strong> of the Technical Reference Manual HRPWM chapter and the device datasheet for more details. The repetition rate at which SFO() needs to be executed depends on the application. If there is not a sufficiently large interval between SFO() calls, the SFO() will return and not advance to the next stage. The execution will only advance to the next stage if the previous call’s execution has completed and SFO() is called again. This interval can be experimentally calculated for a particular application.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>The SFO library binary is provided in the C2000Ware calibration libraries. The source code however is not publicly released. It may be made available in some cases upon request through an FAE.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the MEP scale factor calculated by the calibration falls within the MEP min and max values, the function returns <strong>STL_OSC_HR_PASS</strong>. If the calibration fails to complete in the specified delay, if SFO() returns an error status, or if the calculated MEP scale factor is outside the range, this function returns <strong>STL_OSC_HR_FAIL</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<dl class="cpp struct">
|
||||
<dt id="_CPPv414STL_OSC_HR_Obj">
|
||||
<span id="_CPPv314STL_OSC_HR_Obj"></span><span id="_CPPv214STL_OSC_HR_Obj"></span><span id="STL_OSC_HR_Obj"></span><span class="target" id="struct_s_t_l___o_s_c___h_r___obj"></span><em class="property">struct </em><code class="sig-name descname">STL_OSC_HR_Obj</code><a class="headerlink" href="#_CPPv414STL_OSC_HR_Obj" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><em>#include <stl_osc_hr.h></em><p>Defines the OSC HR test object. </p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_osc_ct.html" class="btn btn-neutral float-left" title="Oscillator CPU Timer API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_pie_ram.html" class="btn btn-neutral float-right" title="PIE RAM API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,478 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>PIE RAM API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="Utilities API Functions" href="stl_util.html"/>
|
||||
<link rel="prev" title="Oscillator HRPWM API Functions" href="stl_osc_hr.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">PIE RAM API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#error-injection">Error Injection</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_util.html">Utilities API Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>PIE RAM API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="pie-ram-api-functions">
|
||||
<span id="stl-pie-ram"></span><h1>PIE RAM API Functions<a class="headerlink" href="#pie-ram-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_pie_ram.c</span></code>,
|
||||
with <code class="docutils literal notranslate"><span class="pre">include/stl_pie_ram.h</span></code> containing the API declarations for use
|
||||
by applications.</p>
|
||||
<div class="section" id="error-injection">
|
||||
<h2>Error Injection<a class="headerlink" href="#error-injection" title="Permalink to this headline">¶</a></h2>
|
||||
<p>To inject an error for <strong>STL_PIE_RAM_testRAM()</strong> to detect, call
|
||||
<strong>STL_PIE_RAM_injectFault()</strong> to bit-flip an entry of the redundant PIE RAM
|
||||
vector table.</p>
|
||||
<p>To inject an error for <strong>STL_PIE_RAM_testHandler()</strong>, can disable global interrupts
|
||||
with the DINT macro.</p>
|
||||
</div>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__pie__ram"></span><em>group</em> <code class="sig-name descname">stl_pie_ram</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_PASS">
|
||||
<span class="target" id="group__stl__pie__ram_1ga576ec631e09ed1ee041f71f661bd53c4"></span><code class="sig-name descname">STL_PIE_RAM_PASS</code> 0U<a class="headerlink" href="#c.STL_PIE_RAM_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_FAIL_HANDLER">
|
||||
<span class="target" id="group__stl__pie__ram_1gacec6510e60d700195f7f01dd18f4ca60"></span><code class="sig-name descname">STL_PIE_RAM_FAIL_HANDLER</code> 1U<a class="headerlink" href="#c.STL_PIE_RAM_FAIL_HANDLER" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_MIN_INDEX">
|
||||
<span class="target" id="group__stl__pie__ram_1ga550edf4905deddab0dd8bf12c0f70879"></span><code class="sig-name descname">STL_PIE_RAM_MIN_INDEX</code> 0x6U<a class="headerlink" href="#c.STL_PIE_RAM_MIN_INDEX" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_MAX_INDEX">
|
||||
<span class="target" id="group__stl__pie__ram_1gabfaf6efe4d123176f11b74f9b2e377aa"></span><code class="sig-name descname">STL_PIE_RAM_MAX_INDEX</code> 0x1C0U<a class="headerlink" href="#c.STL_PIE_RAM_MAX_INDEX" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_REDUNDANT_PIE_ADDRESS">
|
||||
<span class="target" id="group__stl__pie__ram_1gab79c2f93aebacfd93cb5d579284d8a1c"></span><code class="sig-name descname">STL_PIE_RAM_REDUNDANT_PIE_ADDRESS</code> 0x1000D00UL<a class="headerlink" href="#c.STL_PIE_RAM_REDUNDANT_PIE_ADDRESS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_TABLE_ROW_M">
|
||||
<span class="target" id="group__stl__pie__ram_1ga84584cc0876de7744ea7b47159d4d293"></span><code class="sig-name descname">STL_PIE_RAM_TABLE_ROW_M</code> 0x00FFU<a class="headerlink" href="#c.STL_PIE_RAM_TABLE_ROW_M" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_TABLE_COL_M">
|
||||
<span class="target" id="group__stl__pie__ram_1gafff32d5dce99bac851b62006168d5462"></span><code class="sig-name descname">STL_PIE_RAM_TABLE_COL_M</code> 0xFF00U<a class="headerlink" href="#c.STL_PIE_RAM_TABLE_COL_M" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_TABLE_COL_S">
|
||||
<span class="target" id="group__stl__pie__ram_1ga7112762e488c8135000f40921cf00445"></span><code class="sig-name descname">STL_PIE_RAM_TABLE_COL_S</code> 8U<a class="headerlink" href="#c.STL_PIE_RAM_TABLE_COL_S" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_VECT_ID_M">
|
||||
<span class="target" id="group__stl__pie__ram_1gae3e55e8abfeb749a891117191eaee70b"></span><code class="sig-name descname">STL_PIE_RAM_VECT_ID_M</code> 0xFFFF0000UL<a class="headerlink" href="#c.STL_PIE_RAM_VECT_ID_M" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_PIE_RAM_VECT_ID_S">
|
||||
<span class="target" id="group__stl__pie__ram_1gae9d84383cf2ee1b6ee268c0dac5d2c5f"></span><code class="sig-name descname">STL_PIE_RAM_VECT_ID_S</code> 16U<a class="headerlink" href="#c.STL_PIE_RAM_VECT_ID_S" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419STL_PIE_RAM_handlerv">
|
||||
<span id="_CPPv319STL_PIE_RAM_handlerv"></span><span id="_CPPv219STL_PIE_RAM_handlerv"></span><span id="STL_PIE_RAM_handler__void"></span><span class="target" id="group__stl__pie__ram_1ga5e2b24bdd152cb22c5a5ed09c38a131c"></span>void <code class="sig-name descname">STL_PIE_RAM_handler</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419STL_PIE_RAM_handlerv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>PIE RAM mismatch error handler used by <a class="reference internal" href="#group__stl__pie__ram_1gac98fc63d5a62a2c2b97ae50f21d9269e"><span class="std std-ref">STL_PIE_RAM_testHandler()</span></a>.</p>
|
||||
<p>This function sets a static global flag for <a class="reference internal" href="#group__stl__pie__ram_1gac98fc63d5a62a2c2b97ae50f21d9269e"><span class="std std-ref">STL_PIE_RAM_testHandler()</span></a> and also sets the global error flag for the STL library.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425STL_PIE_RAM_configHandlerPKv">
|
||||
<span id="_CPPv325STL_PIE_RAM_configHandlerPKv"></span><span id="_CPPv225STL_PIE_RAM_configHandlerPKv"></span><span id="STL_PIE_RAM_configHandler__voidCP"></span><span class="target" id="group__stl__pie__ram_1ga4bec7ed72d225a90df9481a582392e02"></span>void <code class="sig-name descname">STL_PIE_RAM_configHandler</code><span class="sig-paren">(</span><em class="property">const</em> void *<em>handlerPtr</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425STL_PIE_RAM_configHandlerPKv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Configures a vector mismatch handler.</p>
|
||||
<p><p>This function configures a PIE RAM mismatch error handler for the users application. On a vector fetch mismatch, an exception will be taken and the error handler will be executed.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">handlerPtr</span></code>: is a pointer or address of the PIE RAM vector mismatch error exception handler.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423STL_PIE_RAM_injectFaultK8uint16_t">
|
||||
<span id="_CPPv323STL_PIE_RAM_injectFaultK8uint16_t"></span><span id="_CPPv223STL_PIE_RAM_injectFaultK8uint16_t"></span><span id="STL_PIE_RAM_injectFault__uint16_tC"></span><span class="target" id="group__stl__pie__ram_1gae923dc692525263551dcf25b1f56a7ca"></span>void <code class="sig-name descname">STL_PIE_RAM_injectFault</code><span class="sig-paren">(</span><em class="property">const</em> uint16_t <em>entry</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423STL_PIE_RAM_injectFaultK8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Injects a fault by bit-flipping an entry in the redundant PIE RAM vector table.</p>
|
||||
<p><p>This function bit-flips an entry of the redundant PIE RAM vector table in order to inject a fault. The </p>
|
||||
<strong>entry</strong> parameter must be within the boundaries <strong>STL_PIE_RAM_MIN_INDEX</strong> and <strong>STL_PIE_RAM_MAX_INDEX</strong>.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">entry</span></code>: is an index of the PIE RAM and should be a multiple of 2 for 32-bit alignment.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><p>Data writes to the redundant PIE vector table write only to the redundant table. This is how a fault may be injected. For more details see the device’s Technical Reference Manual chapter on “Vector Address Validity</p>
|
||||
<p>Check.”</p>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv425STL_PIE_RAM_restoreVectorK8uint16_t">
|
||||
<span id="_CPPv325STL_PIE_RAM_restoreVectorK8uint16_t"></span><span id="_CPPv225STL_PIE_RAM_restoreVectorK8uint16_t"></span><span id="STL_PIE_RAM_restoreVector__uint16_tC"></span><span class="target" id="group__stl__pie__ram_1gaa31b69db20de1566f8b4f65d82467863"></span>void <code class="sig-name descname">STL_PIE_RAM_restoreVector</code><span class="sig-paren">(</span><em class="property">const</em> uint16_t <em>entry</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv425STL_PIE_RAM_restoreVectorK8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Restores a PIE RAM redundant vector entry from the PIE RAM vector table.</p>
|
||||
<p><p>This function restores the PIE RAM vector entry and consequently the redundant PIE RAM vector table.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">entry</span></code>: is an index of the PIE RAM and should be a multiple of 2 for 32-bit alignment.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This function can be used to restore the fault injected by <strong><a class="reference internal" href="#group__stl__pie__ram_1gae923dc692525263551dcf25b1f56a7ca"><span class="std std-ref">STL_PIE_RAM_injectFault()</span></a></strong>.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv424STL_PIE_RAM_restoreTablePK8uint32_t">
|
||||
<span id="_CPPv324STL_PIE_RAM_restoreTablePK8uint32_t"></span><span id="_CPPv224STL_PIE_RAM_restoreTablePK8uint32_t"></span><span id="STL_PIE_RAM_restoreTable__uint32_tCP"></span><span class="target" id="group__stl__pie__ram_1ga6a202f34767855f0d1a956ae2c64f574"></span>void <code class="sig-name descname">STL_PIE_RAM_restoreTable</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t *<em>pieTableSourcePtr</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv424STL_PIE_RAM_restoreTablePK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Restores the PIE RAM from the initialization source.</p>
|
||||
<p><p>This function restores the PIE RAM vector table and consequently the redundant PIE RAM vector table.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">pieTableSourcePtr</span></code>: is a pointer to the source of the PIE vector table in the user’s application.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This function restores the entire PIE RAM table and not just a single vector entry.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419STL_PIE_RAM_testRAMv">
|
||||
<span id="_CPPv319STL_PIE_RAM_testRAMv"></span><span id="_CPPv219STL_PIE_RAM_testRAMv"></span><span id="STL_PIE_RAM_testRAM__void"></span><span class="target" id="group__stl__pie__ram_1ga4e1ea880371056ccc07024272c5452d7"></span>uint16_t <code class="sig-name descname">STL_PIE_RAM_testRAM</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419STL_PIE_RAM_testRAMv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Tests PIE RAM integrity.</p>
|
||||
<p>This function checks the integrity of PIE RAM vector by comparing the entries in the main PIE vector with the redundant PIE vector located at a higher memory address location. There is a redundant PIE RAM vector table starting at 0X1000D00 which is used for data integrity of the PIE. Data writes to the PIE vector table also write to the redundant PIE vector table. For more details see the device’s Technical Reference Manual chapter on “PIE Vector Address Validity Check.”</p>
|
||||
<p><dl>
|
||||
<dt><strong>Note</strong></dt><dd><p>The user may call <a class="reference internal" href="#group__stl__pie__ram_1ga4bec7ed72d225a90df9481a582392e02"><span class="std std-ref">STL_PIE_RAM_configHandler()</span></a> in order to register an error handler for PIE RAM mismatch. </p>
|
||||
<p>A failure of this test will not trigger the PIE RAM mismatch handler. Only when a vector is fetched in the PIE and there is a mismatch will the handler be serviced.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the test passes, it returns <strong>STL_PIE_RAM_TEST_PASS</strong>. If the test fails, it returns the address in the PIE vector table of the last failure. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423STL_PIE_RAM_testHandlerK8uint32_t">
|
||||
<span id="_CPPv323STL_PIE_RAM_testHandlerK8uint32_t"></span><span id="_CPPv223STL_PIE_RAM_testHandlerK8uint32_t"></span><span id="STL_PIE_RAM_testHandler__uint32_tC"></span><span class="target" id="group__stl__pie__ram_1gac98fc63d5a62a2c2b97ae50f21d9269e"></span>uint16_t <code class="sig-name descname">STL_PIE_RAM_testHandler</code><span class="sig-paren">(</span><em class="property">const</em> uint32_t <em>interruptNumber</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423STL_PIE_RAM_testHandlerK8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Tests PIE RAM integrity.</p>
|
||||
<p><p>This function checks the functionality of the PIE RAM mismatch error handler. It will inject an error for the input interrupt, enable the interrupt, and force the interrupt. It will then check to see that the error handler was serviced properly. Afterward, it will restore the PIE RAM and and restore the original error handler. It will also acknowledge the PIE so that further interrupts from that group can be serviced.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">interruptNumber</span></code>: is the 32-bit interrupt value used in the interrupt driver found in hw_ints.h.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>This test only covers PIE interrupts. This test does not cover CPU interrupts.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>If the test passes, it returns <strong>STL_PIE_RAM_PASS</strong>. If the test fails, and the error handler was not serviced, then it returns <strong>STL_PIE_RAM_FAIL_HANDLER</strong>. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_osc_hr.html" class="btn btn-neutral float-left" title="Oscillator HRPWM API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="stl_util.html" class="btn btn-neutral float-right" title="Utilities API Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,486 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Utilities API Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Software Diagnostic Library" href="index.html"/>
|
||||
<link rel="next" title="Self-Test Application" href="../sta/index.html"/>
|
||||
<link rel="prev" title="PIE RAM API Functions" href="stl_pie_ram.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Software Diagnostic Library</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#overview-of-the-library">Overview of the Library</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#using-the-library">Using the Library</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#library-modules">Library Modules</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_can_ram.html">CAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_cpu_reg.html">CPU Registers Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_crc.html">CRC API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_hwbist.html">HWBIST API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_march.html">March13N Test API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_mcan_ram.html">MCAN Message RAM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_ct.html">Oscillator CPU Timer API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_osc_hr.html">Oscillator HRPWM API Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="stl_pie_ram.html">PIE RAM API Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">Utilities API Functions</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#module-details">Module Details</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Software Diagnostic Library</a> »</li>
|
||||
<li>Utilities API Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="utilities-api-functions">
|
||||
<span id="stl-util"></span><h1>Utilities API Functions<a class="headerlink" href="#utilities-api-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">source/stl_util.c</span></code> and
|
||||
<code class="docutils literal notranslate"><span class="pre">source/stl_util_s.asm</span></code>, with <code class="docutils literal notranslate"><span class="pre">include/stl_util.h</span></code> containing
|
||||
the API declarations for use by applications.</p>
|
||||
<div class="section" id="module-details">
|
||||
<h2>Module Details<a class="headerlink" href="#module-details" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__stl__util"></span><em>group</em> <code class="sig-name descname">stl_util</code></dt>
|
||||
<dd><div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_UTIL_CPU_RATE">
|
||||
<span class="target" id="group__stl__util_1gae48d7c606fa1dbb6a2b1be030382a76b"></span><code class="sig-name descname">STL_UTIL_CPU_RATE</code> 5.00f<a class="headerlink" href="#c.STL_UTIL_CPU_RATE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STL_UTIL_PIEVECTTABLE_NMI">
|
||||
<span class="target" id="group__stl__util_1gaeedeb6815c6968899f00d79515aedb98"></span><code class="sig-name descname">STL_UTIL_PIEVECTTABLE_NMI</code> ((INT_NMI >> 16) * 2U)<a class="headerlink" href="#c.STL_UTIL_PIEVECTTABLE_NMI" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv418STL_Util_ErrorFlag">
|
||||
<span id="_CPPv318STL_Util_ErrorFlag"></span><span id="_CPPv218STL_Util_ErrorFlag"></span><span class="target" id="group__stl__util_1ga5616669216982377268bcd646a3c6a50"></span><em class="property">enum </em><code class="sig-name descname">STL_Util_ErrorFlag</code><a class="headerlink" href="#_CPPv418STL_Util_ErrorFlag" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Values to be passed to <a class="reference internal" href="#group__stl__util_1ga3fb639a824e3d9be02aed80da16af11a"><span class="std std-ref">STL_Util_setErrorFlag()</span></a> and <a class="reference internal" href="#group__stl__util_1gada0048e7e914feb518f82b6fcf47a23e"><span class="std std-ref">STL_Util_clearErrorFlag()</span></a>. These correspond to different errors in the STL. </p>
|
||||
<p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv412STL_UTIL_CRC">
|
||||
<span id="_CPPv312STL_UTIL_CRC"></span><span id="_CPPv212STL_UTIL_CRC"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50afb8292d47ecc013a2b9c4e1336a52878"></span><code class="sig-name descname">STL_UTIL_CRC</code> = 0x00000001UL<a class="headerlink" href="#_CPPv412STL_UTIL_CRC" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CRC check. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv416STL_UTIL_CPU_REG">
|
||||
<span id="_CPPv316STL_UTIL_CPU_REG"></span><span id="_CPPv216STL_UTIL_CPU_REG"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a161eaa005f6fdae927fd424f9c78c0cf"></span><code class="sig-name descname">STL_UTIL_CPU_REG</code> = 0x00000002UL<a class="headerlink" href="#_CPPv416STL_UTIL_CPU_REG" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>CPU register test. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv416STL_UTIL_FPU_REG">
|
||||
<span id="_CPPv316STL_UTIL_FPU_REG"></span><span id="_CPPv216STL_UTIL_FPU_REG"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a18dc461f86d7876ad7c13788308b3ce9"></span><code class="sig-name descname">STL_UTIL_FPU_REG</code> = 0x00000004UL<a class="headerlink" href="#_CPPv416STL_UTIL_FPU_REG" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>FPU register test. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv417STL_UTIL_VCRC_REG">
|
||||
<span id="_CPPv317STL_UTIL_VCRC_REG"></span><span id="_CPPv217STL_UTIL_VCRC_REG"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50aa18924795cdebc5efe153fb7b3edf05a"></span><code class="sig-name descname">STL_UTIL_VCRC_REG</code> = 0x00000008UL<a class="headerlink" href="#_CPPv417STL_UTIL_VCRC_REG" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>VCRC register test. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv425STL_UTIL_PIE_RAM_MISMATCH">
|
||||
<span id="_CPPv325STL_UTIL_PIE_RAM_MISMATCH"></span><span id="_CPPv225STL_UTIL_PIE_RAM_MISMATCH"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50ab57810c86688d003fe7f9ba86653ee21"></span><code class="sig-name descname">STL_UTIL_PIE_RAM_MISMATCH</code> = 0x00000010UL<a class="headerlink" href="#_CPPv425STL_UTIL_PIE_RAM_MISMATCH" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>PIE RAM. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv420STL_UTIL_PIE_RAM_INT">
|
||||
<span id="_CPPv320STL_UTIL_PIE_RAM_INT"></span><span id="_CPPv220STL_UTIL_PIE_RAM_INT"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a1cb75b102b7a25639dc27ad662cc7b43"></span><code class="sig-name descname">STL_UTIL_PIE_RAM_INT</code> = 0x00000020UL<a class="headerlink" href="#_CPPv420STL_UTIL_PIE_RAM_INT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>PIE RAM handler failed to execute. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv419STL_UTIL_OSC_TIMER2">
|
||||
<span id="_CPPv319STL_UTIL_OSC_TIMER2"></span><span id="_CPPv219STL_UTIL_OSC_TIMER2"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a0567e9e97b634cae35ad9d2c61313b94"></span><code class="sig-name descname">STL_UTIL_OSC_TIMER2</code> = 0x00000040UL<a class="headerlink" href="#_CPPv419STL_UTIL_OSC_TIMER2" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>OSC timer 2. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv425STL_UTIL_OSC_HR_MEP_RANGE">
|
||||
<span id="_CPPv325STL_UTIL_OSC_HR_MEP_RANGE"></span><span id="_CPPv225STL_UTIL_OSC_HR_MEP_RANGE"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a267c0c103ec53313988a9e4a7bfe4222"></span><code class="sig-name descname">STL_UTIL_OSC_HR_MEP_RANGE</code> = 0x00000080UL<a class="headerlink" href="#_CPPv425STL_UTIL_OSC_HR_MEP_RANGE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>MEP out of range. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv419STL_UTIL_OSC_HR_SFO">
|
||||
<span id="_CPPv319STL_UTIL_OSC_HR_SFO"></span><span id="_CPPv219STL_UTIL_OSC_HR_SFO"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50aafb525627e5a526f091c1f27cc98422e"></span><code class="sig-name descname">STL_UTIL_OSC_HR_SFO</code> = 0x00000100UL<a class="headerlink" href="#_CPPv419STL_UTIL_OSC_HR_SFO" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>SFO calibration error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv421STL_UTIL_OSC_HR_DELAY">
|
||||
<span id="_CPPv321STL_UTIL_OSC_HR_DELAY"></span><span id="_CPPv221STL_UTIL_OSC_HR_DELAY"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50afae517658c51aba4ece2cf7071755a5f"></span><code class="sig-name descname">STL_UTIL_OSC_HR_DELAY</code> = 0x00000200UL<a class="headerlink" href="#_CPPv421STL_UTIL_OSC_HR_DELAY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>SFO delay error. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv414STL_UTIL_MARCH">
|
||||
<span id="_CPPv314STL_UTIL_MARCH"></span><span id="_CPPv214STL_UTIL_MARCH"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a87974140278e81af6e33563eb07341c3"></span><code class="sig-name descname">STL_UTIL_MARCH</code> = 0x00000400UL<a class="headerlink" href="#_CPPv414STL_UTIL_MARCH" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>March RAM test. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv423STL_UTIL_CAN_RAM_PARITY">
|
||||
<span id="_CPPv323STL_UTIL_CAN_RAM_PARITY"></span><span id="_CPPv223STL_UTIL_CAN_RAM_PARITY"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a32a9c1ff5a17497a2f68255213209890"></span><code class="sig-name descname">STL_UTIL_CAN_RAM_PARITY</code> = 0x00000800UL<a class="headerlink" href="#_CPPv423STL_UTIL_CAN_RAM_PARITY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>March test for CAN message RAM. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv421STL_UTIL_MCAN_RAM_ECC">
|
||||
<span id="_CPPv321STL_UTIL_MCAN_RAM_ECC"></span><span id="_CPPv221STL_UTIL_MCAN_RAM_ECC"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a9920e74d4345e0ecf8fb607dcac475b5"></span><code class="sig-name descname">STL_UTIL_MCAN_RAM_ECC</code> = 0x00010000UL<a class="headerlink" href="#_CPPv421STL_UTIL_MCAN_RAM_ECC" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>March test for MCAN message RAM. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv424STL_UTIL_HWBIST_NMI_TEST">
|
||||
<span id="_CPPv324STL_UTIL_HWBIST_NMI_TEST"></span><span id="_CPPv224STL_UTIL_HWBIST_NMI_TEST"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a9efaa20edb047e875d7405b03efa75fc"></span><code class="sig-name descname">STL_UTIL_HWBIST_NMI_TEST</code> = 0x00001000UL<a class="headerlink" href="#_CPPv424STL_UTIL_HWBIST_NMI_TEST" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>HWBIST NMI test. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv420STL_UTIL_HWBIST_FAIL">
|
||||
<span id="_CPPv320STL_UTIL_HWBIST_FAIL"></span><span id="_CPPv220STL_UTIL_HWBIST_FAIL"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a086102c7b601549a4a6e551dca4cade8"></span><code class="sig-name descname">STL_UTIL_HWBIST_FAIL</code> = 0x00002000UL<a class="headerlink" href="#_CPPv420STL_UTIL_HWBIST_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>HWBIST fail. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv423STL_UTIL_HWBIST_NMI_INT">
|
||||
<span id="_CPPv323STL_UTIL_HWBIST_NMI_INT"></span><span id="_CPPv223STL_UTIL_HWBIST_NMI_INT"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a9eb9874313ab3318f899c9a32b4f3c85"></span><code class="sig-name descname">STL_UTIL_HWBIST_NMI_INT</code> = 0x00004000UL<a class="headerlink" href="#_CPPv423STL_UTIL_HWBIST_NMI_INT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>HWBIST NMI interrupt. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv423STL_UTIL_HWBIST_OVERRUN">
|
||||
<span id="_CPPv323STL_UTIL_HWBIST_OVERRUN"></span><span id="_CPPv223STL_UTIL_HWBIST_OVERRUN"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50a4be70515b4346d9cb624fb79025dffab"></span><code class="sig-name descname">STL_UTIL_HWBIST_OVERRUN</code> = 0x00008000UL<a class="headerlink" href="#_CPPv423STL_UTIL_HWBIST_OVERRUN" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>HWBIST over-run. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv419STL_UTIL_ALL_ERRORS">
|
||||
<span id="_CPPv319STL_UTIL_ALL_ERRORS"></span><span id="_CPPv219STL_UTIL_ALL_ERRORS"></span><span class="target" id="group__stl__util_1gga5616669216982377268bcd646a3c6a50abff08d888b0e826d2cb4114c417938ea"></span><code class="sig-name descname">STL_UTIL_ALL_ERRORS</code> = 0xFFFFFFFFUL<a class="headerlink" href="#_CPPv419STL_UTIL_ALL_ERRORS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416STL_Util_delayUS8uint32_t">
|
||||
<span id="_CPPv316STL_Util_delayUS8uint32_t"></span><span id="_CPPv216STL_Util_delayUS8uint32_t"></span><span id="STL_Util_delayUS__uint32_t"></span><span class="target" id="group__stl__util_1ga7e12b5b429dfd28d9b17353416bbd7dc"></span><em class="property">static</em> void <code class="sig-name descname">STL_Util_delayUS</code><span class="sig-paren">(</span>uint32_t <em>microseconds</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416STL_Util_delayUS8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Delay for a specified number of microseconds</p>
|
||||
<p><p>This function calls SysCtl_delay() to achieve a delay in microseconds. The function will convert the desired delay in microseconds to the count value expected by the function. </p>
|
||||
<em>microseconds</em> is the number of microseconds to delay.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">microseconds</span></code>: is the number of microseconds to delay.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Note</strong></dt><dd><p>If this function does not get inlined (for instance, if the optimizer is turned off) the delay will be made less accurate by the overhead of the additional function call.</p>
|
||||
</dd>
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421STL_Util_setErrorFlagK18STL_Util_ErrorFlag">
|
||||
<span id="_CPPv321STL_Util_setErrorFlagK18STL_Util_ErrorFlag"></span><span id="_CPPv221STL_Util_setErrorFlagK18STL_Util_ErrorFlag"></span><span id="STL_Util_setErrorFlag__STL_Util_ErrorFlagC"></span><span class="target" id="group__stl__util_1ga3fb639a824e3d9be02aed80da16af11a"></span>void <code class="sig-name descname">STL_Util_setErrorFlag</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv418STL_Util_ErrorFlag" title="STL_Util_ErrorFlag">STL_Util_ErrorFlag</a> <em>errorFlag</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421STL_Util_setErrorFlagK18STL_Util_ErrorFlag" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Sets a global error flag.</p>
|
||||
<p><p>This function sets an error flag in the global globalErrorFlags.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">errorFlag</span></code>: is a STL_Util_ErrorFlag that will be set in globalErrorFlags.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421STL_Util_getErrorFlagv">
|
||||
<span id="_CPPv321STL_Util_getErrorFlagv"></span><span id="_CPPv221STL_Util_getErrorFlagv"></span><span id="STL_Util_getErrorFlag__void"></span><span class="target" id="group__stl__util_1gaaca2ebd0dfe2ab6d7c3b74d0589adc61"></span>uint32_t <code class="sig-name descname">STL_Util_getErrorFlag</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421STL_Util_getErrorFlagv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Gets the error flag status of globalErrorFlags.</p>
|
||||
<p>This function returns the global globalErrorFlags.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the global globalErrorFlags. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423STL_Util_clearErrorFlagK18STL_Util_ErrorFlag">
|
||||
<span id="_CPPv323STL_Util_clearErrorFlagK18STL_Util_ErrorFlag"></span><span id="_CPPv223STL_Util_clearErrorFlagK18STL_Util_ErrorFlag"></span><span id="STL_Util_clearErrorFlag__STL_Util_ErrorFlagC"></span><span class="target" id="group__stl__util_1gada0048e7e914feb518f82b6fcf47a23e"></span>void <code class="sig-name descname">STL_Util_clearErrorFlag</code><span class="sig-paren">(</span><em class="property">const</em> <a class="reference internal" href="#_CPPv418STL_Util_ErrorFlag" title="STL_Util_ErrorFlag">STL_Util_ErrorFlag</a> <em>errorFlag</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423STL_Util_clearErrorFlagK18STL_Util_ErrorFlag" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Clears a flag of globalErrorFlags.</p>
|
||||
<p><p>This function clears a flag of globalErrorFlags.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">errorFlag</span></code>: is a STL_Util_ErrorFlag that will be cleared in globalErrorFlags.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="stl_pie_ram.html" class="btn btn-neutral float-left" title="PIE RAM API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="../sta/index.html" class="btn btn-neutral float-right" title="Self-Test Application" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,251 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>IMPORTANT NOTICE AND DISCLAIMER — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="index.html"/>
|
||||
<link rel="prev" title="Integration Notes" href="profiling.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>IMPORTANT NOTICE AND DISCLAIMER</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="important-notice-and-disclaimer">
|
||||
<h1>IMPORTANT NOTICE AND DISCLAIMER<a class="headerlink" href="#important-notice-and-disclaimer" title="Permalink to this headline">¶</a></h1>
|
||||
<p>TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS” AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS.</p>
|
||||
<p>These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you permission to use these resources only for development of an application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these resources.</p>
|
||||
<p>TI’s products are provided subject to TI’s Terms of Sale (<a class="reference external" href="https://www.ti.com/legal/termsofsale.html">https://www.ti.com/legal/termsofsale.html</a>) or other applicable terms available either on ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products.</p>
|
||||
<p>Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="profiling.html" class="btn btn-neutral float-left" title="Integration Notes" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,511 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Integration Notes — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="index.html"/>
|
||||
<link rel="next" title="IMPORTANT NOTICE AND DISCLAIMER" href="notice.html"/>
|
||||
<link rel="prev" title="Software test of watchdog operation" href="examples/sdl_ex_watchdog.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Integration Notes</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#cycle-time">Cycle Time</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#memory-usage">Memory Usage</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Integration Notes</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="integration-notes">
|
||||
<span id="profiling"></span><h1>Integration Notes<a class="headerlink" href="#integration-notes" title="Permalink to this headline">¶</a></h1>
|
||||
<p>Profiling data is provided below for evaluation. These numbers were taken using
|
||||
the compiler settings and version for the RELEASE build configuration of
|
||||
the library project and the RAM_RELEASE and FLASH_RELEASE configurations of the
|
||||
STA.</p>
|
||||
<div class="section" id="cycle-time">
|
||||
<h2>Cycle Time<a class="headerlink" href="#cycle-time" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The cycle counts shown are based on the configuration of the modules used in
|
||||
the STA. The counts are not necessarily the worst-case cycle count and may vary
|
||||
depending on the module parameters. For example, some of the memory tests have
|
||||
configurable memory ranges over which the test should be performed, meaning the
|
||||
larger the memory section, the longer the test runs.</p>
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col style="width: 40%" />
|
||||
<col style="width: 15%" />
|
||||
<col style="width: 15%" />
|
||||
<col style="width: 15%" />
|
||||
<col style="width: 15%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="row-odd"><th class="head"><p>API</p></th>
|
||||
<th class="head"><p>PASS Cycles
|
||||
(RAM)</p></th>
|
||||
<th class="head"><p>FAIL Cycles
|
||||
(RAM)</p></th>
|
||||
<th class="head"><p>PASS Cycles
|
||||
(Flash)</p></th>
|
||||
<th class="head"><p>FAIL Cycles
|
||||
(Flash)</p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p>STL_HWBIST_runMicro</p></td>
|
||||
<td><p>NA</p></td>
|
||||
<td><p>NA</p></td>
|
||||
<td><p>433</p></td>
|
||||
<td><p>476</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_HWBIST_runFull</p></td>
|
||||
<td><p>NA</p></td>
|
||||
<td><p>NA</p></td>
|
||||
<td><p>809887</p></td>
|
||||
<td><p>809887</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_PIE_RAM_testRAM</p></td>
|
||||
<td><p>5321</p></td>
|
||||
<td><p>5326</p></td>
|
||||
<td><p>7537</p></td>
|
||||
<td><p>7535</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_PIE_RAM_testHandler</p></td>
|
||||
<td><p>266</p></td>
|
||||
<td><p>168</p></td>
|
||||
<td><p>287</p></td>
|
||||
<td><p>185</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_CPU_REG_checkCPURegisters</p></td>
|
||||
<td><p>654</p></td>
|
||||
<td><p>53</p></td>
|
||||
<td><p>694</p></td>
|
||||
<td><p>73</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CPU_REG_checkFPURegisters</p></td>
|
||||
<td><p>452</p></td>
|
||||
<td><p>136</p></td>
|
||||
<td><p>483</p></td>
|
||||
<td><p>159</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_CPU_REG_checkVCRCRegisters</p></td>
|
||||
<td><p>227</p></td>
|
||||
<td><p>117</p></td>
|
||||
<td><p>255</p></td>
|
||||
<td><p>135</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_March_testRAM</p></td>
|
||||
<td><p>402</p></td>
|
||||
<td><p>402</p></td>
|
||||
<td><p>571</p></td>
|
||||
<td><p>571</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_March_testRAMCopy</p></td>
|
||||
<td><p>501</p></td>
|
||||
<td><p>501</p></td>
|
||||
<td><p>741</p></td>
|
||||
<td><p>741</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CAN_RAM_testRAM</p></td>
|
||||
<td><p>6660</p></td>
|
||||
<td><p>6660</p></td>
|
||||
<td><p>8059</p></td>
|
||||
<td><p>8059</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_CAN_RAM_testRAM (with copy)</p></td>
|
||||
<td><p>16232</p></td>
|
||||
<td><p>16337</p></td>
|
||||
<td><p>20514</p></td>
|
||||
<td><p>20635</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_MCAN_RAM_testRAM</p></td>
|
||||
<td><p>352603</p></td>
|
||||
<td><p>352603</p></td>
|
||||
<td><p>435308</p></td>
|
||||
<td><p>435308</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_MCAN_RAM_testRAM (with copy)</p></td>
|
||||
<td><p>15614</p></td>
|
||||
<td><p>15614</p></td>
|
||||
<td><p>20096</p></td>
|
||||
<td><p>20096</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CRC_checkCRC</p></td>
|
||||
<td><p>174</p></td>
|
||||
<td><p>177</p></td>
|
||||
<td><p>296</p></td>
|
||||
<td><p>291</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_OSC_CT_startTest &
|
||||
STL_OSC_CT_stopTest</p></td>
|
||||
<td><p>147</p></td>
|
||||
<td><p>143</p></td>
|
||||
<td><p>169</p></td>
|
||||
<td><p>168</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_OSC_HR_testSFO</p></td>
|
||||
<td><p>263030</p></td>
|
||||
<td><p>263030</p></td>
|
||||
<td><p>263183</p></td>
|
||||
<td><p>263183</p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="section" id="memory-usage">
|
||||
<h2>Memory Usage<a class="headerlink" href="#memory-usage" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The following shows the size in 16-bit words of the STL APIs. These values were
|
||||
obtained from the STA .map file.</p>
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col style="width: 59%" />
|
||||
<col style="width: 41%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="row-odd"><th class="head"><p>API</p></th>
|
||||
<th class="head"><p>Memory (16-bit words)</p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p>STL_CAN_RAM_checkErrorStatus</p></td>
|
||||
<td><p>14</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CAN_RAM_injectError</p></td>
|
||||
<td><p>39</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_CAN_RAM_testRAM</p></td>
|
||||
<td><p>62</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CPU_REG_testCPURegisters</p></td>
|
||||
<td><p>205</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_CPU_REG_testFPURegisters</p></td>
|
||||
<td><p>170</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CPU_REG_testVCRCRegisters</p></td>
|
||||
<td><p>76</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_CRC_checkCRC</p></td>
|
||||
<td><p>40</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CRC_calculate</p></td>
|
||||
<td><p>56</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_CRC_calculateLowBytes</p></td>
|
||||
<td><p>46</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_CRC_reset</p></td>
|
||||
<td><p>5</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_HWBIST_errorNMIISR</p></td>
|
||||
<td><p>78</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_HWBIST_init</p></td>
|
||||
<td><p>90</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_HWBIST_handleReset</p></td>
|
||||
<td><p>131</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_HWBIST_runFull</p></td>
|
||||
<td><p>130</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_HWBIST_runMicro</p></td>
|
||||
<td><p>38</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_HWBIST_runMicroTest</p></td>
|
||||
<td><p>142</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_HWBIST_restoreContext</p></td>
|
||||
<td><p>15</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_March_checkErrorStatus</p></td>
|
||||
<td><p>38</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_March_injectError</p></td>
|
||||
<td><p>16</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_March_testRAM</p></td>
|
||||
<td><p>35</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_March_testRAMCopy</p></td>
|
||||
<td><p>47</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_MCAN_RAM_checkErrorStatus</p></td>
|
||||
<td><p>19</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_MCAN_RAM_injectError</p></td>
|
||||
<td><p>42</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_MCAN_RAM_testRAM</p></td>
|
||||
<td><p>35</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_OSC_CT_startTest</p></td>
|
||||
<td><p>66</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_OSC_CT_stopTest</p></td>
|
||||
<td><p>30</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_OSC_HR_testSFO</p></td>
|
||||
<td><p>120</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_PIE_RAM_handler</p></td>
|
||||
<td><p>5</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_PIE_RAM_injectFault</p></td>
|
||||
<td><p>18</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_PIE_RAM_restoreVector</p></td>
|
||||
<td><p>10</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_PIE_RAM_testHandler</p></td>
|
||||
<td><p>101</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_PIE_RAM_testRAM</p></td>
|
||||
<td><p>32</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_Util_clearErrorFlag</p></td>
|
||||
<td><p>6</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>STL_Util_getErrorFlag</p></td>
|
||||
<td><p>4</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>STL_Util_setErrorFlag</p></td>
|
||||
<td><p>5</p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>There is also a contribution from the non-inline driverlib functions used by
|
||||
the library. Use of the STL_OSC_HR module results in an additional 497
|
||||
words from the SFO library.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="examples/sdl_ex_watchdog.html" class="btn btn-neutral float-left" title="Software test of watchdog operation" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="notice.html" class="btn btn-neutral float-right" title="IMPORTANT NOTICE AND DISCLAIMER" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,260 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Search — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="genindex.html"/>
|
||||
<link rel="search" title="Search" href="#"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="index.html"/>
|
||||
|
||||
|
||||
<script src="_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="#" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta/index.html">Self-Test Application</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Search</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<noscript>
|
||||
<div id="fallback" class="admonition warning">
|
||||
<p class="last">
|
||||
Please activate JavaScript to enable the search functionality.
|
||||
</p>
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
|
||||
<div id="search-results">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'./',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
LINK_SUFFIX: '.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
jQuery(function() { Search.loadIndex("searchindex.js"); });
|
||||
</script>
|
||||
|
||||
<script id="searchindexloader"></script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
Search.setIndex({docnames:["examples/index","examples/sdl_ex_dcsm_ffi","examples/sdl_ex_flash_ecc_test","examples/sdl_ex_flash_prefetch_test","examples/sdl_ex_mcd_test","examples/sdl_ex_ram_access_protect","examples/sdl_ex_ram_ecc_parity_test","examples/sdl_ex_watchdog","index","intro","library/index","library/stl_can_ram","library/stl_cpu_reg","library/stl_crc","library/stl_hwbist","library/stl_march","library/stl_mcan_ram","library/stl_osc_ct","library/stl_osc_hr","library/stl_pie_ram","library/stl_util","notice","profiling","sta/index","sta/sta_comm","sta/sta_tests","sta/sta_timer","sta/sta_user","sta/sta_util"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":2,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.intersphinx":1,"sphinx.ext.todo":2,sphinx:56},filenames:["examples/index.rst","examples/sdl_ex_dcsm_ffi.rst","examples/sdl_ex_flash_ecc_test.rst","examples/sdl_ex_flash_prefetch_test.rst","examples/sdl_ex_mcd_test.rst","examples/sdl_ex_ram_access_protect.rst","examples/sdl_ex_ram_ecc_parity_test.rst","examples/sdl_ex_watchdog.rst","index.rst","intro.rst","library/index.rst","library/stl_can_ram.rst","library/stl_cpu_reg.rst","library/stl_crc.rst","library/stl_hwbist.rst","library/stl_march.rst","library/stl_mcan_ram.rst","library/stl_osc_ct.rst","library/stl_osc_hr.rst","library/stl_pie_ram.rst","library/stl_util.rst","notice.rst","profiling.rst","sta/index.rst","sta/sta_comm.rst","sta/sta_tests.rst","sta/sta_timer.rst","sta/sta_user.rst","sta/sta_util.rst"],objects:{"":{"STA_Comm_transmitData::msg":[24,3,1,"_CPPv421STA_Comm_transmitDataPh"],"STA_Tests_testDevice::testItem":[25,3,1,"_CPPv420STA_Tests_testDevice14STA_TestsTypes"],"STA_Timer_config::msTimeOut":[26,3,1,"_CPPv416STA_Timer_config8uint16_t"],"STA_Util_configProfiler::base":[28,3,1,"_CPPv423STA_Util_configProfiler8uint32_t"],"STA_Util_startProfiler::base":[28,3,1,"_CPPv422STA_Util_startProfiler8uint32_t"],"STA_Util_stopProfiler::base":[28,3,1,"_CPPv421STA_Util_stopProfiler8uint32_t"],"STL_CAN_RAM_checkErrorStatus::canBase":[11,3,1,"_CPPv428STL_CAN_RAM_checkErrorStatusK8uint32_t"],"STL_CAN_RAM_injectError::address":[11,3,1,"_CPPv423STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t"],"STL_CAN_RAM_injectError::canBase":[11,3,1,"_CPPv423STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t"],"STL_CAN_RAM_injectError::xorMask":[11,3,1,"_CPPv423STL_CAN_RAM_injectErrorK8uint32_tK8uint32_tK8uint32_t"],"STL_CAN_RAM_testRAM::canBase":[11,3,1,"_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"],"STL_CAN_RAM_testRAM::copyAddress":[11,3,1,"_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"],"STL_CAN_RAM_testRAM::endAddress":[11,3,1,"_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"],"STL_CAN_RAM_testRAM::pattern":[11,3,1,"_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"],"STL_CAN_RAM_testRAM::startAddress":[11,3,1,"_CPPv419STL_CAN_RAM_testRAMK8uint32_tK17STL_March_PatternK8uint32_tK8uint32_tK8uint32_t"],"STL_CPU_REG_checkCPURegisters::injectError":[12,3,1,"_CPPv429STL_CPU_REG_checkCPURegistersb"],"STL_CPU_REG_checkFPURegisters::injectError":[12,3,1,"_CPPv429STL_CPU_REG_checkFPURegistersb"],"STL_CPU_REG_checkVCRCRegisters::injectError":[12,3,1,"_CPPv430STL_CPU_REG_checkVCRCRegistersb"],"STL_CPU_REG_testCPURegisters::injectError":[12,3,1,"_CPPv428STL_CPU_REG_testCPURegistersb"],"STL_CPU_REG_testFPURegisters::injectError":[12,3,1,"_CPPv428STL_CPU_REG_testFPURegistersb"],"STL_CPU_REG_testVCRCRegisters::injectError":[12,3,1,"_CPPv429STL_CPU_REG_testVCRCRegistersP8uint32_tb"],"STL_CPU_REG_testVCRCRegisters::scratchRAM":[12,3,1,"_CPPv429STL_CPU_REG_testVCRCRegistersP8uint32_tb"],"STL_CRC_calculate::crcHandle":[13,3,1,"_CPPv417STL_CRC_calculateK14STL_CRC_Handle"],"STL_CRC_calculateLowBytes::crcHandle":[13,3,1,"_CPPv425STL_CRC_calculateLowBytesK14STL_CRC_Handle"],"STL_CRC_checkCRC::endAddress":[13,3,1,"_CPPv416STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t"],"STL_CRC_checkCRC::goldenCRC":[13,3,1,"_CPPv416STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t"],"STL_CRC_checkCRC::startAddress":[13,3,1,"_CPPv416STL_CRC_checkCRCK8uint32_tK8uint32_tK8uint32_t"],"STL_HWBIST_claimSemaphore::core":[14,3,1,"_CPPv425STL_HWBIST_claimSemaphoreK15STL_HWBIST_Core"],"STL_HWBIST_init::coverage":[14,3,1,"_CPPv415STL_HWBIST_initK19STL_HWBIST_Coverage"],"STL_HWBIST_injectError::errorType":[14,3,1,"_CPPv422STL_HWBIST_injectErrorK16STL_HWBIST_Error"],"STL_HWBIST_runFull::errorType":[14,3,1,"_CPPv418STL_HWBIST_runFullK16STL_HWBIST_Error"],"STL_MCAN_RAM_checkErrorStatus::errStatus":[16,3,1,"_CPPv429STL_MCAN_RAM_checkErrorStatusK8uint32_tP17MCAN_ECCErrStatus"],"STL_MCAN_RAM_checkErrorStatus::mcanBase":[16,3,1,"_CPPv429STL_MCAN_RAM_checkErrorStatusK8uint32_tP17MLine truncated
|
||||
@@ -0,0 +1,409 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Self-Test Application — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="next" title="STA_Tests Functions" href="sta_tests.html"/>
|
||||
<link rel="prev" title="Utilities API Functions" href="../library/stl_util.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Self-Test Application</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#getting-started">Getting Started</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#example-behavior">Example Behavior</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="#sta-utility-functions">STA Utility Functions</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_tests.html">STA_Tests Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_timer.html">STA_Timer Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_comm.html">STA_Comm Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_util.html">STA_Util Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_user.html">STA_User Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Self-Test Application</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="self-test-application">
|
||||
<span id="sta"></span><h1>Self-Test Application<a class="headerlink" href="#self-test-application" title="Permalink to this headline">¶</a></h1>
|
||||
<p>This section will describe the Self-Test Application (or STA) example project
|
||||
delivered with the diagnostic library. The STA is an example which provides a
|
||||
demonstration of the SDL modules and diagnostic functions.</p>
|
||||
<p>The STA is designed to act as an example application which configures the
|
||||
system and calls the SDL APIs to perform the safety diagnostic tests
|
||||
made available in the diagnostic library. The STA is not intended to limit the
|
||||
customer to any implementation of safety diagnostic functions. Instead, it is
|
||||
intended to aid integration of the SDL into the user’s end application or
|
||||
system by providing a demonstration of how to use the library. It is the
|
||||
responsibility of the system integrator to meet any and all safety compliance
|
||||
standards in their end application.</p>
|
||||
<p>The STA has been tested on the controlCARD and docking station.</p>
|
||||
<div class="section" id="getting-started">
|
||||
<h2>Getting Started<a class="headerlink" href="#getting-started" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The Code Composer Studio project containing the STA can be imported into CCS
|
||||
by going to <strong>Project</strong> -> <strong>Import CCS Projects</strong>… and browsing to the
|
||||
search directory below.</p>
|
||||
<p><code class="docutils literal notranslate"><span class="pre"><C2000Ware_install>\libraries\diagnostic\<device>\examples\test_application</span></code></p>
|
||||
<p>Right click on the newly imported project in the Project Explorer pane and
|
||||
select <strong>Build Project</strong>. This will build the default RAM configuration of
|
||||
the project. The project provides several other build configurations for
|
||||
different levels of optimization and running the application from Flash, but
|
||||
the RAM configuration is a good starting point for getting familiar with the STA.</p>
|
||||
<p>Connect and power your controlCARD according to the controlCARD info sheet in
|
||||
directory</p>
|
||||
<p><code class="docutils literal notranslate"><span class="pre"><C2000Ware_install>\boards\controlCARDs\</span></code></p>
|
||||
<p>The STA uses the SCIA module to communicate test progress and results through
|
||||
the controlCARD’s USB-to-UART adapter. Before running the application, set up
|
||||
a terminal session with 9600 baud rate, 8-N-1. Note that CCS contains a terminal
|
||||
window that can be accessed by going to <strong>View</strong> -> <strong>Terminal</strong>.</p>
|
||||
<p>With the test application project selected in the Project Explorer, go to <strong>Run</strong>
|
||||
-> <strong>Debug</strong>. This will launch a debug session using the .ccxml to which the
|
||||
project is linked. By default, the XDS100v2 is used as this is the on-board debug
|
||||
probe for the controlCARD.</p>
|
||||
<p>Run the application. In the terminal, you should see a looping message indicating
|
||||
test cases passing.</p>
|
||||
<div class="figure align-center" id="id1">
|
||||
<a class="reference internal image-reference" href="../_images/terminal.jpg"><img alt="../_images/terminal.jpg" src="../_images/terminal.jpg" style="width: 329.0px; height: 408.0px;" /></a>
|
||||
<p class="caption"><span class="caption-number">Fig. 2 </span><span class="caption-text">Passing Terminal Output</span><a class="headerlink" href="#id1" title="Permalink to this image">¶</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="example-behavior">
|
||||
<h2>Example Behavior<a class="headerlink" href="#example-behavior" title="Permalink to this headline">¶</a></h2>
|
||||
<p>Most tests will display a PASS message in the terminal when they execute
|
||||
successfully with error injection disabled and display a FAIL message when they
|
||||
execute successfully when error injection is enabled. To toggle error injection,
|
||||
add the <em>enableErrorInject</em> variable to the CCS Expressions view. Setting its
|
||||
value to 1 will enable error injection. Setting it back to 0 will disable it.</p>
|
||||
<p>The STA has built in profiling code for measuring cycle counts of the
|
||||
library functions as they are used by the STA. This functionality is turned on
|
||||
by default and uses CPU Timer 1 to capture time elapsed and records the result
|
||||
to an array called <em>STA_Tests_cycleCounts</em> which can be viewed in the CCS
|
||||
Expressions view.</p>
|
||||
<p>The profiling can be turned off by changing the value of macro
|
||||
<strong>STA_UTIL_PROFILE</strong> to 0 and recompiling. More details about the functions used
|
||||
for profiling can be found in the <a class="reference internal" href="../profiling.html#profiling"><span class="std std-ref">Integration Notes</span></a> section.</p>
|
||||
<p>Note that it is not possible to inject an error for the all tests. In particular,
|
||||
the <strong>STA_MARCH</strong>, <strong>STA_MARCH_CAN</strong>, and <strong>STA_MARCH_MCAN</strong> tests are expected
|
||||
to return PASS even when <em>enableErrorInject</em> is set. The core API used by these
|
||||
tests is <strong>STL_March_testRAM()</strong>. This function performs the March13n algorithm on
|
||||
the RAM memory addresses specified without a copy and restore of their original
|
||||
contents unlike <strong>STA_MARCH_COPY</strong>, <strong>STA_MARCH_CAN_COPY</strong>, and <strong>STA_MARCH_MCAN_COPY</strong>.
|
||||
Since the first operation performed on the memory as part of the algorithm
|
||||
is a write which triggers a recalculation of the parity or ECC, any error
|
||||
injected prior to running the test will be overwritten before it can be detected.</p>
|
||||
<p>Also, note that executing HWBIST can terminate the debugger connection. Therefore,
|
||||
the STA provides two macros, <strong>STA_UTIL_HWBIST_MICRO</strong> and <strong>STA_UTIL_HWBIST_FULL</strong>, to
|
||||
include or exclude the HWBIST micro-run test and the full test respectively.</p>
|
||||
<p>When error injection is enabled, the STA will iterate through the five error
|
||||
injection techniques for HWBIST. Additionally, since the HWBIST may terminate
|
||||
the debugger connection and access to debugger information, the STA writes some
|
||||
debugging information to global arrays. These global arrays are
|
||||
<em>STA_Tests_memDumpMicro</em> and <em>STA_Tests_memDumpFull</em>. The information includes:</p>
|
||||
<ol class="arabic simple">
|
||||
<li><p>The error injected using enumerated type <em>STL_HWBIST_Error</em></p></li>
|
||||
<li><p>Information whether or not the previous NMI vector was restored</p></li>
|
||||
<li><p>The return value from the test function</p></li>
|
||||
<li><p>The status of the global error flags</p></li>
|
||||
</ol>
|
||||
<p>The global arrays are large enough to hold the information from 5 runs of the
|
||||
HWBIST (20 by 32-bits)–that is one for each of the 5 different types of tests
|
||||
executed by the STA.</p>
|
||||
<p>Some of these tests will return a passing value although an error was injected.
|
||||
The expected behavior of a full run is described in the table below:</p>
|
||||
<table class="docutils align-default">
|
||||
<colgroup>
|
||||
<col style="width: 17%" />
|
||||
<col style="width: 15%" />
|
||||
<col style="width: 62%" />
|
||||
<col style="width: 5%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="row-odd"><th class="head"><p>errorType</p></th>
|
||||
<th class="head"><p>Error Value</p></th>
|
||||
<th class="head"><p>Return Status</p></th>
|
||||
<th class="head"><p>NMI</p></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="row-even"><td><p>NO_ERROR</p></td>
|
||||
<td><p>0x0000</p></td>
|
||||
<td><p>0x0003
|
||||
(BIST_DONE OR MACRO_DONE)</p></td>
|
||||
<td><p>No</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>TIMEOUT</p></td>
|
||||
<td><p>0x000A</p></td>
|
||||
<td><p>0x0029
|
||||
(TO_FAIL OR BIST_FAIL)</p></td>
|
||||
<td><p>Yes</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>FINAL_COMPARE</p></td>
|
||||
<td><p>0x00A0</p></td>
|
||||
<td><p>0x0003
|
||||
(BIST_DONE OR MACRO_DONE)</p></td>
|
||||
<td><p>No</p></td>
|
||||
</tr>
|
||||
<tr class="row-odd"><td><p>NMI_TRAP</p></td>
|
||||
<td><p>0x0A00</p></td>
|
||||
<td><p>0x0005
|
||||
(BIST_DONE OR NMI)</p></td>
|
||||
<td><p>Yes</p></td>
|
||||
</tr>
|
||||
<tr class="row-even"><td><p>LOGIC_FAULT</p></td>
|
||||
<td><p>0x2000</p></td>
|
||||
<td><p>0x001B
|
||||
(BIST_DONE OR MACRO_DONE OR BIST_FAIL OR INT_COMP_FAIL)</p></td>
|
||||
<td><p>Yes</p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>More details about the behavior of injected errors can be found in this
|
||||
<a class="reference external" href="https://www.ti.com/lit/pdf/spraca7">HWBIST application note</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="sta-utility-functions">
|
||||
<h2>STA Utility Functions<a class="headerlink" href="#sta-utility-functions" title="Permalink to this headline">¶</a></h2>
|
||||
<p>This section provides an API reference guide for the utility functions that are
|
||||
part of the STA project.</p>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta_tests.html">STA_Tests Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta_timer.html">STA_Timer Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta_comm.html">STA_Comm Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta_util.html">STA_Util Functions</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="sta_user.html">STA_User Functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../library/stl_util.html" class="btn btn-neutral float-left" title="Utilities API Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sta_tests.html" class="btn btn-neutral float-right" title="STA_Tests Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,312 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>STA_Comm Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Self-Test Application" href="index.html"/>
|
||||
<link rel="next" title="STA_Util Functions" href="sta_util.html"/>
|
||||
<link rel="prev" title="STA_Timer Functions" href="sta_timer.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Self-Test Application</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#getting-started">Getting Started</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#example-behavior">Example Behavior</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#sta-utility-functions">STA Utility Functions</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_tests.html">STA_Tests Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_timer.html">STA_Timer Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">STA_Comm Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_util.html">STA_Util Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_user.html">STA_User Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Self-Test Application</a> »</li>
|
||||
<li>STA_Comm Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="sta-comm-functions">
|
||||
<span id="sta-comm"></span><h1>STA_Comm Functions<a class="headerlink" href="#sta-comm-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__comm"></span><em>group</em> <code class="sig-name descname">sta_comm</code></dt>
|
||||
<dd><p>This module handles the configuration of the SCIA module for communication over the board USB-to-UART adapter. This path will allow the application to send test pass/fail status to a terminal program.</p>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">sta_comm.c</span></code>, with <code class="docutils literal notranslate"><span class="pre">sta_comm.h</span></code> containing the API declarations. </p>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_COMM_BAUD_RATE">
|
||||
<span class="target" id="group__sta__comm_1gac90b7f45543d25331df50b94b5e5aece"></span><code class="sig-name descname">STA_COMM_BAUD_RATE</code> 9600<a class="headerlink" href="#c.STA_COMM_BAUD_RATE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv419STA_Comm_configSCIAv">
|
||||
<span id="_CPPv319STA_Comm_configSCIAv"></span><span id="_CPPv219STA_Comm_configSCIAv"></span><span id="STA_Comm_configSCIA__void"></span><span class="target" id="group__sta__comm_1gabff2a49730918f33b2ac182f975f3a70"></span>void <code class="sig-name descname">STA_Comm_configSCIA</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv419STA_Comm_configSCIAv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Configures SCIA for serial communication. </p>
|
||||
<p>This function configures SCIA for communication to a serial communication terminal for 9600 baud rate, 8-N-1.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421STA_Comm_transmitDataPh">
|
||||
<span id="_CPPv321STA_Comm_transmitDataPh"></span><span id="_CPPv221STA_Comm_transmitDataPh"></span><span id="STA_Comm_transmitData__unsigned-cP"></span><span class="target" id="group__sta__comm_1ga4f431c9520db84ab50df2e653e2e0061"></span>void <code class="sig-name descname">STA_Comm_transmitData</code><span class="sig-paren">(</span>unsigned char *<em>msg</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421STA_Comm_transmitDataPh" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Transmits data via SCIA. </p>
|
||||
<p><p>This function transmits the </p>
|
||||
<strong>msg</strong> via SCIA to a serial communication terminal.<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">msg</span></code>: is a \0 terminated array of characters</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sta_timer.html" class="btn btn-neutral float-left" title="STA_Timer Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sta_util.html" class="btn btn-neutral float-right" title="STA_Util Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,456 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>STA_Tests Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Self-Test Application" href="index.html"/>
|
||||
<link rel="next" title="STA_Timer Functions" href="sta_timer.html"/>
|
||||
<link rel="prev" title="Self-Test Application" href="index.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Self-Test Application</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#getting-started">Getting Started</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#example-behavior">Example Behavior</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#sta-utility-functions">STA Utility Functions</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">STA_Tests Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_timer.html">STA_Timer Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_comm.html">STA_Comm Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_util.html">STA_Util Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_user.html">STA_User Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Self-Test Application</a> »</li>
|
||||
<li>STA_Tests Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="sta-tests-functions">
|
||||
<span id="sta-tests"></span><h1>STA_Tests Functions<a class="headerlink" href="#sta-tests-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__tests"></span><em>group</em> <code class="sig-name descname">sta_tests</code></dt>
|
||||
<dd><p>This module contains the core test execution function for this application. It defines the list of test cases to be executed and their implementations.</p>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">sta_tests.c</span></code>, with <code class="docutils literal notranslate"><span class="pre">sta_tests.h</span></code> containing the API declarations. </p>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_TESTS_PASS">
|
||||
<span class="target" id="group__sta__tests_1gada2138b4e599ce9b068c30207501371e"></span><code class="sig-name descname">STA_TESTS_PASS</code> 0U<a class="headerlink" href="#c.STA_TESTS_PASS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_TESTS_FAIL">
|
||||
<span class="target" id="group__sta__tests_1ga6d89325c464ff4289b54b27cf14e3f1c"></span><code class="sig-name descname">STA_TESTS_FAIL</code> 1U<a class="headerlink" href="#c.STA_TESTS_FAIL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Enums</p>
|
||||
<dl class="cpp enum">
|
||||
<dt id="_CPPv414STA_TestsTypes">
|
||||
<span id="_CPPv314STA_TestsTypes"></span><span id="_CPPv214STA_TestsTypes"></span><span class="target" id="group__sta__tests_1ga3de5a80d414509c99e8bfe6e6a59ffff"></span><em class="property">enum </em><code class="sig-name descname">STA_TestsTypes</code><a class="headerlink" href="#_CPPv414STA_TestsTypes" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p><em>Values:</em></p>
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv414STA_TEST_START">
|
||||
<span id="_CPPv314STA_TEST_START"></span><span id="_CPPv214STA_TEST_START"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa795602d04f553a0cf606493f3777bce8"></span><code class="sig-name descname">STA_TEST_START</code><a class="headerlink" href="#_CPPv414STA_TEST_START" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv416STA_HWBIST_MICRO">
|
||||
<span id="_CPPv316STA_HWBIST_MICRO"></span><span id="_CPPv216STA_HWBIST_MICRO"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa3174a66fe5b215fef1e309fbda25cfdb"></span><code class="sig-name descname">STA_HWBIST_MICRO</code><a class="headerlink" href="#_CPPv416STA_HWBIST_MICRO" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv415STA_HWBIST_FULL">
|
||||
<span id="_CPPv315STA_HWBIST_FULL"></span><span id="_CPPv215STA_HWBIST_FULL"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa63cde07fd556c186e30bdf50d2e013a0"></span><code class="sig-name descname">STA_HWBIST_FULL</code><a class="headerlink" href="#_CPPv415STA_HWBIST_FULL" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv416STA_TEST_PIE_RAM">
|
||||
<span id="_CPPv316STA_TEST_PIE_RAM"></span><span id="_CPPv216STA_TEST_PIE_RAM"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffac11e80619da94c7dc277cef2a1d74fe4"></span><code class="sig-name descname">STA_TEST_PIE_RAM</code><a class="headerlink" href="#_CPPv416STA_TEST_PIE_RAM" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv420STA_TEST_PIE_HANDLER">
|
||||
<span id="_CPPv320STA_TEST_PIE_HANDLER"></span><span id="_CPPv220STA_TEST_PIE_HANDLER"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa262d30a0956887f833f4181ca3298208"></span><code class="sig-name descname">STA_TEST_PIE_HANDLER</code><a class="headerlink" href="#_CPPv420STA_TEST_PIE_HANDLER" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv411STA_CPU_REG">
|
||||
<span id="_CPPv311STA_CPU_REG"></span><span id="_CPPv211STA_CPU_REG"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa2f8b5edb6825bda50fca6a21e561fc00"></span><code class="sig-name descname">STA_CPU_REG</code><a class="headerlink" href="#_CPPv411STA_CPU_REG" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv411STA_FPU_REG">
|
||||
<span id="_CPPv311STA_FPU_REG"></span><span id="_CPPv211STA_FPU_REG"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffae7a9d4e5423c944388954328b2464f52"></span><code class="sig-name descname">STA_FPU_REG</code><a class="headerlink" href="#_CPPv411STA_FPU_REG" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv412STA_VCRC_REG">
|
||||
<span id="_CPPv312STA_VCRC_REG"></span><span id="_CPPv212STA_VCRC_REG"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa11e494730956fff8b3315cb292ed85e6"></span><code class="sig-name descname">STA_VCRC_REG</code><a class="headerlink" href="#_CPPv412STA_VCRC_REG" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv49STA_MARCH">
|
||||
<span id="_CPPv39STA_MARCH"></span><span id="_CPPv29STA_MARCH"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa34c59466a8ab91f6ec7018d211dc0c0b"></span><code class="sig-name descname">STA_MARCH</code><a class="headerlink" href="#_CPPv49STA_MARCH" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv414STA_MARCH_COPY">
|
||||
<span id="_CPPv314STA_MARCH_COPY"></span><span id="_CPPv214STA_MARCH_COPY"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffac479962d847062f2819ccbc04fef54f6"></span><code class="sig-name descname">STA_MARCH_COPY</code><a class="headerlink" href="#_CPPv414STA_MARCH_COPY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv413STA_MARCH_CAN">
|
||||
<span id="_CPPv313STA_MARCH_CAN"></span><span id="_CPPv213STA_MARCH_CAN"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffad680ecbfc6ab5f3f9db4bfd2e2e90f81"></span><code class="sig-name descname">STA_MARCH_CAN</code><a class="headerlink" href="#_CPPv413STA_MARCH_CAN" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv418STA_MARCH_CAN_COPY">
|
||||
<span id="_CPPv318STA_MARCH_CAN_COPY"></span><span id="_CPPv218STA_MARCH_CAN_COPY"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa21271f4496dd7134327397c296b7ff65"></span><code class="sig-name descname">STA_MARCH_CAN_COPY</code><a class="headerlink" href="#_CPPv418STA_MARCH_CAN_COPY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv414STA_MARCH_MCAN">
|
||||
<span id="_CPPv314STA_MARCH_MCAN"></span><span id="_CPPv214STA_MARCH_MCAN"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59fffface9743e1a5ba8266e107f285694ee608"></span><code class="sig-name descname">STA_MARCH_MCAN</code><a class="headerlink" href="#_CPPv414STA_MARCH_MCAN" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv419STA_MARCH_MCAN_COPY">
|
||||
<span id="_CPPv319STA_MARCH_MCAN_COPY"></span><span id="_CPPv219STA_MARCH_MCAN_COPY"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffab354b37a470c99d14709db36331a4e2c"></span><code class="sig-name descname">STA_MARCH_MCAN_COPY</code><a class="headerlink" href="#_CPPv419STA_MARCH_MCAN_COPY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv418STA_CAN_RAM_PARITY">
|
||||
<span id="_CPPv318STA_CAN_RAM_PARITY"></span><span id="_CPPv218STA_CAN_RAM_PARITY"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa58a7b07c68f7bbfb605a4491d96e3309"></span><code class="sig-name descname">STA_CAN_RAM_PARITY</code><a class="headerlink" href="#_CPPv418STA_CAN_RAM_PARITY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv416STA_MCAN_RAM_ECC">
|
||||
<span id="_CPPv316STA_MCAN_RAM_ECC"></span><span id="_CPPv216STA_MCAN_RAM_ECC"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffaf3ac6e1e3b1cd409b20f567f420705ed"></span><code class="sig-name descname">STA_MCAN_RAM_ECC</code><a class="headerlink" href="#_CPPv416STA_MCAN_RAM_ECC" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv413STA_FLASH_CRC">
|
||||
<span id="_CPPv313STA_FLASH_CRC"></span><span id="_CPPv213STA_FLASH_CRC"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa57a29f28668c7202d5aa9ed29445bd51"></span><code class="sig-name descname">STA_FLASH_CRC</code><a class="headerlink" href="#_CPPv413STA_FLASH_CRC" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv410STA_OSC_CT">
|
||||
<span id="_CPPv310STA_OSC_CT"></span><span id="_CPPv210STA_OSC_CT"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffa74791c22b8a4e1c076579524c7cffd3c"></span><code class="sig-name descname">STA_OSC_CT</code><a class="headerlink" href="#_CPPv410STA_OSC_CT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv410STA_OSC_HR">
|
||||
<span id="_CPPv310STA_OSC_HR"></span><span id="_CPPv210STA_OSC_HR"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffaca6d14c8830d4e81bd44181e772d6dd9"></span><code class="sig-name descname">STA_OSC_HR</code><a class="headerlink" href="#_CPPv410STA_OSC_HR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv412STA_TEST_END">
|
||||
<span id="_CPPv312STA_TEST_END"></span><span id="_CPPv212STA_TEST_END"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffaa973c164bff57598caa0ef6fdd603785"></span><code class="sig-name descname">STA_TEST_END</code><a class="headerlink" href="#_CPPv412STA_TEST_END" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp enumerator">
|
||||
<dt id="_CPPv417STA_TESTS_NUMBERS">
|
||||
<span id="_CPPv317STA_TESTS_NUMBERS"></span><span id="_CPPv217STA_TESTS_NUMBERS"></span><span class="target" id="group__sta__tests_1gga3de5a80d414509c99e8bfe6e6a59ffffaddb43f402824293f64e4c5ce2909dd24"></span><code class="sig-name descname">STA_TESTS_NUMBERS</code><a class="headerlink" href="#_CPPv417STA_TESTS_NUMBERS" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420STA_Tests_testDevice14STA_TestsTypes">
|
||||
<span id="_CPPv320STA_Tests_testDevice14STA_TestsTypes"></span><span id="_CPPv220STA_Tests_testDevice14STA_TestsTypes"></span><span id="STA_Tests_testDevice__STA_TestsTypes"></span><span class="target" id="group__sta__tests_1gae7228682c7e5411512a3ab05519a6d05"></span>unsigned char *<code class="sig-name descname">STA_Tests_testDevice</code><span class="sig-paren">(</span><a class="reference internal" href="#_CPPv414STA_TestsTypes" title="STA_TestsTypes">STA_TestsTypes</a> <em>testItem</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420STA_Tests_testDevice14STA_TestsTypes" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Executes the safety library tests as an example.</p>
|
||||
<p><p>This function configures the device for each specific test. If injected errors are enabled, then this function will inject an error for the test being performed. It will then execute each STL test and return a message of characters to be printed to the terminal via SCI.</p>
|
||||
<dl class="simple">
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">testItem</span></code>: is the enumerated type STA_test_types test to perform.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns a pointer to a message string indicating a pass or fail status and the test name. This string will be printed out of SCIA to the user. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv427STA_Tests_injectErrorEnablev">
|
||||
<span id="_CPPv327STA_Tests_injectErrorEnablev"></span><span id="_CPPv227STA_Tests_injectErrorEnablev"></span><span id="STA_Tests_injectErrorEnable__void"></span><span class="target" id="group__sta__tests_1gac3d9b59901112293f0710b5d3a366da5"></span>void <code class="sig-name descname">STA_Tests_injectErrorEnable</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv427STA_Tests_injectErrorEnablev" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Enables errors to be injected into the tests.</p>
|
||||
<p>This function sets the global variable <strong>STA_Tests_injectError</strong> to true.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv428STA_Tests_injectErrorDisablev">
|
||||
<span id="_CPPv328STA_Tests_injectErrorDisablev"></span><span id="_CPPv228STA_Tests_injectErrorDisablev"></span><span id="STA_Tests_injectErrorDisable__void"></span><span class="target" id="group__sta__tests_1ga0f7a21232e2133bc3b51cb5b8cf290f7"></span>void <code class="sig-name descname">STA_Tests_injectErrorDisable</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv428STA_Tests_injectErrorDisablev" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Disables errors to be injected into the tests.</p>
|
||||
<p>This function sets the global variable <strong>STA_Tests_injectError</strong> to false.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Variables</p>
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv419STA_Tests_testArray">
|
||||
<span id="_CPPv319STA_Tests_testArray"></span><span id="_CPPv219STA_Tests_testArray"></span><span id="STA_Tests_testArray__STA_TestsTypesCA"></span><span class="target" id="group__sta__tests_1ga107e7f53fc486518325b8a93dac9ec00"></span><em class="property">const</em> <a class="reference internal" href="#_CPPv414STA_TestsTypes" title="STA_TestsTypes">STA_TestsTypes</a> <code class="sig-name descname">STA_Tests_testArray</code>[<code class="sig-name descname">STA_TESTS_NUMBERS</code>]<a class="headerlink" href="#_CPPv419STA_Tests_testArray" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv421STA_Tests_cycleCounts">
|
||||
<span id="_CPPv321STA_Tests_cycleCounts"></span><span id="_CPPv221STA_Tests_cycleCounts"></span><span id="STA_Tests_cycleCounts__uint32_tA"></span><span class="target" id="group__sta__tests_1ga1e4b12b050071ec5ab32b05c34b2b57d"></span>uint32_t <code class="sig-name descname">STA_Tests_cycleCounts</code>[<code class="sig-name descname">STA_TESTS_NUMBERS</code>]<a class="headerlink" href="#_CPPv421STA_Tests_cycleCounts" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="index.html" class="btn btn-neutral float-left" title="Self-Test Application" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sta_timer.html" class="btn btn-neutral float-right" title="STA_Timer Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,327 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>STA_Timer Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Self-Test Application" href="index.html"/>
|
||||
<link rel="next" title="STA_Comm Functions" href="sta_comm.html"/>
|
||||
<link rel="prev" title="STA_Tests Functions" href="sta_tests.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Self-Test Application</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#getting-started">Getting Started</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#example-behavior">Example Behavior</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#sta-utility-functions">STA Utility Functions</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_tests.html">STA_Tests Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">STA_Timer Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_comm.html">STA_Comm Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_util.html">STA_Util Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_user.html">STA_User Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Self-Test Application</a> »</li>
|
||||
<li>STA_Timer Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="sta-timer-functions">
|
||||
<span id="sta-timer"></span><h1>STA_Timer Functions<a class="headerlink" href="#sta-timer-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__timer"></span><em>group</em> <code class="sig-name descname">sta_timer</code></dt>
|
||||
<dd><p>This module handles the initialization and handling of the CPU timer system used to time the execution of the tests run by this application.</p>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">sta_timer.c</span></code>, with <code class="docutils literal notranslate"><span class="pre">sta_timer.h</span></code> containing the API declarations. </p>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__timer_1ga6b8aad166a9fd0f285d40ad9b7592298"></span><code class="sig-name descname">__interrupt void STA_Timer_timer0Isr(void)</code></dt>
|
||||
<dd><p>Timer 0 ISR. </p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv416STA_Timer_config8uint16_t">
|
||||
<span id="_CPPv316STA_Timer_config8uint16_t"></span><span id="_CPPv216STA_Timer_config8uint16_t"></span><span id="STA_Timer_config__uint16_t"></span><span class="target" id="group__sta__timer_1ga56ba1b3785caa65ecf57c99676b1b4e9"></span>void <code class="sig-name descname">STA_Timer_config</code><span class="sig-paren">(</span>uint16_t <em>msTimeOut</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv416STA_Timer_config8uint16_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Configures Timer 0 to tick so that the STA will continue to make progress. </p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">msTimeOut</span></code>: is the number of milliseconds between each execution of a test found in sta_tests.c. Another test will execute every time this STA timer runs out.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv420STA_Timer_isTimedOutv">
|
||||
<span id="_CPPv320STA_Timer_isTimedOutv"></span><span id="_CPPv220STA_Timer_isTimedOutv"></span><span id="STA_Timer_isTimedOut__void"></span><span class="target" id="group__sta__timer_1ga6f24eb6a213a2dfdea2ae53f24e0423b"></span>bool <code class="sig-name descname">STA_Timer_isTimedOut</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv420STA_Timer_isTimedOutv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Checks if Timer 0 has timed-out. </p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns true if the timer has timed-out and false if it has not. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv422STA_Timer_clearTimeOutv">
|
||||
<span id="_CPPv322STA_Timer_clearTimeOutv"></span><span id="_CPPv222STA_Timer_clearTimeOutv"></span><span id="STA_Timer_clearTimeOut__void"></span><span class="target" id="group__sta__timer_1gab9f8d6684373e018051524de3dd18786"></span>void <code class="sig-name descname">STA_Timer_clearTimeOut</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422STA_Timer_clearTimeOutv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Clears Timer 0 time-out flag. </p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv417STA_Timer_restartv">
|
||||
<span id="_CPPv317STA_Timer_restartv"></span><span id="_CPPv217STA_Timer_restartv"></span><span id="STA_Timer_restart__void"></span><span class="target" id="group__sta__timer_1ga0aae2c3c74f3a3c541c876d8db943122"></span>void <code class="sig-name descname">STA_Timer_restart</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv417STA_Timer_restartv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Restarts Timer 0. </p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sta_tests.html" class="btn btn-neutral float-left" title="STA_Tests Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sta_comm.html" class="btn btn-neutral float-right" title="STA_Comm Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,615 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>STA_User Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Self-Test Application" href="index.html"/>
|
||||
<link rel="next" title="Safety Feature and Diagnostic Examples" href="../examples/index.html"/>
|
||||
<link rel="prev" title="STA_Util Functions" href="sta_util.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Self-Test Application</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#getting-started">Getting Started</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#example-behavior">Example Behavior</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#sta-utility-functions">STA Utility Functions</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_tests.html">STA_Tests Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_timer.html">STA_Timer Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_comm.html">STA_Comm Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_util.html">STA_Util Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">STA_User Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Self-Test Application</a> »</li>
|
||||
<li>STA_User Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="sta-user-functions">
|
||||
<span id="sta-user"></span><h1>STA_User Functions<a class="headerlink" href="#sta-user-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__user"></span><em>group</em> <code class="sig-name descname">sta_user</code></dt>
|
||||
<dd><p>This module contains the declaration and initialization of the various objects and handles required by SDL modules tested in this application.</p>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">sta_user.c</span></code>, with <code class="docutils literal notranslate"><span class="pre">sta_user.h</span></code> containing the API declarations. </p>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_DATA_SIZE">
|
||||
<span class="target" id="group__sta__user_1ga32318cc1aeddcf5ebe69de8ea7dd8f2d"></span><code class="sig-name descname">STA_USER_MARCH_DATA_SIZE</code> 16U<a class="headerlink" href="#c.STA_USER_MARCH_DATA_SIZE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_COPY_SIZE">
|
||||
<span class="target" id="group__sta__user_1gae70ac732e74ec4048ecebbc6878d4838"></span><code class="sig-name descname">STA_USER_MARCH_COPY_SIZE</code> 320U<a class="headerlink" href="#c.STA_USER_MARCH_COPY_SIZE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_CAN_SIZE">
|
||||
<span class="target" id="group__sta__user_1ga6e7da9115bb5c29d41ce8a6f8377cf58"></span><code class="sig-name descname">STA_USER_MARCH_CAN_SIZE</code> 320U<a class="headerlink" href="#c.STA_USER_MARCH_CAN_SIZE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_CANA_OBJ32_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga6a085e6875ce9bca51a1fad35a9b27f9"></span><code class="sig-name descname">STA_USER_MARCH_CANA_OBJ32_START_ADDR</code> (CANA_BASE + <a class="reference internal" href="../library/stl_can_ram.html#group__stl__can__ram_1ga1231e3a3b1f9d0cb358581180342faf2"><span class="std std-ref">STL_CAN_RAM_ADDR_OFFSET</span></a>)<a class="headerlink" href="#c.STA_USER_MARCH_CANA_OBJ32_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_CANA_OBJ4_END_ADDR">
|
||||
<span class="target" id="group__sta__user_1gaabe98ca423be40cdd296842be14d6534"></span><code class="sig-name descname">STA_USER_MARCH_CANA_OBJ4_END_ADDR</code> (CANA_BASE + <a class="reference internal" href="../library/stl_can_ram.html#group__stl__can__ram_1ga1231e3a3b1f9d0cb358581180342faf2"><span class="std std-ref">STL_CAN_RAM_ADDR_OFFSET</span></a> + (0x20U * 4U) + 0x10U)<a class="headerlink" href="#c.STA_USER_MARCH_CANA_OBJ4_END_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_CANA_OBJ6_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga550fa800a34bc1145461fcc62f42be47"></span><code class="sig-name descname">STA_USER_MARCH_CANA_OBJ6_START_ADDR</code> (CANA_BASE + <a class="reference internal" href="../library/stl_can_ram.html#group__stl__can__ram_1ga1231e3a3b1f9d0cb358581180342faf2"><span class="std std-ref">STL_CAN_RAM_ADDR_OFFSET</span></a> + (0x20U * 6U))<a class="headerlink" href="#c.STA_USER_MARCH_CANA_OBJ6_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_CANA_OBJ15_END_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga2d10978af8d0d2cda0cd59741d46b2ed"></span><code class="sig-name descname">STA_USER_MARCH_CANA_OBJ15_END_ADDR</code> (CANA_BASE + <a class="reference internal" href="../library/stl_can_ram.html#group__stl__can__ram_1ga1231e3a3b1f9d0cb358581180342faf2"><span class="std std-ref">STL_CAN_RAM_ADDR_OFFSET</span></a> + (0x20U * 15U) + 0x10U)<a class="headerlink" href="#c.STA_USER_MARCH_CANA_OBJ15_END_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_STD_ID_FILT_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga453ab62ad45f87f08a4149265269e844"></span><code class="sig-name descname">STA_USER_MCAN_STD_ID_FILT_START_ADDR</code> 0x0U<a class="headerlink" href="#c.STA_USER_MCAN_STD_ID_FILT_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_STD_ID_FILTER_NUM">
|
||||
<span class="target" id="group__sta__user_1ga8172cb896b10c9a5918a0674162adcc3"></span><code class="sig-name descname">STA_USER_MCAN_STD_ID_FILTER_NUM</code> 1U<a class="headerlink" href="#c.STA_USER_MCAN_STD_ID_FILTER_NUM" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_EXT_ID_FILT_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1gac67d47871db4c93ace052c5e5bbd461c"></span><code class="sig-name descname">STA_USER_MCAN_EXT_ID_FILT_START_ADDR</code> 0x14U<a class="headerlink" href="#c.STA_USER_MCAN_EXT_ID_FILT_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_EXT_ID_FILTER_NUM">
|
||||
<span class="target" id="group__sta__user_1gae25577e3e31bc7abbe8ebd616cbc084e"></span><code class="sig-name descname">STA_USER_MCAN_EXT_ID_FILTER_NUM</code> 1U<a class="headerlink" href="#c.STA_USER_MCAN_EXT_ID_FILTER_NUM" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_TX_BUFF_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga0f0d3283cac25434b07cd131d2add756"></span><code class="sig-name descname">STA_USER_MCAN_TX_BUFF_START_ADDR</code> 0x80U<a class="headerlink" href="#c.STA_USER_MCAN_TX_BUFF_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_TX_BUFF_SIZE">
|
||||
<span class="target" id="group__sta__user_1ga6bb076b4ef95a1e02f0bf2457f219c79"></span><code class="sig-name descname">STA_USER_MCAN_TX_BUFF_SIZE</code> 10U<a class="headerlink" href="#c.STA_USER_MCAN_TX_BUFF_SIZE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_FIFO_1_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1gae6f8248870ad6076028876ef04874676"></span><code class="sig-name descname">STA_USER_MCAN_FIFO_1_START_ADDR</code> 0xc0U<a class="headerlink" href="#c.STA_USER_MCAN_FIFO_1_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_FIFO_1_NUM">
|
||||
<span class="target" id="group__sta__user_1ga22ff6d04e8156a36ce4f253bb083397b"></span><code class="sig-name descname">STA_USER_MCAN_FIFO_1_NUM</code> 10U<a class="headerlink" href="#c.STA_USER_MCAN_FIFO_1_NUM" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_TX_EVENT_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga1fe5203f26e33af81dd0610979dcbd99"></span><code class="sig-name descname">STA_USER_MCAN_TX_EVENT_START_ADDR</code> 0x100U<a class="headerlink" href="#c.STA_USER_MCAN_TX_EVENT_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_TX_EVENT_SIZE">
|
||||
<span class="target" id="group__sta__user_1gaa12dc5d1ee7eb10a512709624fed054a"></span><code class="sig-name descname">STA_USER_MCAN_TX_EVENT_SIZE</code> 10U<a class="headerlink" href="#c.STA_USER_MCAN_TX_EVENT_SIZE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_EXT_ID_AND_MASK">
|
||||
<span class="target" id="group__sta__user_1gac183f2fddb6b88bdb754fba278c1c417"></span><code class="sig-name descname">STA_USER_MCAN_EXT_ID_AND_MASK</code> 0x1FFFFFFFUL<a class="headerlink" href="#c.STA_USER_MCAN_EXT_ID_AND_MASK" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_RX_BUFF_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1gae6d35517489b4e4a5d43d5548a68dcc4"></span><code class="sig-name descname">STA_USER_MCAN_RX_BUFF_START_ADDR</code> 948U<a class="headerlink" href="#c.STA_USER_MCAN_RX_BUFF_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_FIFO_0_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga8d5c7507c708bc1cbb228ee61d9dadbd"></span><code class="sig-name descname">STA_USER_MCAN_FIFO_0_START_ADDR</code> 548U<a class="headerlink" href="#c.STA_USER_MCAN_FIFO_0_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_FIFO_0_NUM">
|
||||
<span class="target" id="group__sta__user_1ga67ada6b73eb7ca2c8901ffeffad31e16"></span><code class="sig-name descname">STA_USER_MCAN_FIFO_0_NUM</code> 5U<a class="headerlink" href="#c.STA_USER_MCAN_FIFO_0_NUM" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MCAN_MSG_INT">
|
||||
<span class="target" id="group__sta__user_1gac5b09332851d95ee25584d5b2388033a"></span><code class="sig-name descname">STA_USER_MCAN_MSG_INT</code> 0x81200UL<a class="headerlink" href="#c.STA_USER_MCAN_MSG_INT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_MCAN_START_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga080c433257c6c868242678c436200871"></span><code class="sig-name descname">STA_USER_MARCH_MCAN_START_ADDR</code> MCANA_DRIVER_BASE<a class="headerlink" href="#c.STA_USER_MARCH_MCAN_START_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_MARCH_MCAN_END_ADDR">
|
||||
<span class="target" id="group__sta__user_1ga8b1a2775e3c570cb33087b0169e12f7d"></span><code class="sig-name descname">STA_USER_MARCH_MCAN_END_ADDR</code> <p>(MCANA_DRIVER_BASE + \</p>
|
||||
<a class="reference internal" href="../library/stl_mcan_ram.html#group__stl__mcan__ram_1ga460c7db5a864665f5b3456e4d29df260"><span class="std std-ref">STL_MCAN_RAM_MAX_ADDR_OFFSET</span></a>)<a class="headerlink" href="#c.STA_USER_MARCH_MCAN_END_ADDR" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_PIE_RAM_ENTRY">
|
||||
<span class="target" id="group__sta__user_1ga3f3844a73baed460cad022604ab5c139"></span><code class="sig-name descname">STA_USER_PIE_RAM_ENTRY</code> ((INT_ADCC3 >> <a class="reference internal" href="../library/stl_pie_ram.html#group__stl__pie__ram_1gae9d84383cf2ee1b6ee268c0dac5d2c5f"><span class="std std-ref">STL_PIE_RAM_VECT_ID_S</span></a>)*2)<a class="headerlink" href="#c.STA_USER_PIE_RAM_ENTRY" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_PIE_TEST_INT">
|
||||
<span class="target" id="group__sta__user_1ga421167249037476ff456f1199f3efa1d"></span><code class="sig-name descname">STA_USER_PIE_TEST_INT</code> INT_EPWM7<a class="headerlink" href="#c.STA_USER_PIE_TEST_INT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_PIE_TEST_INT_GROUP_M">
|
||||
<span class="target" id="group__sta__user_1ga6c78dfc3032f20d4b1f8e01f19aea618"></span><code class="sig-name descname">STA_USER_PIE_TEST_INT_GROUP_M</code> <p>(1U << (((uint16_t)(STA_USER_PIE_TEST_INT & STL_PIE_RAM_TABLE_COL_M) >> \</p>
|
||||
<p> STL_PIE_RAM_TABLE_COL_S) - 1U))</p>
|
||||
<a class="headerlink" href="#c.STA_USER_PIE_TEST_INT_GROUP_M" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_GOLDEN_CRC">
|
||||
<span class="target" id="group__sta__user_1ga9f1d94d7411fb1aa1cdc4a8e827cec4b"></span><code class="sig-name descname">STA_USER_GOLDEN_CRC</code> 0xE4990204UL<a class="headerlink" href="#c.STA_USER_GOLDEN_CRC" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_CRC_DATA_SIZE">
|
||||
<span class="target" id="group__sta__user_1ga1db76006b4a9bdd4c38bc12b90ec117e"></span><code class="sig-name descname">STA_USER_CRC_DATA_SIZE</code> 16U<a class="headerlink" href="#c.STA_USER_CRC_DATA_SIZE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_OSC_DELAY_US">
|
||||
<span class="target" id="group__sta__user_1ga250a88ce04c0408459ec513864d33d50"></span><code class="sig-name descname">STA_USER_OSC_DELAY_US</code> (13107000UL / (DEVICE_SYSCLK_FREQ / 1000000UL))<a class="headerlink" href="#c.STA_USER_OSC_DELAY_US" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_OSC_MIN_COUNT">
|
||||
<span class="target" id="group__sta__user_1ga871b355344bce0dd59309bbea08bee1b"></span><code class="sig-name descname">STA_USER_OSC_MIN_COUNT</code> 13100000UL<a class="headerlink" href="#c.STA_USER_OSC_MIN_COUNT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_OSC_MAX_COUNT">
|
||||
<span class="target" id="group__sta__user_1ga4432c5250608cf571ef8ad562138690b"></span><code class="sig-name descname">STA_USER_OSC_MAX_COUNT</code> 13115000UL<a class="headerlink" href="#c.STA_USER_OSC_MAX_COUNT" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_OSC_HR_MEP">
|
||||
<span class="target" id="group__sta__user_1ga9c01a9bfdad21e940de6939cc238c2e5"></span><code class="sig-name descname">STA_USER_OSC_HR_MEP</code> (6666666666L / (DEVICE_SYSCLK_FREQ / 2))<a class="headerlink" href="#c.STA_USER_OSC_HR_MEP" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_OSC_HR_MEP_MIN">
|
||||
<span class="target" id="group__sta__user_1gaf72acd2a331276e3b507ab4355f361d2"></span><code class="sig-name descname">STA_USER_OSC_HR_MEP_MIN</code> (<a class="reference internal" href="#group__sta__user_1ga9c01a9bfdad21e940de6939cc238c2e5"><span class="std std-ref">STA_USER_OSC_HR_MEP</span></a> - 10U)<a class="headerlink" href="#c.STA_USER_OSC_HR_MEP_MIN" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_USER_OSC_HR_MEP_MAX">
|
||||
<span class="target" id="group__sta__user_1ga2591d4fd9806625bece9261b757f53ce"></span><code class="sig-name descname">STA_USER_OSC_HR_MEP_MAX</code> (<a class="reference internal" href="#group__sta__user_1ga9c01a9bfdad21e940de6939cc238c2e5"><span class="std std-ref">STA_USER_OSC_HR_MEP</span></a> + 10U)<a class="headerlink" href="#c.STA_USER_OSC_HR_MEP_MAX" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv418STA_User_initMarchv">
|
||||
<span id="_CPPv318STA_User_initMarchv"></span><span id="_CPPv218STA_User_initMarchv"></span><span id="STA_User_initMarch__void"></span><span class="target" id="group__sta__user_1gab8f83e55214fc8a5c6ad8542588c4d3e"></span>void <code class="sig-name descname">STA_User_initMarch</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv418STA_User_initMarchv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>This function initializes the inject error object for March13N test.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv426STA_User_initOSCTimer2Testv">
|
||||
<span id="_CPPv326STA_User_initOSCTimer2Testv"></span><span id="_CPPv226STA_User_initOSCTimer2Testv"></span><span id="STA_User_initOSCTimer2Test__void"></span><span class="target" id="group__sta__user_1ga0ed7703f95add6d91db5ac7bb4401b1d"></span>void <code class="sig-name descname">STA_User_initOSCTimer2Test</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv426STA_User_initOSCTimer2Testv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>This function initializes the Oscillator Timer2 test objects.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv422STA_User_initOSCHRTestv">
|
||||
<span id="_CPPv322STA_User_initOSCHRTestv"></span><span id="_CPPv222STA_User_initOSCHRTestv"></span><span id="STA_User_initOSCHRTest__void"></span><span class="target" id="group__sta__user_1gadf5fe52ac385f340118b3323de5f3214"></span>void <code class="sig-name descname">STA_User_initOSCHRTest</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422STA_User_initOSCHRTestv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>This function initializes the object for the Oscillator HRPWM test.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv424STA_User_initMCANRAMTestv">
|
||||
<span id="_CPPv324STA_User_initMCANRAMTestv"></span><span id="_CPPv224STA_User_initMCANRAMTestv"></span><span id="STA_User_initMCANRAMTest__void"></span><span class="target" id="group__sta__user_1gaecb1a63998a5e6c29e7f32e7ae81838c"></span>void <code class="sig-name descname">STA_User_initMCANRAMTest</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv424STA_User_initMCANRAMTestv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>This function initializes the object for the MCAN RAM March test.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421STA_User_pieVectErrorv">
|
||||
<span id="_CPPv321STA_User_pieVectErrorv"></span><span id="_CPPv221STA_User_pieVectErrorv"></span><span id="STA_User_pieVectError__void"></span><span class="target" id="group__sta__user_1gaadc3d17fa73feda1c472af712d828867"></span>void <code class="sig-name descname">STA_User_pieVectError</code><span class="sig-paren">(</span>void<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421STA_User_pieVectErrorv" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Default handler for PIE Vector Table errors like a parity error or double RAM mismatch depending on your device’s features.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__user_1ga6a140ec9d96f5254b3b543c86cff6ca2"></span><code class="sig-name descname">__interrupt void STA_User_canParityErrorISR(void)</code></dt>
|
||||
<dd><p>CAN ISR to execute upon parity error detection in CAN message RAM.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__user_1ga2822520bbf54af040cb1b1be91e09007"></span><code class="sig-name descname">__interrupt void STA_User_mcanECCErrorISR(void)</code></dt>
|
||||
<dd><p>MMCAN ISR to execute upon ECC error correction in MCAN message RAM.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__user_1gaf19de3639fa3429440d6ff8a4f917bac"></span><code class="sig-name descname">__interrupt void STA_User_nmiISR(void)</code></dt>
|
||||
<dd><p>NMI ISR for the CAN ECC logic test for uncorrectable errors.</p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None </p>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Variables</p>
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv422STA_User_marchErrorObj">
|
||||
<span id="_CPPv322STA_User_marchErrorObj"></span><span id="_CPPv222STA_User_marchErrorObj"></span><span id="STA_User_marchErrorObj__STL_March_InjectErrorObj"></span><span class="target" id="group__sta__user_1gabdafc805b6c88d53e99f892e029805f8"></span><a class="reference internal" href="../library/stl_march.html#_CPPv424STL_March_InjectErrorObj" title="STL_March_InjectErrorObj">STL_March_InjectErrorObj</a> <code class="sig-name descname">STA_User_marchErrorObj</code><a class="headerlink" href="#_CPPv422STA_User_marchErrorObj" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv425STA_User_marchErrorHandle">
|
||||
<span id="_CPPv325STA_User_marchErrorHandle"></span><span id="_CPPv225STA_User_marchErrorHandle"></span><span id="STA_User_marchErrorHandle__STL_March_InjectErrorHandle"></span><span class="target" id="group__sta__user_1ga7a059e3aa75f89f2dea747475ecb2562"></span><a class="reference internal" href="../library/stl_march.html#_CPPv427STL_March_InjectErrorHandle" title="STL_March_InjectErrorHandle">STL_March_InjectErrorHandle</a> <code class="sig-name descname">STA_User_marchErrorHandle</code><a class="headerlink" href="#_CPPv425STA_User_marchErrorHandle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv422STA_User_marchTestData">
|
||||
<span id="_CPPv322STA_User_marchTestData"></span><span id="_CPPv222STA_User_marchTestData"></span><span id="STA_User_marchTestData__uint16_tA"></span><span class="target" id="group__sta__user_1ga1b5616ab6cc06836465d0e1905017049"></span>uint16_t <code class="sig-name descname">STA_User_marchTestData</code>[16U]<a class="headerlink" href="#_CPPv422STA_User_marchTestData" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv426STA_User_marchTestDataCopy">
|
||||
<span id="_CPPv326STA_User_marchTestDataCopy"></span><span id="_CPPv226STA_User_marchTestDataCopy"></span><span id="STA_User_marchTestDataCopy__uint16_tA"></span><span class="target" id="group__sta__user_1ga645a2a24ef800c2383c2709fa6ed07b7"></span>uint16_t <code class="sig-name descname">STA_User_marchTestDataCopy</code>[320U]<a class="headerlink" href="#_CPPv426STA_User_marchTestDataCopy" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv425STA_User_canInterruptFlag">
|
||||
<span id="_CPPv325STA_User_canInterruptFlag"></span><span id="_CPPv225STA_User_canInterruptFlag"></span><span id="STA_User_canInterruptFlag__b"></span><span class="target" id="group__sta__user_1ga9c92081d12fe7e52298b38e27d5bbc78"></span>bool <code class="sig-name descname">STA_User_canInterruptFlag</code><a class="headerlink" href="#_CPPv425STA_User_canInterruptFlag" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv424STA_User_parityErrorCode">
|
||||
<span id="_CPPv324STA_User_parityErrorCode"></span><span id="_CPPv224STA_User_parityErrorCode"></span><span id="STA_User_parityErrorCode__uint16_t"></span><span class="target" id="group__sta__user_1gae935e04a8cff075ae3918663125320bb"></span>uint16_t <code class="sig-name descname">STA_User_parityErrorCode</code><a class="headerlink" href="#_CPPv424STA_User_parityErrorCode" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv426STA_User_canErrorReturnVal">
|
||||
<span id="_CPPv326STA_User_canErrorReturnVal"></span><span id="_CPPv226STA_User_canErrorReturnVal"></span><span id="STA_User_canErrorReturnVal__uint16_t"></span><span class="target" id="group__sta__user_1gad910ff00cabe9668005771180976f24c"></span>uint16_t <code class="sig-name descname">STA_User_canErrorReturnVal</code><a class="headerlink" href="#_CPPv426STA_User_canErrorReturnVal" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv425STA_User_mcanSECReturnVal">
|
||||
<span id="_CPPv325STA_User_mcanSECReturnVal"></span><span id="_CPPv225STA_User_mcanSECReturnVal"></span><span id="STA_User_mcanSECReturnVal__uint16_t"></span><span class="target" id="group__sta__user_1gad736d7c6aa7e02d00235d569fc571600"></span>uint16_t <code class="sig-name descname">STA_User_mcanSECReturnVal</code><a class="headerlink" href="#_CPPv425STA_User_mcanSECReturnVal" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv425STA_User_mcanDEDReturnVal">
|
||||
<span id="_CPPv325STA_User_mcanDEDReturnVal"></span><span id="_CPPv225STA_User_mcanDEDReturnVal"></span><span id="STA_User_mcanDEDReturnVal__uint16_t"></span><span class="target" id="group__sta__user_1ga95d85b173f36ecba0ddf92a560b80fc6"></span>uint16_t <code class="sig-name descname">STA_User_mcanDEDReturnVal</code><a class="headerlink" href="#_CPPv425STA_User_mcanDEDReturnVal" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv416STA_User_crcData">
|
||||
<span id="_CPPv316STA_User_crcData"></span><span id="_CPPv216STA_User_crcData"></span><span id="STA_User_crcData__float32_tCA"></span><span class="target" id="group__sta__user_1ga0b0365fe9bf3567820f21f81991a8e45"></span><em class="property">const</em> float32_t <code class="sig-name descname">STA_User_crcData</code>[16U]<a class="headerlink" href="#_CPPv416STA_User_crcData" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv421STA_User_oscTimer2Obj">
|
||||
<span id="_CPPv321STA_User_oscTimer2Obj"></span><span id="_CPPv221STA_User_oscTimer2Obj"></span><span id="STA_User_oscTimer2Obj__STL_OSC_CT_Obj"></span><span class="target" id="group__sta__user_1gaa4c2afc94fb3378aed8821bd5d9bcc4b"></span><a class="reference internal" href="../library/stl_osc_ct.html#_CPPv414STL_OSC_CT_Obj" title="STL_OSC_CT_Obj">STL_OSC_CT_Obj</a> <code class="sig-name descname">STA_User_oscTimer2Obj</code><a class="headerlink" href="#_CPPv421STA_User_oscTimer2Obj" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv424STA_User_oscTimer2Handle">
|
||||
<span id="_CPPv324STA_User_oscTimer2Handle"></span><span id="_CPPv224STA_User_oscTimer2Handle"></span><span id="STA_User_oscTimer2Handle__STL_OSC_CT_Handle"></span><span class="target" id="group__sta__user_1gaf1a4ebb7958df454a5951700bc9c9b3b"></span><a class="reference internal" href="../library/stl_osc_ct.html#_CPPv417STL_OSC_CT_Handle" title="STL_OSC_CT_Handle">STL_OSC_CT_Handle</a> <code class="sig-name descname">STA_User_oscTimer2Handle</code><a class="headerlink" href="#_CPPv424STA_User_oscTimer2Handle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv417STA_User_oscHRObj">
|
||||
<span id="_CPPv317STA_User_oscHRObj"></span><span id="_CPPv217STA_User_oscHRObj"></span><span id="STA_User_oscHRObj__STL_OSC_HR_Obj"></span><span class="target" id="group__sta__user_1ga101a675d8f24e5e042b1088b8c19b6b9"></span><a class="reference internal" href="../library/stl_osc_hr.html#_CPPv414STL_OSC_HR_Obj" title="STL_OSC_HR_Obj">STL_OSC_HR_Obj</a> <code class="sig-name descname">STA_User_oscHRObj</code><a class="headerlink" href="#_CPPv417STA_User_oscHRObj" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="cpp member">
|
||||
<dt id="_CPPv420STA_User_oscHRHandle">
|
||||
<span id="_CPPv320STA_User_oscHRHandle"></span><span id="_CPPv220STA_User_oscHRHandle"></span><span id="STA_User_oscHRHandle__STL_OSC_HR_Handle"></span><span class="target" id="group__sta__user_1gabd5d4e066c80684eb262a30036db575d"></span><a class="reference internal" href="../library/stl_osc_hr.html#_CPPv417STL_OSC_HR_Handle" title="STL_OSC_HR_Handle">STL_OSC_HR_Handle</a> <code class="sig-name descname">STA_User_oscHRHandle</code><a class="headerlink" href="#_CPPv420STA_User_oscHRHandle" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sta_util.html" class="btn btn-neutral float-left" title="STA_Util Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="../examples/index.html" class="btn btn-neutral float-right" title="Safety Feature and Diagnostic Examples" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,327 @@
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>STA_Util Functions — F2838x Software Diagnostic Library Guide</title>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="../_static/tiicon.ico"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />
|
||||
|
||||
|
||||
|
||||
<link rel="index" title="Index"
|
||||
href="../genindex.html"/>
|
||||
<link rel="search" title="Search" href="../search.html"/>
|
||||
<link rel="top" title="F2838x Software Diagnostic Library Guide" href="../index.html"/>
|
||||
<link rel="up" title="Self-Test Application" href="index.html"/>
|
||||
<link rel="next" title="STA_User Functions" href="sta_user.html"/>
|
||||
<link rel="prev" title="STA_Comm Functions" href="sta_comm.html"/>
|
||||
|
||||
|
||||
<script src="../_static/js/modernizr.min.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav" role="document">
|
||||
<header id="tiHeader">
|
||||
<div class="top">
|
||||
<ul>
|
||||
<li id="top_logo">
|
||||
<a href="http://www.ti.com">
|
||||
<img src="../_static/img/ti_logo.png"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav"></div>
|
||||
</header>
|
||||
<div class="wy-grid-for-nav">
|
||||
|
||||
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search">
|
||||
|
||||
|
||||
|
||||
<a href="../index.html" class="icon icon-home"> F2838x Software Diagnostic Library Guide
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="version">
|
||||
v5.00.01
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Search docs" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../library/index.html">Software Diagnostic Library</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Self-Test Application</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#getting-started">Getting Started</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="index.html#example-behavior">Example Behavior</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="index.html#sta-utility-functions">STA Utility Functions</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_tests.html">STA_Tests Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_timer.html">STA_Timer Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_comm.html">STA_Comm Functions</a></li>
|
||||
<li class="toctree-l3 current"><a class="current reference internal" href="#">STA_Util Functions</a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="sta_user.html">STA_User Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../examples/index.html">Safety Feature and Diagnostic Examples</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Integration Notes</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../notice.html">Important Notice</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||
|
||||
|
||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../index.html">F2838x Software Diagnostic Library Guide</a>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
||||
<li><a href="index.html">Self-Test Application</a> »</li>
|
||||
<li>STA_Util Functions</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<div class="section" id="sta-util-functions">
|
||||
<span id="sta-util"></span><h1>STA_Util Functions<a class="headerlink" href="#sta-util-functions" title="Permalink to this headline">¶</a></h1>
|
||||
<dl class="group">
|
||||
<dt>
|
||||
<span class="target" id="group__sta__util"></span><em>group</em> <code class="sig-name descname">sta_util</code></dt>
|
||||
<dd><p>This module contains utility functions for this test application. This primarily includes the functions used to profile the cycle counts of the SDL functions.</p>
|
||||
<p>The code for this module is contained in <code class="docutils literal notranslate"><span class="pre">sta_util.c</span></code>, with <code class="docutils literal notranslate"><span class="pre">sta_util.h</span></code> containing the API declarations. </p>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Defines</p>
|
||||
<dl class="cpp macro">
|
||||
<dt id="c.STA_UTIL_PROFILE">
|
||||
<span class="target" id="group__sta__util_1ga65f7010311fd886fc844e00aaddb0359"></span><code class="sig-name descname">STA_UTIL_PROFILE</code> 1<a class="headerlink" href="#c.STA_UTIL_PROFILE" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Used to enable or disable CPUTimer cycle profiling of STA tests. A value of 0 will disable cycle profiling. A value of not 0 will enable cycle profiling. </p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="breathe-sectiondef docutils container">
|
||||
<p class="breathe-sectiondef-title rubric">Functions</p>
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv423STA_Util_configProfiler8uint32_t">
|
||||
<span id="_CPPv323STA_Util_configProfiler8uint32_t"></span><span id="_CPPv223STA_Util_configProfiler8uint32_t"></span><span id="STA_Util_configProfiler__uint32_t"></span><span class="target" id="group__sta__util_1gab1f83ad5c67c75a73ac278eecea55104"></span>void <code class="sig-name descname">STA_Util_configProfiler</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv423STA_Util_configProfiler8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Configures the CPUTimer specified by the parameter <strong>base</strong> for profiling cycle counts. </p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of a valid CPUTimer.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv422STA_Util_startProfiler8uint32_t">
|
||||
<span id="_CPPv322STA_Util_startProfiler8uint32_t"></span><span id="_CPPv222STA_Util_startProfiler8uint32_t"></span><span id="STA_Util_startProfiler__uint32_t"></span><span class="target" id="group__sta__util_1gabb24e08f67006752c19ef469cc79059a"></span><em class="property">static</em> void <code class="sig-name descname">STA_Util_startProfiler</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv422STA_Util_startProfiler8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Starts the CPUTimer used for profiling cycles. </p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>None. </p>
|
||||
</dd>
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of a valid CPUTimer.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="cpp function">
|
||||
<dt id="_CPPv421STA_Util_stopProfiler8uint32_t">
|
||||
<span id="_CPPv321STA_Util_stopProfiler8uint32_t"></span><span id="_CPPv221STA_Util_stopProfiler8uint32_t"></span><span id="STA_Util_stopProfiler__uint32_t"></span><span class="target" id="group__sta__util_1ga1752a22f079d9c969b5ec470846913fb"></span><em class="property">static</em> uint32_t <code class="sig-name descname">STA_Util_stopProfiler</code><span class="sig-paren">(</span>uint32_t <em>base</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv421STA_Util_stopProfiler8uint32_t" title="Permalink to this definition">¶</a><br /></dt>
|
||||
<dd><p>Stops the CPUTimer used for profiling cycles. </p>
|
||||
<p><dl class="simple">
|
||||
<dt><strong>Return</strong></dt><dd><p>Returns the number of cycles elapsed since <a class="reference internal" href="#group__sta__util_1gabb24e08f67006752c19ef469cc79059a"><span class="std std-ref">STA_Util_startProfiler()</span></a> was called. </p>
|
||||
</dd>
|
||||
<dt><strong>Parameters</strong></dt><dd><ul class="breatheparameterlist simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">base</span></code>: is the base address of a valid CPUTimer.</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</p>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="sta_comm.html" class="btn btn-neutral float-left" title="STA_Comm Functions" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="sta_user.html" class="btn btn-neutral float-right" title="STA_User Functions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>
|
||||
<a href="https://www.ti.com/corp/docs/legal/copyright.shtml">2022, Texas Instruments Incorporated</a>, Texas Instruments Incorporated. All rights reserved. <br/>
|
||||
<a href="https://www.ti.com/corp/docs/legal/trademark/trademrk.htm">Trademarks</a> | <a href="https://www.ti.com/corp/docs/legal/privacy.shtml">Privacy policy</a> | <a href="https://www.ti.com/corp/docs/legal/termsofuse.shtml">Terms of use</a> | <a href="https://www.ti.com/lsds/ti/legal/termsofsale.page">Terms of sale</a>
|
||||
<span class="lastupdated">Last updated on Oct 29, 2024.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT:'../',
|
||||
VERSION:'v5.00.01',
|
||||
COLLAPSE_INDEX:false,
|
||||
FILE_SUFFIX:'.html',
|
||||
HAS_SOURCE: false,
|
||||
SOURCELINK_SUFFIX: '.txt'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||||
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<script src="http://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.StickyNav.enable();
|
||||
});
|
||||
|
||||
var menuHeight = window.innerHeight;
|
||||
|
||||
var contentOffset = $(".wy-nav-content-wrap").offset();
|
||||
var contentHeight = $(".wy-nav-content-wrap").height();
|
||||
var contentBottom = contentOffset.top + contentHeight;
|
||||
|
||||
function setNavbarTop() {
|
||||
var scrollTop = $(window).scrollTop();
|
||||
var maxTop = scrollTop + menuHeight;
|
||||
|
||||
// If past the header
|
||||
if (scrollTop > contentOffset.top && maxTop < contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top;
|
||||
} else if (maxTop > contentBottom) {
|
||||
stickyTop = scrollTop - contentOffset.top - (maxTop - contentBottom);
|
||||
} else {
|
||||
stickyTop = 0;
|
||||
}
|
||||
|
||||
$(".wy-nav-side").css("top", stickyTop);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
setNavbarTop();
|
||||
$(window).scroll(function () {
|
||||
setNavbarTop();
|
||||
});
|
||||
|
||||
$('body').on("mousewheel", function () {
|
||||
// Remove default behavior
|
||||
event.preventDefault();
|
||||
// Scroll without smoothing
|
||||
var wheelDelta = event.wheelDelta;
|
||||
var currentScrollPosition = window.pageYOffset;
|
||||
window.scrollTo(0, currentScrollPosition - wheelDelta);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="sdl_ex_dcsm_ffi"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
sourceLookupPath="${C2000WARE_DLIB_ROOT}"
|
||||
>
|
||||
<configuration name="FLASH" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${DIAG_LIBRARY_ROOT}/include -I${DIAG_LIBRARY_ROOT}/examples/test_application/include -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_COMMON}/include -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc --define=_FLASH --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--entry_point=code_start --stack_size=0x100 --heap_size=0x200 " />
|
||||
|
||||
<pathVariable name="DIAG_LIBRARY_ROOT" path="../../.." scope="project" />
|
||||
<pathVariable name="C2000WARE_COMMON" path="../../../../../../device_support/f2838x/common" scope="project" />
|
||||
<pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../../../driverlib/f2838x/driverlib/" scope="project" />
|
||||
|
||||
<file action="copy" path="../f2838x_dcsm_ffi_flash_lnk_cpu1.cmd" targetDirectory="" />
|
||||
<file action="copy" path="../f2838x_dcsm.cmd" targetDirectory="" />
|
||||
|
||||
<file action="link" path="C2000WARE_DLIB_ROOT/ccs/Debug/driverlib.lib" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../sdl_ex_dcsm_ffi.c" targetDirectory="" />
|
||||
<file action="copy" path="../f2838x_dcsm.asm" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../driverlib/f2838x/driverlib" targetDirectory="device" excludeFromBuild="True" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/driverlib.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/device.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/device.c" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/f2838x_codestartbranch.asm" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/targetConfigs/TMS320F28388D.ccxml" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,112 @@
|
||||
;;//###########################################################################
|
||||
;;//
|
||||
;;// FILE: f2838x_dcsm.asm
|
||||
;;//
|
||||
;;//###########################################################################
|
||||
;;//
|
||||
;;// This file was originally generated by the DCSM Tool and then edited to
|
||||
;;// remove sections not used by the sdl_ex_dcsm_ffi example. We strongly
|
||||
;;// recommend using this tool to generate the code for your DCSM configuration.
|
||||
;;// Refer to the following guide for more information:
|
||||
;;// http://www.ti.com/lit/pdf/spracp8
|
||||
;;//
|
||||
;;//###########################################################################
|
||||
;;// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
;;// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
;;// $Copyright:
|
||||
;// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
;//
|
||||
;// Redistribution and use in source and binary forms, with or without
|
||||
;// modification, are permitted provided that the following conditions
|
||||
;// are met:
|
||||
;//
|
||||
;// Redistributions of source code must retain the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer.
|
||||
;//
|
||||
;// Redistributions in binary form must reproduce the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer in the
|
||||
;// documentation and/or other materials provided with the
|
||||
;// distribution.
|
||||
;//
|
||||
;// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
;// its contributors may be used to endorse or promote products derived
|
||||
;// from this software without specific prior written permission.
|
||||
;//
|
||||
;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
;// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
;// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
;// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
;// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
;// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
;// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
;// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
;// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
;// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
;// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
;// $
|
||||
;;//###########################################################################
|
||||
|
||||
;----------------------------------------------------------------------
|
||||
; Zone 1
|
||||
;----------------------------------------------------------------------
|
||||
.sect "dcsm_otp_z1_linkpointer"
|
||||
.retain
|
||||
; .long 0x00003FFF
|
||||
; .long 0x00003FFF
|
||||
; .long 0x00003FFF
|
||||
|
||||
.sect "dcsm_zsel_z1"
|
||||
.retain
|
||||
; .long 0xFFFFFFFF ;Z1OTP_CSMPSWD0 (LSW of 128-bit password)
|
||||
; .long 0x4D7FFFFF ;Z1OTP_CSMPSWD1
|
||||
; .long 0xFFFFFFFF ;Z1OTP_CSMPSWD2
|
||||
; .long 0xFFFFFFFF ;Z1OTP_CSMPSWD3 (MSW of 128-bit password)
|
||||
|
||||
; .long 0x0AAAA6AA ;Z1OTP_GRABSECT1
|
||||
; .long 0x0AAAAAAA ;Z1OTP_GRABSECT2
|
||||
; .long 0x0AAAAAAA ;Z1OTP_GRABSECT3
|
||||
; .long 0x000AAA9A ;Z1OTP_GRABRAM1
|
||||
; .long 0xAAAAAA0A ;Z1OTP_GRABRAM2
|
||||
; .long 0x000AAAAA ;Z1OTP_GRABRAM3
|
||||
|
||||
; .long 0x3FFF3FFF ;Z1OTP_EXEONLYSECT1
|
||||
; .long 0x00003FFF ;Z1OTP_EXEONLYSECT2
|
||||
; .long 0xFFC303FF ;Z1OTP_EXEONLYRAM1
|
||||
; .long 0xFFFFFFFF ;Reserved
|
||||
; .long 0xFFFFFFFF ;Z1OTP_JTAGPSWDL0
|
||||
; .long 0x2BFFFFFF ;Z1OTP_JTAGPSWDL1
|
||||
|
||||
;----------------------------------------------------------------------
|
||||
; Zone 2
|
||||
;----------------------------------------------------------------------
|
||||
.sect "dcsm_otp_z2_linkpointer"
|
||||
.retain
|
||||
; .long 0x00003FFF
|
||||
; .long 0x00003FFF
|
||||
; .long 0x00003FFF
|
||||
|
||||
.sect "dcsm_zsel_z2"
|
||||
.retain
|
||||
; .long 0xFFFFFFFF ;Z2OTP_CSMPSWD0 (LSW of 128-bit password)
|
||||
; .long 0x1F7FFFFF ;Z2OTP_CSMPSWD1
|
||||
; .long 0xFFFFFFFF ;Z2OTP_CSMPSWD2
|
||||
; .long 0xFFFFFFFF ;Z2OTP_CSMPSWD3 (MSW of 128-bit password)
|
||||
|
||||
; .long 0x0AAA9AAA ;Z2OTP_GRABSECT1
|
||||
; .long 0x0AAAAAAA ;Z2OTP_GRABSECT2
|
||||
; .long 0x0AAAAAAA ;Z2OTP_GRABSECT3
|
||||
; .long 0x000AA9AA ;Z2OTP_GRABRAM1
|
||||
; .long 0xAAAAAA0A ;Z2OTP_GRABRAM2
|
||||
; .long 0x000AAAAA ;Z2OTP_GRABRAM3
|
||||
|
||||
; .long 0x3FFF3FFF ;Z2OTP_EXEONLYSECT1
|
||||
; .long 0x00003FFF ;Z2OTP_EXEONLYSECT2
|
||||
; .long 0xFFC303FF ;Z2OTP_EXEONLYRAM1
|
||||
; .long 0xFFFFFFFF ;Reserved
|
||||
; .long 0xFFFFFFFF ;Reserved
|
||||
; .long 0xFFFFFFFF ;Reserved
|
||||
|
||||
;----------------------------------------------------------------------
|
||||
; End of file
|
||||
;----------------------------------------------------------------------
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* This linker command file is to be included if user wants to use the DCSM
|
||||
* (Dual Zone Code Security Module) feature on the device. This linker command
|
||||
* file works as an addendum to the main Flash/RAM linker command file.
|
||||
* The sections in the dcsm.asm source file in this project are linked as per
|
||||
* the commands given in the file.
|
||||
*
|
||||
* This file was originally generated by the DCSM Tool and then edited to
|
||||
* remove sections not used by the sdl_ex_dcsm_ffi example. We strongly
|
||||
* recommend using this tool to generate the code for your DCSM configuration.
|
||||
* Refer to the following guide for more information:
|
||||
* http://www.ti.com/lit/pdf/spracp8
|
||||
*
|
||||
* Once users are confident that they want to program the passwords in OTP,
|
||||
* the DSECT section type can be removed.
|
||||
*
|
||||
*/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 : /* Program Memory */
|
||||
|
||||
/* Z1 OTP. LinkPointers */
|
||||
DCSM_OTP_Z1_LINKPOINTER : origin = 0x78000, length = 0x00006
|
||||
|
||||
/* DCSM Z1 Zone Select Contents (!!Movable!!) */
|
||||
/* Z1 OTP. Z1 password locations / Flash and RAM partitioning */
|
||||
DCSM_ZSEL_Z1_P0 : origin = 0x78020, length = 0x000020
|
||||
|
||||
/* Z2 OTP. LinkPointers */
|
||||
DCSM_OTP_Z2_LINKPOINTER : origin = 0x78200, length = 0x00006
|
||||
|
||||
/* DCSM Z2 Zone Select Contents (!!Movable!!) */
|
||||
/* Z2 OTP. Z2 password locations / Flash and RAM partitioning */
|
||||
DCSM_ZSEL_Z2_P0 : origin = 0x78220, length = 0x000020
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/* Remove the DSECT when you're ready to permanantly write to these
|
||||
sections. Make sure you've also uncommented the .asm file! */
|
||||
dcsm_otp_z1_linkpointer : > DCSM_OTP_Z1_LINKPOINTER, PAGE = 0, type = DSECT
|
||||
dcsm_zsel_z1 : > DCSM_ZSEL_Z1_P0, PAGE = 0, type = DSECT
|
||||
|
||||
dcsm_otp_z2_linkpointer : > DCSM_OTP_Z2_LINKPOINTER, PAGE = 0, type = DSECT
|
||||
dcsm_zsel_z2 : > DCSM_ZSEL_Z2_P0, PAGE = 0, type = DSECT
|
||||
}
|
||||
|
||||
/*
|
||||
//===========================================================================
|
||||
// End of file.
|
||||
//===========================================================================
|
||||
*/
|
||||
@@ -0,0 +1,104 @@
|
||||
|
||||
MEMORY
|
||||
{
|
||||
/* BEGIN is used for the "boot to Flash" bootloader mode */
|
||||
BEGIN : origin = 0x080000, length = 0x000002
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x0001AF /* Part of M0, BOOT rom will use this for stack */
|
||||
RAMM0 : origin = 0x0001B1, length = 0x00024F
|
||||
RAMM1 : origin = 0x000400, length = 0x0003F8 /* on-chip RAM block M1 */
|
||||
// RAMM1_RSVD : origin = 0x0007F8, length = 0x000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
RAMD0 : origin = 0x00C000, length = 0x000800
|
||||
RAMD1 : origin = 0x00C800, length = 0x000800
|
||||
RAMLS0 : origin = 0x008000, length = 0x000800
|
||||
RAMLS1 : origin = 0x008800, length = 0x000800
|
||||
RAMLS2 : origin = 0x009000, length = 0x000800
|
||||
RAMLS3 : origin = 0x009800, length = 0x000800
|
||||
RAMLS4 : origin = 0x00A000, length = 0x000800
|
||||
RAMLS5 : origin = 0x00A800, length = 0x000800
|
||||
RAMLS6 : origin = 0x00B000, length = 0x000800
|
||||
RAMLS7 : origin = 0x00B800, length = 0x000800
|
||||
RAMGS0 : origin = 0x00D000, length = 0x001000
|
||||
RAMGS1 : origin = 0x00E000, length = 0x001000
|
||||
RAMGS2 : origin = 0x00F000, length = 0x001000
|
||||
RAMGS3 : origin = 0x010000, length = 0x001000
|
||||
RAMGS4 : origin = 0x011000, length = 0x001000
|
||||
RAMGS5 : origin = 0x012000, length = 0x001000
|
||||
RAMGS6 : origin = 0x013000, length = 0x001000
|
||||
RAMGS7 : origin = 0x014000, length = 0x001000
|
||||
RAMGS8 : origin = 0x015000, length = 0x001000
|
||||
RAMGS9 : origin = 0x016000, length = 0x001000
|
||||
RAMGS10 : origin = 0x017000, length = 0x001000
|
||||
RAMGS11 : origin = 0x018000, length = 0x001000
|
||||
RAMGS12 : origin = 0x019000, length = 0x001000
|
||||
RAMGS13 : origin = 0x01A000, length = 0x001000
|
||||
RAMGS14 : origin = 0x01B000, length = 0x001000
|
||||
RAMGS15 : origin = 0x01C000, length = 0x000FF8
|
||||
// RAMGS15_RSVD : origin = 0x01CFF8, length = 0x000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
|
||||
/* Flash sectors */
|
||||
FLASH0 : origin = 0x080002, length = 0x001FFE /* on-chip Flash */
|
||||
FLASH1 : origin = 0x082000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH2 : origin = 0x084000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH3 : origin = 0x086000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH4 : origin = 0x088000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH5 : origin = 0x090000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH6 : origin = 0x098000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH7 : origin = 0x0A0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH8 : origin = 0x0A8000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH9 : origin = 0x0B0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH10 : origin = 0x0B8000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH11 : origin = 0x0BA000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH12 : origin = 0x0BC000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH13 : origin = 0x0BE000, length = 0x001FF0 /* on-chip Flash */
|
||||
// FLASH13_RSVD : origin = 0x0BFFF0, length = 0x000010 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
|
||||
CPU1TOCPU2RAM : origin = 0x03A000, length = 0x000800
|
||||
CPU2TOCPU1RAM : origin = 0x03B000, length = 0x000800
|
||||
CPUTOCMRAM : origin = 0x039000, length = 0x000800
|
||||
CMTOCPURAM : origin = 0x038000, length = 0x000800
|
||||
|
||||
CANA_MSG_RAM : origin = 0x049000, length = 0x000800
|
||||
CANB_MSG_RAM : origin = 0x04B000, length = 0x000800
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, ALIGN(8)
|
||||
.text : >> FLASH1 | FLASH2 | FLASH3 | FLASH4, ALIGN(8)
|
||||
.cinit : > FLASH4, ALIGN(8)
|
||||
.switch : > FLASH1, ALIGN(8)
|
||||
.reset : > RESET, TYPE = DSECT /* not used, */
|
||||
.stack : > RAMM1
|
||||
|
||||
.init_array : > FLASH1, ALIGN(8)
|
||||
.bss : > RAMLS5
|
||||
.bss:output : > RAMLS3
|
||||
.bss:cio : > RAMLS5
|
||||
.data : > RAMLS5
|
||||
.sysmem : > RAMLS5
|
||||
/* Initalized sections go in Flash */
|
||||
.const : > FLASH7, ALIGN(8)
|
||||
|
||||
.TI.ramfunc : {} LOAD = FLASH3,
|
||||
RUN = RAMLS0 | RAMLS1,
|
||||
LOAD_START(RamfuncsLoadStart),
|
||||
LOAD_SIZE(RamfuncsLoadSize),
|
||||
LOAD_END(RamfuncsLoadEnd),
|
||||
RUN_START(RamfuncsRunStart),
|
||||
RUN_SIZE(RamfuncsRunSize),
|
||||
RUN_END(RamfuncsRunEnd),
|
||||
ALIGN(8)
|
||||
|
||||
ZONE1_RAM : > RAMLS2
|
||||
ZONE2_RAM : > RAMLS4
|
||||
ZONE1_CODE : > FLASH5
|
||||
ZONE2_CODE : > FLASH6
|
||||
}
|
||||
|
||||
/*
|
||||
//===========================================================================
|
||||
// End of file.
|
||||
//===========================================================================
|
||||
*/
|
||||
@@ -0,0 +1,353 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: sdl_ex_dcsm_ffi.c
|
||||
//
|
||||
// TITLE: DCSM Freedom From Interference example
|
||||
//
|
||||
//! \defgroup sdl_ex_dcsm_ffi Using DCSM for Freedom From Interference (FFI)
|
||||
//! <h1>sdl_ex_dcsm_ffi</h1>
|
||||
//!
|
||||
//! This example demonstrates how to configure and use DCSM and how the DCSM
|
||||
//! blocks writes from one secured zone to another, simulating the its use to
|
||||
//! create firewalls between code of different safety requirement criticality.
|
||||
//!
|
||||
//! It uses the default passwords to allocate one LSRAM block and one flash
|
||||
//! sector to zone 1 and another to zone 2. In this example, zoning of memories
|
||||
//! is done by programming the DCSM OTP. The values that are programmed can be
|
||||
//! found in in dcsm.asm. Secured RAM blocks are partitioned to contain data
|
||||
//! arrays used in the example, and secured Flash sectors contain the program
|
||||
//! code. Once secure, both zone1LockedArray and zone2LockedArray are immutable
|
||||
//! outside of the safety functions residing in the same zone.
|
||||
//!
|
||||
//! !!IMPORTANT!! By default, assignments in dcsm.asm are commented out and
|
||||
//! the sections mapped to OTP in dcsm.cmd are given the "type = DSECT"
|
||||
//! attribute to prevent programming of the OTP. In this state, this example is
|
||||
//! expected to fail (result = FAIL) because the memories won't actually be
|
||||
//! secured. If you are sure you want to permanently update the zones' link
|
||||
//! pointers and zone select blocks, uncomment the code in dcsm.asm and remove
|
||||
//! "type = DSECT" from dcsm.cmd.
|
||||
//!
|
||||
//! Parts of this example where generated with assistance from the DCSM Tool.
|
||||
//! We strongly recommend using this tool to generate the code for your DCSM
|
||||
//! configuration. Refer to the following guide for more information:
|
||||
//! http://www.ti.com/lit/pdf/spracp8
|
||||
//!
|
||||
//! \note This example assumes you have not written to the DCSM OTP before and
|
||||
//! that the first zone select block is available for use. If this is not the
|
||||
//! case, you will need to update the link pointer, zone select block address,
|
||||
//! and passwords to use the next available zone select block.
|
||||
//!
|
||||
//! \b External \b Connections \n
|
||||
//! - None.
|
||||
//!
|
||||
//! \b Watch \b Variables \n
|
||||
//! - \b result - Status indicating success of blocking writes to
|
||||
//! secured zones.
|
||||
//! - \b errorZone1NotChanged, errorZone2NotChanged, errorZone1Changed,
|
||||
//! errorZone2Changed - Count of errors found during execution.
|
||||
//! - \b zone1LockedArray - Array located in zone 1 secured memory.
|
||||
//! - \b zone2LockedArray - Array located in zone 2 secured memory.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define PASS 0U
|
||||
#define FAIL 1U
|
||||
|
||||
#define ARRAY_SIZE 256U
|
||||
#define INIT_ARRAY1 0U
|
||||
#define INIT_ARRAY2 1U
|
||||
#define Z1_CHANGE_Z1 2U
|
||||
#define Z1_CHANGE_Z2 3U
|
||||
#define Z2_CHANGE_Z1 4U
|
||||
#define Z2_CHANGE_Z2 5U
|
||||
#define UNSEC_CHANGE_Z1 6U
|
||||
#define UNSEC_CHANGE_Z2 7U
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
uint32_t result = FAIL;
|
||||
|
||||
uint16_t zone1LockedArray[ARRAY_SIZE]; // Located in zone 1
|
||||
uint16_t zone2LockedArray[ARRAY_SIZE]; // Located in zone 2
|
||||
|
||||
#pragma DATA_SECTION(zone1LockedArray, "ZONE1_RAM");
|
||||
#pragma DATA_SECTION(zone2LockedArray, "ZONE2_RAM");
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
void initArray1(void); // Initializes array to value, located in Z1
|
||||
void initArray2(void); // Initializes array to value, located in Z2
|
||||
void secureFunction1(void); // Located in zone 1
|
||||
void secureFunction2(void); // Located in zone 2
|
||||
void unsecureFunction(void); // Located in unsecured memory
|
||||
uint16_t checkArray1(uint16_t); // Checks Z1 data against value, located in Z1
|
||||
uint16_t checkArray2(uint16_t); // Checks Z2 data against value, located in Z2
|
||||
|
||||
#pragma CODE_SECTION(initArray1, "ZONE1_CODE");
|
||||
#pragma CODE_SECTION(initArray2, "ZONE2_CODE");
|
||||
#pragma CODE_SECTION(secureFunction1, "ZONE1_CODE");
|
||||
#pragma CODE_SECTION(secureFunction2, "ZONE2_CODE");
|
||||
#pragma CODE_SECTION(checkArray1, "ZONE1_CODE");
|
||||
#pragma CODE_SECTION(checkArray2, "ZONE2_CODE");
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
uint16_t errorZone1NotChanged = 0U, errorZone1Changed = 0U;
|
||||
uint16_t errorZone2NotChanged = 0U, errorZone2Changed = 0U;
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals.
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// Initialize arrays.
|
||||
//
|
||||
initArray1();
|
||||
initArray2();
|
||||
|
||||
//
|
||||
// Make sure both zone 1 and zone 2 are locked
|
||||
//
|
||||
DCSM_secureZone1();
|
||||
DCSM_secureZone2();
|
||||
|
||||
//*************************************************************************
|
||||
//
|
||||
// Calling secure function 1 - Zone 1 array will be updated. Will attempt
|
||||
// to update zone 2 but should be blocked.
|
||||
//
|
||||
//*************************************************************************
|
||||
secureFunction1();
|
||||
|
||||
//
|
||||
// Checking array contents from secure code.
|
||||
//
|
||||
errorZone1NotChanged = checkArray1(Z1_CHANGE_Z1);
|
||||
errorZone2Changed = checkArray2(INIT_ARRAY2);
|
||||
|
||||
//*************************************************************************
|
||||
//
|
||||
// Calling secure function 2 - Zone 2 array will be updated. Will attempt
|
||||
// to update zone 1 but should be blocked.
|
||||
//
|
||||
//*************************************************************************
|
||||
secureFunction2();
|
||||
|
||||
//
|
||||
// Checking array contents from secure code.
|
||||
//
|
||||
errorZone1Changed = checkArray1(Z1_CHANGE_Z1);
|
||||
errorZone2NotChanged = checkArray2(Z2_CHANGE_Z2);
|
||||
|
||||
//*************************************************************************
|
||||
//
|
||||
// Calling unsecure function - Will attempt to write to both arrays but
|
||||
// should be blocked in both zones.
|
||||
//
|
||||
//*************************************************************************
|
||||
unsecureFunction();
|
||||
|
||||
//
|
||||
// Checking array contents from secure code.
|
||||
//
|
||||
errorZone1Changed += checkArray1(Z1_CHANGE_Z1);
|
||||
errorZone2Changed += checkArray2(Z2_CHANGE_Z2);
|
||||
|
||||
//
|
||||
// Report whether any data was incorrectly updated.
|
||||
//
|
||||
if((errorZone1Changed != 0U) || (errorZone1NotChanged != 0U) ||
|
||||
(errorZone2Changed != 0U) || (errorZone2NotChanged != 0U))
|
||||
{
|
||||
result = FAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = PASS;
|
||||
}
|
||||
|
||||
//
|
||||
// Loop here and check results in the CCS Expressions view.
|
||||
//
|
||||
while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// initArray1 - Fill the zone 1 array with a known value to start.
|
||||
//
|
||||
void initArray1(void)
|
||||
{
|
||||
uint16_t i = 0U;
|
||||
|
||||
for(i = 0U; i < ARRAY_SIZE; i++)
|
||||
{
|
||||
zone1LockedArray[i] = INIT_ARRAY1;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// initArray2 - Fill the zone 2 array with a known value to start.
|
||||
//
|
||||
void initArray2(void)
|
||||
{
|
||||
uint16_t i = 0U;
|
||||
|
||||
for(i = 0U; i < ARRAY_SIZE; i++)
|
||||
{
|
||||
zone2LockedArray[i] = INIT_ARRAY2;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// secureFunction1 - This function resides secure memory grabbed by DCSM
|
||||
// zone 1. zone1LockedArray is modified whereas writes to zone2LockedArray are
|
||||
// blocked because it resides zone 2 memory.
|
||||
//
|
||||
void secureFunction1(void)
|
||||
{
|
||||
uint16_t i = 0U;
|
||||
|
||||
for(i = 0U; i < ARRAY_SIZE; i++)
|
||||
{
|
||||
zone1LockedArray[i] = Z1_CHANGE_Z1;
|
||||
zone2LockedArray[i] = Z1_CHANGE_Z2;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// secureFunction2 - This function resides secure memory grabbed by DCSM
|
||||
// zone 2. zone2LockedArray is modified whereas writes to zone1LockedArray are
|
||||
// blocked because it resides zone 2 memory.
|
||||
//
|
||||
void secureFunction2(void)
|
||||
{
|
||||
uint16_t i = 0U;
|
||||
|
||||
for(i = 0U; i < ARRAY_SIZE; i++)
|
||||
{
|
||||
zone1LockedArray[i] = Z2_CHANGE_Z1;
|
||||
zone2LockedArray[i] = Z2_CHANGE_Z2;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// unsecureFunction - This function resides in unsecure memory and is blocked
|
||||
// from writing to either array.
|
||||
//
|
||||
void unsecureFunction(void)
|
||||
{
|
||||
uint16_t i = 0U;
|
||||
|
||||
for(i = 0U; i < ARRAY_SIZE; i++)
|
||||
{
|
||||
zone1LockedArray[i] = UNSEC_CHANGE_Z1;
|
||||
zone2LockedArray[i] = UNSEC_CHANGE_Z2;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// checkArray1 - This function resides in secure memory grabbed by DCSM
|
||||
// zone 1. It compares zone1LockedArray against a parameter value and returns
|
||||
// the count of unexpected values.
|
||||
//
|
||||
uint16_t checkArray1(uint16_t value)
|
||||
{
|
||||
uint16_t i = 0U;
|
||||
uint16_t count = 0U;
|
||||
|
||||
for(i = 0U; i < ARRAY_SIZE; i++)
|
||||
{
|
||||
if(zone1LockedArray[i] != value)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
return(count);
|
||||
}
|
||||
|
||||
//
|
||||
// checkArray2 - This function resides in secure memory grabbed by DCSM
|
||||
// zone 2. It compares zone2LockedArray against a parameter value and returns
|
||||
// the count of unexpected values.
|
||||
//
|
||||
uint16_t checkArray2(uint16_t value)
|
||||
{
|
||||
uint16_t i = 0U;
|
||||
uint16_t count = 0U;
|
||||
|
||||
for(i = 0U; i < ARRAY_SIZE; i++)
|
||||
{
|
||||
if(zone2LockedArray[i] != value)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
return(count);
|
||||
}
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="sdl_ex_flash_ecc_test"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
sourceLookupPath="${C2000WARE_DLIB_ROOT}"
|
||||
>
|
||||
<configuration name="FLASH" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_COMMON}/include -v28 -ml -mt --float_support=fpu64 --tmu_support=tmu0 --vcu_support=vcrc --define=_FLASH --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--entry_point=code_start --stack_size=0x100 --heap_size=0x200 " />
|
||||
|
||||
<pathVariable name="DIAG_LIBRARY_ROOT" path="../../.." scope="project" />
|
||||
<pathVariable name="C2000WARE_COMMON" path="../../../../../../device_support/f2838x/common" scope="project" />
|
||||
<pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../../../driverlib/f2838x/driverlib/" scope="project" />
|
||||
|
||||
<file action="copy" path="C2000WARE_COMMON/cmd/2838x_FLASH_lnk_cpu1.cmd" targetDirectory="" />
|
||||
|
||||
<file action="link" path="C2000WARE_DLIB_ROOT/ccs/Debug/driverlib.lib" targetDirectory="" />
|
||||
<file action="link" path="../../../lib/f2838x_diagnostic_stl_debug.lib" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../driverlib/f2838x/driverlib" targetDirectory="device" excludeFromBuild="True" />
|
||||
|
||||
<file action="copy" path="../sdl_ex_flash_ecc_test.c" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/driverlib.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/device.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/device.c" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/f2838x_codestartbranch.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/targetConfigs/TMS320F28388D.ccxml" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,664 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: sdl_ex_flash_ecc_test.c
|
||||
//
|
||||
// TITLE: Test of ECC logic in Flash
|
||||
//
|
||||
//! \defgroup sdl_ex_flash_ecc_test Test of ECC logic in Flash
|
||||
//! <h1>sdl_ex_flash_ecc_test</h1>
|
||||
//!
|
||||
//! This example demonstrates how to test the Flash ECC logic functionality.
|
||||
//!
|
||||
//! A software test of the Flash ECC logic can be performed with the help of
|
||||
//! ECC test registers. Using the test registers, you can generate both single
|
||||
//! bit errors and uncorrectable errors. For additional details on the
|
||||
//! implementation of this diagnostic, see the "SECDED Logic Correctness Check"
|
||||
//! section in the device technical reference manual.
|
||||
//!
|
||||
//! \note When using the flash test mode, you should not execute code from
|
||||
//! Flash. Note the #pragma CODE_SECTION lines below.
|
||||
//!
|
||||
//! \b External \b Connections \n
|
||||
//! - None.
|
||||
//!
|
||||
//! \b Watch \b Variables \n
|
||||
//! - \b nmiISRFlag - Indicates that the NMI was triggered and called the ISR.
|
||||
//! - \b nmiStatus - NMI status flags read in the ISR.
|
||||
//! - \b errorISRFlag - Indicates that the correctable ECC error interrupt was
|
||||
//! triggered and called the ISR.
|
||||
//! - \b errorStatus - Error status flags read in the ISR, indicating whether
|
||||
//! an error was single-bit or uncorrectable.
|
||||
//! - \b errorCount - Number of correctable errors detected read in the ISR.
|
||||
//! - \b errorType - For a single-bit error, indicates whether it was in the
|
||||
//! data or ECC bits.
|
||||
//! - \b dataOut - For a single-bit error, displays the corrected data.
|
||||
//! - \b result - Status of a successful detection and handling of ECC errors.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define PASS 0U
|
||||
#define FAIL 1U
|
||||
|
||||
#define ISR_LOOP_TIMEOUT 0x3U
|
||||
#define MASK_ALL_BUT_FLASH_ERR \
|
||||
(0x0000FFFFUL & ~(uint32_t)SYSCTL_STATUS_FLASH_CORRECTABLE_ERR)
|
||||
|
||||
//
|
||||
// Flash ECC Logic test values
|
||||
//
|
||||
#define TEST_FLASH_DATA64 0xFEDCBA0987654321ULL
|
||||
#define TEST_FLASH_DATAL ((uint32_t)(TEST_FLASH_DATA64))
|
||||
#define TEST_FLASH_DATAH ((uint32_t)(TEST_FLASH_DATA64 >> 32))
|
||||
#define TEST_FLASH_ADDR 0x00090000UL
|
||||
|
||||
//
|
||||
// Typedefs
|
||||
//
|
||||
typedef enum
|
||||
{
|
||||
TEST_ECC_BLOCK_LOW = 0x00, //!< Low 64-bit block
|
||||
TEST_ECC_BLOCK_HIGH = 0x02 //!< High 64-bit block
|
||||
} ECCBlock;
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
uint16_t calcECC;
|
||||
uint32_t result = FAIL;
|
||||
volatile bool nmiISRFlag;
|
||||
uint16_t nmiStatus;
|
||||
volatile bool errorISRFlag;
|
||||
uint16_t errorStatus;
|
||||
uint16_t errorCount;
|
||||
uint32_t errorType;
|
||||
uint32_t dataOutLow;
|
||||
uint32_t dataOutHigh;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
// All the code we're using while test mode is enabled should be executed
|
||||
// from Flash.
|
||||
//
|
||||
__interrupt void nmiISR(void);
|
||||
__interrupt void corrErrorISR(void);
|
||||
#pragma CODE_SECTION(nmiISR, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(corrErrorISR, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_getECCTestStatus, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_clearUncorrectableInterruptFlag, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_getECCTestSingleBitErrorType, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_getTestDataOutHigh, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_getTestDataOutLow, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_getErrorCount, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_clearSingleErrorInterruptFlag, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(SysCtl_getNMIFlagStatus, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(SysCtl_clearAllNMIFlags, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(SysCtl_getInterruptStatus, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(SysCtl_clearInterruptStatus, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Interrupt_clearACKGroup, ".TI.ramfunc");
|
||||
|
||||
uint16_t runCorrectableDataErrorTest(void);
|
||||
uint16_t runCorrectableECCErrorTest(void);
|
||||
uint16_t runUncorrectableErrorTest(void);
|
||||
void testECCBlock(uint64_t data, uint32_t address, ECCBlock eccBlock,
|
||||
uint16_t ecc);
|
||||
|
||||
uint16_t calculateECC(uint32_t address, uint64_t data);
|
||||
#pragma CODE_SECTION(testECCBlock, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_enableECCTestMode, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_performECCCalculation, ".TI.ramfunc");
|
||||
#pragma CODE_SECTION(Flash_disableECCTestMode, ".TI.ramfunc");
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
uint16_t failCount;
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals.
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// Clear all the NMI and Flash error status flags.
|
||||
//
|
||||
EALLOW;
|
||||
HWREG(FLASH0ECC_BASE + FLASH_O_ERR_STATUS_CLR) = 0xFFFFFFFFU;
|
||||
HWREG(FLASH0ECC_BASE + FLASH_O_ERR_INTCLR) = 0xFFFFFFFFU;
|
||||
EDIS;
|
||||
|
||||
SysCtl_clearAllNMIFlags();
|
||||
SysCtl_clearInterruptStatus(0xFFFFFFFFU);
|
||||
|
||||
//
|
||||
// Plug the NMI and Flash correctable error ISRs.
|
||||
//
|
||||
Interrupt_register(INT_NMI, &nmiISR);
|
||||
Interrupt_register(INT_SYS_ERR, corrErrorISR);
|
||||
Interrupt_enable(INT_SYS_ERR);
|
||||
|
||||
SysCtl_setInterruptStatusMask(MASK_ALL_BUT_FLASH_ERR);
|
||||
|
||||
//
|
||||
// Enabling the NMI global interrupt (typically already enabled by boot ROM
|
||||
// or GEL file).
|
||||
//
|
||||
SysCtl_enableNMIGlobalInterrupt();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and Real Time interrupt (DBGM).
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
//
|
||||
// Calculate ECC on test data.
|
||||
//
|
||||
calcECC = calculateECC(TEST_FLASH_ADDR, TEST_FLASH_DATA64);
|
||||
|
||||
//
|
||||
// Enable ECC.
|
||||
//
|
||||
Flash_enableECC(FLASH0ECC_BASE);
|
||||
|
||||
//
|
||||
// Test detection of correctable ECC errors in Flash data bits.
|
||||
//
|
||||
failCount = runCorrectableDataErrorTest();
|
||||
|
||||
//
|
||||
// Test detection of correctable ECC errors in Flash ECC bits.
|
||||
//
|
||||
failCount += runCorrectableECCErrorTest();
|
||||
|
||||
//
|
||||
// Test detection of uncorrectable ECC errors in Flash.
|
||||
//
|
||||
failCount += runUncorrectableErrorTest();
|
||||
|
||||
//
|
||||
// Status of a successful handling of the ECC errors.
|
||||
//
|
||||
if(failCount != 0U)
|
||||
{
|
||||
result = FAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = PASS;
|
||||
}
|
||||
|
||||
//
|
||||
// Loop here and check results in the CCS Expressions view.
|
||||
//
|
||||
while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// nmiISR - The interrupt service routine called when the NMI is generated
|
||||
// on an uncorrectable Flash ECC error.
|
||||
//
|
||||
__interrupt void nmiISR(void)
|
||||
{
|
||||
//
|
||||
// Set a flag indicating the NMI ISR occurred and get the NMI status.
|
||||
//
|
||||
nmiISRFlag = true;
|
||||
nmiStatus = SysCtl_getNMIFlagStatus();
|
||||
|
||||
//
|
||||
// Record the error test status.
|
||||
//
|
||||
errorStatus = Flash_getECCTestStatus(FLASH0ECC_BASE);
|
||||
|
||||
//
|
||||
// Clear all the flags.
|
||||
//
|
||||
EALLOW;
|
||||
HWREG(FLASH0ECC_BASE + FLASH_O_ERR_STATUS_CLR) = 0xFFFFFFFFU;
|
||||
EDIS;
|
||||
|
||||
Flash_clearUncorrectableInterruptFlag(FLASH0ECC_BASE);
|
||||
SysCtl_clearAllNMIFlags();
|
||||
}
|
||||
|
||||
//
|
||||
// corrErrorISR - The interrupt service routine called when the correctable
|
||||
// error count hits the configured interrupt threshold.
|
||||
//
|
||||
__interrupt void corrErrorISR(void)
|
||||
{
|
||||
//
|
||||
// Set a flag indicating the RAM error ISR occurred.
|
||||
//
|
||||
errorISRFlag = true;
|
||||
|
||||
//
|
||||
// Record the type of error injected, the status flags, the corrected data,
|
||||
// and the number of single-bit ECC errors detected.
|
||||
//
|
||||
errorType = Flash_getECCTestSingleBitErrorType(FLASH0ECC_BASE);
|
||||
errorStatus = Flash_getECCTestStatus(FLASH0ECC_BASE);
|
||||
dataOutLow = Flash_getTestDataOutLow(FLASH0ECC_BASE);
|
||||
dataOutHigh = Flash_getTestDataOutHigh(FLASH0ECC_BASE);
|
||||
errorCount = Flash_getErrorCount(FLASH0ECC_BASE);
|
||||
|
||||
//
|
||||
// Clear all the flags.
|
||||
//
|
||||
EALLOW;
|
||||
HWREG(FLASH0ECC_BASE + FLASH_O_ERR_STATUS_CLR) = 0xFFFFFFFFU;
|
||||
EDIS;
|
||||
|
||||
Flash_clearSingleErrorInterruptFlag(FLASH0ECC_BASE);
|
||||
|
||||
uint32_t sysIntStatus = SysCtl_getInterruptStatus();
|
||||
SysCtl_clearInterruptStatus(sysIntStatus);
|
||||
|
||||
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP1);
|
||||
}
|
||||
|
||||
//
|
||||
// runCorrectableDataErrorTest - Runs a test of the correctable data error
|
||||
// detection and correction as well as the error interrupt threshold.
|
||||
//
|
||||
uint16_t runCorrectableDataErrorTest(void)
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout= ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Clear error status variables.
|
||||
//
|
||||
errorISRFlag = false;
|
||||
errorStatus = 0U;
|
||||
errorType = 0U;
|
||||
errorCount = 0U;
|
||||
dataOutLow = 0U;
|
||||
dataOutHigh = 0U;
|
||||
|
||||
//
|
||||
// Configure the correctable error interrupt threshold to >1 errors.
|
||||
//
|
||||
Flash_setErrorThreshold(FLASH0ECC_BASE, 1U);
|
||||
|
||||
//
|
||||
// Flip a single bit in the data to inject a correctable error for the
|
||||
// test to detect.
|
||||
//
|
||||
testECCBlock(TEST_FLASH_DATA64 ^ 0x80U, TEST_FLASH_ADDR,
|
||||
TEST_ECC_BLOCK_LOW, calcECC);
|
||||
|
||||
//
|
||||
// Generate another single bit error to increase the count above the
|
||||
// threshold.
|
||||
//
|
||||
testECCBlock(TEST_FLASH_DATA64 ^ ((uint64_t)0x1U << 37), TEST_FLASH_ADDR,
|
||||
TEST_ECC_BLOCK_LOW, calcECC);
|
||||
|
||||
//
|
||||
// Wait until the error interrupt is fired.
|
||||
//
|
||||
while((errorISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the appropriate correctable Flash error flag was set.
|
||||
//
|
||||
if((errorStatus & FLASH_SINGLE_ERROR) != FLASH_SINGLE_ERROR)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the error count is 2.
|
||||
//
|
||||
if(errorCount != 2U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the error was a data error.
|
||||
//
|
||||
if(errorType != FLASH_DATA_ERR)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check that the data value was corrected properly.
|
||||
//
|
||||
if(dataOutLow != TEST_FLASH_DATAL)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
if(dataOutHigh != TEST_FLASH_DATAH)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// runCorrectableECCErrorTest - Runs a test of the correctable error detection.
|
||||
//
|
||||
uint16_t runCorrectableECCErrorTest(void)
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout= ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Clear error status variables.
|
||||
//
|
||||
errorISRFlag = false;
|
||||
errorStatus = 0U;
|
||||
errorType = 0U;
|
||||
|
||||
//
|
||||
// Configure the correctable error interrupt threshold to >0 errors.
|
||||
//
|
||||
Flash_setErrorThreshold(FLASH0ECC_BASE, 0U);
|
||||
|
||||
//
|
||||
// Flip a single bit in the data to inject a correctable error for the
|
||||
// test to detect.
|
||||
//
|
||||
testECCBlock(TEST_FLASH_DATA64, TEST_FLASH_ADDR,
|
||||
TEST_ECC_BLOCK_LOW, calcECC ^ 0x2U);
|
||||
|
||||
//
|
||||
// Wait until the error interrupt is fired.
|
||||
//
|
||||
while((errorISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the appropriate correctable Flash error flag was set.
|
||||
//
|
||||
if((errorStatus & FLASH_SINGLE_ERROR) != FLASH_SINGLE_ERROR)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the error was an ECC error.
|
||||
//
|
||||
if(errorType != FLASH_ECC_ERR)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// runUncorrectableErrorTest - Runs a test of the uncorrectable data error
|
||||
// detection and associated NMI generation.
|
||||
//
|
||||
uint16_t runUncorrectableErrorTest(void)
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout= ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Clear error status variables.
|
||||
//
|
||||
nmiISRFlag = false;
|
||||
nmiStatus = 0U;
|
||||
errorStatus = 0U;
|
||||
|
||||
//
|
||||
// Flip multiple bits in the data to inject an uncorrectable error for the
|
||||
// test to detect.
|
||||
//
|
||||
testECCBlock(TEST_FLASH_DATA64 ^ 0x30U, TEST_FLASH_ADDR,
|
||||
TEST_ECC_BLOCK_LOW, calcECC);
|
||||
|
||||
//
|
||||
// Wait until the NMI is fired.
|
||||
//
|
||||
while((nmiISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the NMI triggered was due to an uncorrectable Flash error.
|
||||
//
|
||||
if((nmiStatus & SYSCTL_NMI_FLUNCERR) != SYSCTL_NMI_FLUNCERR)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the appropriate uncorrectable Flash error flag was set.
|
||||
//
|
||||
if((errorStatus & FLASH_UNC_ERROR) != FLASH_UNC_ERROR)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// testECCBlock - Sets up the ECC test registers and performs the ECC
|
||||
// calculation to detect and error if one is injected.
|
||||
//
|
||||
void testECCBlock(uint64_t data, uint32_t address, ECCBlock eccBlock,
|
||||
uint16_t ecc)
|
||||
{
|
||||
//
|
||||
// Write 128-bit flash address in FADDR_TEST
|
||||
//
|
||||
Flash_setECCTestAddress(FLASH0ECC_BASE, address);
|
||||
|
||||
//
|
||||
// Write lower 32 bits of data in FDATAL_TEST
|
||||
//
|
||||
Flash_setDataLowECCTest(FLASH0ECC_BASE, (uint32_t)data);
|
||||
|
||||
//
|
||||
// Write upper 32 bits of data in FDATAH_TEST
|
||||
//
|
||||
Flash_setDataHighECCTest(FLASH0ECC_BASE, (uint32_t)(data >> 32));
|
||||
|
||||
//
|
||||
// Write corresponding ECC in the FECC_TEST
|
||||
// Insert double bit error in flash ecc
|
||||
//
|
||||
Flash_setECCTestECCBits(FLASH0ECC_BASE, ecc);
|
||||
|
||||
//
|
||||
// Select the ECC block to be tested. Only one of the SECDED modules (out
|
||||
// of the two SECDED modules that work on lower 64 bits and upper 64 bits
|
||||
// of a read 128-bit data) at a time can be tested.
|
||||
//
|
||||
if(eccBlock == TEST_ECC_BLOCK_LOW)
|
||||
{
|
||||
Flash_selectLowECCBlock(FLASH0ECC_BASE);
|
||||
}
|
||||
else
|
||||
{
|
||||
Flash_selectHighECCBlock(FLASH0ECC_BASE);
|
||||
}
|
||||
|
||||
//
|
||||
// Enable the ECC Test Mode
|
||||
//
|
||||
Flash_enableECCTestMode(FLASH0ECC_BASE);
|
||||
|
||||
//
|
||||
// Perform ECC calculation
|
||||
//
|
||||
Flash_performECCCalculation(FLASH0ECC_BASE);
|
||||
|
||||
//
|
||||
// Disable the ECC Test Mode
|
||||
//
|
||||
Flash_disableECCTestMode(FLASH0ECC_BASE);
|
||||
}
|
||||
|
||||
//
|
||||
// calcECC - Calculate the ECC for an address/data pair. This code comes from
|
||||
// the ECC Calculation Algorithm appendix of the Flash API reference
|
||||
// guide (SPNU628). If you are using the Flash API in your code, you
|
||||
// could use Fapi_calculateEcc() instead.
|
||||
//
|
||||
uint16_t calculateECC(uint32_t address, uint64_t data)
|
||||
{
|
||||
const uint32_t addrSyndrome[8] = {0x554EAU, 0x0BAD1U, 0x2A9B5U, 0x6A78DU,
|
||||
0x19F83U, 0x07F80U, 0x7FF80U, 0x0007FU};
|
||||
const uint64_t dataSyndrome[8] = {0xB4D1B4D14B2E4B2EU, 0x1557155715571557U,
|
||||
0xA699A699A699A699U, 0x38E338E338E338E3U,
|
||||
0xC0FCC0FCC0FCC0FCU, 0xFF00FF00FF00FF00U,
|
||||
0xFF0000FFFF0000FFU, 0x00FFFF00FF0000FFU};
|
||||
const uint16_t parity = 0xFCU;
|
||||
uint64_t xorData;
|
||||
uint32_t xorAddr;
|
||||
uint16_t bit, eccBit, eccVal;
|
||||
|
||||
//
|
||||
// Extract bits "20:2" of the address
|
||||
//
|
||||
address = (address >> 2) & 0x7FFFFU;
|
||||
|
||||
//
|
||||
// Compute the ECC one bit at a time.
|
||||
//
|
||||
eccVal = 0U;
|
||||
|
||||
for (bit = 0U; bit < 8U; bit++)
|
||||
{
|
||||
//
|
||||
// Apply the encoding masks to the address and data
|
||||
//
|
||||
xorAddr = address & addrSyndrome[bit];
|
||||
xorData = data & dataSyndrome[bit];
|
||||
|
||||
//
|
||||
// Fold the masked address into a single bit for parity calculation.
|
||||
// The result will be in the LSB.
|
||||
//
|
||||
xorAddr = xorAddr ^ (xorAddr >> 16);
|
||||
xorAddr = xorAddr ^ (xorAddr >> 8);
|
||||
xorAddr = xorAddr ^ (xorAddr >> 4);
|
||||
xorAddr = xorAddr ^ (xorAddr >> 2);
|
||||
xorAddr = xorAddr ^ (xorAddr >> 1);
|
||||
|
||||
//
|
||||
// Fold the masked data into a single bit for parity calculation.
|
||||
// The result will be in the LSB.
|
||||
//
|
||||
xorData = xorData ^ (xorData >> 32);
|
||||
xorData = xorData ^ (xorData >> 16);
|
||||
xorData = xorData ^ (xorData >> 8);
|
||||
xorData = xorData ^ (xorData >> 4);
|
||||
xorData = xorData ^ (xorData >> 2);
|
||||
xorData = xorData ^ (xorData >> 1);
|
||||
|
||||
//
|
||||
// Merge the address and data, extract the ECC bit, and add it in
|
||||
//
|
||||
eccBit = ((uint16_t)xorData ^ (uint16_t)xorAddr) & 0x0001U;
|
||||
eccVal |= eccBit << bit;
|
||||
}
|
||||
|
||||
//
|
||||
// Handle the bit parity. For odd parity, XOR the bit with 1
|
||||
//
|
||||
eccVal ^= parity;
|
||||
return eccVal;
|
||||
}
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
@@ -0,0 +1,35 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="sdl_ex_flash_prefetch_test"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
sourceLookupPath="${C2000WARE_DLIB_ROOT}"
|
||||
>
|
||||
<configuration name="FLASH" compilerBuildOptions="--opt_level=0 -I${PROJECT_ROOT}/device -I${DIAG_LIBRARY_ROOT}/include -I${DIAG_LIBRARY_ROOT}/examples/test_application/include -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_COMMON}/include -v28 -ml -mt --float_support=fpu64 --tmu_support=tmu0 --vcu_support=vcrc --define=_FLASH --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--entry_point=code_start --stack_size=0x100 --heap_size=0x200 " />
|
||||
|
||||
<pathVariable name="DIAG_LIBRARY_ROOT" path="../../.." scope="project" />
|
||||
<pathVariable name="C2000WARE_COMMON" path="../../../../../../device_support/f2838x/common" scope="project" />
|
||||
<pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../../../driverlib/f2838x/driverlib/" scope="project" />
|
||||
|
||||
<file action="copy" path="C2000WARE_COMMON/cmd/2838x_FLASH_lnk_cpu1.cmd" targetDirectory="" />
|
||||
|
||||
<file action="link" path="C2000WARE_DLIB_ROOT/ccs/Debug/driverlib.lib" targetDirectory="" />
|
||||
<file action="link" path="../../../lib/f2838x_diagnostic_stl_debug.lib" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../driverlib/f2838x/driverlib" targetDirectory="device" excludeFromBuild="True" />
|
||||
|
||||
<file action="copy" path="../sdl_ex_flash_prefetch_test.c" targetDirectory="" />
|
||||
<file action="copy" path="../sdl_ex_flash_prefetch_test_func.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../test_application/sta_util.c" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/driverlib.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/device.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/device.c" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/f2838x_codestartbranch.asm" targetDirectory="" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/targetConfigs/TMS320F28388D.ccxml" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,310 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: sdl_ex_flash_prefetch_test.c
|
||||
//
|
||||
// TITLE: Software Test of Flash Prefetch, Data Cache and Wait-States
|
||||
//
|
||||
//! \defgroup sdl_ex_flash_prefetch_test Test of Flash Prefetch, Data Cache and Wait-States
|
||||
//! <h1>sdl_ex_flash_prefetch_test</h1>
|
||||
//!
|
||||
//! This example demonstrates how to test the behavior of the flash prefetch,
|
||||
//! data cache, and wait-states. Each of these configurations are altered one
|
||||
//! by one and the impact they have on a test function's execution time is
|
||||
//! measured. It is expected that an increase in the execution time will be
|
||||
//! observed in each case.
|
||||
//!
|
||||
//! Note that as mentioned in the safety manual description of this diagnostic,
|
||||
//! a golden value may be used to check the execution time. This wasn't used
|
||||
//! for this example because of possible compiler differences between users'
|
||||
//! environments, but can be used in your actual application.
|
||||
//!
|
||||
//! \b External \b Connections \n
|
||||
//! - None.
|
||||
//!
|
||||
//! \b Watch \b Variables \n
|
||||
//! - \b baseCycles - Execution time of runPrefetchTestCode();
|
||||
//! - \b failCount - Number of tests that returned failures.
|
||||
//! - \b result - Status of flash configuration logic test.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
|
||||
#include "sta_util.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define PASS 0U
|
||||
#define FAIL 1U
|
||||
#define PIPELINE_FLUSH __asm(" RPT #7 || NOP")
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
uint32_t result = FAIL;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
uint32_t testBaseline(void);
|
||||
uint16_t testPrefetch(uint32_t baseCycles);
|
||||
uint16_t testDataCache(uint32_t baseCycles);
|
||||
uint16_t testWaitStates(uint32_t baseCycles);
|
||||
|
||||
//
|
||||
// Place functions in RAM since they will be modifying flash configurations.
|
||||
//
|
||||
#pragma CODE_SECTION(testBaseline, ".TI.ramfunc")
|
||||
#pragma CODE_SECTION(testPrefetch, ".TI.ramfunc")
|
||||
#pragma CODE_SECTION(testDataCache, ".TI.ramfunc")
|
||||
#pragma CODE_SECTION(testWaitStates, ".TI.ramfunc")
|
||||
#pragma FUNC_CANNOT_INLINE(testBaseline);
|
||||
#pragma FUNC_CANNOT_INLINE(testPrefetch);
|
||||
#pragma FUNC_CANNOT_INLINE(testDataCache);
|
||||
#pragma FUNC_CANNOT_INLINE(testWaitStates);
|
||||
|
||||
//
|
||||
// This is the function that will be profiled under different flash conditions.
|
||||
// Its implementation can be found in sdl_ex_flash_prefetch_test_func.asm.
|
||||
//
|
||||
extern void runPrefetchTestCode(void);
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
uint16_t failCount = 0U;
|
||||
uint32_t baseCycles;
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals.
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and Real Time interrupt (DBGM).
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
//
|
||||
// Borrowing the STA profiling function for this test. Set up CPU Timer 1.
|
||||
//
|
||||
STA_Util_configProfiler(CPUTIMER1_BASE);
|
||||
|
||||
//
|
||||
// Get the original execution time.
|
||||
//
|
||||
baseCycles = testBaseline();
|
||||
|
||||
//
|
||||
// Alter the flash configurations and check that the execution time
|
||||
// increases as a result.
|
||||
//
|
||||
failCount += testPrefetch(baseCycles);
|
||||
failCount += testDataCache(baseCycles);
|
||||
failCount += testWaitStates(baseCycles);
|
||||
|
||||
//
|
||||
// Status of flash configuration logic test.
|
||||
//
|
||||
if(failCount != 0U)
|
||||
{
|
||||
result = FAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = PASS;
|
||||
}
|
||||
|
||||
//
|
||||
// Loop here and check results in the CCS Expressions view.
|
||||
//
|
||||
while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// testBaseline - Call the test function with the typical flash configurations:
|
||||
// prefetch and data cache enabled with the recommended number of wait-states
|
||||
// for the system clock speed.
|
||||
//
|
||||
uint32_t testBaseline(void)
|
||||
{
|
||||
uint32_t cycles;
|
||||
|
||||
//
|
||||
// Call the test function and capture the execution time.
|
||||
//
|
||||
STA_Util_startProfiler(CPUTIMER1_BASE);
|
||||
runPrefetchTestCode();
|
||||
cycles = STA_Util_stopProfiler(CPUTIMER1_BASE);
|
||||
|
||||
return(cycles);
|
||||
}
|
||||
|
||||
//
|
||||
// testPrefetch - Disable prefetch and confirm that the execution time
|
||||
// of the test function increases.
|
||||
//
|
||||
uint16_t testPrefetch(uint32_t baseCycles)
|
||||
{
|
||||
uint16_t fail = 1U;
|
||||
uint32_t cycles;
|
||||
|
||||
Flash_disablePrefetch(FLASH0CTRL_BASE);
|
||||
|
||||
//
|
||||
// Call the test function and capture the execution time.
|
||||
//
|
||||
STA_Util_startProfiler(CPUTIMER1_BASE);
|
||||
runPrefetchTestCode();
|
||||
cycles = STA_Util_stopProfiler(CPUTIMER1_BASE);
|
||||
|
||||
Flash_enablePrefetch(FLASH0CTRL_BASE);
|
||||
|
||||
//
|
||||
// Confirm that execution time increased.
|
||||
//
|
||||
if(cycles > baseCycles)
|
||||
{
|
||||
fail = 0U;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// testDataCache - Disable data cache and confirm that the execution time
|
||||
// of the test function increases.
|
||||
//
|
||||
uint16_t testDataCache(uint32_t baseCycles)
|
||||
{
|
||||
uint16_t fail = 1U;
|
||||
uint32_t cycles;
|
||||
|
||||
Flash_disableCache(FLASH0CTRL_BASE);
|
||||
|
||||
//
|
||||
// Call the test function and capture the execution time.
|
||||
//
|
||||
STA_Util_startProfiler(CPUTIMER1_BASE);
|
||||
runPrefetchTestCode();
|
||||
cycles = STA_Util_stopProfiler(CPUTIMER1_BASE);
|
||||
|
||||
Flash_enableCache(FLASH0CTRL_BASE);
|
||||
|
||||
//
|
||||
// Confirm that execution time increased.
|
||||
//
|
||||
if(cycles > baseCycles)
|
||||
{
|
||||
fail = 0U;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// testWaitStates - Increase the number of wait-states and confirm that the
|
||||
// execution time of the test function increases.
|
||||
//
|
||||
uint16_t testWaitStates(uint32_t baseCycles)
|
||||
{
|
||||
uint16_t fail = 1U;
|
||||
uint32_t cycles;
|
||||
|
||||
//
|
||||
// Need to disable prefetch and cache before altering wait-states.
|
||||
//
|
||||
Flash_disablePrefetch(FLASH0CTRL_BASE);
|
||||
Flash_disableCache(FLASH0CTRL_BASE);
|
||||
Flash_setWaitstates(FLASH0CTRL_BASE, DEVICE_FLASH_WAITSTATES * 2);
|
||||
Flash_enablePrefetch(FLASH0CTRL_BASE);
|
||||
Flash_enableCache(FLASH0CTRL_BASE);
|
||||
|
||||
PIPELINE_FLUSH;
|
||||
|
||||
//
|
||||
// Call the test function and capture the execution time.
|
||||
//
|
||||
STA_Util_startProfiler(CPUTIMER1_BASE);
|
||||
runPrefetchTestCode();
|
||||
cycles = STA_Util_stopProfiler(CPUTIMER1_BASE);
|
||||
|
||||
//
|
||||
// Set wait-states back to original number.
|
||||
//
|
||||
Flash_disablePrefetch(FLASH0CTRL_BASE);
|
||||
Flash_disableCache(FLASH0CTRL_BASE);
|
||||
Flash_setWaitstates(FLASH0CTRL_BASE, DEVICE_FLASH_WAITSTATES);
|
||||
Flash_enablePrefetch(FLASH0CTRL_BASE);
|
||||
Flash_enableCache(FLASH0CTRL_BASE);
|
||||
|
||||
PIPELINE_FLUSH;
|
||||
|
||||
//
|
||||
// Confirm that execution time increased.
|
||||
//
|
||||
if(cycles > baseCycles)
|
||||
{
|
||||
fail = 0U;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
@@ -0,0 +1,167 @@
|
||||
;;//###########################################################################
|
||||
;;//
|
||||
;;// FILE: sdl_ex_flash_prefetch_test_func.asm
|
||||
;;//
|
||||
;;// TITLE: Function for testing testing flash logic configurations.
|
||||
;;//
|
||||
;;//###########################################################################
|
||||
;;// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
;;// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
;;// $Copyright:
|
||||
;// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
;//
|
||||
;// Redistribution and use in source and binary forms, with or without
|
||||
;// modification, are permitted provided that the following conditions
|
||||
;// are met:
|
||||
;//
|
||||
;// Redistributions of source code must retain the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer.
|
||||
;//
|
||||
;// Redistributions in binary form must reproduce the above copyright
|
||||
;// notice, this list of conditions and the following disclaimer in the
|
||||
;// documentation and/or other materials provided with the
|
||||
;// distribution.
|
||||
;//
|
||||
;// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
;// its contributors may be used to endorse or promote products derived
|
||||
;// from this software without specific prior written permission.
|
||||
;//
|
||||
;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
;// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
;// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
;// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
;// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
;// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
;// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
;// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
;// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
;// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
;// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
;// $
|
||||
;;//###########################################################################
|
||||
|
||||
;;
|
||||
;; Function needs to operate on some data in flash to allow us to observe the
|
||||
;; impact of the data cache disable/enable.
|
||||
;;
|
||||
.sect ".const:prefetchTestTable"
|
||||
.def prefetchTestTable
|
||||
.align 8
|
||||
|
||||
prefetchTestTable:
|
||||
.long 0x00001111
|
||||
.long 0x22223333
|
||||
.long 0x44445555
|
||||
.long 0x66667777
|
||||
.long 0x88889999
|
||||
.long 0xAAAABBBB
|
||||
.long 0xCCCCDDDD
|
||||
|
||||
;;
|
||||
;; This is nonsense code for the sake of testing. It has some branches and some
|
||||
;; accesses to const data which will allow us to observe differences in the
|
||||
;; execution time as we disable prefetch and cache and increase wait-states.
|
||||
;;
|
||||
;; Written in assembly to keep cycle counts consistent across compiler versions
|
||||
;; and optimization levels.
|
||||
;;
|
||||
.sect ".text:runPrefetchTestCode"
|
||||
.global runPrefetchTestCode
|
||||
.align 8
|
||||
|
||||
runPrefetchTestCode:
|
||||
ADDB SP, #8
|
||||
|
||||
MOVB ACC, #61
|
||||
MOVL *-SP[6], ACC
|
||||
|
||||
MOVB ACC, #0
|
||||
MOVL *-SP[8], ACC
|
||||
|
||||
CLRC SXM
|
||||
MOVL ACC, *-SP[6]
|
||||
SFR ACC, 5
|
||||
LSL ACC, 5
|
||||
LSL ACC, 1
|
||||
ADD ACC, #0x1f << 10
|
||||
MOVL *-SP[2], ACC
|
||||
|
||||
MOVB ACC, #1
|
||||
MOVL @XAR6, ACC
|
||||
MOV AL, *-SP[6]
|
||||
ANDB AL, #0x1f
|
||||
MOV T, @AL
|
||||
MOVL ACC, @XAR6
|
||||
LSLL ACC, T
|
||||
MOVL *-SP[4], ACC
|
||||
|
||||
TBIT *-SP[8], #0x2
|
||||
SB testLabel1, NTC
|
||||
|
||||
OR *-SP[2], AL
|
||||
OR *-SP[1], AH
|
||||
SB testLabel2, UNC
|
||||
|
||||
testLabel1:
|
||||
NOT ACC
|
||||
AND *-SP[2], AL
|
||||
AND *-SP[1], AH
|
||||
|
||||
testLabel2:
|
||||
TBIT *-SP[8], #0x0
|
||||
SB testLabel3, NTC
|
||||
NOP
|
||||
NOP ; NOPs added to make sure branch above is a prefetch miss
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
MOVL ACC, *-SP[4]
|
||||
NOT ACC
|
||||
AND *-SP[2], AL
|
||||
AND *-SP[1], AH
|
||||
SB testLabel4, UNC
|
||||
|
||||
testLabel3:
|
||||
MOVL ACC, *-SP[4]
|
||||
OR *-SP[2], AL
|
||||
OR *-SP[1], AH
|
||||
|
||||
testLabel4:
|
||||
TBIT *-SP[8], #0x1
|
||||
SB testLabel5, NTC
|
||||
|
||||
MOVL ACC, *-SP[4]
|
||||
OR *-SP[2], AL
|
||||
OR *-SP[1], AH
|
||||
SB testLabel6, UNC
|
||||
|
||||
testLabel5:
|
||||
MOVL ACC, *-SP[4]
|
||||
NOT ACC
|
||||
AND *-SP[2], AL
|
||||
AND *-SP[1], AH
|
||||
|
||||
testLabel6:
|
||||
MOVL XAR6, #prefetchTestTable
|
||||
MOVL ACC, *XAR6++
|
||||
MOVL ACC, *XAR6++
|
||||
MOVL ACC, *XAR6++
|
||||
MOVL ACC, *XAR6++
|
||||
MOVL ACC, *XAR6++
|
||||
MOVL ACC, *XAR6++
|
||||
MOVL ACC, *XAR6
|
||||
|
||||
SUBB SP, #8
|
||||
LRETR
|
||||
@@ -0,0 +1,35 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="sdl_ex_mcd_test"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
sourceLookupPath="${C2000WARE_DLIB_ROOT}"
|
||||
>
|
||||
<configuration name="RAM" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${DIAG_LIBRARY_ROOT}/include -I${DIAG_LIBRARY_ROOT}/examples/test_application/include -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_COMMON}/include -v28 -ml -mt --float_support=fpu64 --tmu_support=tmu0 --vcu_support=vcrc --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--stack_size=0x100 --heap_size=0x200" />
|
||||
<configuration name="FLASH" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${DIAG_LIBRARY_ROOT}/include -I${DIAG_LIBRARY_ROOT}/examples/test_application/include -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_COMMON}/include -v28 -ml -mt --float_support=fpu64 --tmu_support=tmu0 --vcu_support=vcrc --define=_FLASH --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--entry_point=code_start --stack_size=0x100 --heap_size=0x200 " />
|
||||
|
||||
<pathVariable name="DIAG_LIBRARY_ROOT" path="../../.." scope="project" />
|
||||
<pathVariable name="C2000WARE_COMMON" path="../../../../../../device_support/f2838x/common" scope="project" />
|
||||
<pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../../../driverlib/f2838x/driverlib/" scope="project" />
|
||||
|
||||
<file action="copy" path="C2000WARE_COMMON/cmd/2838x_RAM_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="RAM" />
|
||||
<file action="copy" path="C2000WARE_COMMON/cmd/2838x_FLASH_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="FLASH" />
|
||||
|
||||
<file action="link" path="C2000WARE_DLIB_ROOT/ccs/Debug/driverlib.lib" targetDirectory="" />
|
||||
<file action="link" path="../../../lib/f2838x_diagnostic_stl_debug.lib" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../driverlib/f2838x/driverlib" targetDirectory="device" excludeFromBuild="True" />
|
||||
|
||||
<file action="copy" path="../sdl_ex_mcd_test.c" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/driverlib.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/device.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/device.c" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/f2838x_codestartbranch.asm" targetDirectory="" applicableConfigurations="FLASH" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/targetConfigs/TMS320F28388D.ccxml" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,256 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: sdl_ex_mcd_test.c
|
||||
//
|
||||
// TITLE: Missing clock detection
|
||||
//
|
||||
//! \defgroup sdl_ex_mcd_test Missing clock detection
|
||||
//! <h1>sdl_ex_mcd_test</h1>
|
||||
//!
|
||||
//! This example demonstrates how to check the missing clock detection
|
||||
//! functionality.
|
||||
//!
|
||||
//! Once the MCD is simulated by disconnecting the clock to the MCD module
|
||||
//! an NMI is generated. This NMI determines that an MCD error was generated
|
||||
//! due to a clock failure which is handled in the ISR.
|
||||
//!
|
||||
//! Before the MCD the clock frequency will be as per device initialization.
|
||||
//! Post MCD error, the clock will be running at the speed of INTOSC1 with the
|
||||
//! PLL disabled (10 MHz).
|
||||
//!
|
||||
//! The example also shows how to lock the PLL after missing clock detection,
|
||||
//! by first explicitly switching the clock source to INTOSC1, resetting the
|
||||
//! missing clock detect circuit and then re-locking the PLL. After that the
|
||||
//! clock frequency will be restored to the original configuration.
|
||||
//!
|
||||
//! \b External \b Connections \n
|
||||
//! - None.
|
||||
//!
|
||||
//! \b Watch \b Variables \n
|
||||
//! - \b fail - Indicates that a missing clock was either not detected or was
|
||||
//! not handled correctly.
|
||||
//! - \b nmiISRFlag - Indicates that the missing clock failure caused an
|
||||
//! NMI to be triggered and called the ISR to handle it.
|
||||
//! - \b mcdDetect - Indicates that a missing clock was detected.
|
||||
//! - \b result - Status of a successful handling of missing clock detection.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define PASS 0U
|
||||
#define FAIL 1U
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
bool mcdDetect = false;
|
||||
volatile bool nmiISRFlag = false;
|
||||
uint16_t nmiStatus = 0U;
|
||||
uint32_t result = FAIL;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
__interrupt void nmiISR(void);
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
uint32_t fail = 0U;
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals.
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// Re-map NMI signal to call the ISR function in this example.
|
||||
//
|
||||
SysCtl_clearAllNMIFlags();
|
||||
Interrupt_register(INT_NMI, &nmiISR);
|
||||
|
||||
//
|
||||
// Enabling the NMI global interrupt (typically already enabled by boot ROM
|
||||
// or GEL file).
|
||||
//
|
||||
SysCtl_enableNMIGlobalInterrupt();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and Real Time interrupt (DBGM).
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
//
|
||||
// Check the PLL System clock before the Missing clock detection
|
||||
// is simulated. It should be same as that set by Device_init().
|
||||
//
|
||||
if(SysCtl_getClock(DEVICE_OSCSRC_FREQ) != DEVICE_SYSCLK_FREQ)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Enable the missing clock detection (MCD) Logic as a precaution.
|
||||
// The is continuously active unless the MCD was disabled previously.
|
||||
//
|
||||
SysCtl_enableMCD();
|
||||
|
||||
//
|
||||
// Simulate a missing clock.
|
||||
//
|
||||
SysCtl_disconnectMCDClockSource();
|
||||
|
||||
//
|
||||
// Wait till the NMI is fired on clock failure.
|
||||
//
|
||||
while(nmiISRFlag != true);
|
||||
|
||||
//
|
||||
// A missing clock was detected.
|
||||
//
|
||||
if(mcdDetect != true)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the NMI triggered was due to a clock failure.
|
||||
//
|
||||
if((nmiStatus & SYSCTL_NMI_CLOCKFAIL) != SYSCTL_NMI_CLOCKFAIL)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check the PLL System clock after the Missing clock detection
|
||||
// is simulated. It should be equal to INTOSC1(10Mhz).
|
||||
//
|
||||
if(SysCtl_getClock(DEVICE_OSCSRC_FREQ) != SYSCTL_DEFAULT_OSC_FREQ)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// To lock the PLL after missing clock detection, we first explicitly
|
||||
// switch the clock source to INTOSC1, reset the missing clock detect
|
||||
// circuit, and then re-lock the PLL.
|
||||
//
|
||||
// Configure oscillator source to INTOSC1.
|
||||
//
|
||||
SysCtl_selectOscSource(SYSCTL_OSCSRC_OSC1);
|
||||
|
||||
//
|
||||
// Re-connect missing clock detection to clock source to stop simulating
|
||||
// clock failure.
|
||||
//
|
||||
SysCtl_connectMCDClockSource();
|
||||
|
||||
//
|
||||
// Reset the missing clock detection logic after clock failure.
|
||||
//
|
||||
SysCtl_resetMCD();
|
||||
|
||||
//
|
||||
// Set up PLL control and clock dividers using the original clock source.
|
||||
//
|
||||
SysCtl_setClock(DEVICE_SETCLOCK_CFG);
|
||||
|
||||
//
|
||||
// Check the system clock after the missing clock detection is cleared
|
||||
// and handled using INTOSC1 as clock source.
|
||||
//
|
||||
if(SysCtl_getClock(DEVICE_OSCSRC_FREQ) != DEVICE_SYSCLK_FREQ)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Status of a successful handling of missing clock detection.
|
||||
//
|
||||
if(fail != 0U)
|
||||
{
|
||||
result = FAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = PASS;
|
||||
}
|
||||
|
||||
//
|
||||
// Loop here and check results in the CCS Expressions view.
|
||||
//
|
||||
while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// nmiISR - The interrupt service routine called when the NMI
|
||||
// is generated on clock failure detection.
|
||||
//
|
||||
__interrupt void nmiISR(void)
|
||||
{
|
||||
nmiISRFlag = true;
|
||||
mcdDetect = SysCtl_isMCDClockFailureDetected();
|
||||
nmiStatus = SysCtl_getNMIFlagStatus();
|
||||
SysCtl_clearAllNMIFlags();
|
||||
}
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
@@ -0,0 +1,35 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="sdl_ex_ram_access_protect"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
sourceLookupPath="${C2000WARE_DLIB_ROOT}"
|
||||
>
|
||||
<configuration name="RAM" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${DIAG_LIBRARY_ROOT}/include -I${DIAG_LIBRARY_ROOT}/examples/test_application/include -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_COMMON}/include -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=770 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--stack_size=0x100 --heap_size=0x200" />
|
||||
<configuration name="FLASH" compilerBuildOptions="--opt_level=off -I${PROJECT_ROOT}/device -I${DIAG_LIBRARY_ROOT}/include -I${DIAG_LIBRARY_ROOT}/examples/test_application/include -I${C2000WARE_DLIB_ROOT} -I${C2000WARE_COMMON}/include -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc --define=_FLASH --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=770 --diag_suppress=10063 --display_error_number" linkerBuildOptions="--entry_point=code_start --stack_size=0x100 --heap_size=0x200 " />
|
||||
|
||||
<pathVariable name="DIAG_LIBRARY_ROOT" path="../../.." scope="project" />
|
||||
<pathVariable name="C2000WARE_COMMON" path="../../../../../../device_support/f2838x/common" scope="project" />
|
||||
<pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../../../driverlib/f2838x/driverlib/" scope="project" />
|
||||
|
||||
<file action="link" path="C2000WARE_DLIB_ROOT/ccs/Debug/driverlib.lib" targetDirectory="" />
|
||||
<file action="link" path="../../../lib/f2838x_diagnostic_stl_debug.lib" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../driverlib/f2838x/driverlib" targetDirectory="device" excludeFromBuild="True" />
|
||||
|
||||
<file action="copy" path="../f2838x_ram_access_protect_ram_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="RAM" />
|
||||
<file action="copy" path="../f2838x_ram_access_protect_flash_lnk_cpu1.cmd" targetDirectory="" applicableConfigurations="FLASH" />
|
||||
<file action="copy" path="../sdl_ex_ram_access_protect.c" targetDirectory="" />
|
||||
<file action="copy" path="../f2838x_sdl_ex_ram_access_cla_read.cla" targetDirectory="" />
|
||||
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/driverlib.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/include/device.h" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/device.c" targetDirectory="device" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/source/f2838x_codestartbranch.asm" targetDirectory="" applicableConfigurations="FLASH" />
|
||||
<file action="copy" path="../../../../../../device_support/f2838x/common/targetConfigs/TMS320F28388D.ccxml" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,118 @@
|
||||
|
||||
MEMORY
|
||||
{
|
||||
/* BEGIN is used for the "boot to Flash" bootloader mode */
|
||||
BEGIN : origin = 0x080000, length = 0x000002
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x0001AF /* Part of M0, BOOT rom will use this for stack */
|
||||
RAMM0 : origin = 0x0001B1, length = 0x00024F
|
||||
RAMM1 : origin = 0x000400, length = 0x0003F8 /* on-chip RAM block M1 */
|
||||
// RAMM1_RSVD : origin = 0x0007F8, length = 0x000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
RAMD0 : origin = 0x00C000, length = 0x000800
|
||||
RAMD1 : origin = 0x00C800, length = 0x000800
|
||||
RAMLS0 : origin = 0x008000, length = 0x000800
|
||||
RAMLS1 : origin = 0x008800, length = 0x000800
|
||||
RAMLS2 : origin = 0x009000, length = 0x000800
|
||||
RAMLS3 : origin = 0x009800, length = 0x000800
|
||||
RAMLS4 : origin = 0x00A000, length = 0x000800
|
||||
RAMLS5 : origin = 0x00A800, length = 0x000800
|
||||
RAMLS6 : origin = 0x00B000, length = 0x000800
|
||||
RAMLS7 : origin = 0x00B800, length = 0x000800
|
||||
RAMGS0 : origin = 0x00D000, length = 0x001000
|
||||
RAMGS1 : origin = 0x00E000, length = 0x001000
|
||||
RAMGS2 : origin = 0x00F000, length = 0x001000
|
||||
RAMGS3 : origin = 0x010000, length = 0x001000
|
||||
RAMGS4 : origin = 0x011000, length = 0x001000
|
||||
RAMGS5 : origin = 0x012000, length = 0x001000
|
||||
RAMGS6 : origin = 0x013000, length = 0x001000
|
||||
RAMGS7 : origin = 0x014000, length = 0x001000
|
||||
RAMGS8 : origin = 0x015000, length = 0x001000
|
||||
RAMGS9 : origin = 0x016000, length = 0x001000
|
||||
RAMGS10 : origin = 0x017000, length = 0x001000
|
||||
RAMGS11 : origin = 0x018000, length = 0x001000
|
||||
RAMGS12 : origin = 0x019000, length = 0x001000
|
||||
RAMGS13 : origin = 0x01A000, length = 0x001000
|
||||
RAMGS14 : origin = 0x01B000, length = 0x001000
|
||||
RAMGS15 : origin = 0x01C000, length = 0x000FF8
|
||||
// RAMGS15_RSVD : origin = 0x01CFF8, length = 0x000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
|
||||
/* Flash sectors */
|
||||
FLASH0 : origin = 0x080002, length = 0x001FFE /* on-chip Flash */
|
||||
FLASH1 : origin = 0x082000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH2 : origin = 0x084000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH3 : origin = 0x086000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH4 : origin = 0x088000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH5 : origin = 0x090000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH6 : origin = 0x098000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH7 : origin = 0x0A0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH8 : origin = 0x0A8000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH9 : origin = 0x0B0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH10 : origin = 0x0B8000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH11 : origin = 0x0BA000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH12 : origin = 0x0BC000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH13 : origin = 0x0BE000, length = 0x001FF0 /* on-chip Flash */
|
||||
// FLASH13_RSVD : origin = 0x0BFFF0, length = 0x000010 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
|
||||
CPU1TOCPU2RAM : origin = 0x03A000, length = 0x000800
|
||||
CPU2TOCPU1RAM : origin = 0x03B000, length = 0x000800
|
||||
CPUTOCMRAM : origin = 0x039000, length = 0x000800
|
||||
CMTOCPURAM : origin = 0x038000, length = 0x000800
|
||||
|
||||
CANA_MSG_RAM : origin = 0x049000, length = 0x000800
|
||||
CANB_MSG_RAM : origin = 0x04B000, length = 0x000800
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, ALIGN(8)
|
||||
.text : >> FLASH1 | FLASH2 | FLASH3 | FLASH4, ALIGN(8)
|
||||
.cinit : > FLASH4, ALIGN(8)
|
||||
.switch : > FLASH1, ALIGN(8)
|
||||
.reset : > RESET, TYPE = DSECT /* not used, */
|
||||
.stack : > RAMM1
|
||||
|
||||
.init_array : > FLASH1, ALIGN(8)
|
||||
.bss : > RAMLS5
|
||||
.bss:output : > RAMLS3
|
||||
.bss:cio : > RAMLS5
|
||||
.data : > RAMLS5
|
||||
.sysmem : > RAMLS5
|
||||
/* Initalized sections go in Flash */
|
||||
.const : > FLASH5, ALIGN(8)
|
||||
|
||||
.TI.ramfunc : {} LOAD = FLASH3,
|
||||
RUN = RAMLS0 | RAMLS1 | RAMLS2 |RAMLS3,
|
||||
LOAD_START(RamfuncsLoadStart),
|
||||
LOAD_SIZE(RamfuncsLoadSize),
|
||||
LOAD_END(RamfuncsLoadEnd),
|
||||
RUN_START(RamfuncsRunStart),
|
||||
RUN_SIZE(RamfuncsRunSize),
|
||||
RUN_END(RamfuncsRunEnd),
|
||||
ALIGN(8)
|
||||
|
||||
Cla1Prog : LOAD = FLASH3,
|
||||
RUN = RAMLS1,
|
||||
LOAD_START(cla1ProgLoadStart),
|
||||
LOAD_SIZE(cla1ProgLoadSize),
|
||||
RUN_START(cla1ProgRunStart),
|
||||
ALIGN(4)
|
||||
|
||||
.scratchpad : > RAMLS0
|
||||
|
||||
ramls6 : > RAMLS6
|
||||
ramgs0 : > RAMGS0
|
||||
|
||||
ramls1 : LOAD = FLASH3,
|
||||
RUN = RAMLS1,
|
||||
LOAD_START(ramls1LoadStart),
|
||||
LOAD_SIZE(ramls1LoadSize),
|
||||
RUN_START(ramls1RunStart),
|
||||
ALIGN(4)
|
||||
}
|
||||
|
||||
/*
|
||||
//===========================================================================
|
||||
// End of file.
|
||||
//===========================================================================
|
||||
*/
|
||||
@@ -0,0 +1,95 @@
|
||||
MEMORY
|
||||
{
|
||||
/* BEGIN is used for the "boot to SARAM" bootloader mode */
|
||||
BEGIN : origin = 0x000000, length = 0x000002
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x0001AF /* Part of M0, BOOT rom will use this for stack */
|
||||
RAMM0 : origin = 0x0001B1, length = 0x00024F
|
||||
RAMM1 : origin = 0x000400, length = 0x0003F8 /* on-chip RAM block M1 */
|
||||
// RAMM1_RSVD : origin = 0x0007F8, length = 0x000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
RAMD0 : origin = 0x00C000, length = 0x000800
|
||||
RAMD1 : origin = 0x00C800, length = 0x000800
|
||||
RAMLS0 : origin = 0x008000, length = 0x000800
|
||||
RAMLS1 : origin = 0x008800, length = 0x000800
|
||||
RAMLS2 : origin = 0x009000, length = 0x000800
|
||||
RAMLS3 : origin = 0x009800, length = 0x000800
|
||||
RAMLS4 : origin = 0x00A000, length = 0x000800
|
||||
RAMLS5 : origin = 0x00A800, length = 0x000800
|
||||
RAMLS6 : origin = 0x00B000, length = 0x000800
|
||||
RAMLS7 : origin = 0x00B800, length = 0x000800
|
||||
RAMGS0 : origin = 0x00D000, length = 0x001000
|
||||
RAMGS1 : origin = 0x00E000, length = 0x001000
|
||||
RAMGS2 : origin = 0x00F000, length = 0x001000
|
||||
RAMGS3 : origin = 0x010000, length = 0x001000
|
||||
RAMGS4 : origin = 0x011000, length = 0x001000
|
||||
RAMGS5 : origin = 0x012000, length = 0x001000
|
||||
RAMGS6 : origin = 0x013000, length = 0x001000
|
||||
RAMGS7 : origin = 0x014000, length = 0x001000
|
||||
RAMGS8 : origin = 0x015000, length = 0x001000
|
||||
RAMGS9 : origin = 0x016000, length = 0x001000
|
||||
RAMGS10 : origin = 0x017000, length = 0x001000
|
||||
RAMGS11 : origin = 0x018000, length = 0x001000
|
||||
RAMGS12 : origin = 0x019000, length = 0x001000
|
||||
RAMGS13 : origin = 0x01A000, length = 0x001000
|
||||
RAMGS14 : origin = 0x01B000, length = 0x001000
|
||||
RAMGS15 : origin = 0x01C000, length = 0x000FF8
|
||||
// RAMGS15_RSVD : origin = 0x01CFF8, length = 0x000008 /* Reserve and do not use for code as per the errata advisory "Memory: Prefetching Beyond Valid Memory" */
|
||||
|
||||
/* Flash sectors */
|
||||
FLASH0 : origin = 0x080000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH1 : origin = 0x082000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH2 : origin = 0x084000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH3 : origin = 0x086000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH4 : origin = 0x088000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH5 : origin = 0x090000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH6 : origin = 0x098000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH7 : origin = 0x0A0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH8 : origin = 0x0A8000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH9 : origin = 0x0B0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASH10 : origin = 0x0B8000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH11 : origin = 0x0BA000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH12 : origin = 0x0BC000, length = 0x002000 /* on-chip Flash */
|
||||
FLASH13 : origin = 0x0BE000, length = 0x002000 /* on-chip Flash */
|
||||
CPU1TOCPU2RAM : origin = 0x03A000, length = 0x000800
|
||||
CPU2TOCPU1RAM : origin = 0x03B000, length = 0x000800
|
||||
|
||||
CPUTOCMRAM : origin = 0x039000, length = 0x000800
|
||||
CMTOCPURAM : origin = 0x038000, length = 0x000800
|
||||
|
||||
CANA_MSG_RAM : origin = 0x049000, length = 0x000800
|
||||
CANB_MSG_RAM : origin = 0x04B000, length = 0x000800
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
}
|
||||
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN
|
||||
.text : >> RAMD0 | RAMD1 | RAMLS0 | RAMLS2 | RAMLS3
|
||||
.cinit : > RAMM0
|
||||
.switch : > RAMM0
|
||||
.reset : > RESET, TYPE = DSECT /* not used, */
|
||||
|
||||
.stack : > RAMM1
|
||||
.bss : > RAMLS5
|
||||
.bss:output : > RAMLS3
|
||||
.init_array : > RAMM0
|
||||
.const : > RAMLS5
|
||||
.data : > RAMLS5
|
||||
.sysmem : > RAMLS4
|
||||
|
||||
Cla1Prog : > RAMLS1
|
||||
.scratchpad : > RAMLS0
|
||||
|
||||
ramls1 : > RAMLS1
|
||||
ramls6 : > RAMLS6
|
||||
ramgs0 : > RAMGS0
|
||||
|
||||
.TI.ramfunc : > RAMM0
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
//===========================================================================
|
||||
// End of file.
|
||||
//===========================================================================
|
||||
*/
|
||||
@@ -0,0 +1,62 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: sdl_ex_ram_access_cla_read.cla
|
||||
//
|
||||
// TITLE: RAM access protection violation detection CLA read task
|
||||
//
|
||||
//#############################################################################
|
||||
// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include <stdint.h>
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
extern volatile uint32_t ls6Data;
|
||||
|
||||
//
|
||||
// Cla1Task1 - Task code to do a read of a variable to which it shouldn't
|
||||
// have access.
|
||||
//
|
||||
__attribute__((interrupt)) void Cla1Task1(void)
|
||||
{
|
||||
uint32_t test;
|
||||
test = ls6Data;
|
||||
test++;
|
||||
}
|
||||
@@ -0,0 +1,926 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: sdl_ex_ram_access_protect.c
|
||||
//
|
||||
// TITLE: RAM access protection violation detection
|
||||
//
|
||||
//! \defgroup sdl_ex_ram_access_protect RAM access protection violation detection
|
||||
//! <h1>sdl_ex_ram_access_protect</h1>
|
||||
//!
|
||||
//! This example demonstrates a functional test of the RAM access protection
|
||||
//! violation detection and handling for several different types accesses. The
|
||||
//! example generates a number of controller or non-controller fetch, write,
|
||||
//! or read violations from the CPU, CLA, and DMA as applicable to the device.
|
||||
//!
|
||||
//! \b External \b Connections \n
|
||||
//! - None.
|
||||
//!
|
||||
//! \b Watch \b Variables \n
|
||||
//! - \b violationISRFlag - Indicates that the access violation interrupt was
|
||||
//! triggered and called the ISR.
|
||||
//! - \b illegalISRFlag - Indicates that a CPU fetch violation interrupt was
|
||||
//! generated and the ITRAP ISR ran.
|
||||
//! - \b violationStatus - Access protection violation status flags read in
|
||||
//! the ISR.
|
||||
//! - \b violationAddr - Address at which the access violation occurred.
|
||||
//! - \b result - Status of a successful detection and handling of RAM access
|
||||
//! protection violations.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
// $TI Release: C2000 Diagnostic Library v5.00.01 $
|
||||
// $Release Date: Tue Oct 29 00:57:20 IST 2024 $
|
||||
// $Copyright:
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
|
||||
//
|
||||
// Defines
|
||||
//
|
||||
#define PASS 0U
|
||||
#define FAIL 1U
|
||||
|
||||
#define LS6_ORIG_VALUE 0xCBA98765U
|
||||
#define GS0_ORIG_VALUE1 0xF0F0F0F0U
|
||||
#define GS0_ORIG_VALUE2 0x5A5A5A5AU
|
||||
|
||||
#define ISR_LOOP_TIMEOUT 0x3U
|
||||
#define MASK_ALL_BUT_RAM_ACC_VIOL \
|
||||
(0x0000FFFFUL & ~(uint32_t)SYSCTL_STATUS_RAM_ACC_VIOL)
|
||||
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
uint32_t result = FAIL;
|
||||
volatile bool violationISRFlag;
|
||||
volatile bool illegalISRFlag;
|
||||
uint32_t violationStatus;
|
||||
uint32_t violationAddr;
|
||||
|
||||
//
|
||||
// Reserving memory locations for testing.
|
||||
//
|
||||
#pragma DATA_SECTION(ls6Data, "ramls6");
|
||||
volatile uint32_t ls6Data = LS6_ORIG_VALUE;
|
||||
#pragma DATA_SECTION(gs0Data1, "ramgs0");
|
||||
volatile uint32_t gs0Data1 = GS0_ORIG_VALUE1;
|
||||
#pragma DATA_SECTION(gs0Data2, "ramgs0");
|
||||
volatile uint32_t gs0Data2 = GS0_ORIG_VALUE1;
|
||||
|
||||
//
|
||||
// Function Prototypes
|
||||
//
|
||||
__interrupt void accessViolationISR(void);
|
||||
__interrupt void illegalISR(void);
|
||||
uint32_t generateNonControllerCPURdViolation(void);
|
||||
uint32_t generateNonControllerCPUWrViolation(void);
|
||||
uint32_t generateNonControllerCPUFetchViolation(void);
|
||||
uint32_t generateControllerCPUWrViolation(void);
|
||||
uint32_t generateControllerCPUFetchViolation(void);
|
||||
uint32_t generateControllerDMAWrViolation(void);
|
||||
uint32_t generateNonControllerCLAReadViolation(void);
|
||||
uint32_t generateNonControllerCLAFetchViolation(void);
|
||||
|
||||
extern void Cla1Task1(void);
|
||||
|
||||
#pragma CODE_SECTION(testCPUFetchFunc, "ramls1");
|
||||
void testCPUFetchFunc(void);
|
||||
|
||||
#ifdef _FLASH
|
||||
extern uint16_t cla1ProgLoadStart;
|
||||
extern uint16_t cla1ProgLoadSize;
|
||||
extern uint16_t cla1ProgRunStart;
|
||||
extern uint16_t ramls1LoadStart;
|
||||
extern uint16_t ramls1LoadSize;
|
||||
extern uint16_t ramls1RunStart;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
uint16_t failCount;
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals.
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
#ifdef _FLASH
|
||||
//
|
||||
// Need to copy testCPUFetchFunc() from Flash to RAM for the _FLASH build.
|
||||
//
|
||||
memcpy(&ramls1RunStart, &ramls1LoadStart, (size_t)&ramls1LoadSize);
|
||||
memcpy(&cla1ProgRunStart, &cla1ProgLoadStart, (size_t)&cla1ProgLoadSize);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Clear access violation interrupt status.
|
||||
//
|
||||
MemCfg_clearViolationInterruptStatus(0xFFFFFFFFU);
|
||||
SysCtl_clearInterruptStatus(0xFFFFFFFFU);
|
||||
|
||||
//
|
||||
// Enable access violation interrupt & register ISR.
|
||||
//
|
||||
Interrupt_register(INT_ILLEGAL, illegalISR);
|
||||
Interrupt_register(INT_SYS_ERR, accessViolationISR);
|
||||
Interrupt_enable(INT_SYS_ERR);
|
||||
|
||||
SysCtl_setInterruptStatusMask(MASK_ALL_BUT_RAM_ACC_VIOL);
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and Real Time interrupt (DBGM).
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
//
|
||||
// Non-controller CPU read violation generation & handling.
|
||||
//
|
||||
failCount = generateNonControllerCPURdViolation();
|
||||
|
||||
//
|
||||
// Non-controller CPU write violation generation & handling.
|
||||
//
|
||||
failCount += generateNonControllerCPUWrViolation();
|
||||
|
||||
//
|
||||
// Non-controller CPU fetch violation generation & handling.
|
||||
//
|
||||
failCount += generateNonControllerCPUFetchViolation();
|
||||
|
||||
//
|
||||
// Controller CPU write violation generation & handling.
|
||||
//
|
||||
failCount += generateControllerCPUWrViolation();
|
||||
|
||||
//
|
||||
// Controller CPU fetch violation generation & handling.
|
||||
//
|
||||
failCount += generateControllerCPUFetchViolation();
|
||||
|
||||
//
|
||||
// Controller DMA write violation generation & handling.
|
||||
//
|
||||
failCount += generateControllerDMAWrViolation();
|
||||
|
||||
//
|
||||
// Non-controller CLA read violation generation & handling.
|
||||
//
|
||||
failCount += generateNonControllerCLAReadViolation();
|
||||
|
||||
//
|
||||
// Non-controller CLA fetch violation generation & handling.
|
||||
//
|
||||
failCount += generateNonControllerCLAFetchViolation();
|
||||
|
||||
//
|
||||
// Status of a successful generation, detection, and handling of RAM access
|
||||
// protection violations.
|
||||
//
|
||||
if(failCount != 0U)
|
||||
{
|
||||
result = FAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = PASS;
|
||||
}
|
||||
|
||||
//
|
||||
// Loop here and check results in the CCS Expressions view.
|
||||
//
|
||||
while(1);
|
||||
}
|
||||
|
||||
//
|
||||
// illegalISR - ISR called when an ITRAP occurs, such as one generated by a
|
||||
// CPU fetch to a fetch-protected memory.
|
||||
//
|
||||
__interrupt void illegalISR(void)
|
||||
{
|
||||
illegalISRFlag = true;
|
||||
|
||||
//
|
||||
// Need to remove the protection on LS1RAM to allow us to return.
|
||||
//
|
||||
MemCfg_setProtection(MEMCFG_SECT_LS1, MEMCFG_PROT_ALLOWCPUFETCH);
|
||||
MemCfg_setCLAMemType(MEMCFG_SECT_LS1, MEMCFG_CLA_MEM_DATA);
|
||||
}
|
||||
|
||||
//
|
||||
// accessViolationISR - RAM access protection violation ISR.
|
||||
//
|
||||
__interrupt void accessViolationISR(void)
|
||||
{
|
||||
violationISRFlag = true;
|
||||
|
||||
//
|
||||
// Capture the violation type and the address at which violation occurred.
|
||||
//
|
||||
violationStatus = MemCfg_getViolationInterruptStatus();
|
||||
violationAddr = MemCfg_getViolationAddress(violationStatus);
|
||||
|
||||
//
|
||||
// Clear interrupt flags.
|
||||
//
|
||||
MemCfg_clearViolationInterruptStatus(violationStatus);
|
||||
|
||||
//
|
||||
// Clear System Error flags
|
||||
//
|
||||
uint32_t sysIntStatus = SysCtl_getInterruptStatus();
|
||||
SysCtl_clearInterruptStatus(sysIntStatus);
|
||||
|
||||
//
|
||||
// Clear the interrupt at PIE level.
|
||||
//
|
||||
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP1);
|
||||
}
|
||||
|
||||
//
|
||||
// generateNonControllerCPURdViolation - Generate non-controller CPU read violation.
|
||||
//
|
||||
uint32_t generateNonControllerCPURdViolation()
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
volatile uint16_t readMemData;
|
||||
|
||||
//
|
||||
// Enable violation interrupt.
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_NMVIOL_CPUREAD);
|
||||
|
||||
//
|
||||
// Memory is shared between CLA & CPU.
|
||||
//
|
||||
MemCfg_setLSRAMControllerSel(MEMCFG_SECT_LS6, MEMCFG_LSRAMCONTROLLER_CPU_CLA1);
|
||||
|
||||
//
|
||||
// Set memory as program memory for CLA. Now the read access from CPU
|
||||
// will result in non-controller CPU read violation.
|
||||
//
|
||||
MemCfg_setCLAMemType(MEMCFG_SECT_LS6, MEMCFG_CLA_MEM_PROGRAM);
|
||||
|
||||
//
|
||||
// Clear access violation status variables.
|
||||
//
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Initiate CPU read from memory.
|
||||
//
|
||||
readMemData = ls6Data;
|
||||
|
||||
while((violationISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_NMVIOL_CPUREAD);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was ls6Data.
|
||||
//
|
||||
if(violationAddr != (uint32_t)&ls6Data)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_NMVIOL_CPUREAD) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// generateNonControllerCPUWrViolation - Generate non-controller CPU write violation.
|
||||
//
|
||||
uint32_t generateNonControllerCPUWrViolation()
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Enable violation interrupt.
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_NMVIOL_CPUWRITE);
|
||||
|
||||
//
|
||||
// Memory is shared between CLA & CPU.
|
||||
//
|
||||
MemCfg_setLSRAMControllerSel(MEMCFG_SECT_LS6, MEMCFG_LSRAMCONTROLLER_CPU_CLA1);
|
||||
|
||||
//
|
||||
// Set memory as program memory for CLA. Now the write access from CPU
|
||||
// will result in non-controller CPU write violation.
|
||||
//
|
||||
MemCfg_setCLAMemType(MEMCFG_SECT_LS6, MEMCFG_CLA_MEM_PROGRAM);
|
||||
|
||||
//
|
||||
// Clear access violation status variables.
|
||||
//
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Write to memory will generate non-controller CPU write violation as
|
||||
// LS6 RAM is configured as CLA program memory.
|
||||
//
|
||||
ls6Data = 0xEFFFFFFFU;
|
||||
|
||||
while((violationISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_NMVIOL_CPUWRITE);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was ls6Data.
|
||||
//
|
||||
if(violationAddr != (uint32_t)&ls6Data)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_NMVIOL_CPUWRITE) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Make LS6 readable to the CPU again and confirm that the write didn't
|
||||
// affect the data.
|
||||
//
|
||||
MemCfg_setCLAMemType(MEMCFG_SECT_LS6, MEMCFG_CLA_MEM_DATA);
|
||||
if(ls6Data != LS6_ORIG_VALUE)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// generateNonControllerCPUFetchViolation - Generate non-controller CPU fetch violation.
|
||||
//
|
||||
uint32_t generateNonControllerCPUFetchViolation()
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Enable violation interrupt
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_NMVIOL_CPUFETCH);
|
||||
|
||||
//
|
||||
// Memory is shared between CLA & CPU.
|
||||
//
|
||||
MemCfg_setLSRAMControllerSel(MEMCFG_SECT_LS1, MEMCFG_LSRAMCONTROLLER_CPU_CLA1);
|
||||
|
||||
//
|
||||
// Set memory as program memory for CLA. Now the fetch from CPU
|
||||
// will result in a non-controller CPU fetch violation.
|
||||
//
|
||||
MemCfg_setCLAMemType(MEMCFG_SECT_LS1, MEMCFG_CLA_MEM_PROGRAM);
|
||||
|
||||
//
|
||||
// Clear access violation status variables
|
||||
//
|
||||
illegalISRFlag = false;
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Calling this function (which has been placed in LS1) will cause a CPU
|
||||
// fetch access violation.
|
||||
//
|
||||
testCPUFetchFunc();
|
||||
|
||||
//
|
||||
// The violation will generate both an ITRAP interrupt and the RAM access
|
||||
// violation interrupt.
|
||||
//
|
||||
while(((illegalISRFlag != true) || (violationISRFlag != true)) &&
|
||||
(timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_NMVIOL_CPUFETCH);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was testCPUFetchFunc().
|
||||
//
|
||||
if(violationAddr != (uint32_t)&testCPUFetchFunc)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_NMVIOL_CPUFETCH) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// generateControllerCPUWrViolation - Generate controller CPU write violation.
|
||||
//
|
||||
uint32_t generateControllerCPUWrViolation()
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Enable violation interrupt.
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_MVIOL_CPUWRITE);
|
||||
|
||||
//
|
||||
// Set write protection which generates controller CPU write violation in
|
||||
// case of CPU writes.
|
||||
//
|
||||
MemCfg_setProtection(MEMCFG_SECT_GS0, MEMCFG_PROT_BLOCKCPUWRITE);
|
||||
|
||||
//
|
||||
// Clear access violation status variables.
|
||||
//
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Write to memory will generate controller CPU write violation as
|
||||
// CPU writes are blocked.
|
||||
//
|
||||
gs0Data1 = 0xEFFFFFFFU;
|
||||
|
||||
while((violationISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_MVIOL_CPUWRITE);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was expected address.
|
||||
//
|
||||
if(violationAddr != (uint32_t)&gs0Data1)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_MVIOL_CPUWRITE) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm that the write didn't affect the data.
|
||||
//
|
||||
if(gs0Data1 != GS0_ORIG_VALUE1)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// generateControllerCPUFetchViolation - Generate controller CPU fetch violation.
|
||||
//
|
||||
uint32_t generateControllerCPUFetchViolation()
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Enable violation interrupt
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_MVIOL_CPUFETCH);
|
||||
|
||||
//
|
||||
// Set fetch protection which generates controller CPU fetch violation in
|
||||
// case of CPU fetch.
|
||||
//
|
||||
MemCfg_setProtection(MEMCFG_SECT_LS1, MEMCFG_PROT_BLOCKCPUFETCH);
|
||||
|
||||
//
|
||||
// Clear access violation status variables
|
||||
//
|
||||
illegalISRFlag = false;
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Calling this function (which has been placed in a section configured to
|
||||
// block fetches) will cause a CPU fetch access violation.
|
||||
//
|
||||
testCPUFetchFunc();
|
||||
|
||||
//
|
||||
// The violation will generate both an ITRAP interrupt and the RAM access
|
||||
// violation interrupt.
|
||||
//
|
||||
while(((illegalISRFlag != true) || (violationISRFlag != true)) &&
|
||||
(timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_MVIOL_CPUFETCH);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was testCPUFetchFunc().
|
||||
//
|
||||
if(violationAddr != (uint32_t)&testCPUFetchFunc)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_MVIOL_CPUFETCH) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// generateControllerDMAWrViolation - Generate controller DMA read access violation.
|
||||
//
|
||||
uint32_t generateControllerDMAWrViolation(void)
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Enable interrupt.
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_MVIOL_DMAWRITE);
|
||||
|
||||
//
|
||||
// Set write protection which generates an access violation in case of
|
||||
// DMA writes.
|
||||
//
|
||||
MemCfg_setProtection(MEMCFG_SECT_GS0, MEMCFG_PROT_BLOCKDMAWRITE);
|
||||
|
||||
//
|
||||
// Clear access violation status variables.
|
||||
//
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Force controller DMA write violation by configuration a DMA channel to
|
||||
// transfer data to the protected area.
|
||||
//
|
||||
DMA_initController();
|
||||
DMA_configAddresses(DMA_CH5_BASE, (void *)&gs0Data1,
|
||||
(void *)&gs0Data2);
|
||||
DMA_configBurst(DMA_CH5_BASE, 1U, 0U, 0U);
|
||||
DMA_configTransfer(DMA_CH5_BASE, 1U, 0U, 0U);
|
||||
DMA_configMode(DMA_CH5_BASE, DMA_TRIGGER_SOFTWARE, DMA_CFG_ONESHOT_DISABLE |
|
||||
DMA_CFG_CONTINUOUS_DISABLE | DMA_CFG_SIZE_32BIT);
|
||||
DMA_startChannel(DMA_CH5_BASE);
|
||||
DMA_enableTrigger(DMA_CH5_BASE);
|
||||
DMA_forceTrigger(DMA_CH5_BASE);
|
||||
|
||||
while((violationISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt and DMA channel.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_MVIOL_DMAWRITE);
|
||||
DMA_disableTrigger(DMA_CH5_BASE);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was gs0Data1.
|
||||
//
|
||||
if(violationAddr != (uint32_t)&gs0Data1)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_MVIOL_DMAWRITE) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm that the write didn't affect the data.
|
||||
//
|
||||
if(gs0Data1 != GS0_ORIG_VALUE1)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// generateNonControllerCLAReadViolation - Generate non-controller CLA read violation.
|
||||
//
|
||||
uint32_t generateNonControllerCLAReadViolation(void)
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Enable interrupt.
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_NMVIOL_CLA1READ);
|
||||
|
||||
//
|
||||
// Make sure Cla1Task1 and .scratchpad is in memory accessible to the CLA.
|
||||
//
|
||||
MemCfg_setLSRAMControllerSel(MEMCFG_SECT_LS0, MEMCFG_LSRAMCONTROLLER_CPU_CLA1);
|
||||
MemCfg_setCLAMemType(MEMCFG_SECT_LS0, MEMCFG_CLA_MEM_DATA);
|
||||
MemCfg_setLSRAMControllerSel(MEMCFG_SECT_LS1, MEMCFG_LSRAMCONTROLLER_CPU_CLA1);
|
||||
MemCfg_setCLAMemType(MEMCFG_SECT_LS1, MEMCFG_CLA_MEM_PROGRAM);
|
||||
|
||||
//
|
||||
// Memory is CPU only, so CLA reads should fail.
|
||||
//
|
||||
MemCfg_setLSRAMControllerSel(MEMCFG_SECT_LS6, MEMCFG_LSRAMCONTROLLER_CPU_ONLY);
|
||||
|
||||
//
|
||||
// Clear access violation status variables.
|
||||
//
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Force non-controller CLA read violation.
|
||||
//
|
||||
CLA_mapTaskVector(CLA1_BASE, CLA_MVECT_1, (uint16_t)&Cla1Task1);
|
||||
CLA_setTriggerSource(CLA_TASK_1, CLA_TRIGGER_SOFTWARE);
|
||||
CLA_enableTasks(CLA1_BASE, CLA_TASKFLAG_1);
|
||||
CLA_enableIACK(CLA1_BASE);
|
||||
CLA_forceTasks(CLA1_BASE, CLA_TASKFLAG_1);
|
||||
|
||||
while((violationISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_NMVIOL_CLA1READ);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was ls6Data.
|
||||
//
|
||||
if(violationAddr != (uint32_t)&ls6Data)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_NMVIOL_CLA1READ) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// generateNonControllerCLAFetchViolation - Generate non-controller CLA fetch violation.
|
||||
//
|
||||
uint32_t generateNonControllerCLAFetchViolation(void)
|
||||
{
|
||||
uint16_t fail = 0U;
|
||||
uint16_t timeout = ISR_LOOP_TIMEOUT;
|
||||
|
||||
//
|
||||
// Enable interrupt.
|
||||
//
|
||||
MemCfg_enableViolationInterrupt(MEMCFG_NMVIOL_CLA1FETCH);
|
||||
|
||||
//
|
||||
// Memory controller is the CPU only, so CLA accesses will cause a violation.
|
||||
//
|
||||
MemCfg_setLSRAMControllerSel(MEMCFG_SECT_LS6, MEMCFG_LSRAMCONTROLLER_CPU_ONLY);
|
||||
|
||||
//
|
||||
// Clear access violation status variables.
|
||||
//
|
||||
violationISRFlag = false;
|
||||
violationAddr = 0U;
|
||||
violationStatus = 0U;
|
||||
|
||||
//
|
||||
// Force non-controller CLA fetch violation.
|
||||
//
|
||||
CLA_mapTaskVector(CLA1_BASE, CLA_MVECT_1, (uint16_t)&ls6Data);
|
||||
CLA_setTriggerSource(CLA_TASK_1, CLA_TRIGGER_SOFTWARE);
|
||||
CLA_enableTasks(CLA1_BASE, CLA_TASKFLAG_1);
|
||||
CLA_enableIACK(CLA1_BASE);
|
||||
CLA_forceTasks(CLA1_BASE, CLA_TASKFLAG_1);
|
||||
|
||||
while((violationISRFlag != true) && (timeout != 0U))
|
||||
{
|
||||
timeout--;
|
||||
}
|
||||
|
||||
//
|
||||
// Disable interrupt.
|
||||
//
|
||||
MemCfg_disableViolationInterrupt(MEMCFG_NMVIOL_CLA1FETCH);
|
||||
|
||||
//
|
||||
// Check if interrupt occurred as expected or if the loop timed out.
|
||||
//
|
||||
if(timeout == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Check if the violation address was ls6Data.
|
||||
//
|
||||
if(violationAddr != (uint32_t)&ls6Data)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
//
|
||||
// Confirm the expected violation type was detected.
|
||||
//
|
||||
if((violationStatus & MEMCFG_NMVIOL_CLA1FETCH) == 0U)
|
||||
{
|
||||
fail++;
|
||||
}
|
||||
|
||||
return(fail);
|
||||
}
|
||||
|
||||
//
|
||||
// testCPUFetchFunc - Function to be called to generate a CPU fetch violation.
|
||||
//
|
||||
void testCPUFetchFunc(void)
|
||||
{
|
||||
NOP;
|
||||
}
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||