mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-19 00:55:37 -04:00
まず、vcでコンパイルが通るようにifdefや書き方を変えるなど。
VC 2010 Express でとりあえずビルドできます。 とりあえず実機上でも動いてる git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@345 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
bb0c5c167b
commit
33808e9a92
BIN
branches/sim/VCProj/Debug/BuildLog.htm
Normal file
BIN
branches/sim/VCProj/Debug/BuildLog.htm
Normal file
Binary file not shown.
2
branches/sim/VCProj/Debug/bsr_trunk.lastbuildstate
Normal file
2
branches/sim/VCProj/Debug/bsr_trunk.lastbuildstate
Normal file
@ -0,0 +1,2 @@
|
||||
#v4.0:v100
|
||||
Debug|Win32|C:\78k_data\yav-mcu-basara\trunk\VCProj\|
|
72
branches/sim/VCProj/Debug/bsr_trunk.log
Normal file
72
branches/sim/VCProj/Debug/bsr_trunk.log
Normal file
@ -0,0 +1,72 @@
|
||||
2011/06/20 12:57:28 にビルドを開始しました。
|
||||
1>ノード 2 上のプロジェクト "C:\78k_data\yav-mcu-basara\branches\sim\VCProj\bsr_trunk.vcxproj" (build ターゲット)。
|
||||
1>InitializeBuildStatus:
|
||||
"AlwaysCreate" が指定されたため "Debug\sim.unsuccessfulbuild" を作成しています。
|
||||
ClCompile:
|
||||
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /nologo /W1 /WX- /O2 /Oy- /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:prompt ..\WDT.c ..\accero.c ..\adc.c ..\i2c_ctr.c ..\i2c_mcu.c ..\i2c_twl.c ..\led.c ..\led_cam.c ..\led_pow.c ..\loader.c ..\magic.c ..\main.c ..\pedo_alg_thre_det2.c ..\pm.c ..\renge\renge.c ..\rtc.c ..\self_flash.c ..\sw.c ..\task_debug.c ..\task_misc.c ..\task_status.c ..\task_sys.c ..\vreg_ctr.c ..\vreg_twl.c
|
||||
WDT.c
|
||||
accero.c
|
||||
adc.c
|
||||
i2c_ctr.c
|
||||
i2c_mcu.c
|
||||
i2c_twl.c
|
||||
led.c
|
||||
led_cam.c
|
||||
led_pow.c
|
||||
loader.c
|
||||
magic.c
|
||||
main.c
|
||||
pedo_alg_thre_det2.c
|
||||
pm.c
|
||||
1>..\pm.c(1259): warning C4090: '=' : 異なる 'const' 修飾子です。
|
||||
renge.c
|
||||
rtc.c
|
||||
self_flash.c
|
||||
sw.c
|
||||
task_debug.c
|
||||
task_misc.c
|
||||
コードを生成中...
|
||||
コンパイル中...
|
||||
task_status.c
|
||||
task_sys.c
|
||||
vreg_ctr.c
|
||||
vreg_twl.c
|
||||
コードを生成中...
|
||||
Link:
|
||||
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\78k_data\yav-mcu-basara\branches\sim\VCProj\Debug\sim.exe" /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"Debug\sim.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /PDB:"C:\78k_data\yav-mcu-basara\branches\sim\VCProj\Debug\sim.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\78k_data\yav-mcu-basara\branches\sim\VCProj\Debug\sim.lib" /MACHINE:X86 Debug\accero.obj
|
||||
Debug\adc.obj
|
||||
Debug\i2c_ctr.obj
|
||||
Debug\i2c_mcu.obj
|
||||
Debug\i2c_twl.obj
|
||||
Debug\ini_VECT.obj
|
||||
Debug\led.obj
|
||||
Debug\led_cam.obj
|
||||
Debug\led_pow.obj
|
||||
Debug\loader.obj
|
||||
Debug\magic.obj
|
||||
Debug\main.obj
|
||||
Debug\pedo_alg_thre_det2.obj
|
||||
Debug\pm.obj
|
||||
Debug\rtc.obj
|
||||
Debug\self_flash.obj
|
||||
Debug\simFixture.obj
|
||||
Debug\sw.obj
|
||||
Debug\task_debug.obj
|
||||
Debug\task_misc.obj
|
||||
Debug\task_status.obj
|
||||
Debug\task_sys.obj
|
||||
Debug\vreg_ctr.obj
|
||||
Debug\vreg_twl.obj
|
||||
Debug\WDT.obj
|
||||
Debug\renge.obj
|
||||
bsr_trunk.vcxproj -> C:\78k_data\yav-mcu-basara\branches\sim\VCProj\Debug\sim.exe
|
||||
Manifest:
|
||||
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe /nologo /verbose /outputresource:"C:\78k_data\yav-mcu-basara\branches\sim\VCProj\Debug\sim.exe;#1" /manifest Debug\sim.exe.intermediate.manifest
|
||||
FinalizeBuildStatus:
|
||||
ファイル "Debug\sim.unsuccessfulbuild" を削除しています。
|
||||
"Debug\sim.lastbuildstate" のタッチ タスクを実行しています。
|
||||
1>プロジェクト "C:\78k_data\yav-mcu-basara\branches\sim\VCProj\bsr_trunk.vcxproj" (build ターゲット) のビルドが完了しました。
|
||||
|
||||
ビルドに成功しました。
|
||||
|
||||
経過時間 00:00:03.77
|
207
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport.css
Normal file
207
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport.css
Normal file
@ -0,0 +1,207 @@
|
||||
BODY
|
||||
{
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
P
|
||||
{
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 70%;
|
||||
LINE-HEIGHT: 12pt;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 10px
|
||||
}
|
||||
.note
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
COLOR: #336699;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px;
|
||||
PADDING-RIGHT: 10px
|
||||
}
|
||||
.infotable
|
||||
{
|
||||
BACKGROUND-COLOR: #f0f0e0;
|
||||
BORDER-BOTTOM: #ffffff 0px solid;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
BORDER-LEFT: #ffffff 0px solid;
|
||||
BORDER-RIGHT: #ffffff 0px solid;
|
||||
BORDER-TOP: #ffffff 0px solid;
|
||||
FONT-SIZE: 70%;
|
||||
MARGIN-LEFT: 10px
|
||||
}
|
||||
.issuetable
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffe8;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 10px;
|
||||
MARGIN-LEFT: 13px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
.issuetitle
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px;
|
||||
COLOR: #003366;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.header
|
||||
{
|
||||
BACKGROUND-COLOR: #cecf9c;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: bold
|
||||
}
|
||||
.issuehdr
|
||||
{
|
||||
BACKGROUND-COLOR: #E0EBF5;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.issuenone
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: 0px;
|
||||
BORDER-LEFT: 0px;
|
||||
BORDER-RIGHT: 0px;
|
||||
BORDER-TOP: 0px;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.content
|
||||
{
|
||||
BACKGROUND-COLOR: #e7e7ce;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
.issuecontent
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
A:link
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
A:visited
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:active
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:hover
|
||||
{
|
||||
COLOR: #cc3300;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
H1
|
||||
{
|
||||
BACKGROUND-COLOR: #003366;
|
||||
BORDER-BOTTOM: #336699 6px solid;
|
||||
COLOR: #ffffff;
|
||||
FONT-SIZE: 130%;
|
||||
FONT-WEIGHT: normal;
|
||||
MARGIN: 0em 0em 0em -20px;
|
||||
PADDING-BOTTOM: 8px;
|
||||
PADDING-LEFT: 30px;
|
||||
PADDING-TOP: 16px
|
||||
}
|
||||
H2
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 3px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px;
|
||||
PADDING-LEFT: 0px
|
||||
}
|
||||
H3
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: -5px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px
|
||||
}
|
||||
H4
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-TOP: 15px;
|
||||
PADDING-BOTTOM: 0px
|
||||
}
|
||||
UL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
OL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
LI
|
||||
{
|
||||
LIST-STYLE: square;
|
||||
MARGIN-LEFT: 0px
|
||||
}
|
||||
.expandable
|
||||
{
|
||||
CURSOR: hand
|
||||
}
|
||||
.expanded
|
||||
{
|
||||
color: black
|
||||
}
|
||||
.collapsed
|
||||
{
|
||||
DISPLAY: none
|
||||
}
|
||||
.foot
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #cecf9c 1px solid;
|
||||
BORDER-TOP: #cecf9c 2px solid
|
||||
}
|
||||
.settings
|
||||
{
|
||||
MARGIN-LEFT: 25PX;
|
||||
}
|
||||
.help
|
||||
{
|
||||
TEXT-ALIGN: right;
|
||||
margin-right: 10px;
|
||||
}
|
232
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport.xslt
Normal file
232
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport.xslt
Normal file
@ -0,0 +1,232 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||
|
||||
<xsl:key name="ProjectKey" match="Event" use="@Project"/>
|
||||
|
||||
<xsl:template match="Events" mode="createProjects">
|
||||
<projects>
|
||||
<xsl:for-each select="Event">
|
||||
<!--xsl:sort select="@Project" order="descending"/-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Project != @Project)">
|
||||
|
||||
<xsl:variable name="ProjectName" select="@Project"/>
|
||||
|
||||
<project>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Project"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:if test="@Project=''">
|
||||
<xsl:attribute name="solution">
|
||||
<xsl:value-of select="@Solution"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)">
|
||||
<!--xsl:sort select="@Source" /-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Source != @Source)">
|
||||
|
||||
<source>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:variable name="Source">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)[ @Source = $Source ]">
|
||||
|
||||
<event>
|
||||
<xsl:attribute name="error-level">
|
||||
<xsl:value-of select="@ErrorLevel"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="description">
|
||||
<xsl:value-of select="@Description"/>
|
||||
</xsl:attribute>
|
||||
</event>
|
||||
</xsl:for-each>
|
||||
</source>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
</project>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</projects>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="projects">
|
||||
<xsl:for-each select="project">
|
||||
<xsl:sort select="@Name" order="ascending"/>
|
||||
<h2>
|
||||
<xsl:if test="@solution"><a _locID="Solution">ソリューション</a>: <xsl:value-of select="@solution"/></xsl:if>
|
||||
<xsl:if test="not(@solution)"><a _locID="Project">プロジェクト</a>: <xsl:value-of select="@name"/>
|
||||
<xsl:for-each select="source">
|
||||
<xsl:variable name="Hyperlink" select="@name"/>
|
||||
<xsl:for-each select="event[@error-level='4']">
|
||||
<A class="note"><xsl:attribute name="HREF"><xsl:value-of select="$Hyperlink"/></xsl:attribute><xsl:value-of select="@description"/></A>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</h2>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
|
||||
<tr>
|
||||
<td nowrap="1" class="header" _locID="Filename">ファイル名</td>
|
||||
<td nowrap="1" class="header" _locID="Status">状態</td>
|
||||
<td nowrap="1" class="header" _locID="Errors">エラー</td>
|
||||
<td nowrap="1" class="header" _locID="Warnings">警告</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="source">
|
||||
<xsl:sort select="@name" order="ascending"/>
|
||||
<xsl:variable name="source-id" select="generate-id(.)"/>
|
||||
|
||||
<xsl:if test="count(event)!=count(event[@error-level='4'])">
|
||||
|
||||
<tr class="row">
|
||||
<td class="content">
|
||||
<A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" _locID="IMG.alt" _locAttrData="alt" alt="セクションの展開/折りたたみ" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.gif" width="9"><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A> <xsl:value-of select="@name"/>
|
||||
</td>
|
||||
<td class="content">
|
||||
<xsl:if test="count(event[@error-level='3'])=1">
|
||||
<xsl:for-each select="event[@error-level='3']">
|
||||
<xsl:if test="@description='Converted'"><a _locID="Converted1">変換済み</a></xsl:if>
|
||||
<xsl:if test="@description!='Converted'"><xsl:value-of select="@description"/></xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(event[@error-level='3'])!=1 and count(event[@error-level='3' and @description='Converted'])!=0"><a _locID="Converted2">変換済み</a>
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='2'])"/></td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
|
||||
<tr class="collapsed" bgcolor="#ffffff">
|
||||
<xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
|
||||
|
||||
<td colspan="7">
|
||||
<table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
|
||||
<tr>
|
||||
<td colspan="7" class="issuetitle" _locID="ConversionIssues">変換レポート - <xsl:value-of select="@name"/>:</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="event[@error-level!='3']">
|
||||
<xsl:if test="@error-level!='4'">
|
||||
<tr>
|
||||
<td class="issuenone" style="border-bottom:solid 1 lightgray">
|
||||
<xsl:value-of select="@description"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
<tr valign="top">
|
||||
<td class="foot">
|
||||
<xsl:if test="count(source)!=1">
|
||||
<xsl:value-of select="count(source)"/><a _locID="file1"> ファイル</a>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(source)=1">
|
||||
<a _locID="file2">1 ファイル</a>
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="foot">
|
||||
<a _locID="Converted3">変換済み</a>: <xsl:value-of select="count(source/event[@error-level='3' and @description='Converted'])"/><BR/>
|
||||
<a _locID="NotConverted">変換されませんでした。</a>: <xsl:value-of select="count(source) - count(source/event[@error-level='3' and @description='Converted'])"/>
|
||||
</td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='2'])"/></td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="Property">
|
||||
<xsl:if test="@Name!='Date' and @Name!='Time' and @Name!='LogNumber' and @Name!='Solution'">
|
||||
<tr><td nowrap="1"><b><xsl:value-of select="@Name"/>: </b><xsl:value-of select="@Value"/></td></tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="UpgradeLog">
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css"/>
|
||||
<title _locID="ConversionReport0">変換レポート
|
||||
<xsl:if test="Properties/Property[@Name='LogNumber']">
|
||||
<xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/>
|
||||
</xsl:if>
|
||||
</title>
|
||||
<script language="javascript">
|
||||
function outliner () {
|
||||
oMe = window.event.srcElement
|
||||
//get child element
|
||||
var child = document.all[event.srcElement.getAttribute("child",false)];
|
||||
//if child element exists, expand or collapse it.
|
||||
if (null != child)
|
||||
child.className = child.className == "collapsed" ? "expanded" : "collapsed";
|
||||
}
|
||||
|
||||
function changepic() {
|
||||
uMe = window.event.srcElement;
|
||||
var check = uMe.src.toLowerCase();
|
||||
if (check.lastIndexOf("upgradereport_plus.gif") != -1)
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.gif"
|
||||
}
|
||||
else
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.gif"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();">
|
||||
<h1 _locID="ConversionReport">変換レポート - <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/></h1>
|
||||
|
||||
<p><span class="note">
|
||||
<b _locID="TimeOfConversion">変換時間:</b> <xsl:value-of select="Properties/Property[@Name='Date']/@Value"/> <xsl:value-of select="Properties/Property[@Name='Time']/@Value"/><br/>
|
||||
</span></p>
|
||||
|
||||
<xsl:variable name="SortedEvents">
|
||||
<Events>
|
||||
<xsl:for-each select="Event">
|
||||
<xsl:sort select="@Project" order="ascending"/>
|
||||
<xsl:sort select="@Source" order="ascending"/>
|
||||
<xsl:sort select="@ErrorLevel" order="ascending"/>
|
||||
<Event>
|
||||
<xsl:attribute name="Project"><xsl:value-of select="@Project"/> </xsl:attribute>
|
||||
<xsl:attribute name="Solution"><xsl:value-of select="/UpgradeLog/Properties/Property[@Name='Solution']/@Value"/> </xsl:attribute>
|
||||
<xsl:attribute name="Source"><xsl:value-of select="@Source"/> </xsl:attribute>
|
||||
<xsl:attribute name="ErrorLevel"><xsl:value-of select="@ErrorLevel"/> </xsl:attribute>
|
||||
<xsl:attribute name="Description"><xsl:value-of select="@Description"/> </xsl:attribute>
|
||||
</Event>
|
||||
</xsl:for-each>
|
||||
</Events>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="Projects">
|
||||
<xsl:apply-templates select="msxsl:node-set($SortedEvents)/*" mode="createProjects"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:apply-templates select="msxsl:node-set($Projects)/*"/>
|
||||
|
||||
<p></p><p>
|
||||
<table class="note">
|
||||
<tr>
|
||||
<td nowrap="1">
|
||||
<b _locID="ConversionSettings">変換の設定</b>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:apply-templates select="Properties"/>
|
||||
</table></p>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
BIN
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport_Minus.gif
Normal file
BIN
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport_Minus.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 69 B |
BIN
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport_Plus.gif
Normal file
BIN
branches/sim/VCProj/_UpgradeReport_Files/UpgradeReport_Plus.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 B |
BIN
branches/sim/VCProj/bsr_trunk.ncb
Normal file
BIN
branches/sim/VCProj/bsr_trunk.ncb
Normal file
Binary file not shown.
BIN
branches/sim/VCProj/bsr_trunk.opensdf
Normal file
BIN
branches/sim/VCProj/bsr_trunk.opensdf
Normal file
Binary file not shown.
BIN
branches/sim/VCProj/bsr_trunk.sdf
Normal file
BIN
branches/sim/VCProj/bsr_trunk.sdf
Normal file
Binary file not shown.
20
branches/sim/VCProj/bsr_trunk.sln
Normal file
20
branches/sim/VCProj/bsr_trunk.sln
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual C++ Express 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bsr_trunk", "bsr_trunk.vcxproj", "{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
20
branches/sim/VCProj/bsr_trunk.sln.old
Normal file
20
branches/sim/VCProj/bsr_trunk.sln.old
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C++ Express 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bsr_trunk", "bsr_trunk.vcproj", "{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
BIN
branches/sim/VCProj/bsr_trunk.suo
Normal file
BIN
branches/sim/VCProj/bsr_trunk.suo
Normal file
Binary file not shown.
BIN
branches/sim/VCProj/bsr_trunk.suo.old
Normal file
BIN
branches/sim/VCProj/bsr_trunk.suo.old
Normal file
Binary file not shown.
594
branches/sim/VCProj/bsr_trunk.vcproj
Normal file
594
branches/sim/VCProj/bsr_trunk.vcproj
Normal file
@ -0,0 +1,594 @@
|
||||
<?xml version="1.0" encoding="shift_jis"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="bsr_trunk"
|
||||
ProjectGUID="{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}"
|
||||
RootNamespace="bsr_trunk"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="0"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCNMakeTool"
|
||||
BuildCommandLine="nmake -f yav_mcu_bsr.mak"
|
||||
ReBuildCommandLine=""
|
||||
CleanCommandLine=""
|
||||
Output=""
|
||||
PreprocessorDefinitions=""
|
||||
IncludeSearchPath=""
|
||||
ForcedIncludes=""
|
||||
AssemblySearchPath=""
|
||||
ForcedUsingAssemblies=""
|
||||
CompileAsManaged=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
GenerateDebugInformation="true"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="ソース ファイル"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\accero.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\adc.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\i2c_ctr.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\i2c_mcu.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\i2c_twl.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\ini_VECT.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\led.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\loader.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\magic.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\main.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pedo_alg_thre_det2.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pm.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\reboot.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\rtc.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\self_flash.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\sw.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\task_debug.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\task_misc.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\task_status.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\task_sys.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\vreg_ctr.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\vreg_twl.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\WDT.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="ヘッダー ファイル"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\accero.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\adc.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\batt_params.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\bsr_system.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\config.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\fsl.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\fsl_user.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\i2c_ctr.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\i2c_mcu.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\i2c_twl.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\i2c_twl_defs.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\incs.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\incs_loader.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\jhl_defs.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\led.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\loader.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pedo_lpf_coeff.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pedometer.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pm.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pool.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\reboot.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\rtc.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\self_flash.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\sw.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\user_define.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\vreg_ctr.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\vreg_twl.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\WDT.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="リソース ファイル"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="renge"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\renge\renge.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\renge\renge.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\renge\renge_defs.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\renge\renge_task_immediate.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\renge\renge_task_intval.h"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="..\bsr_mcu.dr"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
65
branches/sim/VCProj/bsr_trunk.vcproj.NCL.N2232.user
Normal file
65
branches/sim/VCProj/bsr_trunk.vcproj.NCL.N2232.user
Normal file
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="shift_jis"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory="C:\78k_data\yav-mcu-basara\trunk"
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="REDPC2232"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor="0"
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="REDPC2232"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
140
branches/sim/VCProj/bsr_trunk.vcxproj
Normal file
140
branches/sim/VCProj/bsr_trunk.vcxproj
Normal file
@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{9DF31AC3-BD19-4158-BD6F-9CFE64AEE5D2}</ProjectGuid>
|
||||
<RootNamespace>bsr_trunk</RootNamespace>
|
||||
<ProjectName>sim</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>
|
||||
<NMakeBuildCommandLine Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">nmake -f yav_mcu_bsr.mak</NMakeBuildCommandLine>
|
||||
<NMakeReBuildCommandLine Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<NMakeCleanCommandLine Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<NMakeOutput Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<NMakePreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
|
||||
<NMakeIncludeSearchPath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(NMakeIncludeSearchPath)</NMakeIncludeSearchPath>
|
||||
<NMakeForcedIncludes Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(NMakeForcedIncludes)</NMakeForcedIncludes>
|
||||
<NMakeAssemblySearchPath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(NMakeAssemblySearchPath)</NMakeAssemblySearchPath>
|
||||
<NMakeForcedUsingAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(NMakeForcedUsingAssemblies)</NMakeForcedUsingAssemblies>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
|
||||
<IncludePath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\accero.c" />
|
||||
<ClCompile Include="..\adc.c" />
|
||||
<ClCompile Include="..\i2c_ctr.c" />
|
||||
<ClCompile Include="..\i2c_mcu.c" />
|
||||
<ClCompile Include="..\i2c_twl.c" />
|
||||
<ClCompile Include="..\ini_VECT.c" />
|
||||
<ClCompile Include="..\led.c" />
|
||||
<ClCompile Include="..\led_cam.c" />
|
||||
<ClCompile Include="..\led_pow.c" />
|
||||
<ClCompile Include="..\loader.c" />
|
||||
<ClCompile Include="..\magic.c" />
|
||||
<ClCompile Include="..\main.c" />
|
||||
<ClCompile Include="..\pedo_alg_thre_det2.c" />
|
||||
<ClCompile Include="..\pm.c" />
|
||||
<ClCompile Include="..\rtc.c" />
|
||||
<ClCompile Include="..\self_flash.c" />
|
||||
<ClCompile Include="..\sim\simFixture.c" />
|
||||
<ClCompile Include="..\sw.c" />
|
||||
<ClCompile Include="..\task_debug.c" />
|
||||
<ClCompile Include="..\task_misc.c" />
|
||||
<ClCompile Include="..\task_status.c" />
|
||||
<ClCompile Include="..\task_sys.c" />
|
||||
<ClCompile Include="..\vreg_ctr.c" />
|
||||
<ClCompile Include="..\vreg_twl.c" />
|
||||
<ClCompile Include="..\WDT.c" />
|
||||
<ClCompile Include="..\renge\renge.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\accero.h" />
|
||||
<ClInclude Include="..\adc.h" />
|
||||
<ClInclude Include="..\batt_params.h" />
|
||||
<ClInclude Include="..\bsr_system.h" />
|
||||
<ClInclude Include="..\config.h" />
|
||||
<ClInclude Include="..\fsl.h" />
|
||||
<ClInclude Include="..\fsl_user.h" />
|
||||
<ClInclude Include="..\i2c_ctr.h" />
|
||||
<ClInclude Include="..\i2c_mcu.h" />
|
||||
<ClInclude Include="..\i2c_twl.h" />
|
||||
<ClInclude Include="..\i2c_twl_defs.h" />
|
||||
<ClInclude Include="..\incs.h" />
|
||||
<ClInclude Include="..\incs_loader.h" />
|
||||
<ClInclude Include="..\jhl_defs.h" />
|
||||
<ClInclude Include="..\led.h" />
|
||||
<ClInclude Include="..\loader.h" />
|
||||
<ClInclude Include="..\pedo_lpf_coeff.h" />
|
||||
<ClInclude Include="..\pedometer.h" />
|
||||
<ClInclude Include="..\pm.h" />
|
||||
<ClInclude Include="..\pool.h" />
|
||||
<ClInclude Include="..\reboot.h" />
|
||||
<ClInclude Include="..\rtc.h" />
|
||||
<ClInclude Include="..\self_flash.h" />
|
||||
<ClInclude Include="..\sim\sfrAlias.h" />
|
||||
<ClInclude Include="..\sw.h" />
|
||||
<ClInclude Include="..\user_define.h" />
|
||||
<ClInclude Include="..\vreg_ctr.h" />
|
||||
<ClInclude Include="..\vreg_twl.h" />
|
||||
<ClInclude Include="..\WDT.h" />
|
||||
<ClInclude Include="..\renge\renge.h" />
|
||||
<ClInclude Include="..\renge\renge_defs.h" />
|
||||
<ClInclude Include="..\renge\renge_task_immediate.h" />
|
||||
<ClInclude Include="..\renge\renge_task_intval.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\bsr_mcu.dr" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
204
branches/sim/VCProj/bsr_trunk.vcxproj.filters
Normal file
204
branches/sim/VCProj/bsr_trunk.vcxproj.filters
Normal file
@ -0,0 +1,204 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="ソース ファイル">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="ヘッダー ファイル">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="リソース ファイル">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="ソース ファイル\renge">
|
||||
<UniqueIdentifier>{4e2142a2-478d-4e47-ab3f-7ae7d1e531bd}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\accero.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\adc.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\i2c_ctr.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\i2c_mcu.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\i2c_twl.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\ini_VECT.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\led.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\loader.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\magic.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\main.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\pedo_alg_thre_det2.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\pm.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\rtc.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\self_flash.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\sw.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\task_debug.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\task_misc.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\task_status.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\task_sys.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\vreg_ctr.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\vreg_twl.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\WDT.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\renge\renge.c">
|
||||
<Filter>ソース ファイル\renge</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\led_pow.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\led_cam.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\sim\simFixture.c">
|
||||
<Filter>ソース ファイル</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\accero.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\adc.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\batt_params.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\bsr_system.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\config.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\fsl.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\fsl_user.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\i2c_ctr.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\i2c_mcu.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\i2c_twl.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\i2c_twl_defs.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\incs.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\incs_loader.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\jhl_defs.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\led.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\loader.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\pedo_lpf_coeff.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\pedometer.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\pm.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\pool.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\reboot.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\rtc.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\self_flash.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\sw.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\user_define.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\vreg_ctr.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\vreg_twl.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\WDT.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\renge\renge_task_immediate.h">
|
||||
<Filter>ソース ファイル\renge</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\renge\renge_task_intval.h">
|
||||
<Filter>ソース ファイル\renge</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\renge\renge_defs.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\renge\renge.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\sim\sfrAlias.h">
|
||||
<Filter>ヘッダー ファイル</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\bsr_mcu.dr" />
|
||||
</ItemGroup>
|
||||
</Project>
|
3
branches/sim/VCProj/bsr_trunk.vcxproj.user
Normal file
3
branches/sim/VCProj/bsr_trunk.vcxproj.user
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
@ -1,5 +1 @@
|
||||
#pragma sfr
|
||||
|
||||
|
||||
#include "incs_loader.h"
|
||||
|
||||
|
@ -5,6 +5,8 @@
|
||||
・加速度センサ割り込みからタスクを登録して下さい。(I2Cの競合回避などがあるので)
|
||||
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma NOP
|
||||
#pragma HALT
|
||||
@ -14,11 +16,13 @@
|
||||
#pragma MUL
|
||||
#pragma BCD
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
#ifdef _MCU_BSR_
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma interrupt INTP23 intp23_ACC_ready RB3 // 加速度センサ、データ準備完了
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@ -191,7 +195,7 @@ if( system_status.model == MODEL_TS_BOARD )
|
||||
str_send_buf[2] = 0x10; // 3 IRQ pol :Active HI, Drive:Pushpull,
|
||||
}
|
||||
*/
|
||||
str_send_buf[2] = 0b00010010; // 面倒なので両方...。
|
||||
str_send_buf[2] = bits8(0,0,0,1, 0,0,1,0); // 面倒なので両方...。
|
||||
str_send_buf[3] = 0x80; // ctrl3 block update:enable, MSB first, scale: +-2G(default), selftest: dis
|
||||
|
||||
if( ( vreg_ctr[VREG_C_ACC_CONFIG] &
|
||||
|
@ -126,7 +126,7 @@ void tsk_adc( )
|
||||
|
||||
|
||||
ADCEN = 1;
|
||||
ADM = 0b00001011; // セレクトモード、昇圧、fCLK/6 ///ここから ↓
|
||||
ADM = bits8(0,0,0,0, 1,0,1,1); // セレクトモード、昇圧、fCLK/6 ///ここから ↓
|
||||
|
||||
ADPC = 0x06; // ADCポートのセレクト
|
||||
ADS = ADC_SEL_3D;
|
||||
@ -392,7 +392,7 @@ u8 get_adc( u8 ch )
|
||||
ADIF = 0;
|
||||
|
||||
ADCEN = 1;
|
||||
ADM = 0b00001011; // セレクトモード、昇圧、fCLK/6 ///ここから↓
|
||||
ADM = bits8(0,0,0,0, 1,0,1,1); // セレクトモード、昇圧、fCLK/6 ///ここから↓
|
||||
|
||||
ADPC = 0x06; // ADCポートのセレクト
|
||||
ADS = ch;
|
||||
@ -521,17 +521,12 @@ case ( ADC_SEL_AMB_BRIT ): //
|
||||
case ( ADC_SEL_3D ):
|
||||
hist_3D[index] = adc_data;
|
||||
EI();
|
||||
#ifdef _MODEL_WM0_
|
||||
adc_raw_dep = 255 - getmean3( hist_3D );
|
||||
#else
|
||||
adc_raw_dep = getmean3( hist_3D );
|
||||
#endif
|
||||
break;
|
||||
|
||||
case ( ADC_SEL_VOL ):
|
||||
hist_snd_vol[index] = adc_data;
|
||||
EI();
|
||||
#ifdef _MODEL_CTR_
|
||||
if( system_status.model == MODEL_TS_BOARD )
|
||||
{
|
||||
adc_raw_vol = getmean3( hist_snd_vol );
|
||||
@ -540,10 +535,6 @@ case ( ADC_SEL_AMB_BRIT ): //
|
||||
{
|
||||
adc_raw_vol = ( 255 - getmean3( hist_snd_vol ));
|
||||
}
|
||||
#else
|
||||
adc_raw_vol = getmean3( hist_snd_vol );
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
||||
case ( ADC_SEL_BATT_TEMP ):
|
||||
|
2005
branches/sim/bsr.hex
2005
branches/sim/bsr.hex
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,20 +1,20 @@
|
||||
|
||||
|
||||
|
||||
78K0R Linker W1.33 Date:10 Jun 2011 Page: 1
|
||||
78K0R Linker W1.33 Date:20 Jun 2011 Page: 1
|
||||
|
||||
Command: -yc:\program files (x86)\nec electronics tools\dev -_msgoff -
|
||||
obsr.lmf ..\..\..\Program Files (x86)\NEC Electronics Tools\C
|
||||
C78K0R\W2.13\lib78k0r\s0rm.rel -gi1B339499E033F240BFAAh -pbsr
|
||||
_k0r.map -nkd -gb7EFBFFh -bC:\Program Files (x86)\NEC Electro
|
||||
nics Tools\CC78K0R\W2.13\lib78k0r\fsl.lib -bcl0rdm.lib -bcl0r
|
||||
m.lib -bcl0rmf.lib -iC:\Program Files (x86)\NEC Electronics T
|
||||
ools\CC78K0R\W2.13\lib78k0r -dbsr_mcu.dr -s -w0 loader.rel pm
|
||||
.rel i2c_ctr.rel main.rel magic.rel WDT.rel i2c_mcu.rel i2c_t
|
||||
wl.rel led.rel rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel reng
|
||||
e.rel accero.rel self_flash.rel sw.rel task_debug.rel task_mi
|
||||
sc.rel task_sys.rel pedo_alg_thre_det2.rel ini_VECT.rel task_
|
||||
status.rel led_cam.rel led_pow.rel
|
||||
obsr.lmf ..\..\..\..\Program Files (x86)\NEC Electronics Tool
|
||||
s\CC78K0R\W2.13\lib78k0r\s0rm.rel -gi1B339499E033F240BFAAh -p
|
||||
bsr_k0r.map -nkd -gb7EFBFFh -bC:\Program Files (x86)\NEC Elec
|
||||
tronics Tools\CC78K0R\W2.13\lib78k0r\fsl.lib -bcl0rdm.lib -bc
|
||||
l0rm.lib -bcl0rmf.lib -iC:\Program Files (x86)\NEC Electronic
|
||||
s Tools\CC78K0R\W2.13\lib78k0r -dbsr_mcu.dr -s -w0 loader.rel
|
||||
pm.rel i2c_ctr.rel main.rel magic.rel WDT.rel i2c_mcu.rel i2
|
||||
c_twl.rel led.rel rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel r
|
||||
enge.rel accero.rel self_flash.rel sw.rel task_debug.rel task
|
||||
_misc.rel task_sys.rel pedo_alg_thre_det2.rel ini_VECT.rel ta
|
||||
sk_status.rel led_cam.rel led_pow.rel
|
||||
Para-file:
|
||||
Out-file: bsr.lmf
|
||||
Map-file: bsr_k0r.map
|
||||
@ -24,8 +24,8 @@ Direc-file:bsr_mcu.dr
|
||||
*** Link information ***
|
||||
|
||||
65 output segment(s)
|
||||
3DA7H byte(s) real data
|
||||
5803 symbol(s) defined
|
||||
3DA3H byte(s) real data
|
||||
5778 symbol(s) defined
|
||||
|
||||
|
||||
*** Memory map ***
|
||||
@ -186,251 +186,251 @@ Direc-file:bsr_mcu.dr
|
||||
0226CH 00000H
|
||||
@@CNST led_cam 0226CH 00000H
|
||||
@@CNST led_pow 0226CH 00020H
|
||||
ROM_CODE 0228CH 026F1H CSEG
|
||||
ROM_CODE pm 0228CH 009F9H
|
||||
ROM_CODE i2c_ctr 02C85H 00060H
|
||||
ROM_CODE i2c_twl 02CE5H 0005EH
|
||||
ROM_CODE led 02D43H 00265H
|
||||
ROM_CODE rtc 02FA8H 000E0H
|
||||
ROM_CODE vreg_ctr 03088H 00486H
|
||||
ROM_CODE vreg_twl 0350EH 000FAH
|
||||
ROM_CODE adc 03608H 002E7H
|
||||
ROM_CODE renge 038EFH 00190H
|
||||
ROM_CODE accero 03A7FH 0013DH
|
||||
ROM_CODE sw 03BBCH 00178H
|
||||
ROM_CODE 0228CH 026EDH CSEG
|
||||
ROM_CODE pm 0228CH 009F7H
|
||||
ROM_CODE i2c_ctr 02C83H 00060H
|
||||
ROM_CODE i2c_twl 02CE3H 0005EH
|
||||
ROM_CODE led 02D41H 00265H
|
||||
ROM_CODE rtc 02FA6H 000E0H
|
||||
ROM_CODE vreg_ctr 03086H 00486H
|
||||
ROM_CODE vreg_twl 0350CH 000FAH
|
||||
ROM_CODE adc 03606H 002E7H
|
||||
ROM_CODE renge 038EDH 00190H
|
||||
ROM_CODE accero 03A7DH 0013DH
|
||||
ROM_CODE sw 03BBAH 00176H
|
||||
ROM_CODE task_misc
|
||||
03D34H 00177H
|
||||
ROM_CODE task_sys 03EABH 00373H
|
||||
03D30H 00177H
|
||||
ROM_CODE task_sys 03EA7H 00373H
|
||||
ROM_CODE pedo_alg_thre_det2
|
||||
0421EH 00502H
|
||||
ROM_CODE led_cam 04720H 000DBH
|
||||
ROM_CODE led_pow 047FBH 00182H
|
||||
@@BASE 0497DH 004C6H CSEG BASE
|
||||
@@BASE loader 0497DH 00000H
|
||||
@@BASE pm 0497DH 0003FH
|
||||
@@BASE i2c_ctr 049BCH 0018DH
|
||||
@@BASE main 04B49H 00000H
|
||||
@@BASE magic 04B49H 00000H
|
||||
@@BASE WDT 04B49H 00000H
|
||||
@@BASE i2c_mcu 04B49H 0009CH
|
||||
@@BASE i2c_twl 04BE5H 000CBH
|
||||
@@BASE led 04CB0H 00000H
|
||||
@@BASE rtc 04CB0H 0005EH
|
||||
@@BASE vreg_ctr 04D0EH 00000H
|
||||
@@BASE vreg_twl 04D0EH 00000H
|
||||
@@BASE adc 04D0EH 000B3H
|
||||
@@BASE renge 04DC1H 00000H
|
||||
@@BASE accero 04DC1H 0004AH
|
||||
0421AH 00502H
|
||||
ROM_CODE led_cam 0471CH 000DBH
|
||||
ROM_CODE led_pow 047F7H 00182H
|
||||
@@BASE 04979H 004C6H CSEG BASE
|
||||
@@BASE loader 04979H 00000H
|
||||
@@BASE pm 04979H 0003FH
|
||||
@@BASE i2c_ctr 049B8H 0018DH
|
||||
@@BASE main 04B45H 00000H
|
||||
@@BASE magic 04B45H 00000H
|
||||
@@BASE WDT 04B45H 00000H
|
||||
@@BASE i2c_mcu 04B45H 0009CH
|
||||
@@BASE i2c_twl 04BE1H 000CBH
|
||||
@@BASE led 04CACH 00000H
|
||||
@@BASE rtc 04CACH 0005EH
|
||||
@@BASE vreg_ctr 04D0AH 00000H
|
||||
@@BASE vreg_twl 04D0AH 00000H
|
||||
@@BASE adc 04D0AH 000B3H
|
||||
@@BASE renge 04DBDH 00000H
|
||||
@@BASE accero 04DBDH 0004AH
|
||||
@@BASE self_flash
|
||||
04E0BH 00000H
|
||||
@@BASE sw 04E0BH 00000H
|
||||
04E07H 00000H
|
||||
@@BASE sw 04E07H 00000H
|
||||
@@BASE task_debug
|
||||
04E0BH 00000H
|
||||
04E07H 00000H
|
||||
@@BASE task_misc
|
||||
04E0BH 00000H
|
||||
@@BASE task_sys 04E0BH 00000H
|
||||
04E07H 00000H
|
||||
@@BASE task_sys 04E07H 00000H
|
||||
@@BASE pedo_alg_thre_det2
|
||||
04E0BH 00000H
|
||||
@@BASE ini_VECT 04E0BH 00038H
|
||||
04E07H 00000H
|
||||
@@BASE ini_VECT 04E07H 00038H
|
||||
@@BASE task_status
|
||||
04E43H 00000H
|
||||
@@BASE led_cam 04E43H 00000H
|
||||
@@BASE led_pow 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL @cstart 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL pm 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL i2c_ctr 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL i2c_twl 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL led 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL rtc 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL vreg_ctr 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL vreg_twl 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL adc 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL renge 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL accero 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL sw 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
04E3FH 00000H
|
||||
@@BASE led_cam 04E3FH 00000H
|
||||
@@BASE led_pow 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL @cstart 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL pm 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL i2c_ctr 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL i2c_twl 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL led 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL rtc 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL vreg_ctr 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL vreg_twl 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL adc 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL renge 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL accero 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL sw 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL task_misc
|
||||
04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL task_sys 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL task_sys 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL pedo_alg_thre_det2
|
||||
04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL ini_VECT 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL led_cam 04E43H 00000H
|
||||
@@CNSTL 04E43H 00000H CSEG PAGE64KP
|
||||
@@CNSTL led_pow 04E43H 00000H
|
||||
@@R_INIS 04E43H 00000H CSEG UNIT64KP
|
||||
@@R_INIS @cstart 04E43H 00000H
|
||||
@@R_INIS loader 04E43H 00000H
|
||||
@@R_INIS pm 04E43H 00000H
|
||||
@@R_INIS i2c_ctr 04E43H 00000H
|
||||
@@R_INIS main 04E43H 00000H
|
||||
@@R_INIS magic 04E43H 00000H
|
||||
@@R_INIS WDT 04E43H 00000H
|
||||
@@R_INIS i2c_mcu 04E43H 00000H
|
||||
@@R_INIS i2c_twl 04E43H 00000H
|
||||
@@R_INIS led 04E43H 00000H
|
||||
@@R_INIS rtc 04E43H 00000H
|
||||
@@R_INIS vreg_ctr 04E43H 00000H
|
||||
@@R_INIS vreg_twl 04E43H 00000H
|
||||
@@R_INIS adc 04E43H 00000H
|
||||
@@R_INIS renge 04E43H 00000H
|
||||
@@R_INIS accero 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL ini_VECT 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL led_cam 04E3FH 00000H
|
||||
@@CNSTL 04E3FH 00000H CSEG PAGE64KP
|
||||
@@CNSTL led_pow 04E3FH 00000H
|
||||
@@R_INIS 04E3FH 00000H CSEG UNIT64KP
|
||||
@@R_INIS @cstart 04E3FH 00000H
|
||||
@@R_INIS loader 04E3FH 00000H
|
||||
@@R_INIS pm 04E3FH 00000H
|
||||
@@R_INIS i2c_ctr 04E3FH 00000H
|
||||
@@R_INIS main 04E3FH 00000H
|
||||
@@R_INIS magic 04E3FH 00000H
|
||||
@@R_INIS WDT 04E3FH 00000H
|
||||
@@R_INIS i2c_mcu 04E3FH 00000H
|
||||
@@R_INIS i2c_twl 04E3FH 00000H
|
||||
@@R_INIS led 04E3FH 00000H
|
||||
@@R_INIS rtc 04E3FH 00000H
|
||||
@@R_INIS vreg_ctr 04E3FH 00000H
|
||||
@@R_INIS vreg_twl 04E3FH 00000H
|
||||
@@R_INIS adc 04E3FH 00000H
|
||||
@@R_INIS renge 04E3FH 00000H
|
||||
@@R_INIS accero 04E3FH 00000H
|
||||
@@R_INIS self_flash
|
||||
04E43H 00000H
|
||||
@@R_INIS sw 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@R_INIS sw 04E3FH 00000H
|
||||
@@R_INIS task_debug
|
||||
04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@R_INIS task_misc
|
||||
04E43H 00000H
|
||||
@@R_INIS task_sys 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@R_INIS task_sys 04E3FH 00000H
|
||||
@@R_INIS pedo_alg_thre_det2
|
||||
04E43H 00000H
|
||||
@@R_INIS ini_VECT 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@R_INIS ini_VECT 04E3FH 00000H
|
||||
@@R_INIS task_status
|
||||
04E43H 00000H
|
||||
@@R_INIS led_cam 04E43H 00000H
|
||||
@@R_INIS led_pow 04E43H 00000H
|
||||
@@R_INIS @rom 04E43H 00000H
|
||||
@@CALT 04E43H 00000H CSEG
|
||||
@@CALT @cstart 04E43H 00000H
|
||||
@@CALT loader 04E43H 00000H
|
||||
@@CALT pm 04E43H 00000H
|
||||
@@CALT i2c_ctr 04E43H 00000H
|
||||
@@CALT main 04E43H 00000H
|
||||
@@CALT magic 04E43H 00000H
|
||||
@@CALT WDT 04E43H 00000H
|
||||
@@CALT i2c_mcu 04E43H 00000H
|
||||
@@CALT i2c_twl 04E43H 00000H
|
||||
@@CALT led 04E43H 00000H
|
||||
@@CALT rtc 04E43H 00000H
|
||||
@@CALT vreg_ctr 04E43H 00000H
|
||||
@@CALT vreg_twl 04E43H 00000H
|
||||
@@CALT adc 04E43H 00000H
|
||||
@@CALT renge 04E43H 00000H
|
||||
@@CALT accero 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@R_INIS led_cam 04E3FH 00000H
|
||||
@@R_INIS led_pow 04E3FH 00000H
|
||||
@@R_INIS @rom 04E3FH 00000H
|
||||
@@CALT 04E3FH 00000H CSEG
|
||||
@@CALT @cstart 04E3FH 00000H
|
||||
@@CALT loader 04E3FH 00000H
|
||||
@@CALT pm 04E3FH 00000H
|
||||
@@CALT i2c_ctr 04E3FH 00000H
|
||||
@@CALT main 04E3FH 00000H
|
||||
@@CALT magic 04E3FH 00000H
|
||||
@@CALT WDT 04E3FH 00000H
|
||||
@@CALT i2c_mcu 04E3FH 00000H
|
||||
@@CALT i2c_twl 04E3FH 00000H
|
||||
@@CALT led 04E3FH 00000H
|
||||
@@CALT rtc 04E3FH 00000H
|
||||
@@CALT vreg_ctr 04E3FH 00000H
|
||||
@@CALT vreg_twl 04E3FH 00000H
|
||||
@@CALT adc 04E3FH 00000H
|
||||
@@CALT renge 04E3FH 00000H
|
||||
@@CALT accero 04E3FH 00000H
|
||||
@@CALT self_flash
|
||||
04E43H 00000H
|
||||
@@CALT sw 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@CALT sw 04E3FH 00000H
|
||||
@@CALT task_debug
|
||||
04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@CALT task_misc
|
||||
04E43H 00000H
|
||||
@@CALT task_sys 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@CALT task_sys 04E3FH 00000H
|
||||
@@CALT pedo_alg_thre_det2
|
||||
04E43H 00000H
|
||||
@@CALT ini_VECT 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@CALT ini_VECT 04E3FH 00000H
|
||||
@@CALT task_status
|
||||
04E43H 00000H
|
||||
@@CALT led_cam 04E43H 00000H
|
||||
@@CALT led_pow 04E43H 00000H
|
||||
@@RLINIT 04E43H 00000H CSEG UNIT64KP
|
||||
@@RLINIT loader 04E43H 00000H
|
||||
@@RLINIT pm 04E43H 00000H
|
||||
@@RLINIT i2c_ctr 04E43H 00000H
|
||||
@@RLINIT main 04E43H 00000H
|
||||
@@RLINIT magic 04E43H 00000H
|
||||
@@RLINIT WDT 04E43H 00000H
|
||||
@@RLINIT i2c_mcu 04E43H 00000H
|
||||
@@RLINIT i2c_twl 04E43H 00000H
|
||||
@@RLINIT led 04E43H 00000H
|
||||
@@RLINIT rtc 04E43H 00000H
|
||||
@@RLINIT vreg_ctr 04E43H 00000H
|
||||
@@RLINIT vreg_twl 04E43H 00000H
|
||||
@@RLINIT adc 04E43H 00000H
|
||||
@@RLINIT renge 04E43H 00000H
|
||||
@@RLINIT accero 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@CALT led_cam 04E3FH 00000H
|
||||
@@CALT led_pow 04E3FH 00000H
|
||||
@@RLINIT 04E3FH 00000H CSEG UNIT64KP
|
||||
@@RLINIT loader 04E3FH 00000H
|
||||
@@RLINIT pm 04E3FH 00000H
|
||||
@@RLINIT i2c_ctr 04E3FH 00000H
|
||||
@@RLINIT main 04E3FH 00000H
|
||||
@@RLINIT magic 04E3FH 00000H
|
||||
@@RLINIT WDT 04E3FH 00000H
|
||||
@@RLINIT i2c_mcu 04E3FH 00000H
|
||||
@@RLINIT i2c_twl 04E3FH 00000H
|
||||
@@RLINIT led 04E3FH 00000H
|
||||
@@RLINIT rtc 04E3FH 00000H
|
||||
@@RLINIT vreg_ctr 04E3FH 00000H
|
||||
@@RLINIT vreg_twl 04E3FH 00000H
|
||||
@@RLINIT adc 04E3FH 00000H
|
||||
@@RLINIT renge 04E3FH 00000H
|
||||
@@RLINIT accero 04E3FH 00000H
|
||||
@@RLINIT self_flash
|
||||
04E43H 00000H
|
||||
@@RLINIT sw 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@RLINIT sw 04E3FH 00000H
|
||||
@@RLINIT task_debug
|
||||
04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@RLINIT task_misc
|
||||
04E43H 00000H
|
||||
@@RLINIT task_sys 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@RLINIT task_sys 04E3FH 00000H
|
||||
@@RLINIT pedo_alg_thre_det2
|
||||
04E43H 00000H
|
||||
@@RLINIT ini_VECT 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@RLINIT ini_VECT 04E3FH 00000H
|
||||
@@RLINIT task_status
|
||||
04E43H 00000H
|
||||
@@RLINIT led_cam 04E43H 00000H
|
||||
@@RLINIT led_pow 04E43H 00000H
|
||||
@@RLINIT @rom 04E43H 00000H
|
||||
@@CODEL 04E43H 00000H CSEG
|
||||
@@CODEL pm 04E43H 00000H
|
||||
@@CODEL i2c_ctr 04E43H 00000H
|
||||
@@CODEL magic 04E43H 00000H
|
||||
@@CODEL i2c_twl 04E43H 00000H
|
||||
@@CODEL led 04E43H 00000H
|
||||
@@CODEL rtc 04E43H 00000H
|
||||
@@CODEL vreg_ctr 04E43H 00000H
|
||||
@@CODEL vreg_twl 04E43H 00000H
|
||||
@@CODEL adc 04E43H 00000H
|
||||
@@CODEL renge 04E43H 00000H
|
||||
@@CODEL accero 04E43H 00000H
|
||||
@@CODEL sw 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@RLINIT led_cam 04E3FH 00000H
|
||||
@@RLINIT led_pow 04E3FH 00000H
|
||||
@@RLINIT @rom 04E3FH 00000H
|
||||
@@CODEL 04E3FH 00000H CSEG
|
||||
@@CODEL pm 04E3FH 00000H
|
||||
@@CODEL i2c_ctr 04E3FH 00000H
|
||||
@@CODEL magic 04E3FH 00000H
|
||||
@@CODEL i2c_twl 04E3FH 00000H
|
||||
@@CODEL led 04E3FH 00000H
|
||||
@@CODEL rtc 04E3FH 00000H
|
||||
@@CODEL vreg_ctr 04E3FH 00000H
|
||||
@@CODEL vreg_twl 04E3FH 00000H
|
||||
@@CODEL adc 04E3FH 00000H
|
||||
@@CODEL renge 04E3FH 00000H
|
||||
@@CODEL accero 04E3FH 00000H
|
||||
@@CODEL sw 04E3FH 00000H
|
||||
@@CODEL task_misc
|
||||
04E43H 00000H
|
||||
@@CODEL task_sys 04E43H 00000H
|
||||
04E3FH 00000H
|
||||
@@CODEL task_sys 04E3FH 00000H
|
||||
@@CODEL pedo_alg_thre_det2
|
||||
04E43H 00000H
|
||||
@@CODEL ini_VECT 04E43H 00000H
|
||||
@@CODEL led_cam 04E43H 00000H
|
||||
@@CODEL led_pow 04E43H 00000H
|
||||
* gap * 04E43H 00001H
|
||||
@@CNSTL 04E44H 0000AH CSEG PAGE64KP
|
||||
@@CNSTL @bcdtob 04E44H 0000AH
|
||||
@@R_INIT 04E4EH 00038H CSEG UNIT64KP
|
||||
@@R_INIT @cstart 04E4EH 00000H
|
||||
@@R_INIT loader 04E4EH 00000H
|
||||
@@R_INIT pm 04E4EH 00002H
|
||||
@@R_INIT i2c_ctr 04E50H 00002H
|
||||
@@R_INIT main 04E52H 00000H
|
||||
@@R_INIT magic 04E52H 00000H
|
||||
@@R_INIT WDT 04E52H 00000H
|
||||
@@R_INIT i2c_mcu 04E52H 00000H
|
||||
@@R_INIT i2c_twl 04E52H 00000H
|
||||
@@R_INIT led 04E52H 00000H
|
||||
@@R_INIT rtc 04E52H 00000H
|
||||
@@R_INIT vreg_ctr 04E52H 00000H
|
||||
@@R_INIT vreg_twl 04E52H 00000H
|
||||
@@R_INIT adc 04E52H 0000CH
|
||||
@@R_INIT renge 04E5EH 00014H
|
||||
@@R_INIT accero 04E72H 00000H
|
||||
04E3FH 00000H
|
||||
@@CODEL ini_VECT 04E3FH 00000H
|
||||
@@CODEL led_cam 04E3FH 00000H
|
||||
@@CODEL led_pow 04E3FH 00000H
|
||||
* gap * 04E3FH 00001H
|
||||
@@CNSTL 04E40H 0000AH CSEG PAGE64KP
|
||||
@@CNSTL @bcdtob 04E40H 0000AH
|
||||
@@R_INIT 04E4AH 00038H CSEG UNIT64KP
|
||||
@@R_INIT @cstart 04E4AH 00000H
|
||||
@@R_INIT loader 04E4AH 00000H
|
||||
@@R_INIT pm 04E4AH 00002H
|
||||
@@R_INIT i2c_ctr 04E4CH 00002H
|
||||
@@R_INIT main 04E4EH 00000H
|
||||
@@R_INIT magic 04E4EH 00000H
|
||||
@@R_INIT WDT 04E4EH 00000H
|
||||
@@R_INIT i2c_mcu 04E4EH 00000H
|
||||
@@R_INIT i2c_twl 04E4EH 00000H
|
||||
@@R_INIT led 04E4EH 00000H
|
||||
@@R_INIT rtc 04E4EH 00000H
|
||||
@@R_INIT vreg_ctr 04E4EH 00000H
|
||||
@@R_INIT vreg_twl 04E4EH 00000H
|
||||
@@R_INIT adc 04E4EH 0000CH
|
||||
@@R_INIT renge 04E5AH 00014H
|
||||
@@R_INIT accero 04E6EH 00000H
|
||||
@@R_INIT self_flash
|
||||
04E72H 00000H
|
||||
@@R_INIT sw 04E72H 00002H
|
||||
04E6EH 00000H
|
||||
@@R_INIT sw 04E6EH 00002H
|
||||
@@R_INIT task_debug
|
||||
04E74H 00000H
|
||||
04E70H 00000H
|
||||
@@R_INIT task_misc
|
||||
04E74H 00000H
|
||||
@@R_INIT task_sys 04E74H 00002H
|
||||
04E70H 00000H
|
||||
@@R_INIT task_sys 04E70H 00002H
|
||||
@@R_INIT pedo_alg_thre_det2
|
||||
04E76H 00006H
|
||||
@@R_INIT ini_VECT 04E7CH 00000H
|
||||
04E72H 00006H
|
||||
@@R_INIT ini_VECT 04E78H 00000H
|
||||
@@R_INIT task_status
|
||||
04E7CH 00002H
|
||||
@@R_INIT led_cam 04E7EH 00002H
|
||||
@@R_INIT led_pow 04E80H 00006H
|
||||
@@R_INIT @rom 04E86H 00000H
|
||||
@@LCODEL 04E86H 00008H CSEG
|
||||
@@LCODEL abs 04E86H 00008H
|
||||
* gap * 04E8EH 00168H
|
||||
04E78H 00002H
|
||||
@@R_INIT led_cam 04E7AH 00002H
|
||||
@@R_INIT led_pow 04E7CH 00006H
|
||||
@@R_INIT @rom 04E82H 00000H
|
||||
@@LCODEL 04E82H 00008H CSEG
|
||||
@@LCODEL abs 04E82H 00008H
|
||||
* gap * 04E8AH 0016CH
|
||||
MGC_TAIL 04FF6H 0000AH CSEG AT
|
||||
MGC_TAIL magic 04FF6H 0000AH
|
||||
|
||||
@ -648,33 +648,33 @@ Direc-file:bsr_mcu.dr
|
||||
@@BITS loader FFE20H.0 00000H.0
|
||||
@@BITS pm FFE20H.0 00001H.0
|
||||
@@BITS i2c_ctr FFE21H.0 00000H.0
|
||||
@@BITS main FFE21H.0 00000H.0
|
||||
@@BITS magic FFE21H.0 00000H.0
|
||||
@@BITS WDT FFE21H.0 00000H.0
|
||||
@@BITS i2c_mcu FFE21H.0 00000H.3
|
||||
@@BITS i2c_twl FFE21H.3 00000H.0
|
||||
@@BITS led FFE21H.3 00000H.4
|
||||
@@BITS rtc FFE21H.7 00000H.3
|
||||
@@BITS vreg_ctr FFE22H.2 00000H.1
|
||||
@@BITS vreg_twl FFE22H.3 00000H.0
|
||||
@@BITS adc FFE22H.3 00000H.4
|
||||
@@BITS renge FFE22H.7 00000H.3
|
||||
@@BITS accero FFE23H.2 00000H.0
|
||||
@@BITS main FFE21H.0 00000H.1
|
||||
@@BITS magic FFE21H.1 00000H.0
|
||||
@@BITS WDT FFE21H.1 00000H.0
|
||||
@@BITS i2c_mcu FFE21H.1 00000H.3
|
||||
@@BITS i2c_twl FFE21H.4 00000H.0
|
||||
@@BITS led FFE21H.4 00000H.4
|
||||
@@BITS rtc FFE22H.0 00000H.3
|
||||
@@BITS vreg_ctr FFE22H.3 00000H.1
|
||||
@@BITS vreg_twl FFE22H.4 00000H.0
|
||||
@@BITS adc FFE22H.4 00000H.4
|
||||
@@BITS renge FFE23H.0 00000H.3
|
||||
@@BITS accero FFE23H.3 00000H.0
|
||||
@@BITS self_flash
|
||||
FFE23H.2 00000H.0
|
||||
@@BITS sw FFE23H.2 00000H.2
|
||||
FFE23H.3 00000H.0
|
||||
@@BITS sw FFE23H.3 00000H.2
|
||||
@@BITS task_debug
|
||||
FFE23H.4 00000H.0
|
||||
FFE23H.5 00000H.0
|
||||
@@BITS task_misc
|
||||
FFE23H.4 00000H.2
|
||||
@@BITS task_sys FFE23H.6 00000H.0
|
||||
FFE23H.5 00000H.2
|
||||
@@BITS task_sys FFE23H.7 00000H.0
|
||||
@@BITS pedo_alg_thre_det2
|
||||
FFE23H.6 00000H.2
|
||||
@@BITS ini_VECT FFE24H.0 00000H.0
|
||||
FFE23H.7 00000H.2
|
||||
@@BITS ini_VECT FFE24H.1 00000H.0
|
||||
@@BITS task_status
|
||||
FFE24H.0 00000H.0
|
||||
@@BITS led_cam FFE24H.0 00000H.1
|
||||
@@BITS led_pow FFE24H.1 00000H.0
|
||||
FFE24H.1 00000H.0
|
||||
@@BITS led_cam FFE24H.1 00000H.1
|
||||
@@BITS led_pow FFE24H.2 00000H.0
|
||||
* gap * FFE25H 000AFH
|
||||
@@SEGREG FFED4H 00004H DSEG AT
|
||||
@@SEGREG @SEGREG FFED4H 00004H
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
|
||||
#define MCU_VER_MAJOR 0x01
|
||||
#define MCU_VER_MINOR 0x37
|
||||
#define MCU_VER_MINOR 0x40
|
||||
|
||||
// ↑改訂の時は↓気をつけないと体験台の生産できないからね!
|
||||
#ifdef _TAIKENDAI_SEISAN_SPECIAL_
|
||||
|
@ -94,8 +94,13 @@
|
||||
|
||||
|
||||
/* FLMD0 control bit */
|
||||
#ifndef _WIN32
|
||||
#define FSL_FLMD0_HIGH {BECTL.7 = 1;}
|
||||
#define FSL_FLMD0_LOW {BECTL.7 = 0;}
|
||||
#else
|
||||
#define FSL_FLMD0_HIGH {BECTL_7 = 1;}
|
||||
#define FSL_FLMD0_LOW {BECTL_7 = 0;}
|
||||
#endif
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------------------------------*/
|
||||
|
Binary file not shown.
@ -6,10 +6,9 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef _MCU_KE3_
|
||||
#pragma interrupt INTIICA int_iic_ctr // CTR‘¤
|
||||
#else
|
||||
// TSはマザボでテレコ、WMは回路図がテレコで結局一致…
|
||||
|
||||
#ifndef _WIN32
|
||||
#pragma interrupt INTIICA1 int_iic_ctr RB1
|
||||
#endif
|
||||
|
||||
@ -233,11 +232,7 @@ void IIC_ctr_Init( void )
|
||||
IICAPR0 = 1; /* set INTIICA high priority */
|
||||
IICAPR1 = 0; /* set INTIICA high priority */
|
||||
|
||||
#ifdef _MODEL_TEG2_
|
||||
P6 &= ~0x3;
|
||||
#else
|
||||
P20 &= ~0x3;
|
||||
#endif
|
||||
|
||||
SVA = IIC_C_SLAVEADDRESS;
|
||||
IICF = 0x01;
|
||||
@ -259,11 +254,7 @@ void IIC_ctr_Init( void )
|
||||
|
||||
IICE = 1;
|
||||
|
||||
#ifdef _MODEL_TEG2_
|
||||
PM6 &= ~0x3; /* set clock pin for IICA */
|
||||
#else
|
||||
PM20 &= ~0x3; /* set clock pin for IICA */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -3,17 +3,18 @@
|
||||
de JHL 藤田@開技
|
||||
'09 Feb -
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
#pragma sfr
|
||||
#pragma di
|
||||
#pragma ei
|
||||
#pragma nop
|
||||
#pragma inline // memcpy()をインライン展開する(の方が小さい!)
|
||||
#endif
|
||||
|
||||
#include "incs_loader.h"
|
||||
#include "i2c_mcu.h"
|
||||
|
||||
|
||||
|
||||
// ========================================================
|
||||
// レジスタのビット名
|
||||
// プリフィックスbだが、一部のビット名がレジスタ名にかぶるため...
|
||||
@ -42,14 +43,13 @@
|
||||
#define TSF0 ( 1 << 6 )
|
||||
|
||||
// SOn
|
||||
#define TAUS_MASK 0b0000101100001011;
|
||||
#define TAUS_MASK 0x0B0B;
|
||||
|
||||
// DMCn
|
||||
#define DRS ( 1 << 6 )
|
||||
|
||||
|
||||
|
||||
|
||||
// ========================================================
|
||||
static void iic_mcu_send_st( );
|
||||
static void iic_mcu_send_re_st( );
|
||||
|
@ -1,13 +1,18 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma sfr /* 特殊機能レジスタ使用 */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
#include "config.h"
|
||||
#ifdef _MCU_KE3_
|
||||
#else
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma interrupt INTIICA0 int_iic_twl RB2
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
|
@ -1,19 +1,20 @@
|
||||
#ifndef _WIN32
|
||||
#pragma SFR
|
||||
#pragma di
|
||||
#pragma ei
|
||||
#pragma nop
|
||||
#pragma stop
|
||||
#pragma halt
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#pragma section @@CODE ROM_CODE
|
||||
//#pragma section @@CNST ROM_CNST
|
||||
#endif
|
||||
|
||||
# ifdef _WIN32
|
||||
#ifdef _WIN32
|
||||
// VCの赤線をどうにかする
|
||||
#include "sim/simOnWin.h"
|
||||
|
||||
# endif
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#ifndef _WIN32
|
||||
#pragma SFR
|
||||
#pragma di
|
||||
#pragma ei
|
||||
@ -13,6 +14,12 @@
|
||||
//#pragma section @@CNST FSL_CNST // セットしてくれない
|
||||
#pragma section @@CNSTL LDR_CNSL
|
||||
|
||||
#endif
|
||||
|
||||
# ifdef _WIN32
|
||||
// VCの赤線をどうにかする
|
||||
#include "sim/simOnWin.h"
|
||||
# endif
|
||||
|
||||
|
||||
//=========================================================
|
||||
|
@ -1,8 +1,12 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma nop
|
||||
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
//#pragma interrupt INTWDTI fn_intwdti // 未使用
|
||||
//#pragma interrupt INTLVI fn_intlvi // 未使用
|
||||
|
||||
@ -48,19 +52,10 @@
|
||||
|
||||
|
||||
/*
|
||||
それぞれの .c へ
|
||||
#ifdef _MCU_KE3_
|
||||
#pragma interrupt INTIICA int_iic_ctr RB1 // CTR側
|
||||
#else
|
||||
// TSはマザボでテレコ、WMは回路図がテレコで結局一致…
|
||||
#pragma interrupt INTIICA1 int_iic_ctr RB1
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _MCU_KE3_
|
||||
#else
|
||||
#pragma interrupt INTIICA0 int_iic_twl RB2
|
||||
#endif
|
||||
*/
|
||||
|
||||
//#pragma interrupt INTTM00 fn_inttm00
|
||||
@ -79,6 +74,7 @@
|
||||
//#pragma interrupt INTTM06 fn_inttm06
|
||||
//#pragma interrupt INTTM07 fn_inttm07
|
||||
|
||||
|
||||
//#define _irq_debug_
|
||||
/****************************************************/
|
||||
/* 未使用時のダミー関数定義 */
|
||||
@ -379,4 +375,9 @@ __interrupt void intp5( )
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
|
||||
#include "sim/sim_interrupt_decrare.c"
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,8 +1,11 @@
|
||||
/* ========================================================
|
||||
LED.c
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma sfr
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
#include "led.h"
|
||||
@ -119,14 +122,14 @@ void LED_init( )
|
||||
1 << BIT_CKS0 | 0 << BIT_CCS0 | 0 << BIT_MASTER0 | 4 << BIT_STS0 | 0
|
||||
<< BIT_CIS0 | 4 << BIT_MD123 | 1 << BIT_MD0;
|
||||
ISC = 0;
|
||||
TOM0 = 0b0000000011111110; // 出力モード。4はPWM出力しないが1にしないとTO5以降にクロックが届かない
|
||||
TOM0 = 0x00FE; // 出力モード。4はPWM出力しないが1にしないとTO5以降にクロックが届かない
|
||||
|
||||
TOL0 = 0b0000000000000000; // 出力を反転させるかフラグ
|
||||
TOL0 = 0x0000; // 出力を反転させるかフラグ
|
||||
|
||||
TO0 = 0; // タイマー動作中で、タイマー出力にしてないときのピンのラッチ。タイマー出力を使わないなら0
|
||||
TOE0 = 0b0000000011101110; // TOxをタイマーモジュールが制御?
|
||||
TO0 = 0x0000; // タイマー動作中で、タイマー出力にしてないときのピンのラッチ。タイマー出力を使わないなら0
|
||||
TOE0 = 0x00EE; // TOxをタイマーモジュールが制御?
|
||||
|
||||
TS0 = 0b0000000011101111; // 動作開始
|
||||
TS0 = 0x00EF; // 動作開始
|
||||
|
||||
TDR00 = LED_BRIGHT_MAX - 1; // ŽüŠú 10bit
|
||||
|
||||
@ -151,8 +154,8 @@ void LED_init( )
|
||||
|
||||
void LED_stop( )
|
||||
{
|
||||
TT0 = 0b0000000011101111; // 一斉停止(しないとだめ)
|
||||
TOE0 = 0b0000000000000000; // TOxをタイマーモジュールが制御?(GPIOになる)
|
||||
TT0 = 0x00EF; // 一斉停止(しないとだめ)
|
||||
TOE0 = 0x0000; // TOxをタイマーモジュールが制御?(GPIOになる)
|
||||
TAU0EN = 0;
|
||||
LED_pow_red = 0;
|
||||
LED_CAM = 0;
|
||||
|
@ -17,9 +17,13 @@
|
||||
#define LED_duty_notify_blu TDR02
|
||||
|
||||
// これらはduty変えられません
|
||||
#ifndef _WIN32
|
||||
#define LED_pow_red P4.2
|
||||
#define LED_CAM P7.5
|
||||
|
||||
#else
|
||||
#define LED_pow_red mcuRegP[ _P4_2 ]
|
||||
#define LED_CAM mcuRegP[ _P7_5 ]
|
||||
#endif
|
||||
|
||||
#define NOTIFY_LED_TERM 32
|
||||
|
||||
|
@ -3,8 +3,12 @@
|
||||
\n BLINK,*_PLUSE の時は、1周期分は必ずその状態になります。
|
||||
\n その間に OFF→BLINK などされると、OFFが無視されます。
|
||||
*********************************************************/
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma sfr
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
#include "led.h"
|
||||
|
||||
|
@ -20,8 +20,12 @@ enum LED_ILUM_MODE{
|
||||
LED_POW_ILM_CEOFF
|
||||
};
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma sfr
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
#include "led.h"
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
ホストの通信と、自己書き換え、ファームのチェックを行う。
|
||||
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma di
|
||||
#pragma ei
|
||||
@ -15,7 +17,7 @@
|
||||
#pragma halt
|
||||
#pragma opc
|
||||
|
||||
|
||||
#endif
|
||||
#include "incs_loader.h"
|
||||
|
||||
#include <fsl.h>
|
||||
@ -206,15 +208,15 @@ void hdwinit( void )
|
||||
{ // スタートアップルーチンが勝手に呼びます
|
||||
DI( ); /* マスタ割り込み禁止 */
|
||||
|
||||
CMC = 0b00010000; /* X1発振せず(入力ポート)、XT1使用、超低電力発振は不安定に付き通常で */
|
||||
CSC = 0b10000000; /* X1発振なし、XT1発振あり、高速内蔵発振動作 */
|
||||
CMC = bits8(0,0,0,1, 0,0,0,0); /* X1発振せず(入力ポート)、XT1使用、超低電力発振は不安定に付き通常で */
|
||||
CSC = bits8(1,0,0,0, 0,0,0,0); /* X1発振なし、XT1発振あり、高速内蔵発振動作 */
|
||||
OSMC = 0x01; /* 隠しレジスタ */
|
||||
CKC = 0b00001000; /* CPU/周辺クロック=fMAIN、fMAIN=fMX、fCLK=fMX */
|
||||
CKC = bits8(0,0,0,0, 1,0,0,0); /* CPU/周辺クロック=fMAIN、fMAIN=fMX、fCLK=fMX */
|
||||
|
||||
/*--- 低電圧検出回路の設定 ---*/
|
||||
/* リセット解除時のデフォルトは、オプション・バイトにて指定される */
|
||||
LVIS = 0b00000000; /* VLVI = 4.22±0.1V */
|
||||
LVIM = 0b00000000; /* LVI動作禁止 */
|
||||
LVIS = 0x00; /* VLVI = 4.22±0.1V */
|
||||
LVIM = 0x00; /* LVI動作禁止 */
|
||||
/* 電源電圧(VDD)<検出電圧(VLVI)時に割込発生 */
|
||||
/* 電源電圧(VDD)≧検出電圧<VLVI)、または動作禁止時に低電圧検出 */
|
||||
}
|
||||
@ -229,33 +231,33 @@ void hdwinit2( )
|
||||
// ポート設定 //
|
||||
if( system_status.reboot ) // リセットピンだけはすぐにセットする
|
||||
{
|
||||
P0 = 0b00000011;
|
||||
P3 = 0b00000111; // 簡易I2Cは出力ラッチを1にする
|
||||
P14 = 0b00000000;
|
||||
P0 = bits8(0,0,0,0, 0,0,1,1);
|
||||
P3 = bits8(0,0,0,0, 0,1,1,1); // 簡易I2Cは出力ラッチを1にする
|
||||
P14 = bits8(0,0,0,0, 0,0,0,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
P0 = 0b00000000;
|
||||
P3 = 0b00000110; // 簡易I2Cは出力ラッチを1にする
|
||||
P14 = 0b00000000;
|
||||
P0 = bits8(0,0,0,0, 0,0,0,0);
|
||||
P3 = bits8(0,0,0,0, 0,1,1,0); // 簡易I2Cは出力ラッチを1にする
|
||||
P14 = bits8(0,0,0,0, 0,0,0,0);
|
||||
}
|
||||
|
||||
PM0 = 0b11111111; // BSRマイコンでは、reset1は監視のみになる。
|
||||
PM3 = 0b11110000; // P31,32は簡易I2C
|
||||
PM14 = 0b11111100; // debugger[1] とりあえず出力
|
||||
PM0 = bits8(1,1,1,1, 1,1,1,1); // BSRマイコンでは、reset1は監視のみになる。
|
||||
PM3 = bits8(1,1,1,1, 0,0,0,0); // P31,32は簡易I2C
|
||||
PM14 = bits8(1,1,1,1,1,1,0,0); // debugger[1] とりあえず出力
|
||||
|
||||
if( !system_status.reboot ) // リセットピンだけはすぐにセットする
|
||||
{
|
||||
P20 = 0b00000000;
|
||||
P20 = bits8(0,0,0,0, 0,0,0,0);
|
||||
|
||||
P1 = 0b11000000;
|
||||
P2 = 0b00000000;
|
||||
P4 = 0b00001000;
|
||||
P5 = 0b00000000;
|
||||
P6 = 0b00000000;
|
||||
P7 = 0b01000000;
|
||||
P12 = 0b00000000;
|
||||
P15 = 0b00000000;
|
||||
P1 = bits8(1,1,0,0, 0,0,0,0);
|
||||
P2 = bits8(0,0,0,0, 0,0,0,0);
|
||||
P4 = bits8(0,0,0,0, 1,0,0,0);
|
||||
P5 = bits8(0,0,0,0, 0,0,0,0);
|
||||
P6 = bits8(0,0,0,0, 0,0,0,0);
|
||||
P7 = bits8(0,1,0,0, 0,0,0,0);
|
||||
P12 = bits8(0,0,0,0, 0,0,0,0);
|
||||
P15 = bits8(0,0,0,0, 0,0,0,0);
|
||||
|
||||
/*--- タイマ・アレイ・ユニットの動作停止 ---*/
|
||||
TAU0EN = 0; /* タイマ・アレイ・ユニットへのクロック供給停止 */
|
||||
@ -264,7 +266,7 @@ void hdwinit2( )
|
||||
/*--- RTCの動作停止 ---*/
|
||||
// 別途初期化関数
|
||||
// RTCEN = 0; /* RTCへのクロック供給停止 */
|
||||
// RTCC0 = 0b00000000; /* カウンタ動作停止 */
|
||||
// RTCC0 = bits8(00000000); /* カウンタ動作停止 */
|
||||
}
|
||||
|
||||
/*--- 割り込み設定 ---------*/
|
||||
@ -276,36 +278,36 @@ void hdwinit2( )
|
||||
MK2 = 0xFFFF;
|
||||
|
||||
|
||||
PM20 = 0b11111100;
|
||||
PM1 = 0b00000000;
|
||||
PM2 = 0b11101001;
|
||||
PM20 = bits8(1,1,1,1,1,1,0,0);
|
||||
PM1 = bits8(0,0,0,0,0,0,0,0);
|
||||
PM2 = bits8(1,1,1,0,1,0,0,1);
|
||||
|
||||
PM4 = 0b11110011;
|
||||
PM5 = 0b11110010;
|
||||
PM6 = 0b11111100; // I2CのラインがL出力になってしまうが、システムがOFFなのでかまわない
|
||||
PM7 = 0b01011111;
|
||||
PM12 = 0b11111111; // 32kHzクロックのピン設定はどっちでもよい
|
||||
PM15 = 0b11111111;
|
||||
PM4 = bits8(1,1,1,1, 0,0,1,1);
|
||||
PM5 = bits8(1,1,1,1, 0,0,1,0);
|
||||
PM6 = bits8(1,1,1,1, 1,1,0,0); // I2CのラインがL出力になってしまうが、システムがOFFなのでかまわない
|
||||
PM7 = bits8(0,1,0,1, 1,1,1,1);
|
||||
PM12 = bits8(1,1,1,1, 1,1,1,1); // 32kHzクロックのピン設定はどっちでもよい
|
||||
PM15 = bits8(1,1,1,1, 1,1,1,1);
|
||||
|
||||
PU20 = 0b00010001;
|
||||
PU0 = 0b00000000; // バッテリ認証後にそれぞれセット
|
||||
PU1 = 0b00000000;
|
||||
PU3 = 0b00000000; // 外部でプルアップしないと具合が悪い。CPUがプルアップする
|
||||
PU4 = 0b00000000; // 外部でプルアップしてほしいtool0,1)
|
||||
PU5 = 0b00000010;
|
||||
PU7 = 0b00011001;
|
||||
PU12 = 0b00000000;
|
||||
PU14 = 0b00000000;
|
||||
PU20 = bits8(0,0,0,1, 0,0,0,1);
|
||||
PU0 = bits8(0,0,0,0, 0,0,0,0); // バッテリ認証後にそれぞれセット
|
||||
PU1 = bits8(0,0,0,0, 0,0,0,0);
|
||||
PU3 = bits8(0,0,0,0, 0,0,0,0); // 外部でプルアップしないと具合が悪い。CPUがプルアップする
|
||||
PU4 = bits8(0,0,0,0, 0,0,0,0); // 外部でプルアップしてほしいtool0,1)
|
||||
PU5 = bits8(0,0,0,0, 0,0,1,0);
|
||||
PU7 = bits8(0,0,0,1, 1,0,0,1);
|
||||
PU12 = bits8(0,0,0,0, 0,0,0,0);
|
||||
PU14 = bits8(0,0,0,0, 0,0,0,0);
|
||||
|
||||
// ポート入力モード・レジスタ設定 /////////////////////
|
||||
// [0:通常入力バッファ 1:TTL入力バッファ]
|
||||
PIM3 = 0b00000000;
|
||||
PIM7 = 0b00000000;
|
||||
PIM3 = bits8(0,0,0,0, 0,0,0,0);
|
||||
PIM7 = bits8(0,0,0,0, 0,0,0,0);
|
||||
|
||||
// ポート出力モード・レジスタ設定
|
||||
// [0:通常出力モード 1:N-chオープン・ドレーン出力]
|
||||
POM3 = 0b00000110;
|
||||
POM7 = 0b00000000;
|
||||
POM3 = bits8(0,0,0,0, 0,1,1,0);
|
||||
POM7 = bits8(0,0,0,0, 0,0,0,0);
|
||||
|
||||
/* 割り込み優先順位、全て低位(LV3) */
|
||||
PR00 = 0xFFFF;
|
||||
@ -316,17 +318,17 @@ void hdwinit2( )
|
||||
PR12L = 0xFF;
|
||||
|
||||
/*--- 外部割込の有効エッジ設定 ---*/
|
||||
EGP0 = 0b00110001;
|
||||
EGN0 = 0b01110000;
|
||||
EGP2 = 0b00001010;
|
||||
EGN2 = 0b00000000;
|
||||
EGP0 = bits8(0,0,1,1, 0,0,0,1);
|
||||
EGN0 = bits8(0,1,1,1, 0,0,0,0);
|
||||
EGP2 = bits8(0,0,0,0, 1,0,1,0);
|
||||
EGN2 = bits8(0,0,0,0, 0,0,0,0);
|
||||
|
||||
/*--- キー割り込み設定 ---*/
|
||||
KRM = 0b00000000; /* 全キー割り込み信号を検出しない */
|
||||
KRM = bits8(0,0,0,0, 0,0,0,0); /* 全キー割り込み信号を検出しない */
|
||||
|
||||
/*--- ADCの動作停止 ---*/
|
||||
ADCEN = 0; /* ADCへのクロック供給停止 */
|
||||
ADM = 0b00000000; /* 変換動作停止 */
|
||||
ADM = bits8(0,0,0,0, 0,0,0,0); /* 変換動作停止 */
|
||||
|
||||
/*--- シリアル・アレイ・ユニットの動作停止 ---*/
|
||||
SAU0EN = 0; /* シリアル・アレイ・ユニット0へのクロック供給停止 */
|
||||
@ -342,12 +344,12 @@ void hdwinit2( )
|
||||
IICCTL01 = 0x00; // IICA1動作停止
|
||||
|
||||
/*--- DMAの動作停止 ---*/
|
||||
DRC0 = 0b00000000; /* DMAチャネル0の動作禁止 */
|
||||
DRC1 = 0b00000000; /* DMAチャネル1の動作禁止 */
|
||||
DRC0 = bits8(0,0,0,0, 0,0,0,0); /* DMAチャネル0の動作禁止 */
|
||||
DRC1 = bits8(0,0,0,0, 0,0,0,0); /* DMAチャネル1の動作禁止 */
|
||||
|
||||
/*--- クロック出力/ブザー出力停止 ---*/
|
||||
CKS0 = 0b00000000;
|
||||
CKS1 = 0b00000000;
|
||||
CKS0 = bits8(0,0,0,0, 0,0,0,0);
|
||||
CKS1 = bits8(0,0,0,0, 0,0,0,0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
#include "config.h"
|
||||
#include "magic.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
// V0.5 (ƒjƒZ0.1‰ü)
|
||||
#pragma section @@CNSTL MGC_LOAD AT 0x0FF6
|
||||
__far const unsigned char MGC_LOADd[] = __TIME__;
|
||||
@ -22,51 +24,4 @@ const unsigned char MGC_HEADd[] = __TIME__;
|
||||
#pragma section @@CNST MGC_TAIL AT 0x4FF6
|
||||
const unsigned char MGC_TAILd[] = __TIME__;
|
||||
|
||||
|
||||
// 0Dまでこれを使用
|
||||
// #define SIG { 0x30, 0x38, 0x3A, 0x34, 0x35, 0x3A, 0x33, 0x39, 0x00, 0x00 }
|
||||
|
||||
|
||||
// あーあ。
|
||||
/*
|
||||
// V0.5 (ニセ0.1改)
|
||||
#define SIG { 0x30, 0x38, 0x3A, 0x34, 0x35, 0x3A, 0x33, 0x39, 0x00, 0x00 }
|
||||
*/
|
||||
|
||||
/*
|
||||
メモ
|
||||
(未使用)
|
||||
V0.2の署名 31 34 3A 33 35 3A 33 35 00 00
|
||||
#define SIG { 0x31, 0x34, 0x3A, 0x33, 0x35, 0x3A, 0x33, 0x35, 0x00, 0x00 };
|
||||
|
||||
ctr_wm0
|
||||
31373A30353A32310000
|
||||
#define SIG { 0x31, 0x37, 0x3A, 0x30, 0x35, 0x3A, 0x32, 0x31, 0x00, 0x00 };
|
||||
|
||||
ctr_wm0_2
|
||||
31303A34393A35390000
|
||||
#define SIG { 0x31, 0x30, 0x3A, 0x34, 0x39, 0x3A, 0x35, 0x39, 0x00, 0x00 };
|
||||
|
||||
bsr_V0.2_090828_WM2
|
||||
31323A35393A32350000
|
||||
#define SIG { 0x31, 0x32, 0x3A, 0x35, 0x39, 0x3A, 0x32, 0x35, 0x00, 0x00 };
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
// V0.1の署名(日付) 30 38 3A 34 35 3A 33 39 00 00
|
||||
#pragma section @@CNSTL MGC_LOAD AT 0x0FF6
|
||||
__far static const unsigned char MGC_LOAD[] =
|
||||
#define SIG { 0x30, 0x38, 0x3A, 0x34, 0x35, 0x3A, 0x33, 0x39, 0x00, 0x00 }
|
||||
|
||||
|
||||
// V0.4以降
|
||||
#pragma section @@CNSTL MGC_LOAD AT 0x0FF6
|
||||
__far const unsigned char MGC_LOAD[] = __TIME__;
|
||||
|
||||
#pragma section @@CNST MGC_MIMI AT 0x2100
|
||||
const unsigned char MGC_HEAD[] = __TIME__;
|
||||
|
||||
#pragma section @@CNST MGC_TAIL AT 0x47F6
|
||||
const unsigned char MGC_TAIL[] = __TIME__;
|
||||
*/
|
||||
#endif
|
||||
|
@ -3,10 +3,14 @@
|
||||
3軸加速度のリアルタイムデータから、ベクトルのノルムを出し、
|
||||
閾値を超える時間、間隔、ノルムの大きさで閾値を切り替えるなど
|
||||
********************************************************* */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma mul
|
||||
#pragma div
|
||||
#pragma bcd
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
|
@ -4,8 +4,12 @@
|
||||
nintendo
|
||||
'08 Dec
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma nop
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
#include "adc.h"
|
||||
#include "led.h"
|
||||
@ -793,7 +797,7 @@ void PM_LCD_off()
|
||||
u8 tot;
|
||||
|
||||
PM_BL_set( REG_BIT_CMD_BL_U_OFF | REG_BIT_CMD_BL_L_OFF );
|
||||
vreg_ctr[VREG_C_STATUS] &= 0b10011111;
|
||||
vreg_ctr[VREG_C_STATUS] &= bits8(1,0,0,1, 1,1,1,1);
|
||||
|
||||
if( (( REG_BIT_BL_U_OFF | REG_BIT_BL_L_OFF ) & ~vreg_ctr[ VREG_C_IRQ_MASK3 ] ) != 0 )
|
||||
{
|
||||
@ -883,8 +887,8 @@ err PM_BL_set( u8 dat )
|
||||
// 更新してしまう。
|
||||
#endif
|
||||
// PMICのBLのビットと、MCUのSTATUSレジスタのビット位置が逆なため入れ替え
|
||||
vreg_ctr[VREG_C_STATUS] = (( vreg_ctr[VREG_C_STATUS] & 0b10011111 )
|
||||
| ( (( blset << 6 ) | ( blset << 4 )) & 0b01100000 ));
|
||||
vreg_ctr[VREG_C_STATUS] = (( vreg_ctr[VREG_C_STATUS] & bits8(1,0,0,1, 1,1,1,1) )
|
||||
| ( (( blset << 6 ) | ( blset << 4 )) & bits8(0,1,1,0, 0,0,0,0) ));
|
||||
|
||||
// 割り込み
|
||||
/// 複数ビットまとめて行うので、いつもの関数使用不可
|
||||
|
@ -23,8 +23,11 @@
|
||||
|
||||
|
||||
//=========================================================
|
||||
#ifdef _WIN32
|
||||
#define LED_CHARGE mcuRegP[ _P2_4 ]
|
||||
#else
|
||||
#define LED_CHARGE P2.4
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
//=========================================================
|
||||
@ -111,11 +114,11 @@ enum NTR_PM_BT_STATUS{
|
||||
|
||||
|
||||
// 0x05 pow save
|
||||
#define PM_REG_BIT_VDD1P_1R15 0b00000000
|
||||
#define PM_REG_BIT_VDD1P_1R05 0b00001000
|
||||
#define PM_REG_BIT_VDD1P_0R90 0b00100000
|
||||
#define PM_REG_BIT_VDD_AUTO 0b00000111
|
||||
#define PM_REG_BIT_VDD_PWM 0b00000000
|
||||
#define PM_REG_BIT_VDD1P_1R15 bits8(0,0,0,0, 0,0,0,0)
|
||||
#define PM_REG_BIT_VDD1P_1R05 bits8(0,0,0,0, 1,0,0,0)
|
||||
#define PM_REG_BIT_VDD1P_0R90 bits8(0,0,1,0, 0,0,0,0)
|
||||
#define PM_REG_BIT_VDD_AUTO bits8(0,0,0,0, 0,1,1,1)
|
||||
#define PM_REG_BIT_VDD_PWM bits8(0,0,0,0, 0,0,0,0)
|
||||
|
||||
|
||||
#define DELAY_PM_TW_PWUP 16 + 2
|
||||
|
@ -1,9 +1,18 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma section @@CODE ROM_CODE
|
||||
#pragma nop
|
||||
#pragma ei
|
||||
#pragma di
|
||||
#pragma sfr
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
typedef unsigned char bit;
|
||||
typedef unsigned char u8;
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
タスクシステム?
|
||||
なるほど、iTRONにはコンフィギュレータがあるはずだ。
|
||||
@ -17,6 +26,9 @@
|
||||
#include "..\config.h"
|
||||
#include "..\user_define.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "../sim/simOnWin.h"
|
||||
#endif
|
||||
|
||||
//#define _renge_test_
|
||||
|
||||
|
@ -1,9 +1,12 @@
|
||||
/* ========================================================
|
||||
RTC
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma sfr
|
||||
#pragma inline
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
|
||||
@ -28,9 +31,9 @@ void RTC_init( void )
|
||||
RTCEN = 1; // モジュールON
|
||||
|
||||
// RTC設定
|
||||
RTCC0 = 0b00001000; /* 動作停止、24時間制、32k出力「まだなし」、定周期割り込みなし */
|
||||
RTCC1 = 0b11000000; /* アラーム割り込み有効&動作開始 */
|
||||
RTCC2 = 0b10000000; /* インターバル:32k/2^6=2ms、RTCDIV出力なし */
|
||||
RTCC0 = bits8(0,0,0,0, 1,0,0,0); /* 動作停止、24時間制、32k出力「まだなし」、定周期割り込みなし */
|
||||
RTCC1 = bits8(1,1,0,0, 0,0,0,0); /* アラーム割り込み有効&動作開始 */
|
||||
RTCC2 = bits8(1,0,0,0, 0,0,0,0); /* インターバル:32k/2^6=2ms、RTCDIV出力なし */
|
||||
|
||||
HOUR = 0x00;
|
||||
MIN = 0x00;
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* ========================================================
|
||||
自己アップデータ
|
||||
======================================================== */
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma di
|
||||
#pragma ei
|
||||
@ -8,6 +10,7 @@
|
||||
#pragma stop
|
||||
#pragma halt
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs_loader.h"
|
||||
|
||||
@ -66,7 +69,13 @@ const u8 fsl_low_voltage_u08 = 1;
|
||||
#define WTIM WTIM1
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _WIN32
|
||||
#define LED_POW1 P1.5
|
||||
#define LED_PM_POW1 PM1.5
|
||||
#else
|
||||
#define LED_POW1 mcuRegP[ _P1_5 ]
|
||||
#define LED_PM_POW1 mcuRegPM[ _P1_5 ]
|
||||
#endif
|
||||
|
||||
// ========================================================
|
||||
static void FSL_Open( void );
|
||||
@ -259,7 +268,7 @@ void firm_update( )
|
||||
void firm_restore( )
|
||||
{
|
||||
DBG_LED_on;
|
||||
PM1.5 = 0;
|
||||
LED_PM_POW1 = 0;
|
||||
|
||||
// バックアップは正常? //
|
||||
{
|
||||
@ -298,7 +307,7 @@ void firm_restore( )
|
||||
{
|
||||
// 赤LED ピコピコ
|
||||
comp++;
|
||||
P1.5 = ( comp == 1 || comp == 3 )? 1: 0;
|
||||
LED_POW1 = ( comp == 1 || comp == 3 )? 1: 0;
|
||||
if( comp == 8 )
|
||||
{
|
||||
comp = 0;
|
||||
@ -345,8 +354,8 @@ void firm_restore( )
|
||||
MK2L = 0xFF;
|
||||
|
||||
// PU5 そのまま
|
||||
PU7 = 0b00001000; // PWSWI
|
||||
PU20 = 0x00; // SW_HOME ’âŽ~
|
||||
PU7 = bits8(0,0,0,0, 1,0,0,0); // PWSWI
|
||||
PU20 = bits8(0,0,0,0, 0,0,0,0);; // SW_HOME ’âŽ~
|
||||
|
||||
STOP( );
|
||||
|
||||
@ -412,9 +421,9 @@ static void FSL_Open( void )
|
||||
MK1 = 0xFFFF;
|
||||
MK2 = 0xFFFF;
|
||||
/*
|
||||
LVIM = 0b00000010;
|
||||
LVIS = 0x08;
|
||||
LVIM = 0b10000010;
|
||||
LVIM = bits8(0,0,0,0, 0,0,1,0);
|
||||
LVIS = bits8(0,0,0,0, 1,0,0,0);
|
||||
LVIM = bits8(1,0,0,0, 0,0,1,0);
|
||||
*/
|
||||
FSL_FLMD0_HIGH; // フラッシュ書き替え許可
|
||||
}
|
||||
@ -574,13 +583,13 @@ void alert( u8 num )
|
||||
while(1)
|
||||
{
|
||||
WDT_Restart();
|
||||
P1.5 = 1;
|
||||
LED_POW1 = 1;
|
||||
for( i = 0; i < num; i++ )
|
||||
{
|
||||
DBG_LED_on;
|
||||
DBG_LED_off;
|
||||
}
|
||||
P1.5 = 0;
|
||||
LED_POW1 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -592,8 +601,8 @@ void led_print( u8 num )
|
||||
DBG_LED_on;
|
||||
for( i = 0; i < num; i++ )
|
||||
{
|
||||
P1.5 = 1;
|
||||
P1.5 = 0;
|
||||
LED_POW1 = 1;
|
||||
LED_POW1 = 0;
|
||||
}
|
||||
DBG_LED_off;
|
||||
}
|
||||
|
194
branches/sim/sim/sfrAlias.h
Normal file
194
branches/sim/sim/sfrAlias.h
Normal file
@ -0,0 +1,194 @@
|
||||
#ifndef _sfrAlias_
|
||||
#define _sfrAlias_
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#ifdef _debug_led_
|
||||
# define DBG_LED_on { mcuRegPM[ _P2_1 ] = 0; mcuRegP[ _P2_1 ] = 1; }
|
||||
# define DBG_LED_off { mcuRegP[ _P2_1 ] = 0; }
|
||||
# define DBG_LED_toggle ( mcuRegP[ _P2_1 ] ^= 1 )
|
||||
# define DBG_LED2_on { mcuRegPM[ _P2_2 ] = 0; mcuRegP[ _P2_2 ] = 1; }
|
||||
# define DBG_LED2_off { mcuRegP[ _P2_2 ] = 0; }
|
||||
# define DBG_LED2_toggle ( mcuRegP[ _P2_2 ] ^= 1 )
|
||||
|
||||
#else
|
||||
# define DBG_LED_on ;
|
||||
# define DBG_LED_off ;
|
||||
# define DBG_LED_toggle ;
|
||||
# define DBG_LED2_on ;
|
||||
# define DBG_LED2_off ;
|
||||
# define DBG_LED2_toggle ;
|
||||
#endif
|
||||
|
||||
#ifdef _PMIC_CTR_
|
||||
# define SLP_ACK mcuRegP[ _P7_7 ]
|
||||
#endif
|
||||
|
||||
|
||||
#define IIC_SLA_CODEC 0xA4
|
||||
#define IIC_SLA_ACCEL 0x30 // ST LIS331DLH
|
||||
|
||||
|
||||
// PMxは0で出力モード
|
||||
|
||||
// SoC
|
||||
#define IRQ0_ast { mcuRegP[ _P7_6 ] = 0; mcuRegPM[ _P7_6 ] = 0; }
|
||||
#define IRQ0_neg { mcuRegP[ _P7_6 ] = 1; }
|
||||
#define IRQ0_enable { mcuRegPM[ _P7_6 ] = 0; }
|
||||
#define IRQ0_disable { mcuRegPM[ _P7_6 ] = 1; }
|
||||
#define IRQ0 ( mcuRegP[ _P7_6 ] )
|
||||
|
||||
// ↓誤代入防止
|
||||
#define RESET1_n ( mcuRegP[ _P0_0 ] )
|
||||
|
||||
#if 0 // PM_RESET1~を使う
|
||||
#define RESET1_ast { mcuRegP[ _P0_0 ] = 0; mcuRegPM[ _P0_0 ] = 0; }
|
||||
#define RESET1_neg { mcuRegPM[ _P0_0 ] = 1; }
|
||||
#endif
|
||||
|
||||
#define RESET2_ast { mcuRegP[ _P0_1 ] = 0; mcuRegPM[ _P0_1 ] = 0; }
|
||||
#define RESET2_neg { mcuRegPM[ _P0_1 ] = 1; }
|
||||
|
||||
#define SLP_REQ mcuRegP[ _P12_0 ]
|
||||
|
||||
// CTR,SPFL,まだ見ぬ派生機識別
|
||||
#define DEV_DET ( P12 & 0x00000110 )
|
||||
#define DEV_CTR ( 0 << 1 )
|
||||
#define DEV_SPFL ( 1 << 1 )
|
||||
#define DEV_SHRIMP ( 2 << 1 )
|
||||
#define DEV_RSV2 ( 3 << 1 )
|
||||
|
||||
// FCRAM
|
||||
#define FCRAM_RST mcuRegP[ _P3_0 ]
|
||||
#define FCRAM_RST_ast { mcuRegP[ _P3_0 ] = 0; }
|
||||
#define FCRAM_RST_neg { mcuRegP[ _P3_0 ] = 1; }
|
||||
|
||||
// CODEC
|
||||
#define PM_IRQ_n mcuRegP[ _P7_2 ]
|
||||
// INTP6
|
||||
|
||||
// PM
|
||||
#define PM_EXTDC_n mcuRegP[ _P7_0 ]
|
||||
// INTP7
|
||||
//#define BT_TEMP mcuRegP[ _P15_0 ]
|
||||
// ANI8
|
||||
//#define BT_DET mcuRegP[ _P15_1 ]
|
||||
// ANI9
|
||||
#define BT_DET_P mcuRegP[ _P1_6 ]
|
||||
#define BT_TEMP_P mcuRegP[ _P1_7 ]
|
||||
|
||||
|
||||
// SPFLのアモルファスLCDで必要な±15Vの電源。
|
||||
#define SPFL_LCD_AMOL_HV_CONT mcuRegP[ _P20_2 ]
|
||||
|
||||
|
||||
// 充電せよ(out)
|
||||
// 負論理です。注意。
|
||||
#define BT_CHG_ENABLE() ( mcuRegP[ _P4_3 ] = 0 )
|
||||
#define BT_CHG_DISABLE() ( mcuRegP[ _P4_3 ] = 1 )
|
||||
#define BT_CHG_Ena_n ( mcuRegP[ _P4_3 ] )
|
||||
|
||||
// 充電中(in)
|
||||
#define BT_IN_CHG_n mcuRegP[ _P5_1 ]
|
||||
#define PU_BT_IN_CHG_n mcuRegPU[ _P5_1 ]
|
||||
|
||||
#define SW_WIFI_n mcuRegP[ _P7_4 ]
|
||||
#define PM_SW_WIFI_n mcuRegPM[ _P7_4 ]
|
||||
// KR4
|
||||
#define SW_POW_n mcuRegP[ _P7_3 ]
|
||||
// KR3
|
||||
#define SW_SEL_n mcuRegP[ _P2_3 ]
|
||||
#define PM_SW_SEL_n mcuRegPM[ _P2_3 ]
|
||||
//#define VOL mcuRegP[ _P2_7 ]
|
||||
// ANI7
|
||||
|
||||
#define SW_HOME_n_JIKKI mcuRegP[ _P20_4 ]
|
||||
#define PM_SW_HOME_n_JIKKI mcuRegPM[ _P20_4 ]
|
||||
#define PU_SW_HOME_n_JIKKI mcuRegPU[ _P20_4 ]
|
||||
// INTP22
|
||||
#define SW_HOME_n_TSBOARD mcuRegP[ _P2_0 ]
|
||||
|
||||
// WiFi
|
||||
#define WL_TX mcuRegP[ _P20_3 ] // INTP21
|
||||
#define PM_WL_TX mcuRegPM[ _P20_3 ] // INTP21
|
||||
|
||||
//#define LED_CAM mcuRegP[ _P1_0 ] // TO02
|
||||
//#define LED_WIFI mcuRegP[ _P1_1 ] // TO03
|
||||
//#define LED_NOTIFY mcuRegP[ _P1_3 ] // TO05
|
||||
//#define LED_3D mcuRegP[ _P5_2 ] // SLTO ← TO01
|
||||
//#define LED_POW2 mcuRegP[ _P1_4 ] // TO06 ( 青 )
|
||||
//#define LED_POW1 mcuRegP[ _P1_5 ] // TO07 ( 赤 )
|
||||
//#define LED_CHARGE mcuRegP[ _P2_4 ]
|
||||
|
||||
|
||||
#ifdef _MODEL_CTR_
|
||||
// mcuRegP[ _P5_3 ] に加え、mcuRegP[ _P5_5 ], P140 P141
|
||||
// P140が出力専用なので...
|
||||
#define I2C_PU_on() { mcuRegPM[ _P5_3 ] = 1; mcuRegPM[ _P3_3 ] = 1; P14 |= 0x03; mcuRegP[ _P5_3 ] = 1; mcuRegPM[ _P5_3 ] = 0; mcuRegP[ _P3_3 ] = 1; mcuRegPM[ _P3_3 ] = 0; }
|
||||
#define I2C_PU_off() { mcuRegPM[ _P5_3 ] = 1; mcuRegPM[ _P3_3 ] = 1; P14 &= ~0x03; mcuRegP[ _P5_3 ] = 0; mcuRegPM[ _P5_3 ] = 0; mcuRegP[ _P3_3 ] = 0; mcuRegPM[ _P3_3 ] = 0; }
|
||||
#endif
|
||||
|
||||
#define GYRO_ENABLE() mcuRegP[ _P5_0 ] = 0
|
||||
#define GYRO_DISABLE() mcuRegP[ _P5_0 ] = 1
|
||||
|
||||
//#define I2C_M_SDA mcuRegP[ _P3_1 ] // SDA10
|
||||
//#define I2C_M_SCL mcuRegP[ _P3_2 ] // SCL10
|
||||
|
||||
//#define I2C_0_SCL mcuRegP[ _P6_0 ] // IIC_TWL SCL0
|
||||
//#define I2C_0_SDA mcuRegP[ _P6_1 ] // SDA0
|
||||
|
||||
//#define I2C_1_SCL mcuRegP[ _P20_0 ] // IIC CTR SCL1
|
||||
//#define I2C_1_SDA mcuRegP[ _P20_1 ] // SDA1
|
||||
|
||||
//#define 32kHz_O mcuRegP[ _P1_2 ] // RTCCL
|
||||
//#define 32k_I1 mcuRegP[ _P12_3 ] // XT1
|
||||
//#define 32k_I2 mcuRegP[ _P12_4 ] // XT2
|
||||
|
||||
// 実機、開発機、試遊台判別。
|
||||
#define DIPSW ( P4 & bits8(0,0,0,0, 0,0,1,1) ) // mini cube & ソフトウェアディップスイッチ TOOL0,1。 mcuRegP[ _P4_0 ]は L 注意!
|
||||
#define DIPSW_CTR 3 // 未使用
|
||||
#define DIPSW_ISDEV 0 // KuCはBattGaugeで判別
|
||||
#define DIPSW_TAIKENDAI 2
|
||||
#define DIPSW_TAIKENDAI_NBD 1
|
||||
|
||||
|
||||
#define SHELL_OPEN mcuRegP[ _P7_1 ] // INTP5 ふた開閉 (閉じるとL)
|
||||
|
||||
//#define DBG_VR mcuRegP[ _P2_6 ]
|
||||
// ANI6
|
||||
|
||||
#define ACC_VALID mcuRegP[ _P20_5 ]
|
||||
#define PM_ACC_VALID mcuRegPM[ _P20_5 ]
|
||||
#define ACCEL_INT1 mcuRegP[ _P2_5 ]
|
||||
#define PM_ACCEL_INT1 mcuRegPM[ _P2_5 ]
|
||||
|
||||
#define KR_SW_POW ( 1 << 3 )
|
||||
#define KR_SW_WIFI ( 1 << 4 )
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
#define INT_MSK0_IIC_M_DMA 1<<12
|
||||
#define INT_MSK0_SHELL 1<<7
|
||||
#define INT_MSK0_EXTDC 1<<6
|
||||
//#define INT_MSK0_SLP 1<<2
|
||||
#define INT_MSK0_RSV ~( INT_MSK0_IIC_M_DMA | INT_MSK0_SHELL | INT_MSK0_EXTDC )
|
||||
|
||||
#define INT_MSK1_KR 1<<11
|
||||
#define INT_MSK1_RTCINTVAL 1<<10
|
||||
#define INT_MSK1_RTCALARM 1<<9
|
||||
#define INT_MSK1_ADC 1<<8
|
||||
#define INT_MSK1_IIC_CTR 1<<3
|
||||
#define INT_MSK1_IIC_MCU 1<<0
|
||||
#define INT_MSK1_RSV ~( INT_MSK1_KR | INT_MSK1_RTCINTVAL | INT_MSK1_RTCALARM | INT_MSK1_ADC \
|
||||
| INT_MSK1_IIC_CTR | INT_MSK1_IIC_MCU )
|
||||
|
||||
#define INT_MSK2_WIFI_TX_KE3 1<<4
|
||||
#define INT_MSK2L_RSV ~( INT_MSK2_WIFI_TX_KE3 )
|
||||
|
||||
#define INT_MSK2_IIC_TWL 1<<8
|
||||
#define INT_MSK2_WIFI_TX_BSR 1<<10
|
||||
#define INT_MSK2_CODEC_PMIRQ 1<<3
|
||||
#define INT_MSK2_RSV ~( INT_MSK2_IIC_TWL | INT_MSK2_WIFI_TX_BSR | INT_MSK2_CODEC_PMIRQ )
|
||||
|
||||
#endif // dupe include guard
|
149
branches/sim/sim/simFixture.c
Normal file
149
branches/sim/sim/simFixture.c
Normal file
@ -0,0 +1,149 @@
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <fsl.h>
|
||||
|
||||
void EI(){;}
|
||||
void DI(){;}
|
||||
void HALT(){;}
|
||||
void NOP(){;}
|
||||
void STOP(){;}
|
||||
|
||||
unsigned char bcdtob( unsigned char arg )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
typedef unsigned char fsl_u08;
|
||||
typedef unsigned int fsl_u16;
|
||||
typedef unsigned long int fsl_u32;
|
||||
*/
|
||||
/*
|
||||
#define FSL_OK 0x00
|
||||
#define FSL_ERR_FLMD0 0x01
|
||||
#define FSL_ERR_PARAMETER 0x05
|
||||
#define FSL_ERR_PROTECTION 0x10
|
||||
#define FSL_ERR_ERASE 0x1A
|
||||
#define FSL_ERR_BLANKCHECK 0x1B
|
||||
#define FSL_ERR_IVERIFY 0x1B
|
||||
#define FSL_ERR_WRITE 0x1C
|
||||
#define FSL_ERR_EEP_IVERIFY 0x1D
|
||||
#define FSL_ERR_EEP_BLANKCHECK 0x1E
|
||||
#define FSL_ERR_INTERRUPTION 0x1F
|
||||
*/
|
||||
fsl_u08 FSL_Init(fsl_u08* data_buffer_pu08)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_Init_cont(fsl_u08* data_buffer_pu08)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_ModeCheck(void)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_BlankCheck(fsl_u16 block_u16)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_Erase(fsl_u16 block_u16)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_IVerify(fsl_u16 block_u16)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_Write(fsl_u32 s_address_u32, fsl_u08 word_count_u08)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_EEPROMWrite(fsl_u32 s_address_u32, fsl_u08 word_count_u08)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_GetSecurityFlags(fsl_u16* destination_pu16)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_GetActiveBootCluster(fsl_u08* destination_pu08)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_GetBlockEndAddr(fsl_u32* destination_pu32, fsl_u16 block_u16)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_GetFlashShieldWindow(fsl_u16* start_block_pu16, fsl_u16* end_block_pu16)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_InvertBootFlag(void)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_SetFlashShieldWindow(fsl_u16 start_block_u16, fsl_u16 end_block_u16)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_SetChipEraseProtectFlag(void)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_SetBlockEraseProtectFlag(void)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_SetWriteProtectFlag(void)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_SetBootClusterProtectFlag(void)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
void FSL_SwapBootCluster(void)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
fsl_u08 FSL_SwapActiveBootCluster(void)
|
||||
{
|
||||
return FSL_OK;
|
||||
}
|
||||
|
||||
void FSL_ForceReset(void)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
void FSL_SetInterruptMode(void)
|
||||
{
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
703
branches/sim/sim/simOnWin.h
Normal file
703
branches/sim/sim/simOnWin.h
Normal file
@ -0,0 +1,703 @@
|
||||
#ifndef _sim_on_win_
|
||||
#define _sim_on_win_
|
||||
//#pragma warning(disable:4068)
|
||||
|
||||
|
||||
#define bit bool
|
||||
|
||||
// ‘g‚Ý<E2809A>ž‚ÝŠÖ<C5A0>” ///////////////////////////////////////////
|
||||
void HALT();
|
||||
void STOP();
|
||||
void NOP();
|
||||
void EI();
|
||||
void DI();
|
||||
|
||||
unsigned char bcdtob( unsigned char );
|
||||
|
||||
|
||||
|
||||
// pragma“I‚È•¨
|
||||
#define __interrupt
|
||||
#define __far
|
||||
|
||||
|
||||
enum // sfr
|
||||
{
|
||||
sfr_ADCRH = 0,
|
||||
sfr_ADM,
|
||||
sfr_ADS,
|
||||
sfr_KRM,
|
||||
sfr_EGP0,
|
||||
sfr_EGN0,
|
||||
sfr_ISC,
|
||||
sfr_TIS0,
|
||||
sfr_IICA0,
|
||||
sfr_IICS0,
|
||||
sfr_IICF0,
|
||||
sfr_SEC,
|
||||
sfr_MIN,
|
||||
sfr_HOUR,
|
||||
sfr_WEEK,
|
||||
sfr_DAY,
|
||||
sfr_MONTH,
|
||||
sfr_YEAR,
|
||||
sfr_SUBCUD,
|
||||
sfr_ALARMWM,
|
||||
sfr_ALARMWH,
|
||||
sfr_ALARMWW,
|
||||
sfr_RTCC0,
|
||||
sfr_RTCC1,
|
||||
sfr_RTCC2,
|
||||
sfr_CMC,
|
||||
sfr_CSC,
|
||||
sfr_OSTC,
|
||||
sfr_OSTS,
|
||||
sfr_CKC,
|
||||
sfr_CKS0,
|
||||
sfr_CKS1,
|
||||
sfr_RESF,
|
||||
sfr_LVIM,
|
||||
sfr_LVIS,
|
||||
sfr_WDTE,
|
||||
sfr_DSA0,
|
||||
sfr_DSA1,
|
||||
sfr_DMC0,
|
||||
sfr_DMC1,
|
||||
sfr_DRC0,
|
||||
sfr_DRC1,
|
||||
sfr_BECTL,
|
||||
sfr_PFCMD,
|
||||
sfr_PFS,
|
||||
sfr_FLPMC,
|
||||
sfr_PMC,
|
||||
sfr_TXD0_SIO00,
|
||||
sfr_RXD0_SIO01,
|
||||
sfr_TDR00,
|
||||
sfr_TDR01,
|
||||
sfr_TXD1,
|
||||
sfr_SIO10,
|
||||
sfr_RXD1,
|
||||
sfr_TDR03,
|
||||
sfr_TDR04,
|
||||
sfr_TDR05,
|
||||
sfr_TDR06,
|
||||
sfr_TDR07,
|
||||
sfr_RSUBC,
|
||||
sfr_DRA0L,
|
||||
sfr_DRA0H,
|
||||
sfr_DRA1L,
|
||||
sfr_DRA1H,
|
||||
sfr_DBC0L,
|
||||
sfr_DBC0H,
|
||||
sfr_DBC1L,
|
||||
sfr_DBC1H,
|
||||
sfr_IF2L,
|
||||
sfr_IF2H,
|
||||
sfr_MK2L,
|
||||
sfr_MK2HL,
|
||||
sfr_PR02L,
|
||||
sfr_PR02H,
|
||||
sfr_PR12L,
|
||||
sfr_PR12H,
|
||||
sfr_IF0,
|
||||
// sfr_IF0L,
|
||||
// sfr_IF0H,
|
||||
sfr_IF1,
|
||||
// sfr_IF1L,
|
||||
// sfr_IF1H,
|
||||
sfr_MK0,
|
||||
// sfr_MK0L,
|
||||
// sfr_MK0H,
|
||||
sfr_MK1,
|
||||
// sfr_MK1L,
|
||||
// sfr_MK1H,
|
||||
sfr_PR00,
|
||||
// sfr_PR00L,
|
||||
// sfr_PR00H,
|
||||
sfr_PR01,
|
||||
// sfr_PR01L,
|
||||
// sfr_PR01H,
|
||||
sfr_PR10,
|
||||
// sfr_PR10L,
|
||||
// sfr_PR10H,
|
||||
sfr_PR11,
|
||||
// sfr_PR11L,
|
||||
// sfr_PR11H,
|
||||
sfr_MDAL_MULA,
|
||||
sfr_MDAH_MULB,
|
||||
sfr_MDBH_MULOH,
|
||||
sfr_MDBL_MULOL,
|
||||
|
||||
sfr_P0,
|
||||
sfr_PM0,
|
||||
sfr_PM1,
|
||||
sfr_P1,
|
||||
sfr_P2,
|
||||
sfr_PM2,
|
||||
sfr_P3,
|
||||
sfr_PM3,
|
||||
sfr_P4,
|
||||
sfr_PM4,
|
||||
sfr_P5,
|
||||
sfr_PM5,
|
||||
sfr_P6,
|
||||
sfr_PM6,
|
||||
sfr_P7,
|
||||
sfr_PM7,
|
||||
sfr_P12,
|
||||
sfr_PM12,
|
||||
sfr_P14,
|
||||
sfr_PM14,
|
||||
sfr_P15,
|
||||
sfr_PM15,
|
||||
sfr_PM20,
|
||||
sfr_P20,
|
||||
_MCU_SFR_MAX_
|
||||
};
|
||||
|
||||
|
||||
enum // 2nd sfr
|
||||
{
|
||||
sfr_ADPC,
|
||||
sfr_PU0,
|
||||
sfr_PU1,
|
||||
sfr_PU3,
|
||||
sfr_PU4,
|
||||
sfr_PU5,
|
||||
sfr_PU7,
|
||||
sfr_PU12,
|
||||
sfr_PU14,
|
||||
sfr_PIM3,
|
||||
sfr_PIM7,
|
||||
sfr_POM3,
|
||||
sfr_POM7,
|
||||
sfr_NFEN0,
|
||||
sfr_NFEN1,
|
||||
sfr_NFEN2,
|
||||
sfr_MDCL,
|
||||
sfr_MDCH,
|
||||
sfr_MDUC,
|
||||
sfr_PER0,
|
||||
sfr_PER2,
|
||||
sfr_OSMC,
|
||||
sfr_BCDADJ,
|
||||
sfr_SSR00L,
|
||||
sfr_SSR00,
|
||||
sfr_SSR01L,
|
||||
sfr_SSR01,
|
||||
sfr_SSR02L,
|
||||
sfr_SSR02,
|
||||
sfr_SSR03L,
|
||||
sfr_SSR03,
|
||||
sfr_SIR00L,
|
||||
sfr_SIR00,
|
||||
sfr_SIR01L,
|
||||
sfr_SIR02L,
|
||||
sfr_SIR01,
|
||||
sfr_SIR02,
|
||||
sfr_SIR03L,
|
||||
sfr_SIR03,
|
||||
sfr_SMR00,
|
||||
sfr_SMR01,
|
||||
sfr_SMR02,
|
||||
sfr_SMR03,
|
||||
sfr_SCR00,
|
||||
sfr_SCR01,
|
||||
sfr_SCR02,
|
||||
sfr_SCR03,
|
||||
sfr_SE0L,
|
||||
sfr_SE0,
|
||||
sfr_SS0L,
|
||||
sfr_SS0,
|
||||
sfr_ST0L,
|
||||
sfr_ST0,
|
||||
sfr_SPS0L,
|
||||
sfr_SPS0,
|
||||
sfr_SO0,
|
||||
sfr_SOE0L,
|
||||
sfr_SOE0,
|
||||
sfr_SOL0L,
|
||||
sfr_SOL0,
|
||||
sfr_TCR00,
|
||||
sfr_TCR01,
|
||||
sfr_TCR02,
|
||||
sfr_TCR07,
|
||||
sfr_TO0L,
|
||||
sfr_TOL0L,
|
||||
sfr_TPS0L,
|
||||
sfr_TSR07L,
|
||||
sfr_TMR00,
|
||||
sfr_TMR02,
|
||||
sfr_TMR04,
|
||||
sfr_TMR06,
|
||||
sfr_TSR00L,
|
||||
sfr_TOE0L,
|
||||
sfr_TMR01,
|
||||
sfr_TMR03,
|
||||
sfr_TMR05,
|
||||
sfr_TMR07,
|
||||
sfr_TT0L,
|
||||
sfr_TOM0L,
|
||||
sfr_TE0L,
|
||||
sfr_TS0L,
|
||||
sfr_IICCTL01,
|
||||
sfr_IICCTL11,
|
||||
sfr_IICS1,
|
||||
sfr_PER3,
|
||||
sfr_PU20,
|
||||
sfr_TCR04,
|
||||
sfr_TCR06,
|
||||
sfr_EGN2,
|
||||
sfr_EGP2,
|
||||
sfr_IICWH0,
|
||||
sfr_IICWH1,
|
||||
sfr_IICWL0,
|
||||
sfr_IICWL1,
|
||||
sfr_SVA0,
|
||||
sfr_SVA1,
|
||||
sfr_IICA1,
|
||||
sfr_IICCTL00,
|
||||
sfr_IICCTL10,
|
||||
sfr_IICF1,
|
||||
sfr_TCR03,
|
||||
sfr_TCR05,
|
||||
sfr_TSR01L,
|
||||
sfr_TSR02L,
|
||||
sfr_TSR03L,
|
||||
sfr_TSR04L,
|
||||
sfr_TSR05L,
|
||||
sfr_TSR06L,
|
||||
sfr_TE0,
|
||||
sfr_TO0,
|
||||
sfr_TOE0,
|
||||
sfr_TOL0,
|
||||
sfr_TOM0,
|
||||
sfr_TPS0,
|
||||
sfr_TS0,
|
||||
sfr_TSR07,
|
||||
sfr_TT0,
|
||||
sfr_TSR00,
|
||||
sfr_TSR01,
|
||||
sfr_TSR02,
|
||||
sfr_TSR03,
|
||||
sfr_TSR04,
|
||||
sfr_TSR05,
|
||||
sfr_TSR06,
|
||||
_MCU_SFR2_MAX_
|
||||
};
|
||||
|
||||
|
||||
|
||||
enum
|
||||
{
|
||||
_P0_0 = 0, _P0_1,
|
||||
_P1_0, _P1_1, _P1_2, _P1_3, _P1_4, _P1_5, _P1_6, _P1_7,
|
||||
_P2_0, _P2_1, _P2_2, _P2_3, _P2_4, _P2_5, _P2_6, _P2_7,
|
||||
_P3_0, _P3_1, _P3_2, _P3_3,
|
||||
_P4_0, _P4_1, _P4_2, _P4_3,
|
||||
_P5_0, _P5_1, _P5_2, _P5_3,
|
||||
_P6_0, _P6_1,
|
||||
_P7_0, _P7_1, _P7_2, _P7_3, _P7_4, _P7_5, _P7_6, _P7_7,
|
||||
_P12_0, _P12_1, _P12_2, _P12_3, _P12_4,
|
||||
_P14_0, _P14_1,
|
||||
_P15_0, _P15_1,
|
||||
_P20_0, _P20_1, _P20_2, _P20_3, _P20_4, _P20_5,
|
||||
_MCU_PORTS_MAX_
|
||||
};
|
||||
|
||||
unsigned char mcuRegPM[ _MCU_PORTS_MAX_ ];
|
||||
unsigned char mcuRegP[ _MCU_PORTS_MAX_ ];
|
||||
unsigned char mcuRegPU[ _MCU_PORTS_MAX_ ];
|
||||
|
||||
/*
|
||||
typedef struct
|
||||
{
|
||||
unsigned _7 :1;
|
||||
unsigned _6 :1;
|
||||
unsigned _5 :1;
|
||||
unsigned _4 :1;
|
||||
unsigned _3 :1;
|
||||
unsigned _2 :1;
|
||||
unsigned _1 :1;
|
||||
unsigned _0 :1;
|
||||
}mcu_reg;
|
||||
*/
|
||||
/*
|
||||
typedef unsigned char mcu_reg;
|
||||
|
||||
mcu_reg P0;
|
||||
mcu_reg PM0;
|
||||
mcu_reg PM1;
|
||||
mcu_reg P1;
|
||||
mcu_reg P2;
|
||||
mcu_reg PM2;
|
||||
mcu_reg PM3;
|
||||
mcu_reg P3;
|
||||
mcu_reg P4;
|
||||
mcu_reg P5;
|
||||
mcu_reg PM5;
|
||||
//mcu_reg PU5;
|
||||
mcu_reg P6;
|
||||
mcu_reg PM6;
|
||||
mcu_reg P7;
|
||||
mcu_reg PM7;
|
||||
mcu_reg P12;
|
||||
mcu_reg PM12;
|
||||
mcu_reg P14;
|
||||
mcu_reg PM14;
|
||||
mcu_reg P15;
|
||||
mcu_reg PM15;
|
||||
//mcu_reg PU20;
|
||||
mcu_reg PM20;
|
||||
mcu_reg P20;
|
||||
|
||||
*/
|
||||
|
||||
|
||||
unsigned short mcuSfr[ _MCU_SFR_MAX_ ];
|
||||
unsigned short mcuSfr2[ _MCU_SFR2_MAX_ ];
|
||||
|
||||
|
||||
// sfr
|
||||
#define ADCRH mcuSfr[ sfr_ADCRH ]
|
||||
#define ADM mcuSfr[ sfr_ADM ]
|
||||
#define ADS mcuSfr[ sfr_ADS ]
|
||||
#define KRM mcuSfr[ sfr_KRM ]
|
||||
#define EGP0 mcuSfr[ sfr_EGP0 ]
|
||||
#define EGN0 mcuSfr[ sfr_EGN0 ]
|
||||
#define ISC mcuSfr[ sfr_ISC ]
|
||||
#define TIS0 mcuSfr[ sfr_TIS0 ]
|
||||
#define IICA0 mcuSfr[ sfr_IICA0 ]
|
||||
#define IICS0 mcuSfr[ sfr_IICS0 ]
|
||||
#define IICF0 mcuSfr[ sfr_IICF0 ]
|
||||
#define SEC mcuSfr[ sfr_SEC ]
|
||||
#define MIN mcuSfr[ sfr_MIN ]
|
||||
#define HOUR mcuSfr[ sfr_HOUR ]
|
||||
#define WEEK mcuSfr[ sfr_WEEK ]
|
||||
#define DAY mcuSfr[ sfr_DAY ]
|
||||
#define MONTH mcuSfr[ sfr_MONTH ]
|
||||
#define YEAR mcuSfr[ sfr_YEAR ]
|
||||
#define SUBCUD mcuSfr[ sfr_SUBCUD ]
|
||||
#define ALARMWM mcuSfr[ sfr_ALARMWM ]
|
||||
#define ALARMWH mcuSfr[ sfr_ALARMWH ]
|
||||
#define ALARMWW mcuSfr[ sfr_ALARMWW ]
|
||||
#define RTCC0 mcuSfr[ sfr_RTCC0 ]
|
||||
#define RTCC1 mcuSfr[ sfr_RTCC1 ]
|
||||
#define RTCC2 mcuSfr[ sfr_RTCC2 ]
|
||||
#define CMC mcuSfr[ sfr_CMC ]
|
||||
#define CSC mcuSfr[ sfr_CSC ]
|
||||
#define OSTC mcuSfr[ sfr_OSTC ]
|
||||
#define OSTS mcuSfr[ sfr_OSTS ]
|
||||
#define CKC mcuSfr[ sfr_CKC ]
|
||||
#define CKS0 mcuSfr[ sfr_CKS0 ]
|
||||
#define CKS1 mcuSfr[ sfr_CKS1 ]
|
||||
#define RESF mcuSfr[ sfr_RESF ]
|
||||
#define LVIM mcuSfr[ sfr_LVIM ]
|
||||
#define LVIS mcuSfr[ sfr_LVIS ]
|
||||
#define WDTE mcuSfr[ sfr_WDTE ]
|
||||
#define DSA0 mcuSfr[ sfr_DSA0 ]
|
||||
#define DSA1 mcuSfr[ sfr_DSA1 ]
|
||||
#define DMC0 mcuSfr[ sfr_DMC0 ]
|
||||
#define DMC1 mcuSfr[ sfr_DMC1 ]
|
||||
#define DRC0 mcuSfr[ sfr_DRC0 ]
|
||||
#define DRC1 mcuSfr[ sfr_DRC1 ]
|
||||
#define BECTL mcuSfr[ sfr_BECTL ]
|
||||
#define PFCMD mcuSfr[ sfr_PFCMD ]
|
||||
#define PFS mcuSfr[ sfr_PFS ]
|
||||
#define FLPMC mcuSfr[ sfr_FLPMC ]
|
||||
#define PMC mcuSfr[ sfr_PMC ]
|
||||
#define TXD0_SIO00 mcuSfr[ sfr_TXD0_SIO00 ]
|
||||
#define RXD0_SIO01 mcuSfr[ sfr_RXD0_SIO01 ]
|
||||
#define TDR00 mcuSfr[ sfr_TDR00 ]
|
||||
#define TDR01 mcuSfr[ sfr_TDR01 ]
|
||||
#define TXD1 mcuSfr[ sfr_TXD1 ]
|
||||
#define SIO10 mcuSfr[ sfr_SIO10 ]
|
||||
#define RXD1 mcuSfr[ sfr_RXD1 ]
|
||||
#define TDR03 mcuSfr[ sfr_TDR03 ]
|
||||
#define TDR04 mcuSfr[ sfr_TDR04 ]
|
||||
#define TDR05 mcuSfr[ sfr_TDR05 ]
|
||||
#define TDR06 mcuSfr[ sfr_TDR06 ]
|
||||
#define TDR07 mcuSfr[ sfr_TDR07 ]
|
||||
#define RSUBC mcuSfr[ sfr_RSUBC ]
|
||||
#define DRA0L mcuSfr[ sfr_DRA0L ]
|
||||
#define DRA0H mcuSfr[ sfr_DRA0H ]
|
||||
#define DRA1L mcuSfr[ sfr_DRA1L ]
|
||||
#define DRA1H mcuSfr[ sfr_DRA1H ]
|
||||
#define DBC0L mcuSfr[ sfr_DBC0L ]
|
||||
#define DBC0H mcuSfr[ sfr_DBC0H ]
|
||||
#define DBC1L mcuSfr[ sfr_DBC1L ]
|
||||
#define DBC1H mcuSfr[ sfr_DBC1H ]
|
||||
#define IF2L mcuSfr[ sfr_IF2L ]
|
||||
#define IF2H mcuSfr[ sfr_IF2H ]
|
||||
#define MK2L mcuSfr[ sfr_MK2L ]
|
||||
#define MK2HL mcuSfr[ sfr_MK2HL ]
|
||||
#define PR02L mcuSfr[ sfr_PR02L ]
|
||||
#define PR02H mcuSfr[ sfr_PR02H ]
|
||||
#define PR12L mcuSfr[ sfr_PR12L ]
|
||||
#define PR12H mcuSfr[ sfr_PR12H ]
|
||||
//#define IF0L mcuSfr[ sfr_IF0L ]
|
||||
//#define IF0H mcuSfr[ sfr_IF0H ]
|
||||
#define IF0 mcuSfr[ sfr_IF0 ]
|
||||
//#define IF1L mcuSfr[ sfr_IF1L ]
|
||||
//#define IF1H mcuSfr[ sfr_IF1H ]
|
||||
#define IF1H mcuSfr[ sfr_IF1 ]
|
||||
//#define MK0L mcuSfr[ sfr_MK0L ]
|
||||
//#define MK0H mcuSfr[ sfr_MK0H ]
|
||||
#define MK0L mcuSfr[ sfr_MK0 ]
|
||||
//#define MK1L mcuSfr[ sfr_MK1L ]
|
||||
//#define MK1H mcuSfr[ sfr_MK1H ]
|
||||
#define MK1H mcuSfr[ sfr_MK1 ]
|
||||
#define PR00 mcuSfr[ sfr_PR00 ]
|
||||
//#define PR00L mcuSfr[ sfr_PR00L ]
|
||||
//#define PR00H mcuSfr[ sfr_PR00H ]
|
||||
#define PR01 mcuSfr[ sfr_PR01 ]
|
||||
//#define PR01L mcuSfr[ sfr_PR01L ]
|
||||
//#define PR01H mcuSfr[ sfr_PR01H ]
|
||||
#define PR10 mcuSfr[ sfr_PR10 ]
|
||||
//#define PR10L mcuSfr[ sfr_PR10L ]
|
||||
//#define PR10H mcuSfr[ sfr_PR10H ]
|
||||
#define PR11 mcuSfr[ sfr_PR11 ]
|
||||
//#define PR11L mcuSfr[ sfr_PR11L ]
|
||||
//#define PR11H mcuSfr[ sfr_PR11H ]
|
||||
#define MDAL_MULA mcuSfr[ sfr_MDAL_MULA ]
|
||||
#define MDAH_MULB mcuSfr[ sfr_MDAH_MULB ]
|
||||
#define MDBH_MULOH mcuSfr[ sfr_MDBH_MULOH ]
|
||||
#define MDBL_MULOL mcuSfr[ sfr_MDBL_MULOL ]
|
||||
#define P0 mcuSfr[ sfr_P0 ]
|
||||
#define PM0 mcuSfr[ sfr_PM0 ]
|
||||
#define PM1 mcuSfr[ sfr_PM1 ]
|
||||
#define P1 mcuSfr[ sfr_P1 ]
|
||||
#define P2 mcuSfr[ sfr_P2 ]
|
||||
#define PM2 mcuSfr[ sfr_PM2 ]
|
||||
#define PM3 mcuSfr[ sfr_PM3 ]
|
||||
#define P3 mcuSfr[ sfr_P3 ]
|
||||
#define P4 mcuSfr[ sfr_P4 ]
|
||||
#define PM4 mcuSfr[ sfr_PM4 ]
|
||||
#define P5 mcuSfr[ sfr_P5 ]
|
||||
#define PM5 mcuSfr[ sfr_PM5 ]
|
||||
#define P6 mcuSfr[ sfr_P6 ]
|
||||
#define PM6 mcuSfr[ sfr_PM6 ]
|
||||
#define P7 mcuSfr[ sfr_P7 ]
|
||||
#define PM7 mcuSfr[ sfr_PM7 ]
|
||||
#define P12 mcuSfr[ sfr_P12 ]
|
||||
#define PM12 mcuSfr[ sfr_PM12 ]
|
||||
#define P14 mcuSfr[ sfr_P14 ]
|
||||
#define PM14 mcuSfr[ sfr_PM14 ]
|
||||
#define P15 mcuSfr[ sfr_P15 ]
|
||||
#define PM15 mcuSfr[ sfr_PM15 ]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 2nd sfr
|
||||
#define ADPC mcuSfr2[ sfr_ADPC ]
|
||||
#define PU0 mcuSfr2[ sfr_PU0 ]
|
||||
#define PU1 mcuSfr2[ sfr_PU1 ]
|
||||
#define PU3 mcuSfr2[ sfr_PU3 ]
|
||||
#define PU4 mcuSfr2[ sfr_PU4 ]
|
||||
#define PU5 mcuSfr2[ sfr_PU5 ]
|
||||
#define PU7 mcuSfr2[ sfr_PU7 ]
|
||||
#define PU12 mcuSfr2[ sfr_PU12 ]
|
||||
#define PU14 mcuSfr2[ sfr_PU14 ]
|
||||
#define PIM3 mcuSfr2[ sfr_PIM3 ]
|
||||
#define PIM7 mcuSfr2[ sfr_PIM7 ]
|
||||
#define POM3 mcuSfr2[ sfr_POM3 ]
|
||||
#define POM7 mcuSfr2[ sfr_POM7 ]
|
||||
#define NFEN0 mcuSfr2[ sfr_NFEN0 ]
|
||||
#define NFEN1 mcuSfr2[ sfr_NFEN1 ]
|
||||
#define NFEN2 mcuSfr2[ sfr_NFEN2 ]
|
||||
#define MDCL mcuSfr2[ sfr_MDCL ]
|
||||
#define MDCH mcuSfr2[ sfr_MDCH ]
|
||||
#define MDUC mcuSfr2[ sfr_MDUC ]
|
||||
#define PER0 mcuSfr2[ sfr_PER0 ]
|
||||
#define PER2 mcuSfr2[ sfr_PER2 ]
|
||||
#define OSMC mcuSfr2[ sfr_OSMC ]
|
||||
#define BCDADJ mcuSfr2[ sfr_BCDADJ ]
|
||||
#define SSR00L mcuSfr2[ sfr_SSR00L ]
|
||||
#define SSR00 mcuSfr2[ sfr_SSR00 ]
|
||||
#define SSR01L mcuSfr2[ sfr_SSR01L ]
|
||||
#define SSR01 mcuSfr2[ sfr_SSR01 ]
|
||||
#define SSR02L mcuSfr2[ sfr_SSR02L ]
|
||||
#define SSR02 mcuSfr2[ sfr_SSR02 ]
|
||||
#define SSR03L mcuSfr2[ sfr_SSR03L ]
|
||||
#define SSR03 mcuSfr2[ sfr_SSR03 ]
|
||||
#define SIR00L mcuSfr2[ sfr_SIR00L ]
|
||||
#define SIR00 mcuSfr2[ sfr_SIR00 ]
|
||||
#define SIR01L mcuSfr2[ sfr_SIR01L ]
|
||||
#define SIR02L mcuSfr2[ sfr_SIR02L ]
|
||||
#define SIR01 mcuSfr2[ sfr_SIR01 ]
|
||||
#define SIR02 mcuSfr2[ sfr_SIR02 ]
|
||||
#define SIR03L mcuSfr2[ sfr_SIR03L ]
|
||||
#define SIR03 mcuSfr2[ sfr_SIR03 ]
|
||||
#define SMR00 mcuSfr2[ sfr_SMR00 ]
|
||||
#define SMR01 mcuSfr2[ sfr_SMR01 ]
|
||||
#define SMR02 mcuSfr2[ sfr_SMR02 ]
|
||||
#define SMR03 mcuSfr2[ sfr_SMR03 ]
|
||||
#define SCR00 mcuSfr2[ sfr_SCR00 ]
|
||||
#define SCR01 mcuSfr2[ sfr_SCR01 ]
|
||||
#define SCR02 mcuSfr2[ sfr_SCR02 ]
|
||||
#define SCR03 mcuSfr2[ sfr_SCR03 ]
|
||||
#define SE0L mcuSfr2[ sfr_SE0L ]
|
||||
#define SE0 mcuSfr2[ sfr_SE0 ]
|
||||
#define SS0L mcuSfr2[ sfr_SS0L ]
|
||||
#define SS0 mcuSfr2[ sfr_SS0 ]
|
||||
#define ST0L mcuSfr2[ sfr_ST0L ]
|
||||
#define ST0 mcuSfr2[ sfr_ST0 ]
|
||||
#define SPS0L mcuSfr2[ sfr_SPS0L ]
|
||||
#define SPS0 mcuSfr2[ sfr_SPS0 ]
|
||||
#define SO0 mcuSfr2[ sfr_SO0 ]
|
||||
#define SOE0L mcuSfr2[ sfr_SOE0L ]
|
||||
#define SOE0 mcuSfr2[ sfr_SOE0 ]
|
||||
#define SOL0L mcuSfr2[ sfr_SOL0L ]
|
||||
#define SOL0 mcuSfr2[ sfr_SOL0 ]
|
||||
#define TCR00 mcuSfr2[ sfr_TCR00 ]
|
||||
#define TCR01 mcuSfr2[ sfr_TCR01 ]
|
||||
#define TCR02 mcuSfr2[ sfr_TCR02 ]
|
||||
#define TCR07 mcuSfr2[ sfr_TCR07 ]
|
||||
#define TO0L mcuSfr2[ sfr_TO0L ]
|
||||
#define TOL0L mcuSfr2[ sfr_TOL0L ]
|
||||
#define TPS0L mcuSfr2[ sfr_TPS0L ]
|
||||
#define TSR07L mcuSfr2[ sfr_TSR07L ]
|
||||
#define TMR00 mcuSfr2[ sfr_TMR00 ]
|
||||
#define TMR02 mcuSfr2[ sfr_TMR02 ]
|
||||
#define TMR04 mcuSfr2[ sfr_TMR04 ]
|
||||
#define TMR06 mcuSfr2[ sfr_TMR06 ]
|
||||
#define TSR00L mcuSfr2[ sfr_TSR00L ]
|
||||
#define TOE0L mcuSfr2[ sfr_TOE0L ]
|
||||
#define TMR01 mcuSfr2[ sfr_TMR01 ]
|
||||
#define TMR03 mcuSfr2[ sfr_TMR03 ]
|
||||
#define TMR05 mcuSfr2[ sfr_TMR05 ]
|
||||
#define TMR07 mcuSfr2[ sfr_TMR07 ]
|
||||
#define TT0L mcuSfr2[ sfr_TT0L ]
|
||||
#define TOM0L mcuSfr2[ sfr_TOM0L ]
|
||||
#define TE0L mcuSfr2[ sfr_TE0L ]
|
||||
#define TS0L mcuSfr2[ sfr_TS0L ]
|
||||
#define IICCTL01 mcuSfr2[ sfr_IICCTL01 ]
|
||||
#define IICCTL11 mcuSfr2[ sfr_IICCTL11 ]
|
||||
#define IICS1 mcuSfr2[ sfr_IICS1 ]
|
||||
#define PER3 mcuSfr2[ sfr_PER3 ]
|
||||
#define PU20 mcuSfr2[ sfr_PU20 ]
|
||||
#define TCR04 mcuSfr2[ sfr_TCR04 ]
|
||||
#define TCR06 mcuSfr2[ sfr_TCR06 ]
|
||||
#define EGN2 mcuSfr2[ sfr_EGN2 ]
|
||||
#define EGP2 mcuSfr2[ sfr_EGP2 ]
|
||||
#define IICWH0 mcuSfr2[ sfr_IICWH0 ]
|
||||
#define IICWH1 mcuSfr2[ sfr_IICWH1 ]
|
||||
#define IICWL0 mcuSfr2[ sfr_IICWL0 ]
|
||||
#define IICWL1 mcuSfr2[ sfr_IICWL1 ]
|
||||
#define SVA0 mcuSfr2[ sfr_SVA0 ]
|
||||
#define SVA1 mcuSfr2[ sfr_SVA1 ]
|
||||
#define IICA1 mcuSfr2[ sfr_IICA1 ]
|
||||
#define IICCTL00 mcuSfr2[ sfr_IICCTL00 ]
|
||||
#define IICCTL10 mcuSfr2[ sfr_IICCTL10 ]
|
||||
#define IICF1 mcuSfr2[ sfr_IICF1 ]
|
||||
#define P20 mcuSfr2[ sfr_P20 ]
|
||||
#define PM20 mcuSfr2[ sfr_PM20 ]
|
||||
#define TCR03 mcuSfr2[ sfr_TCR03 ]
|
||||
#define TCR05 mcuSfr2[ sfr_TCR05 ]
|
||||
#define TSR01L mcuSfr2[ sfr_TSR01L ]
|
||||
#define TSR02L mcuSfr2[ sfr_TSR02L ]
|
||||
#define TSR03L mcuSfr2[ sfr_TSR03L ]
|
||||
#define TSR04L mcuSfr2[ sfr_TSR04L ]
|
||||
#define TSR05L mcuSfr2[ sfr_TSR05L ]
|
||||
#define TSR06L mcuSfr2[ sfr_TSR06L ]
|
||||
#define TE0 mcuSfr2[ sfr_TE0 ]
|
||||
#define TO0 mcuSfr2[ sfr_TO0 ]
|
||||
#define TOE0 mcuSfr2[ sfr_TOE0 ]
|
||||
#define TOL0 mcuSfr2[ sfr_TOL0 ]
|
||||
#define TOM0 mcuSfr2[ sfr_TOM0 ]
|
||||
#define TPS0 mcuSfr2[ sfr_TPS0 ]
|
||||
#define TS0 mcuSfr2[ sfr_TS0 ]
|
||||
#define TSR07 mcuSfr2[ sfr_TSR07 ]
|
||||
#define TT0 mcuSfr2[ sfr_TT0 ]
|
||||
#define TSR00 mcuSfr2[ sfr_TSR00 ]
|
||||
#define TSR01 mcuSfr2[ sfr_TSR01 ]
|
||||
#define TSR02 mcuSfr2[ sfr_TSR02 ]
|
||||
#define TSR03 mcuSfr2[ sfr_TSR03 ]
|
||||
#define TSR04 mcuSfr2[ sfr_TSR04 ]
|
||||
#define TSR05 mcuSfr2[ sfr_TSR05 ]
|
||||
#define TSR06 mcuSfr2[ sfr_TSR06 ]
|
||||
|
||||
|
||||
|
||||
typedef unsigned char bit;
|
||||
|
||||
bit ACKD1;
|
||||
bit ACKE0;
|
||||
bit ACKE1;
|
||||
bit ADCEN;
|
||||
bit ADCS;
|
||||
bit ADIF;
|
||||
bit ADMK;
|
||||
bit COI1;
|
||||
bit DBC1;
|
||||
bit DEN1;
|
||||
bit DFC1;
|
||||
bit DMAIF1;
|
||||
bit DMAMK1;
|
||||
bit DRA1;
|
||||
bit DST1;
|
||||
bit IF1;
|
||||
bit IF2;
|
||||
bit IICA0EN;
|
||||
bit IICA1EN;
|
||||
bit IICAIF0;
|
||||
bit IICAIF1;
|
||||
bit IICAMK0;
|
||||
bit IICAMK1;
|
||||
bit IICAPR00;
|
||||
bit IICAPR01;
|
||||
bit IICAPR10;
|
||||
bit IICAPR11;
|
||||
bit IICE0;
|
||||
bit IICE1;
|
||||
bit IICIF10;
|
||||
bit IICMK10;
|
||||
bit IICRSV0;
|
||||
bit IICRSV1;
|
||||
bit LREL0;
|
||||
bit LREL1;
|
||||
bit MK0;
|
||||
bit MK1;
|
||||
bit MK2;
|
||||
bit PIF0;
|
||||
bit PIF21;
|
||||
bit PMK23;
|
||||
bit PMK6;
|
||||
bit RCLOE0;
|
||||
bit RTCE;
|
||||
bit RTCEN;
|
||||
bit RTCIF;
|
||||
bit RTCIIF;
|
||||
bit RTCIMK;
|
||||
bit RTCMK;
|
||||
bit RWAIT;
|
||||
bit RWST;
|
||||
bit SAU0EN;
|
||||
bit SDR02;
|
||||
bit SLP_ACK;
|
||||
bit SMC0;
|
||||
bit SMC1;
|
||||
bit SPD1;
|
||||
bit SPIE0;
|
||||
bit SPIE1;
|
||||
bit STCEN0;
|
||||
bit STCEN1;
|
||||
bit STD1;
|
||||
bit TAU0EN;
|
||||
bit TDR02;
|
||||
bit WALE;
|
||||
bit WREL0;
|
||||
bit WREL1;
|
||||
bit WTIM0;
|
||||
bit WTIM1;
|
||||
|
||||
bit BECTL_7;
|
||||
|
||||
|
||||
|
||||
#include "sfrAlias.h"
|
||||
|
||||
|
||||
#endif
|
74
branches/sim/sim/sim_interrupt_decrare.c
Normal file
74
branches/sim/sim/sim_interrupt_decrare.c
Normal file
@ -0,0 +1,74 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
// これら、発生しないはず
|
||||
void fn_intwdti( ){}
|
||||
void fn_intlvi( ){}
|
||||
void fn_intp0(){}
|
||||
void fn_intp1( ){}
|
||||
void fn_intp2( ){}
|
||||
void fn_intp3( ){}
|
||||
void intp21_RFTx( ){}
|
||||
// void fn_intp4(){ while(1){} } // pm.c
|
||||
// void fn_intp5(){ while(1){} } // pm.c
|
||||
// void fn_intp6(){ while(1){} } // pm.c
|
||||
// void fn_intp7(){ while(1){} } // led.c
|
||||
// void fn_intp21(){ while(1){} } // led.c
|
||||
|
||||
void fn_intcmp0( ){}
|
||||
void fn_intcmp1( ){}
|
||||
void fn_intdma0( ){}
|
||||
// void fn_intdma1(){} // i2c_mcu.cにある
|
||||
void fn_intst0( ){}
|
||||
void fn_intsr0( ){}
|
||||
void fn_intsre0( ){}
|
||||
void fn_intst1( ){}
|
||||
/* __interrupt void fn_intcsi10(){} */
|
||||
// void fn_intiic10(){ while(1){} }
|
||||
void fn_intsr1( ){}
|
||||
void fn_intsre1( ){}
|
||||
// void fn_intiica(){} // i2c.cにある
|
||||
/* __interrupt void fn_inttm00(){} *//* sub.cにて定義 */
|
||||
void fn_inttm01( ){}
|
||||
void fn_inttm02( ){}
|
||||
void fn_inttm03( ){}
|
||||
// void fn_intad(){ while(1){} } // adc.c
|
||||
void fn_intrtc( ){}
|
||||
// void int_rtcint(){} // rtc.cにある
|
||||
// void fn_intkr(){} // main.c
|
||||
void fn_intmd( ){}
|
||||
void fn_inttm04( ){}
|
||||
void fn_inttm05( ){}
|
||||
void fn_inttm06( ){}
|
||||
void fn_inttm07( ){}
|
||||
|
||||
|
||||
/* ========================================================
|
||||
キーリターン割り込み
|
||||
======================================================== */
|
||||
void int_kr( )
|
||||
{
|
||||
// 起きるだけ
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ========================================================
|
||||
ext dc
|
||||
======================================================== */
|
||||
void intp4( )
|
||||
{
|
||||
// 起きるだけ
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ========================================================
|
||||
shell close
|
||||
======================================================== */
|
||||
void intp5( )
|
||||
{
|
||||
// 起きるだけ
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1,8 +1,12 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma NOP
|
||||
#pragma HALT
|
||||
#pragma STOP
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
|
||||
#include "i2c_twl.h"
|
||||
|
@ -1,8 +1,12 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma NOP
|
||||
#pragma HALT
|
||||
#pragma STOP
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs_loader.h"
|
||||
//#include "incs.h"
|
||||
#include "renge\renge.h"
|
||||
|
@ -1,8 +1,12 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma NOP
|
||||
#pragma HALT
|
||||
#pragma STOP
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
#include "renge\renge.h"
|
||||
#include "pm.h"
|
||||
|
@ -1,8 +1,12 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma NOP
|
||||
#pragma HALT
|
||||
#pragma STOP
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs_loader.h"
|
||||
#include "renge\renge.h"
|
||||
#include "pm.h"
|
||||
|
@ -1,8 +1,12 @@
|
||||
#ifndef _WIN32
|
||||
|
||||
#pragma SFR
|
||||
#pragma NOP
|
||||
#pragma HALT
|
||||
#pragma STOP
|
||||
|
||||
#endif
|
||||
|
||||
#include "incs.h"
|
||||
|
||||
#include "i2c_twl.h"
|
||||
@ -127,13 +131,13 @@ void tsk_sys( )
|
||||
return;
|
||||
}
|
||||
|
||||
// ポートの設定 電源入れる前に。
|
||||
PM7.4 = 1; // SW_wifi
|
||||
PM20.4 = 1; // sw_home
|
||||
PM20.3 = 1; // wl_tx
|
||||
PM2.3 = 1; // key_sel
|
||||
PM2.5 = 1; // acc_valid1
|
||||
PM14.1 = 1; // acc_valid2
|
||||
// ポートの方向設定 電源入れる前に。
|
||||
PM_SW_WIFI_n = 1;
|
||||
PM_SW_HOME_n_JIKKI = 1;
|
||||
PM_WL_TX = 1;
|
||||
PM_SW_SEL_n = 1;
|
||||
PM_ACCEL_INT1 = 1;
|
||||
PM_ACC_VALID = 1;
|
||||
|
||||
if( PM_sys_pow_on( ) != ERR_SUCCESS )
|
||||
{ // 電源起動不可エラー
|
||||
@ -143,10 +147,10 @@ void tsk_sys( )
|
||||
}
|
||||
|
||||
// ここまで来ると、電源投入確定 //
|
||||
|
||||
PU5.1 = 1; // 1:PM_CHARGE
|
||||
PU7 = 0b00011101; // 4:SW_WIFI 3:SW_PWSW 2:PM_IRQ 0:PM_EXTDC_n
|
||||
PU20.4 = 1; // SW_HOME
|
||||
// プルアップon
|
||||
PU_BT_IN_CHG_n = 1;
|
||||
PU7 = bits8(0,0,0,1, 1,1,0,1); // 4:SW_WIFI 3:SW_PWSW 2:PM_IRQ 0:PM_EXTDC_n
|
||||
PU_SW_HOME_n_JIKKI = 1; // SW_HOME
|
||||
|
||||
if( system_status.poweron_reason == PWSW )
|
||||
{
|
||||
@ -183,7 +187,7 @@ void tsk_sys( )
|
||||
vreg_twl_init( );
|
||||
vreg_ctr_reset( );
|
||||
|
||||
KRM = 0b00000000;
|
||||
KRM = bits8(0,0,0,0, 0,0,0,0);
|
||||
PIF0 = 0;
|
||||
|
||||
system_status.poweron_reason = NONE;
|
||||
@ -330,11 +334,11 @@ void tsk_sys( )
|
||||
KRM = ( KR_SW_POW ); // Mask ではなく、Modeなのだそうだ。紛らわしい
|
||||
MK0 = ~( INT_MSK0_EXTDC );
|
||||
MK1 = ~( INT_MSK1_KR | INT_MSK1_RTCALARM | INT_MSK1_RTCINTVAL );
|
||||
MK2L = 0b11111111;
|
||||
MK2L = 0xFF;
|
||||
|
||||
// PU5 そのまま
|
||||
PU7 = 0b00001001; // PWSWI,PM_EXTTDC,( IRQ0_deactive(), PM_IRQ_deactive )
|
||||
PU20.4 = 0; // SW_HOME 停止
|
||||
PU7 = bits8(0,0,0,0, 1,0,0,1); // PWSWI,PM_EXTTDC,( IRQ0_deactive(), PM_IRQ_deactive )
|
||||
PU_SW_HOME_n_JIKKI = 0; // SW_HOME 停止
|
||||
|
||||
IF0 = 0;
|
||||
IF1 = 0;
|
||||
@ -344,21 +348,23 @@ void tsk_sys( )
|
||||
|
||||
PM_sys_pow_off( );
|
||||
|
||||
P7.4 = 0; // SW_wifi
|
||||
PM7.4 = 0;
|
||||
// ポート類を停止モードに。こういう回路でも、L出力にしなきゃだめだそうな。
|
||||
SW_WIFI_n = 0;
|
||||
PM_SW_WIFI_n = 0;
|
||||
|
||||
P20.4 = 0; // sw_home
|
||||
PM20.4 = 0;
|
||||
SW_HOME_n_JIKKI = 0;
|
||||
PM_SW_HOME_n_JIKKI = 0;
|
||||
|
||||
P20.3 = 0; // WL_TX
|
||||
PM20.3 = 0;
|
||||
WL_TX = 0;
|
||||
PM_WL_TX = 0;
|
||||
|
||||
P2.3 = 0; // KEY_SEL
|
||||
PM2.3 = 0;
|
||||
P2.5 = 0; // ACC_ready1
|
||||
PM2.5 = 0;
|
||||
P14.1 = 0; // ACC_ready2
|
||||
PM14.1 = 0;
|
||||
SW_SEL_n = 0;
|
||||
PM_SW_SEL_n = 0;
|
||||
|
||||
ACCEL_INT1 = 0;
|
||||
PM_ACCEL_INT1 = 0;
|
||||
ACC_VALID = 0;
|
||||
PM_ACC_VALID = 0;
|
||||
|
||||
iic_mcu_stop( );
|
||||
|
||||
@ -417,7 +423,7 @@ void tsk_sys( )
|
||||
// 割り込み待ちで寝る //
|
||||
RTCIMK = 1;
|
||||
|
||||
CKC = 0b00001001;
|
||||
CKC = bits8(0,0,0,0, 1,0,0,1);
|
||||
OSMC = 0x00;
|
||||
|
||||
if( PM_EXTDC_n ) // きわどいタイミングで挿抜が起きることがある
|
||||
@ -431,7 +437,7 @@ void tsk_sys( )
|
||||
// ・アダプタ挿抜
|
||||
|
||||
OSMC = 0x01;
|
||||
CKC = 0b00001000;
|
||||
CKC = bits8(0,0,0,0, 1,0,0,0);
|
||||
|
||||
if( PM_EXTDC_n )
|
||||
{
|
||||
@ -522,7 +528,7 @@ static void chk_emergencyExit(){
|
||||
{
|
||||
// (TSボードで手動で/デバッガが)リセットをかけたらしい
|
||||
send_cmd_pmic( PM_REG_ADRS_BL, 0 );
|
||||
vreg_ctr[VREG_C_STATUS] = ( vreg_ctr[VREG_C_STATUS] & 0b10011111 );
|
||||
vreg_ctr[VREG_C_STATUS] = ( vreg_ctr[VREG_C_STATUS] & bits8(1,0,0,1, 1,1,1,1) );
|
||||
vreg_ctr[VREG_C_COMMAND0] |= REG_BIT_RESET1_REQ;
|
||||
renge_task_immed_add( tski_do_command0 );
|
||||
shirobako_power_control_count = WAIT_SHIROBAKO_POW_CONTROL;
|
||||
|
@ -8,6 +8,11 @@
|
||||
|
||||
//#define IIC_SLA_DCP 0x50
|
||||
|
||||
#define bits8(a,b,c,d,e,f,g,h) ( a<<7 | b<<6 | c<<5 | d<<4 | e<<3 | f<<2 | g<<1 | h )
|
||||
|
||||
#ifndef _WIN32
|
||||
// 実機環境
|
||||
|
||||
#ifdef _debug_led_
|
||||
# define DBG_LED_on { PM2.1 = 0; P2.1 = 1; }
|
||||
# define DBG_LED_off { P2.1 = 0; }
|
||||
@ -25,41 +30,21 @@
|
||||
# define DBG_LED2_toggle ;
|
||||
#endif
|
||||
|
||||
#ifdef _PMIC_CTR_
|
||||
# define SLP_ACK P7.7
|
||||
#endif
|
||||
|
||||
|
||||
#define IIC_SLA_CODEC 0xA4
|
||||
#define IIC_SLA_ACCEL 0x30 // ST LIS331DLH
|
||||
|
||||
|
||||
#define SLP_ACK P7.7
|
||||
|
||||
|
||||
// PMxは0で出力モード
|
||||
|
||||
// SoC
|
||||
#ifdef _MODEL_TEG2_
|
||||
#define IRQ0_ast { P3.0 = 0; PM3.0 = 0; }
|
||||
#define IRQ0_neg { PM3.0 = 1; }
|
||||
#define IRQ0 ( P3.0 )
|
||||
#endif
|
||||
#ifdef _MODEL_WM0_
|
||||
#define IRQ0_ast { P3.0 = 0; PM3.0 = 0; }
|
||||
#define IRQ0_neg { PM3.0 = 1; }
|
||||
#define IRQ0 ( P3.0 )
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_TS0_
|
||||
#define IRQ0_ast { P7.6 = 0; PM7.6 = 0; }
|
||||
#define IRQ0_neg { PM7.6 = 1; }
|
||||
#define IRQ0 ( P7.6 )
|
||||
#endif
|
||||
#ifdef _MODEL_CTR_
|
||||
#define IRQ0_ast { P7.6 = 0; PM7.6 = 0; }
|
||||
#define IRQ0_neg { P7.6 = 1; }
|
||||
#define IRQ0_enable { PM7.6 = 0; }
|
||||
#define IRQ0_disable { PM7.6 = 1; }
|
||||
#define IRQ0 ( P7.6 )
|
||||
#endif
|
||||
|
||||
|
||||
// ↓誤代入防止
|
||||
@ -83,28 +68,9 @@
|
||||
#define DEV_RSV2 ( 0b11 << 1 )
|
||||
|
||||
// FCRAM
|
||||
#ifdef _MODEL_TEG2_
|
||||
#define FCRAM_RST P14.0
|
||||
#define FCRAM_RST_ast { P14.0 = 0; }
|
||||
#define FCRAM_RST_neg { P14.0 = 1; }
|
||||
#endif
|
||||
#ifdef _MODEL_WM0_
|
||||
#define FCRAM_RST P14.0
|
||||
#define FCRAM_RST_ast { P14.0 = 0; }
|
||||
#define FCRAM_RST_neg { P14.0 = 1; }
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_TS0_
|
||||
#define FCRAM_RST P3.0
|
||||
#define FCRAM_RST_ast { P3.0 = 0; }
|
||||
#define FCRAM_RST_neg { P3.0 = 1; }
|
||||
#endif
|
||||
#ifdef _MODEL_CTR_
|
||||
#define FCRAM_RST P3.0
|
||||
#define FCRAM_RST_ast { P3.0 = 0; }
|
||||
#define FCRAM_RST_neg { P3.0 = 1; }
|
||||
#endif
|
||||
|
||||
|
||||
// CODEC
|
||||
#define PM_IRQ_n P7.2
|
||||
@ -133,25 +99,29 @@
|
||||
|
||||
// 充電中(in)
|
||||
#define BT_IN_CHG_n P5.1
|
||||
#define PM_BT_IN_CHG_n PM5.1
|
||||
#define PU_BT_IN_CHG_n PU5.1
|
||||
|
||||
#define SW_WIFI_n P7.4
|
||||
#define PM_SW_WIFI_n PM7.4
|
||||
// KR4
|
||||
#define SW_POW_n P7.3
|
||||
// KR3
|
||||
#define SW_SEL_n P2.3
|
||||
#define PM_SW_SEL_n PM2.3
|
||||
//#define VOL P2.7
|
||||
// ANI7
|
||||
|
||||
#define SW_HOME_n_JIKKI P20.4
|
||||
#define SW_HOME_n_JIKKI P20.4
|
||||
#define PM_SW_HOME_n_JIKKI PM20.4
|
||||
#define PU_SW_HOME_n_JIKKI PU20.4
|
||||
|
||||
// INTP22
|
||||
#define SW_HOME_n_TSBOARD P2.0
|
||||
#define SW_HOME_n_TSBOARD P2.0
|
||||
|
||||
// WiFi
|
||||
#ifndef _TEG_
|
||||
#define WL_TX P20.3 // INTP21
|
||||
#else
|
||||
#define WL_TX P20.3 // INTP21
|
||||
#endif
|
||||
#define PM_WL_TX PM20.3 // INTP21
|
||||
|
||||
//#define LED_CAM P1.0 // TO02
|
||||
//#define LED_WIFI P1.1 // TO03
|
||||
@ -161,36 +131,13 @@
|
||||
//#define LED_POW1 P1.5 // TO07 ( 赤 )
|
||||
//#define LED_CHARGE P2.4
|
||||
|
||||
|
||||
#ifdef _MODEL_TEG2_
|
||||
#define I2C_PU_on() P5.3 = 1
|
||||
#define I2C_PU_off() P5.3 = 0
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_TS0_
|
||||
#define I2C_PU_on() P5.3 = 1
|
||||
#define I2C_PU_off() P5.3 = 0
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_WM0_
|
||||
#define I2C_PU_on() P5.3 = 1
|
||||
#define I2C_PU_off() P5.3 = 0
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_CTR_
|
||||
// P5.3 に加え、P5.5, P140 P141
|
||||
// P140が出力専用なので...
|
||||
#define I2C_PU_on() { PM5.3 = 1; PM3.3 = 1; P14 |= 0x03; P5.3 = 1; PM5.3 = 0; P3.3 = 1; PM3.3 = 0; }
|
||||
#define I2C_PU_off() { PM5.3 = 1; PM3.3 = 1; P14 &= ~0x03; P5.3 = 0; PM5.3 = 0; P3.3 = 0; PM3.3 = 0; }
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_CTR_
|
||||
#define GYRO_ENABLE() P5.0 = 0
|
||||
#define GYRO_DISABLE() P5.0 = 1
|
||||
#else
|
||||
#define GYRO_ENABLE() ;
|
||||
#define GYRO_DISABLE() ;
|
||||
#endif
|
||||
|
||||
//#define I2C_M_SDA P3.1 // SDA10
|
||||
//#define I2C_M_SCL P3.2 // SCL10
|
||||
@ -213,38 +160,12 @@
|
||||
#define DIPSW_TAIKENDAI_NBD 0b01
|
||||
|
||||
|
||||
#ifndef _MODEL_WM0_
|
||||
#define SHELL_OPEN P7.1 // INTP5 ふた開閉 (閉じるとL)
|
||||
#else
|
||||
#define SHELL_OPEN 1
|
||||
#endif
|
||||
|
||||
//#define DBG_VR P2.6
|
||||
// ANI6
|
||||
|
||||
#define DBG P14.1
|
||||
|
||||
#ifdef _MODEL_TEG2_
|
||||
#define ACC_VALID P15.2
|
||||
#define ACCEL_INT1 P2.5
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_TS0_
|
||||
#define ACC_VALID P20.5
|
||||
#define PM_ACC_VALID PM20.5
|
||||
#define ACCEL_INT1 P2.5
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_WM0_
|
||||
// テレコになっていたが、センサ側の設定を変えたため、TS0と同じでよい
|
||||
#define ACC_VALID P20.5
|
||||
#define ACCEL_INT1 P2.5
|
||||
#endif
|
||||
|
||||
#ifdef _MODEL_CTR_
|
||||
#define ACC_VALID P20.5
|
||||
#define ACCEL_INT1 P2.5
|
||||
#endif
|
||||
|
||||
#define PM_ACCEL_INT1 PM2.5
|
||||
|
||||
|
||||
#define KR_SW_POW ( 1 << 3 )
|
||||
@ -277,3 +198,11 @@
|
||||
#define INT_MSK2_RSV 0b1111101111110111
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#else
|
||||
// win32シミュレーション環境
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -1,152 +1,161 @@
|
||||
C:\WINDOWS\system32\cmd.exe /c touch magic.c
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no loader.c
|
||||
loader.c(121) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
loader.c(122) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 2 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\loader.asm
|
||||
C:\Windows\system32\cmd.exe /c c:\cygwin\bin\touch magic.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no loader.c
|
||||
loader.c(139) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
loader.c(140) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
loader.c(172) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 3 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\loader.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no pm.c
|
||||
pm.c(801) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(878) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(886) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(1101) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(1104) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 5 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\pm.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no pm.c
|
||||
pm.c(466) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(804) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(891) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(900) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(1103) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pm.c(1105) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 6 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\pm.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_ctr.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_ctr.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\i2c_ctr.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\i2c_ctr.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no main.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no main.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\main.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\main.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no magic.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no magic.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\magic.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\magic.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no WDT.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no WDT.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\WDT.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\WDT.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_mcu.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_mcu.c
|
||||
i2c_mcu.c(210) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 1 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\i2c_mcu.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\i2c_mcu.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_twl.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_twl.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\i2c_twl.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\i2c_twl.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no led.c
|
||||
led.c(109) : CC78K0R warning W0745: Expected function prototype
|
||||
led.c(251) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led.c(256) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led.c(318) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led.c(377) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led.c(403) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led.c(579) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 7 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\led.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no led.c
|
||||
led.c(82) : CC78K0R warning W0745: Expected function prototype
|
||||
led.c(332) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 2 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\led.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no rtc.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no rtc.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\rtc.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\rtc.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no vreg_ctr.c
|
||||
vreg_ctr.c(163) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no vreg_ctr.c
|
||||
vreg_ctr.c(161) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(162) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(164) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(166) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(168) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(169) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(216) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(216) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(221) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(221) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(225) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(225) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(229) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(229) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(233) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(167) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(215) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(215) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(220) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(220) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(224) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(224) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(228) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(228) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_ctr.c(232) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 14 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\vreg_ctr.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\vreg_ctr.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no vreg_twl.c
|
||||
vreg_twl.c(57) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_twl.c(61) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no vreg_twl.c
|
||||
vreg_twl.c(55) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
vreg_twl.c(59) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 2 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\vreg_twl.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\vreg_twl.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no adc.c
|
||||
adc.c(103) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(200) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(232) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(344) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(384) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(462) : CC78K0R warning W0745: Expected function prototype
|
||||
adc.c(491) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(496) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(122) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no adc.c
|
||||
adc.c(104) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(194) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(225) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(337) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(377) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(455) : CC78K0R warning W0745: Expected function prototype
|
||||
adc.c(484) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(489) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
adc.c(123) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 9 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\adc.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\adc.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no renge\renge.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no renge\renge.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\renge.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\renge.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no accero.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no accero.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\accero.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\accero.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no self_flash.c
|
||||
self_flash.c(271) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
self_flash.c(272) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no self_flash.c
|
||||
self_flash.c(280) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
self_flash.c(281) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 2 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\self_flash.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\self_flash.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no sw.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no sw.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\sw.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\sw.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_debug.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_debug.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\task_debug.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\task_debug.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_misc.c
|
||||
task_misc.c(300) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 1 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\task_misc.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_sys.c
|
||||
task_sys.c(207) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
task_sys.c(525) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_misc.c
|
||||
task_misc.c(292) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
task_misc.c(299) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 2 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\task_sys.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\task_misc.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no pedo_alg_thre_det2.c
|
||||
pedo_alg_thre_det2.c(58) : CC78K0R warning W0745: Expected function prototype
|
||||
pedo_alg_thre_det2.c(73) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pedo_alg_thre_det2.c(140) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pedo_alg_thre_det2.c(153) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_sys.c
|
||||
task_sys.c(215) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
task_sys.c(531) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 2 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\task_sys.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no pedo_alg_thre_det2.c
|
||||
pedo_alg_thre_det2.c(95) : CC78K0R warning W0745: Expected function prototype
|
||||
pedo_alg_thre_det2.c(110) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pedo_alg_thre_det2.c(178) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
pedo_alg_thre_det2.c(191) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 4 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\pedo_alg_thre_det2.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\pedo_alg_thre_det2.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no ini_VECT.c
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_status.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\ini_VECT.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\task_status.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\bin\cc78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_status.c
|
||||
Compilation complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"d:\program files\nec electronics tools\dev" -_msgoff inter_asm\task_status.asm
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no led_cam.c
|
||||
led_cam.c(135) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 1 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\led_cam.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\lk78k0r.exe" -y"d:\program files\nec electronics tools\dev" -_msgoff -obsr.lmf "..\..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.12\lib78k0r\s0rm.rel" -gi1B339499E033F240BFAAh -pbsr_k0r.map -nkd -gb7EFBFFh -b"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\lib78k0r\fsl.lib" -bcl0rdm.lib -bcl0rm.lib -bcl0rmf.lib -i"D:\Program Files\NEC Electronics Tools\CC78K0R\W2.12\lib78k0r" -dbsr_mcu.dr -s -w0 loader.rel pm.rel i2c_ctr.rel main.rel magic.rel WDT.rel i2c_mcu.rel i2c_twl.rel led.rel rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel renge.rel accero.rel self_flash.rel sw.rel task_debug.rel task_misc.rel task_sys.rel pedo_alg_thre_det2.rel ini_VECT.rel task_status.rel
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\bin\cc78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -irenge -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no led_pow.c
|
||||
led_pow.c(99) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led_pow.c(104) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led_pow.c(155) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led_pow.c(215) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
led_pow.c(244) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||
Compilation complete, 0 error(s) and 5 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\ra78k0r.exe" -c9F0104 -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff inter_asm\led_pow.asm
|
||||
Assembly complete, 0 error(s) and 0 warning(s) found.
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\lk78k0r.exe" -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -obsr.lmf "..\..\..\..\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\lib78k0r\s0rm.rel" -gi1B339499E033F240BFAAh -pbsr_k0r.map -nkd -gb7EFBFFh -b"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\lib78k0r\fsl.lib" -bcl0rdm.lib -bcl0rm.lib -bcl0rmf.lib -i"C:\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\lib78k0r" -dbsr_mcu.dr -s -w0 loader.rel pm.rel i2c_ctr.rel main.rel magic.rel WDT.rel i2c_mcu.rel i2c_twl.rel led.rel rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel renge.rel accero.rel self_flash.rel sw.rel task_debug.rel task_misc.rel task_sys.rel pedo_alg_thre_det2.rel ini_VECT.rel task_status.rel led_cam.rel led_pow.rel
|
||||
Link complete, 0 error(s) and 0 warning(s) found.
|
||||
"D:\Program Files\NEC Electronics Tools\RA78K0R\W1.33\bin\oc78k0r.exe" -y"d:\program files\nec electronics tools\dev" -_msgoff -o.\bsr.hex -nu -ki bsr.lmf
|
||||
"C:\Program Files (x86)\NEC Electronics Tools\RA78K0R\W1.33\bin\oc78k0r.exe" -y"c:\program files (x86)\nec electronics tools\dev" -_msgoff -o.\bsr.hex -nu -ki bsr.lmf
|
||||
Object Conversion Complete, 0 error(s) and 0 warning(s) found.
|
||||
C:\WINDOWS\system32\cmd.exe /c ruby nec_s_2_bsrbin2.rb bsr.hex
|
||||
C:\Windows\system32\cmd.exe /c ruby nec_s_2_bsrbin2.rb bsr.hex
|
||||
4
|
||||
intel-HEX to bsr bin converter
|
||||
file converted!
|
||||
|
||||
|
||||
Build Total error(s) : 0 Total warning(s) : 49
|
||||
Build Total error(s) : 0 Total warning(s) : 53
|
||||
|
@ -1,12 +1,12 @@
|
||||
[ProjectManager]
|
||||
Version=6.00
|
||||
Path=C:\78k_data\yav-mcu-basara\trunk\
|
||||
Path=C:\78k_data\yav-mcu-basara\branches\sim\
|
||||
Title=yav-mcu
|
||||
Series=78K0R.PM
|
||||
Device=uPD79F0104
|
||||
DeviceVer=E1.00b
|
||||
DebugMode=1
|
||||
Target=C:\78k_data\yav-mcu-basara\trunk\bsr.lmf
|
||||
Target=bsr.lmf
|
||||
[BuildMode0]
|
||||
BuildModeName=Debug Build
|
||||
TargetFile=0
|
||||
@ -607,42 +607,6 @@ Source22=ini_VECT.c
|
||||
Source23=task_status.c
|
||||
Source24=led_cam.c
|
||||
Source25=led_pow.c
|
||||
[IncFile]
|
||||
Include1=incs_loader.h
|
||||
Include2=jhl_defs.h
|
||||
Include3=config.h
|
||||
Include4=user_define.h
|
||||
Include5=bsr_system.h
|
||||
Include6=renge\renge.h
|
||||
Include7=renge\renge_defs.h
|
||||
Include8=renge\renge_task_immediate.h
|
||||
Include9=vreg_ctr.h
|
||||
Include10=vreg_twl.h
|
||||
Include11=loader.h
|
||||
Include12=i2c_mcu.h
|
||||
Include13=WDT.h
|
||||
Include14=..\..\..\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r\fsl.h
|
||||
Include15=fsl_user.h
|
||||
Include16=i2c_ctr.h
|
||||
Include17=pm.h
|
||||
Include18=rtc.h
|
||||
Include19=reboot.h
|
||||
Include20=magic.h
|
||||
Include21=incs.h
|
||||
Include22=i2c_twl.h
|
||||
Include23=accero.h
|
||||
Include24=pedometer.h
|
||||
Include25=sw.h
|
||||
Include26=adc.h
|
||||
Include27=led.h
|
||||
Include28=batt_params.h
|
||||
Include29=pool.h
|
||||
Include30=i2c_twl_defs.h
|
||||
Include31=voltable.h
|
||||
Include32=renge\renge_task_intval.h
|
||||
Include33=..\..\..\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r\math.h
|
||||
Include34=self_flash.h
|
||||
Include35=pedo_lpf_coeff.h
|
||||
[BuildBefore-AfterCmd]
|
||||
Before1=c:\cygwin\bin\touch magic.c
|
||||
After1=ruby nec_s_2_bsrbin2.rb bsr.hex
|
||||
@ -880,7 +844,7 @@ ZB=
|
||||
Etcetera0=
|
||||
Etcetera1=boot.lmf
|
||||
CommandFile=0
|
||||
OFILE=C:\78k_data\yav-mcu-basara\trunk\bsr.lmf
|
||||
OFILE=C:\78k_data\yav-mcu-basara\branches\sim\bsr.lmf
|
||||
[Options.LK78K0R 3]
|
||||
Version=100
|
||||
O0=bsr_bsr.lmf
|
||||
@ -1055,3 +1019,41 @@ DefaultMode2=1
|
||||
DefaultMode3=1
|
||||
DefaultMode4=1
|
||||
DefaultMode5=1
|
||||
[IncFile]
|
||||
Include1=incs_loader.h
|
||||
Include2=jhl_defs.h
|
||||
Include3=config.h
|
||||
Include4=user_define.h
|
||||
Include5=bsr_system.h
|
||||
Include6=renge\renge.h
|
||||
Include7=renge\renge_defs.h
|
||||
Include8=renge\renge_task_immediate.h
|
||||
Include9=vreg_ctr.h
|
||||
Include10=vreg_twl.h
|
||||
Include11=loader.h
|
||||
Include12=i2c_mcu.h
|
||||
Include13=WDT.h
|
||||
Include14=fsl_user.h
|
||||
Include15=i2c_ctr.h
|
||||
Include16=pm.h
|
||||
Include17=rtc.h
|
||||
Include18=reboot.h
|
||||
Include19=magic.h
|
||||
Include20=incs.h
|
||||
Include21=i2c_twl.h
|
||||
Include22=accero.h
|
||||
Include23=pedometer.h
|
||||
Include24=sw.h
|
||||
Include25=adc.h
|
||||
Include26=led.h
|
||||
Include27=batt_params.h
|
||||
Include28=pool.h
|
||||
Include29=i2c_twl_defs.h
|
||||
Include30=voltable.h
|
||||
Include31=renge\renge_task_intval.h
|
||||
Include32=self_flash.h
|
||||
Include33=pedo_lpf_coeff.h
|
||||
Include34=..\..\..\..\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r\fsl.h
|
||||
Include35=..\..\..\..\Program Files (x86)\NEC Electronics Tools\CC78K0R\W2.13\inc78k0r\math.h
|
||||
Include36=sim\simOnWin.h
|
||||
Include37=sim\sfrAlias.h
|
||||
|
Loading…
Reference in New Issue
Block a user