aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/demos/SPC5/RT-SPC56EC-EVB
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/demos/SPC5/RT-SPC56EC-EVB')
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile29
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ghs181
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ht189
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/debug.wsx273
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/stm_spc56ec74a256s_spc56ec74_minimodule_debug_jtag.cfg290
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/chconf.h756
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.lcf153
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.mcpbin0 -> 70897 bytes
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/halconf.h531
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/main.c142
-rw-r--r--lib/chibios/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h293
11 files changed, 2837 insertions, 0 deletions
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile
new file mode 100644
index 000000000..0c6652275
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile
@@ -0,0 +1,29 @@
1##############################################################################
2# Multi-project makefile rules
3#
4
5all:
6 @echo
7 @echo === Building with GHS ==============================================
8 +@make --no-print-directory -f Makefile-ghs all
9 @echo ====================================================================
10 @echo
11 @echo === Building with HighTec ==========================================
12 +@make --no-print-directory -f Makefile-ht all
13 @echo ====================================================================
14 @echo
15 @echo === Building with GCC (eabivle) ====================================
16 +@make --no-print-directory -f Makefile-gcc-eabivle all
17 @echo ====================================================================
18 @echo
19
20clean:
21 @echo
22 +@make --no-print-directory -f Makefile-ghs clean
23 @echo
24 +@make --no-print-directory -f Makefile-ht clean
25 @echo
26 +@make --no-print-directory -f Makefile-gcc-eabivle clean
27 @echo
28#
29##############################################################################
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ghs b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ghs
new file mode 100644
index 000000000..0894e8994
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ghs
@@ -0,0 +1,181 @@
1##############################################################################
2# Build global options
3# NOTE: Can be overridden externally.
4#
5
6# Compiler options here.
7ifeq ($(USE_OPT),)
8 USE_OPT = -gnu99 -G -dual_debug -Ospeed -Onounroll
9endif
10
11# C specific options here (added to USE_OPT).
12ifeq ($(USE_COPT),)
13 USE_COPT =
14endif
15
16# C++ specific options here (added to USE_OPT).
17ifeq ($(USE_CPPOPT),)
18 USE_CPPOPT = -fno-rtti
19endif
20
21# Enable this if you want the linker to remove unused code and data.
22ifeq ($(USE_LINK_GC),)
23 USE_LINK_GC = yes
24endif
25
26# Linker extra options here.
27ifeq ($(USE_LDOPT),)
28 USE_LDOPT =
29endif
30
31# Enable this if you want link time optimizations (LTO)
32ifeq ($(USE_LTO),)
33 USE_LTO = no
34endif
35
36# If enabled, this option allows to compile the application in VLE mode.
37ifeq ($(USE_VLE),)
38 USE_VLE = yes
39endif
40
41# Enable this if you want to see the full log while compiling.
42ifeq ($(USE_VERBOSE_COMPILE),)
43 USE_VERBOSE_COMPILE = no
44endif
45
46# If enabled, this option makes the build process faster by not compiling
47# modules not used in the current configuration.
48ifeq ($(USE_SMART_BUILD),)
49 USE_SMART_BUILD = yes
50endif
51
52#
53# Build global options
54##############################################################################
55
56##############################################################################
57# Architecture or project specific options
58#
59
60# Stack size to be allocated to the process stack. This stack is
61# the stack used by the main() thread.
62ifeq ($(USE_PROCESS_STACKSIZE),)
63 USE_PROCESS_STACKSIZE = 0x400
64endif
65
66# Stack size to the allocated to the optional exceptions stack. This
67# stack is used for processing interrupts and exceptions.
68ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
69 USE_EXCEPTIONS_STACKSIZE = 0
70endif
71
72#
73# Architecture or project specific options
74##############################################################################
75
76##############################################################################
77# Project, sources and paths
78#
79
80# Define project name here
81PROJECT = ch
82
83# Imported source files and paths
84CHIBIOS = ../../..
85CONFDIR := .
86BUILDDIR := ./build-ghs
87DEPDIR := ./.dep-ghs
88
89# Licensing files.
90include $(CHIBIOS)/os/license/license.mk
91# Startup files.
92include $(CHIBIOS)/os/common/startup/e200/compilers/GHS/mk/startup_spc56ecxx.mk
93# HAL-OSAL files (optional).
94include $(CHIBIOS)/os/hal/hal.mk
95include $(CHIBIOS)/os/hal/boards/ST_EVB_SPC56EC/board.mk
96include $(CHIBIOS)/os/hal/ports/SPC5/SPC56ECxx/platform.mk
97include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
98# RTOS files (optional).
99include $(CHIBIOS)/os/rt/rt.mk
100include $(CHIBIOS)/os/common/ports/e200/compilers/GHS/mk/port.mk
101# Other files (optional).
102include $(CHIBIOS)/test/lib/test.mk
103include $(CHIBIOS)/test/rt/rt_test.mk
104include $(CHIBIOS)/test/oslib/oslib_test.mk
105include $(CHIBIOS)/os/hal/lib/streams/streams.mk
106include $(CHIBIOS)/os/various/shell/shell.mk
107
108# Define linker script file here
109LDSCRIPT= $(STARTUPLD)/SPC56EC74.ld
110
111# C sources here.
112CSRC = $(ALLCSRC) \
113 $(TESTSRC) \
114 main.c
115
116# C++ sources here.
117CPPSRC = $(ALLCPPSRC)
118
119# List ASM source files here
120ASMSRC = $(ALLASMSRC)
121ASMXSRC = $(ALLXASMSRC)
122
123INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR)
124
125#
126# Project, sources and paths
127##############################################################################
128
129##############################################################################
130# Start of user section
131#
132
133# List all user C define here, like -D_DEBUG=1
134UDEFS = -DSPC56ECXX_FMPLL_CLOCK_ERRATA_WORKAROUND=0 -DTEST_CFG_SIZE_REPORT=0
135
136# Define ASM defines here
137UADEFS =
138
139# List all user directories here
140UINCDIR =
141
142# List the user directory to look for the libraries here
143ULIBDIR =
144
145# List all user libraries here
146ULIBS =
147
148#
149# End of user defines
150##############################################################################
151
152##############################################################################
153# Compiler settings
154#
155
156MCU = ppc564xc
157
158TRGT =
159CC = $(TRGT)ccppc
160CPPC = $(TRGT)cxppc
161LD = $(TRGT)cxppc
162AS = $(TRGT)ccppc
163AR = $(TRGT)ax
164OD = $(TRGT)gdump
165SZ = $(TRGT)gfunsize
166HEX = gsrec -hex386
167MOT = gsrec
168BIN = gmemfile
169
170# Define C warning options here
171CWARN = -Wunknown-pragmas -Wimplicit-int -Wshadow -Wtrigraphs -Wundef
172
173# Define C++ warning options here
174CPPWARN = -Wunknown-pragmas -Wimplicit-int -Wshadow -Wtrigraphs -Wundef
175
176#
177# Compiler settings
178##############################################################################
179
180RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GHS
181include $(RULESPATH)/rules.mk
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ht b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ht
new file mode 100644
index 000000000..40ba93687
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/Makefile-ht
@@ -0,0 +1,189 @@
1##############################################################################
2# Build global options
3# NOTE: Can be overridden externally.
4#
5
6# Compiler options here.
7ifeq ($(USE_OPT),)
8 USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
9endif
10
11# C specific options here (added to USE_OPT).
12ifeq ($(USE_COPT),)
13 USE_COPT =
14endif
15
16# C++ specific options here (added to USE_OPT).
17ifeq ($(USE_CPPOPT),)
18 USE_CPPOPT = -fno-rtti
19endif
20
21# Enable this if you want the linker to remove unused code and data.
22ifeq ($(USE_LINK_GC),)
23 USE_LINK_GC = yes
24endif
25
26# Linker extra options here.
27ifeq ($(USE_LDOPT),)
28 USE_LDOPT =
29endif
30
31# Enable this if you want link time optimizations (LTO)
32ifeq ($(USE_LTO),)
33 USE_LTO = no
34endif
35
36# If enabled, this option allows to compile the application in VLE mode.
37ifeq ($(USE_VLE),)
38 USE_VLE = yes
39endif
40
41# Enable this if you want to see the full log while compiling.
42ifeq ($(USE_VERBOSE_COMPILE),)
43 USE_VERBOSE_COMPILE = no
44endif
45
46# If enabled, this option makes the build process faster by not compiling
47# modules not used in the current configuration.
48ifeq ($(USE_SMART_BUILD),)
49 USE_SMART_BUILD = yes
50endif
51
52#
53# Build global options
54##############################################################################
55
56##############################################################################
57# Architecture or project specific options
58#
59
60# Stack size to be allocated to the process stack. This stack is
61# the stack used by the main() thread.
62ifeq ($(USE_PROCESS_STACKSIZE),)
63 USE_PROCESS_STACKSIZE = 0x400
64endif
65
66# Stack size to the allocated to the optional exceptions stack. This
67# stack is used for processing interrupts and exceptions.
68ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
69 USE_EXCEPTIONS_STACKSIZE = 0
70endif
71
72#
73# Architecture or project specific options
74##############################################################################
75
76##############################################################################
77# Project, sources and paths
78#
79
80# Define project name here
81PROJECT = ch
82
83# Imported source files and paths
84CHIBIOS = ../../..
85CONFDIR := .
86BUILDDIR := ./build-ht
87DEPDIR := ./.dep-ht
88
89# Licensing files.
90include $(CHIBIOS)/os/license/license.mk
91# Startup files.
92include $(CHIBIOS)/os/common/startup/e200/compilers/GCC/mk/startup_spc56ecxx.mk
93# HAL-OSAL files (optional).
94include $(CHIBIOS)/os/hal/hal.mk
95include $(CHIBIOS)/os/hal/boards/ST_EVB_SPC56EC/board.mk
96include $(CHIBIOS)/os/hal/ports/SPC5/SPC56ECxx/platform.mk
97include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
98# RTOS files (optional).
99include $(CHIBIOS)/os/rt/rt.mk
100include $(CHIBIOS)/os/common/ports/e200/compilers/GCC/mk/port.mk
101# Other files (optional).
102include $(CHIBIOS)/test/lib/test.mk
103include $(CHIBIOS)/test/rt/rt_test.mk
104include $(CHIBIOS)/test/oslib/oslib_test.mk
105include $(CHIBIOS)/os/hal/lib/streams/streams.mk
106include $(CHIBIOS)/os/various/shell/shell.mk
107
108# Define linker script file here
109LDSCRIPT= $(STARTUPLD)/SPC56EC74.ld
110
111# C sources here.
112CSRC = $(ALLCSRC) \
113 $(TESTSRC) \
114 main.c
115
116# C++ sources here.
117CPPSRC = $(ALLCPPSRC)
118
119# List ASM source files here
120ASMSRC = $(ALLASMSRC)
121ASMXSRC = $(ALLXASMSRC)
122
123INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR)
124
125#
126# Project, sources and paths
127##############################################################################
128
129##############################################################################
130# Start of user section
131#
132
133# List all user C define here, like -D_DEBUG=1
134UDEFS = -DSPC56ECXX_FMPLL_CLOCK_ERRATA_WORKAROUND=0 -DTEST_CFG_SIZE_REPORT=0
135
136# Define ASM defines here
137UADEFS =
138
139# List all user directories here
140UINCDIR =
141
142# List the user directory to look for the libraries here
143ULIBDIR =
144
145# List all user libraries here
146ULIBS =
147
148#
149# End of user defines
150##############################################################################
151
152##############################################################################
153# Compiler settings
154#
155
156MCU = e200zx -meabi -msdata=none -mregnames # HighTec
157#MCU = e200z4 -meabi -msdata=none -mregnames # Free GCC
158
159TRGT = ppc-vle-
160#TRGT = powerpc-eabivle-
161#TRGT = ppc-freevle-eabi-
162CC = $(TRGT)gcc
163CPPC = $(TRGT)g++
164# Enable loading with g++ only if you need C++ runtime support.
165# NOTE: You can use C++ even without C++ support if you are careful. C++
166# runtime support makes code size explode.
167LD = $(TRGT)gcc
168#LD = $(TRGT)g++
169CP = $(TRGT)objcopy
170AS = $(TRGT)gcc -x assembler-with-cpp
171AR = $(TRGT)ar
172OD = $(TRGT)objdump
173SZ = $(TRGT)size
174HEX = $(CP) -O ihex
175MOT = $(CP) -O srec
176BIN = $(CP) -O binary
177
178# Define C warning options here
179CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
180
181# Define C++ warning options here
182CPPWARN = -Wall -Wextra -Wundef
183
184#
185# Compiler settings
186##############################################################################
187
188RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GCC
189include $(RULESPATH)/rules.mk
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/debug.wsx b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/debug.wsx
new file mode 100644
index 000000000..ccaa9e772
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/debug.wsx
@@ -0,0 +1,273 @@
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<stg format="2.0">
3 <OriginalWsp type="string">debug.wsx</OriginalWsp><BackupWspFlag type="flag">0</BackupWspFlag><UseWspCnt type="int">0</UseWspCnt><WspCloseCnt type="int">0</WspCloseCnt><ProdInfo type="bin" size="52">vQTv/gAAAQAXAAIA8QkPAAAABAAAAAAAPwAAAAAAAAAEAAAAAgAAAAAAAAAAAAAAAAAAAA==</ProdInfo><ProdInfoString type="string">4.0</ProdInfoString><CreationDate type="string">28.08.2013 14:58:49:999</CreationDate><MainFrame type="key"><VisibilityGroupsMgr type="key"><Core0 type="key"><UsePrimaryGroup type="flag">0</UsePrimaryGroup><UseLastUsedGroup type="flag">0</UseLastUsedGroup></Core0><Core1 type="key"><UsePrimaryGroup type="flag">0</UsePrimaryGroup><UseLastUsedGroup type="flag">0</UseLastUsedGroup></Core1><EnableVisibilityGroups type="flag">0</EnableVisibilityGroups><VisibilityGroup_1 type="key"><NoOfDebugger type="int">0</NoOfDebugger><DefaultGroupName type="string">WorkspaceManager</DefaultGroupName><GroupName type="string">WorkspaceManager</GroupName><PrimaryGroup type="flag">0</PrimaryGroup><CommonGroup type="flag">1</CommonGroup></VisibilityGroup_1><VisibilityGroup_2 type="key"><Debugger_1 type="string">Core0</Debugger_1><NoOfDebugger type="int">1</NoOfDebugger><DefaultGroupName type="string">Target0.Controller0.Core0</DefaultGroupName><GroupName type="string">Target0.Controller0.Core0</GroupName><PrimaryGroup type="flag">1</PrimaryGroup><CommonGroup type="flag">0</CommonGroup></VisibilityGroup_2><VisibilityGroup_3 type="key"><Debugger_1 type="string">Core1</Debugger_1><NoOfDebugger type="int">1</NoOfDebugger><DefaultGroupName type="string">Target0.Controller0.Core1</DefaultGroupName><GroupName type="string">Target0.Controller0.Core1</GroupName><PrimaryGroup type="flag">1</PrimaryGroup><CommonGroup type="flag">0</CommonGroup></VisibilityGroup_3><NoOfDefaultVisibilityGroups type="int">3</NoOfDefaultVisibilityGroups><NoOfVisibilityGroups type="int">3</NoOfVisibilityGroups><EnableUserSwitchOfVisibilityGroups type="flag">0</EnableUserSwitchOfVisibilityGroups><EnableDebuggerSwitchOfVisibilityGroups type="flag">0</EnableDebuggerSwitchOfVisibilityGroups><VisibilityGroupsCtrlTBCat type="int">7</VisibilityGroupsCtrlTBCat></VisibilityGroupsMgr><NETPlacementRoot type="key"><FormsData type="innerxml"><FormsData><Bounds><X>63</X><Y>21</Y><Width>1296</Width><Height>818</Height></Bounds><ClientSize><Width>1280</Width><Height>780</Height></ClientSize><State>Normal</State></FormsData></FormsData><DockingManagerControlData type="innerxml"><DockingManagerControlData><MDIActive>false</MDIActive><DocumentDockStyle>Top</DocumentDockStyle><DockingControls><DockingControlData><DockedDimension>1272</DockedDimension><Cancelled>false</Cancelled><DockingType>Bottom</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>0</DockingIndex><PanelIndex>0</PanelIndex><ContainerType>DockPanel</ContainerType><Selected>true</Selected></DockingControlData><DockingControlData><DockedDimension>457</DockedDimension><Cancelled>false</Cancelled><DockingType>Left</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>0</DockingIndex><PanelIndex>0</PanelIndex><ContainerType>DockPanel</ContainerType><Selected>false</Selected></DockingControlData><DockingControlData><DockedDimension>457</DockedDimension><Cancelled>false</Cancelled><DockingType>Left</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>1</DockingIndex><PanelIndex>0</PanelIndex><ContainerType>DockPanel</ContainerType><Selected>false</Selected></DockingControlData><DockingControlData><DockedDimension>0</DockedDimension><Cancelled>false</Cancelled><DockingType>Top</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>2</DockingIndex><PanelIndex>-1</PanelIndex><ContainerType>TabbedDocument</ContainerType><Selected>false</Selected></DockingControlData><DockingControlData><DockedDimension>457</DockedDimension><Cancelled>false</Cancelled><DockingType>Left</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>3</DockingIndex><PanelIndex>0</PanelIndex><ContainerType>DockPanel</ContainerType><Selected>true</Selected></DockingControlData><DockingControlData><DockedDimension>457</DockedDimension><Cancelled>false</Cancelled><DockingType>Left</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>2</DockingIndex><PanelIndex>0</PanelIndex><ContainerType>DockPanel</ContainerType><Selected>false</Selected></DockingControlData><DockingControlData><DockedDimension>457</DockedDimension><Cancelled>false</Cancelled><DockingType>Left</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>4</DockingIndex><PanelIndex>0</PanelIndex><ContainerType>DockPanel</ContainerType><Selected>false</Selected></DockingControlData><DockingControlData><DockedDimension>0</DockedDimension><Cancelled>false</Cancelled><DockingType>Top</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>1</DockingIndex><PanelIndex>-1</PanelIndex><ContainerType>TabbedDocument</ContainerType><Selected>false</Selected></DockingControlData><DockingControlData><DockedDimension>0</DockedDimension><Cancelled>false</Cancelled><DockingType>Top</DockingType><FloatingBounds><X>0</X><Y>0</Y><Width>0</Width><Height>0</Height></FloatingBounds><AutoHide>false</AutoHide><AutoHideByContextSwitch>false</AutoHideByContextSwitch><DockingIndex>0</DockingIndex><PanelIndex>-1</PanelIndex><ContainerType>TabbedDocument</ContainerType><Selected>true</Selected></DockingControlData></DockingControls><LeftDockingContainerControlData><DockingContainerControlData><Tabbed>true</Tabbed><Dimension>632</Dimension></DockingContainerControlData></LeftDockingContainerControlData><RightDockingContainerControlData><DockingContainerControlData><Tabbed>false</Tabbed><Dimension>200</Dimension></DockingContainerControlData></RightDockingContainerControlData><TopDockingContainerControlData><DockingContainerControlData><Tabbed>false</Tabbed><Dimension>200</Dimension></DockingContainerControlData></TopDockingContainerControlData><BottomDockingContainerControlData><DockingContainerControlData><Tabbed>true</Tabbed><Dimension>200</Dimension></DockingContainerControlData></BottomDockingContainerControlData><TabbedDocumentContainerControlData><TabbedDocumentContainerControlData><Selected>true</Selected><SplitterSize>100</SplitterSize></TabbedDocumentContainerControlData></TabbedDocumentContainerControlData></DockingManagerControlData></DockingManagerControlData><ToolbarControlData type="innerxml"><ToolbarControlData><ShowPanelShortcuts>true</ShowPanelShortcuts><ShowToolItemMessages>true</ShowToolItemMessages><TopContainer><PanelBounds><X>0</X><Y>0</Y><Width>1280</Width><Height>74</Height></PanelBounds><ToolBars><ToolbarPersistData><Bounds><X>0</X><Y>0</Y><Width>1280</Width><Height>24</Height></Bounds><Name>Platform Main Menu</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData/></ToolbarPersistData><ToolbarPersistData><Bounds><X>3</X><Y>24</Y><Width>276</Width><Height>25</Height></Bounds><Name>Macro Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData><ToolItemPersistData><Name>UDE_0x3B_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}</Name><Visible>true</Visible><Text>Run Macro</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x40_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}</Name><Visible>true</Visible><Text>Debug Macro</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x3_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}</Name><Visible>true</Visible><Text>Break Macro</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x3C_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}</Name><Visible>true</Visible><Text>Reload Macro</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Ctrl_{4D5190CD-077D-4F92-B890-4545242BF32A}_UDEWorkspace</Name><Visible>true</Visible><Text/><DisplayStyle>ImageAndText</DisplayStyle><AppendAccelerator>false</AppendAccelerator></ToolItemPersistData></ToolItemData></ToolbarPersistData><ToolbarPersistData><Bounds><X>279</X><Y>24</Y><Width>141</Width><Height>25</Height></Bounds><Name>Config Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData><ToolItemPersistData><Name>UDE_0x3_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}</Name><Visible>true</Visible><Text>Target Configuration</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xFE_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Connect Target</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x100_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Disconnect Target</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x6_{1C85B31A-5D25-4197-9635-9C5DC28EAFD7}</Name><Visible>true</Visible><Text>Setup Target Interface</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x12_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}</Name><Visible>true</Visible><Text>MCU Run Control</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData></ToolItemData></ToolbarPersistData><ToolbarPersistData><Bounds><X>420</X><Y>24</Y><Width>259</Width><Height>25</Height></Bounds><Name>Tools Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData><ToolItemPersistData><Name>UDE_Ctrl_{377CE046-823C-4A05-8828-13C25D345D77}_Core0</Name><Visible>true</Visible><Text/><DisplayStyle>ImageAndText</DisplayStyle><AppendAccelerator>false</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xE1_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Execution Time Setup</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Ctrl_{377CE046-823C-4A05-8828-13C25D345D77}_Core1</Name><Visible>true</Visible><Text/><DisplayStyle>ImageAndText</DisplayStyle><AppendAccelerator>false</AppendAccelerator></ToolItemPersistData></ToolItemData></ToolbarPersistData><ToolbarPersistData><Bounds><X>679</X><Y>24</Y><Width>95</Width><Height>25</Height></Bounds><Name>Edit Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData><ToolItemPersistData><Name>UDE_Workspace_0x1779</Name><Visible>true</Visible><Text>Cut</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x177A</Name><Visible>true</Visible><Text>Copy</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x177B</Name><Visible>true</Visible><Text>Paste</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData></ToolItemData></ToolbarPersistData><ToolbarPersistData><Bounds><X>774</X><Y>24</Y><Width>49</Width><Height>25</Height></Bounds><Name>File Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData><ToolItemPersistData><Name>UDE_Workspace_0x1770</Name><Visible>true</Visible><Text>New Workspace</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x1771</Name><Visible>false</Visible><Text>Open workspace</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x1772</Name><Visible>false</Visible><Text>Save workspace as</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x1773</Name><Visible>false</Visible><Text>Save workspace</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x1774</Name><Visible>false</Visible><Text>Close workspace</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x177F</Name><Visible>false</Visible><Text>Export view content</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Workspace_0x1778</Name><Visible>false</Visible><Text>Print</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x1_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>false</Visible><Text>Load Program</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData></ToolItemData></ToolbarPersistData><ToolbarPersistData><Bounds><X>823</X><Y>24</Y><Width>440</Width><Height>25</Height></Bounds><Name>Views Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData><ToolItemPersistData><Name>UDE_0x4_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}</Name><Visible>true</Visible><Text>Target Browser</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x15_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}</Name><Visible>true</Visible><Text>Diagnostic Message Viewer</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xF_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}</Name><Visible>true</Visible><Text>Console</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x0_{DED51A60-E0B7-11D4-9112-0001034962B6}</Name><Visible>true</Visible><Text>CPU Window</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x1E_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Explore Symbols</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xA_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Program</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x5C_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Single Program Window</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x5A_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Disassembly Window</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x2D_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Show Special Function Register</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x3C_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Locals</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x46_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Watch</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xA_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Simulated I/O</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x14_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>UDE HTML</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x19_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Array Chart</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x1B_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Time Traced Signal Chart</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x50_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>IP Trace Profiling</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x28_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Memory</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x46_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}</Name><Visible>true</Visible><Text>Call Stack</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData></ToolItemData></ToolbarPersistData><ToolbarPersistData><Bounds><X>3</X><Y>49</Y><Width>492</Width><Height>25</Height></Bounds><Name>Debug Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData><ToolItemPersistData><Name>UDE_0x18_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Show IP</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x5E_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}</Name><Visible>true</Visible><Text>Show program code</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x7_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Start Program</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x9_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Step Over</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xA_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Step Into</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xB_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Step Out</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x8_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Run Cursor</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x321_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Break Program</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xD_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Reset</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0xC_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Restart Program</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x3_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Breakpoints</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x6_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}</Name><Visible>true</Visible><Text>Toggle Break</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Ctrl_{FB7BC773-88A4-4ECE-B9B6-7189610B0735}_Core0</Name><Visible>true</Visible><Text/><DisplayStyle>ImageAndText</DisplayStyle><AppendAccelerator>false</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_0x3_{1C85B31A-5D25-4197-9635-9C5DC28EAFD7}</Name><Visible>false</Visible><Text>Trigger setup</Text><DisplayStyle>Image</DisplayStyle><AppendAccelerator>true</AppendAccelerator></ToolItemPersistData><ToolItemPersistData><Name>UDE_Ctrl_{FB7BC773-88A4-4ECE-B9B6-7189610B0735}_Core1</Name><Visible>false</Visible><Text/><DisplayStyle>ImageAndText</DisplayStyle><AppendAccelerator>false</AppendAccelerator></ToolItemPersistData></ToolItemData></ToolbarPersistData><ToolbarPersistData><Bounds><X>0</X><Y>100</Y><Width>26</Width><Height>25</Height></Bounds><Name>Show Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>false</Visible><ToolItemData/></ToolbarPersistData><ToolbarPersistData><Bounds><X>0</X><Y>200</Y><Width>26</Width><Height>25</Height></Bounds><Name>Window Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>false</Visible><ToolItemData/></ToolbarPersistData><ToolbarPersistData><Bounds><X>0</X><Y>225</Y><Width>26</Width><Height>25</Height></Bounds><Name>Workspace Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>false</Visible><ToolItemData/></ToolbarPersistData><ToolbarPersistData><Bounds><X>0</X><Y>275</Y><Width>26</Width><Height>25</Height></Bounds><Name>Help Toolbar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>false</Visible><ToolItemData/></ToolbarPersistData></ToolBars></TopContainer><BottomContainer><PanelBounds><X>0</X><Y>757</Y><Width>1280</Width><Height>23</Height></PanelBounds><ToolBars><ToolbarPersistData><Bounds><X>0</X><Y>0</Y><Width>1280</Width><Height>23</Height></Bounds><Name>Platform Status Bar</Name><AlwaysUnvisible>false</AlwaysUnvisible><Visible>true</Visible><ToolItemData/></ToolbarPersistData></ToolBars></BottomContainer><LeftContainer><PanelBounds><X>0</X><Y>74</Y><Width>0</Width><Height>683</Height></PanelBounds><ToolBars/></LeftContainer><RightContainer><PanelBounds><X>1280</X><Y>74</Y><Width>0</Width><Height>683</Height></PanelBounds><ToolBars/></RightContainer></ToolbarControlData></ToolbarControlData></NETPlacementRoot><StdTargetManagerWin type="key"><OPEN_VIEW type="key"><FrameCreated type="string">28.08.2013 15:00:07:145</FrameCreated><ViewSrv type="key"><TargetBrowserView type="key"><SplitterRatio type="int">100</SplitterRatio></TargetBrowserView></ViewSrv><NETFrameMode type="int">77824</NETFrameMode><NETFrameSaveIndex type="int">1</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">1</CommonVisibilityGroup><VisibilityGroup_1 type="string">WorkspaceManager</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW><SAVED_VIEW_OBJS type="int">1</SAVED_VIEW_OBJS><SAVED_VIEW type="int">0</SAVED_VIEW></StdTargetManagerWin><StdUDEMessageWin type="key"><OPEN_VIEW type="key"><FrameCreated type="string">28.08.2013 15:00:07:129</FrameCreated><ViewSrv type="key"><LogWin type="key"><Index type="key"><Width type="bin" size="8">MgAAAA==</Width><Visible type="bin" size="8">AQAAAA==</Visible></Index><Type type="key"><Width type="bin" size="8">ZAAAAA==</Width><Visible type="bin" size="8">AQAAAA==</Visible></Type><Time type="key"><Width type="bin" size="8">ZAAAAA==</Width><Visible type="bin" size="8">AQAAAA==</Visible></Time><Src type="key"><Width type="bin" size="8">lgAAAA==</Width><Visible type="bin" size="8">AQAAAA==</Visible></Src><Msg type="key"><Width type="bin" size="8">6AMAAA==</Width><Visible type="bin" size="8">AQAAAA==</Visible></Msg></LogWin><CmdWin type="key"><History type="key"/></CmdWin></ViewSrv><NETFrameMode type="int">90112</NETFrameMode><NETFrameSaveIndex type="int">0</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">1</CommonVisibilityGroup><VisibilityGroup_1 type="string">WorkspaceManager</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW><SAVED_VIEW_OBJS type="int">1</SAVED_VIEW_OBJS><SAVED_VIEW type="int">0</SAVED_VIEW></StdUDEMessageWin><StdUDECmdWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDECmdWin><UDETraceWin2 type="key"/><StdUDEWspHTMLView type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEWspHTMLView><SelectedPrinter type="string">\\napnt002.nap.st.com\NAPPRT0001</SelectedPrinter><TraceFramework type="key"/></MainFrame><INI_SECTION type="key"><Macro type="key"><MacroLib type="string">..\..\..\..\..\..\Program Files (x86)\pls\UDE 4.0\StdLibrary.mso</MacroLib></Macro><PLACEMENT type="key"><MULTICORELOADERDLG type="string">416,1097,367,613</MULTICORELOADERDLG><SFRSelectDlg type="string">620,965,340,662</SFRSelectDlg></PLACEMENT><EXTRAVALUE type="key"><MULTICORELOADERDLG type="int">0</MULTICORELOADERDLG><SFRSelectDlg type="int">0</SFRSelectDlg></EXTRAVALUE><Loader type="key"><LOADER_REGKEY_WSP type="string">{866f82d3-fac5-43cd-8a82-0af01e46e2c5}</LOADER_REGKEY_WSP></Loader></INI_SECTION><AddOns type="key"><UDE.Script type="key"><MacroGuiEntries type="key"><LastScriptFilePath type="string">..\..\..\..\..\..\Users\disiriog\Documents\pls\UDE 4.0</LastScriptFilePath><Macro_24_09_13_12_19_33_0 type="key"><ScriptDescription type="string">The script contains a collection of macros to save memory content into different file formats
4and fill target memory ranges</ScriptDescription><ScriptPath type="string">V:\UDE\AddOns\Macro\MacroLibrary\StdMacros1.dsm</ScriptPath><ScriptSource type="string">'
5' $Header: /Ude/AddOns/Macro/MacroLibrary/StdMacros.dsm 3 30.04.04 9:34 Weisses $
6'_______________________________________________________
7'
8' universal debug engine
9'
10' Standard command line macros - part 1
11'
12' pls Development Tools 1999-2004
13'
14' 28.04.04 SW correction for UDE 1.10
15' 03.06.03 SW initial version
16'_______________________________________________________
17
18'_______________________________________________________
19'
20' UnAss command line function
21'
22' generates disassembly file
23'
24' command line UnAss output-file range1 [range2] [range3] .....
25' range description:
26' C:&lt;startaddress&gt;,&lt;length&gt; or - code
27' DB:&lt;startaddress&gt;,&lt;length&gt; or - data byte
28' DW:&lt;startaddress&gt;,&lt;length&gt; or - data word
29' DD:&lt;startaddress&gt;,&lt;length&gt; or - data dword
30'_______________________________________________________
31
32Sub UnAss(File,ParameterObj)
33
34 set debugger = workspace.Coredebugger(0)
35 set DisASMObj = debugger.DisASMObj
36 If Not IsObject(ParameterObj) Then
37 MsgBox "Number of parameters wrong"
38 Exit Sub
39 End If
40 If IsNumeric(File) Then
41 MsgBox "File parameter wrong - " &amp; File
42 Exit Sub
43 End If
44 DisASMObj.OutputPath = CStr(File)
45 bRetVal = DisASMObj.CreateStream(True,"UDE Disassembler output of current Program",False)
46 If bRetVal = True Then
47 ParmeterCnt = ParameterObj.ParameterCount
48 If ParmeterCnt = 0 Then
49 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
50 Exit Sub
51 End If
52 If ( ParmeterCnt Mod 3 ) &lt;&gt; 0 Then
53 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
54 Exit Sub
55 End If
56 RangeCnt = ParmeterCnt/3
57 ParamIndex = 0
58 For Range = 0 To RangeCnt -1
59 KindOfRange = CStr(ParameterObj.Parameter(ParamIndex))
60 KindOfRange = UCase(KindOfRange)
61 Address = CLng(ParameterObj.Parameter(ParamIndex +1))
62 Length = CLng(ParameterObj.Parameter(ParamIndex +2))
63 ParamIndex = ParamIndex +3
64 If IsNumeric(KindOfRange) Then
65 If KindOfRange = 12 Then
66 DisASMObj.AddRange Address,Length,1
67 ElseIf KindOfRange = 219 Then
68 DisASMObj.AddRange Address,Length,2
69 ElseIf KindOfRange = 221 Then
70 DisASMObj.AddRange Address,Length,4
71 Else
72 MsgBox "Invalid range type " &amp; KindOfRange &amp; "of range " &amp; Range +1
73 Exit Sub
74 End If
75 Else
76 If KindOfRange = "C" Then
77 DisASMObj.AddRange Address,Length,1
78 ElseIf KindOfRange = "DB" Then
79 DisASMObj.AddRange Address,Length,2
80 ElseIf KindOfRange = "DW" Then
81 DisASMObj.AddRange Address,Length,3
82 ElseIf KindOfRange = "DD" Then
83 DisASMObj.AddRange Address,Length,4
84 Else
85 MsgBox "Invalid range type " &amp; KindOfRange &amp; "of range " &amp; Range +1
86 Exit Sub
87 End If
88 End If
89 Next
90 DisASMObj.HexFileModeFlag = False
91 DisASMObj.ListModeFlag = False
92 DisASMObj.WriteAllRanges(False)
93 End If
94
95End Sub
96
97'_______________________________________________________
98'
99' SaveHEX command line function
100'
101' generates intel-HEX file
102'
103' command line SaveHex output-file range1 [range2] [range3] .....
104' range description:
105' &lt;startaddress&gt;,&lt;length&gt;
106'_______________________________________________________
107
108Sub SaveHEX(File,ParameterObj)
109
110 set debugger = workspace.Coredebugger(0)
111 set DisASMObj = debugger.DisASMObj
112 If Not IsObject(ParameterObj) Then
113 MsgBox "Number of parameters wrong"
114 Exit Sub
115 End If
116 If IsNumeric(File) Then
117 MsgBox "File parameter wrong - " &amp; File
118 Exit Sub
119 End If
120 DisASMObj.OutputPath = CStr(File)
121 bRetVal = DisASMObj.CreateStream(True,"UDE generated intel-Hex file of current Program",False)
122 If bRetVal = True Then
123 ParmeterCnt = ParameterObj.ParameterCount
124 If ParmeterCnt = 0 Then
125 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
126 Exit Sub
127 End If
128 If ( ParmeterCnt Mod 2 ) &lt;&gt; 0 Then
129 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
130 Exit Sub
131 End If
132 RangeCnt = ParmeterCnt/2
133 ParamIndex = 0
134 For Range = 0 To RangeCnt -1
135 Address = CLng(ParameterObj.Parameter(ParamIndex))
136 Length = CLng(ParameterObj.Parameter(ParamIndex +1))
137 ParamIndex = ParamIndex +2
138 DisASMObj.AddRange Address,Length,0
139 Next
140 DisASMObj.HexFileModeFlag = True
141 DisASMObj.WriteAllRanges(False)
142 End If
143
144End Sub
145
146'_______________________________________________________
147'
148' FillByte command line function
149'
150' fills memory range with byte pattern
151'
152' command line FillByte range1,pattern1 [range2,pattern2] [range3,pattern3] .....
153' range description:
154' &lt;startaddress&gt;,&lt;length&gt;
155'_______________________________________________________
156
157Sub FillByte(ParameterObj)
158
159 set debugger = workspace.Coredebugger(0)
160 set DisASMObj = debugger.DisASMObj
161 If Not IsObject(ParameterObj) Then
162 MsgBox "Number of parameters wrong"
163 Exit Sub
164 End If
165 ParmeterCnt = ParameterObj.ParameterCount
166 If ParmeterCnt = 0 Then
167 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
168 Exit Sub
169 End If
170 If ( ParmeterCnt Mod 3 ) &lt;&gt; 0 Then
171 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
172 Exit Sub
173 End If
174 RangeCnt = ParmeterCnt/3
175 ParamIndex = 0
176 set udearrayobj = debugger.ByteArrayObj(1)
177 For Range = 0 To RangeCnt -1
178 Address = CLng(ParameterObj.Parameter(ParamIndex))
179 Length = CLng(ParameterObj.Parameter(ParamIndex +1))
180 Pattern = CLng(ParameterObj.Parameter(ParamIndex +2))
181 ParamIndex = ParamIndex +3
182 udearrayobj.Resize(Length)
183 udearrayobj.Fill(Pattern)
184 debugger.Write Address,udearrayobj
185 Next
186
187End Sub
188
189'_______________________________________________________
190'
191' FillWord command line function
192'
193' fills memory range with word pattern
194'
195' command line FillWord range1,pattern1 [range2,pattern2] [range3,pattern3] .....
196' range description:
197' &lt;startaddress&gt;,&lt;length&gt;
198'_______________________________________________________
199
200Sub FillWord(ParameterObj)
201
202 set debugger = workspace.Coredebugger(0)
203 set DisASMObj = debugger.DisASMObj
204 If Not IsObject(ParameterObj) Then
205 MsgBox "Number of parameters wrong"
206 Exit Sub
207 End If
208 ParmeterCnt = ParameterObj.ParameterCount
209 If ParmeterCnt = 0 Then
210 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
211 Exit Sub
212 End If
213 If ( ParmeterCnt Mod 3 ) &lt;&gt; 0 Then
214 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
215 Exit Sub
216 End If
217 RangeCnt = ParmeterCnt/3
218 ParamIndex = 0
219 set udearrayobj = debugger.WordArrayObj(1)
220 For Range = 0 To RangeCnt -1
221 Address = CLng(ParameterObj.Parameter(ParamIndex))
222 Length = CLng(ParameterObj.Parameter(ParamIndex +1)/2)
223 Pattern = CLng(ParameterObj.Parameter(ParamIndex +2))
224 ParamIndex = ParamIndex +3
225 udearrayobj.Resize(Length)
226 udearrayobj.Fill(Pattern)
227 debugger.Write Address,udearrayobj
228 Next
229
230End Sub
231
232'_______________________________________________________
233'
234' FillDWord command line function
235'
236' fills memory range with dword pattern
237'
238' command line FillDWord range1,pattern1 [range2,pattern2] [range3,pattern3] .....
239' range description:
240' &lt;startaddress&gt;,&lt;length&gt;
241'_______________________________________________________
242
243Sub FillDWord(ParameterObj)
244
245 set debugger = workspace.Coredebugger(0)
246 set DisASMObj = debugger.DisASMObj
247 If Not IsObject(ParameterObj) Then
248 MsgBox "Number of parameters wrong"
249 Exit Sub
250 End If
251 ParmeterCnt = ParameterObj.ParameterCount
252 If ParmeterCnt = 0 Then
253 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
254 Exit Sub
255 End If
256 If ( ParmeterCnt Mod 3 ) &lt;&gt; 0 Then
257 MsgBox "Number of parameters wrong " &amp; ParmeterCnt
258 Exit Sub
259 End If
260 RangeCnt = ParmeterCnt/3
261 ParamIndex = 0
262 set udearrayobj = debugger.DWordArrayObj(1)
263 For Range = 0 To RangeCnt -1
264 Address = CLng(ParameterObj.Parameter(ParamIndex))
265 Length = CLng(ParameterObj.Parameter(ParamIndex +1)/4)
266 Pattern = CLng(ParameterObj.Parameter(ParamIndex +2))
267 ParamIndex = ParamIndex +3
268 udearrayobj.Resize(Length)
269 udearrayobj.Fill(Pattern)
270 debugger.Write Address,udearrayobj
271 Next
272
273End Sub</ScriptSource><ScriptArchitecture type="int">63</ScriptArchitecture><ScriptEngine type="string">VBScript</ScriptEngine><MacroFileTime type="string">24.11.2006 14:43:20:000</MacroFileTime><ScriptFromStg type="flag">1</ScriptFromStg><LocalComputerName type="string">WS_CORE_DUO</LocalComputerName><ExternalScriptPath type="string"></ExternalScriptPath><NextNodeName type="string">Macro_24_02_14_14_13_33_0</NextNodeName><UnAss type="key"><GUIEntry type="key"><MenuID type="int">10</MenuID><MenuString type="string">Execute UnAss ..</MenuString><ToolTipString type="string">Macro UnAss</ToolTipString><MessageString type="string">Execute macro UnAss</MessageString><DebugFlag type="flag">0</DebugFlag></GUIEntry><FuncParameterCnt type="int">2</FuncParameterCnt><GUIEntryDescription type="string"></GUIEntryDescription></UnAss><SaveHEX type="key"><GUIEntry type="key"><MenuID type="int">10</MenuID><MenuString type="string">Execute SaveHEX ..</MenuString><ToolTipString type="string">Macro SaveHEX</ToolTipString><MessageString type="string">Execute macro SaveHEX</MessageString><DebugFlag type="flag">0</DebugFlag></GUIEntry><FuncParameterCnt type="int">2</FuncParameterCnt><GUIEntryDescription type="string"></GUIEntryDescription></SaveHEX><FillByte type="key"><GUIEntry type="key"><MenuID type="int">10</MenuID><MenuString type="string">Execute FillByte ..</MenuString><ToolTipString type="string">Macro FillByte</ToolTipString><MessageString type="string">Execute macro FillByte</MessageString><DebugFlag type="flag">0</DebugFlag></GUIEntry><FuncParameterCnt type="int">1</FuncParameterCnt><GUIEntryDescription type="string"></GUIEntryDescription></FillByte><FillWord type="key"><GUIEntry type="key"><MenuID type="int">10</MenuID><MenuString type="string">Execute FillWord ..</MenuString><ToolTipString type="string">Macro FillWord</ToolTipString><MessageString type="string">Execute macro FillWord</MessageString><DebugFlag type="flag">0</DebugFlag></GUIEntry><FuncParameterCnt type="int">1</FuncParameterCnt><GUIEntryDescription type="string"></GUIEntryDescription></FillWord><FillDWord type="key"><GUIEntry type="key"><MenuID type="int">10</MenuID><MenuString type="string">Execute FillDWord ..</MenuString><ToolTipString type="string">Macro FillDWord</ToolTipString><MessageString type="string">Execute macro FillDWord</MessageString><DebugFlag type="flag">0</DebugFlag></GUIEntry><FuncParameterCnt type="int">1</FuncParameterCnt><GUIEntryDescription type="string"></GUIEntryDescription></FillDWord><NoOfFunctions type="int">5</NoOfFunctions></Macro_24_09_13_12_19_33_0></MacroGuiEntries><LastSelectedMacro type="string"></LastSelectedMacro></UDE.Script></AddOns><MultiCoreRunControl type="key"><NoOfRunCtrlGroups type="int">0</NoOfRunCtrlGroups></MultiCoreRunControl><Core0 type="key"><ViewSrv type="key"><PowerPcCpuWin type="key"><SAVED_VIEW_OBJS type="int">1</SAVED_VIEW_OBJS><OPEN_VIEW type="key"><FrameCreated type="string">28.08.2013 15:32:24:478</FrameCreated><ViewSrv type="key"/><NETFrameMode type="int">77826</NETFrameMode><NETFrameSaveIndex type="int">5</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core0</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW><SAVED_VIEW type="int">0</SAVED_VIEW></PowerPcCpuWin><StdUDESymbolExplWin type="key"><OPEN_VIEW type="key"><FrameCreated type="string">28.08.2013 15:00:07:176</FrameCreated><ViewSrv type="key"/><NETFrameMode type="int">77827</NETFrameMode><NETFrameSaveIndex type="int">4</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core0</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW><SAVED_VIEW_OBJS type="int">1</SAVED_VIEW_OBJS><SAVED_VIEW type="int">0</SAVED_VIEW></StdUDESymbolExplWin><StdUDEProgWin type="key"><SAVED_VIEW_OBJS type="int">2</SAVED_VIEW_OBJS><OPEN_VIEW00 type="key"><FrameCreated type="string">28.08.2013 15:30:43:451</FrameCreated><ViewSrv type="key"/><SourceFile type="string">..\main.c</SourceFile><SourceFileInstFlag type="int">1</SourceFileInstFlag><NETFrameMode type="int">73728</NETFrameMode><NETFrameSaveIndex type="int">3</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core0</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW00><SAVED_VIEW00 type="int">0</SAVED_VIEW00><OPEN_VIEW01 type="key"><FrameCreated type="string">24.02.2014 14:12:15:832</FrameCreated><ViewSrv type="key"/><SourceFile type="string">..\..\..\..\os\hal\ports\SPC5\SPC56ECxx\hal_lld.c</SourceFile><SourceFileInstFlag type="int">2</SourceFileInstFlag><NETFrameMode type="int">73728</NETFrameMode><NETFrameSaveIndex type="int">8</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core0</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW01><SAVED_VIEW01 type="int">1</SAVED_VIEW01></StdUDEProgWin><StdUDESFRView type="key"><SAVED_VIEW_OBJS type="int">1</SAVED_VIEW_OBJS><OPEN_VIEW00 type="key"><FrameCreated type="string">28.08.2013 15:31:19:129</FrameCreated><ViewSrv type="key"><SFRView type="key"><NumberOfBitFieldsPerRow type="bin" size="8">AwAAAA==</NumberOfBitFieldsPerRow><BitfieldValueMode type="bin" size="8">AQAAAA==</BitfieldValueMode><NameWidth type="bin" size="8">fQAAAA==</NameWidth><ValueWidth type="bin" size="8">UwAAAA==</ValueWidth><Bitfield1Width type="bin" size="8">QwAAAA==</Bitfield1Width><Value1Width type="bin" size="8">QwAAAA==</Value1Width><Bitfield2Width type="bin" size="8">QwAAAA==</Bitfield2Width><Value2Width type="bin" size="8">QwAAAA==</Value2Width><Bitfield3Width type="bin" size="8">QwAAAA==</Bitfield3Width><Value3Width type="bin" size="8">SAAAAA==</Value3Width><Bitfield4Width type="bin" size="8">AAAAAA==</Bitfield4Width><Value4Width type="bin" size="8">AAAAAA==</Value4Width><TopIndex type="bin" size="8">AAAAAA==</TopIndex><CaretIndex type="bin" size="8">AAAAAA==</CaretIndex></SFRView></ViewSrv><NETFrameMode type="int">77825</NETFrameMode><NETFrameSaveIndex type="int">2</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core0</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW00><SAVED_VIEW00 type="int">0</SAVED_VIEW00></StdUDESFRView><StdUDELocalsWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS><OPEN_VIEW type="key"><FrameCreated type="string">28.08.2013 15:32:08:193</FrameCreated><ViewSrv type="key"><NameWidth type="int">144</NameWidth><AddressWidth type="int">0</AddressWidth><ValueWidth type="int">96</ValueWidth><Value2Width type="int">0</Value2Width><MinMaxWidth type="int">0</MinMaxWidth></ViewSrv><NETFrameMode type="int">86016</NETFrameMode><NETFrameSaveIndex type="int">4294967295</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core0</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW></StdUDELocalsWin><StdUDEWatchWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEWatchWin><StdUDESimIOWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDESimIOWin><StdUDEHtmlDocWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEHtmlDocWin><StdUDEGraphWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEGraphWin><StdUDETimeSampleGraphWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDETimeSampleGraphWin><UDEProfilingWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></UDEProfilingWin><StdUDEMemWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEMemWin><UDEStackWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></UDEStackWin></ViewSrv><UDE.StdDbgSrv type="key"><INI_SECTION type="key"/><UDE.PowerPcArchSrv type="key"><UDE.PpcJtagTargIntf type="key"><NewWorkspace type="flag">0</NewWorkspace></UDE.PpcJtagTargIntf></UDE.PowerPcArchSrv><UDE.UDESymbol type="key"><BinaryFiles type="key"><Number type="int">1</Number><BinaryFile1 type="key"><FullPath type="string">..\build\ch.elf</FullPath><Breakpoints type="key"><Breakpoint1 type="string">Software;enabled;0;disabled;'main {C:\ChibiStudio\workspace\SPC5\demos\SPC56ECxx OS-Less Test Application\main.c} .25';main.c;1;0;;$disabled; ;disabled; ;</Breakpoint1><Number type="int">1</Number></Breakpoints></BinaryFile1></BinaryFiles><MultiCoreLoader type="key"><TargetFile1 type="string">..\build\ch.elf</TargetFile1><TargetFileMapping1 type="string">3,0</TargetFileMapping1><TargetFileOptions1 type="string">00000000</TargetFileOptions1><TargetFileCodeRelocation1 type="string">0x14</TargetFileCodeRelocation1><TargetFileDataRelocation1 type="string">0x14</TargetFileDataRelocation1><Number type="int">1</Number></MultiCoreLoader><ExpressionClipboard type="key"><Number type="int">0</Number></ExpressionClipboard></UDE.UDESymbol><STG_ADDON_PROF type="key"><UDE_Graphwin_Trace_AddOn type="key" name="UDE Graphwin Trace AddOn"><LOAD_STATE type="flag">1</LOAD_STATE></UDE_Graphwin_Trace_AddOn><UDELicense_Server type="key" name="UDELicense Server"><LOAD_STATE type="flag">1</LOAD_STATE></UDELicense_Server><UDEMemtool type="key"><LOAD_STATE type="flag">1</LOAD_STATE><FlashMod_PFLASH type="key"/><FlashMod_PFLASH1 type="key"/><FlashMod_DFLASH type="key"/><FlashMod_SHADOWFLASH type="key"/><Frontend type="key"><AutoStartProgAfterDownload type="flag">0</AutoStartProgAfterDownload><AutoCloseExecCmdDialog type="flag">0</AutoCloseExecCmdDialog><AllowOverwrite type="flag">0</AllowOverwrite><LastModule type="int">0</LastModule><VerifyProt type="flag">0</VerifyProt><VerifyProtFile type="string">verify.txt</VerifyProtFile><VerifyOnExit type="flag">0</VerifyOnExit><StoreLoadedSections type="flag">0</StoreLoadedSections></Frontend></UDEMemtool><ADD_ON_DEL_FLAG type="flag">0</ADD_ON_DEL_FLAG></STG_ADDON_PROF><CommQueueHndlStg type="key"><Beep type="flag">0</Beep><Retry type="flag">0</Retry><RetryPeriod type="int">0</RetryPeriod></CommQueueHndlStg><TargetStateHndlStg type="key"/></UDE.StdDbgSrv><MRUSourceFileList type="key"><NoOfMRUSrcFileEntries type="int">2</NoOfMRUSrcFileEntries><MRUSrcFile0 type="string">..\main.c</MRUSrcFile0><MRUSrcFile1 type="string">..\..\..\..\os\hal\ports\SPC5\SPC56ECxx\hal_lld.c</MRUSrcFile1></MRUSourceFileList></Core0><Core1 type="key"><ViewSrv type="key"><PowerPcCpuWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></PowerPcCpuWin><StdUDESymbolExplWin type="key"><OPEN_VIEW type="key"><FrameCreated type="string">28.08.2013 15:00:07:379</FrameCreated><ViewSrv type="key"/><NETFrameMode type="int">77828</NETFrameMode><NETFrameSaveIndex type="int">6</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core1</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW><SAVED_VIEW_OBJS type="int">1</SAVED_VIEW_OBJS><SAVED_VIEW type="int">0</SAVED_VIEW></StdUDESymbolExplWin><StdUDEProgWin type="key"><OPEN_VIEW00 type="key"><FrameCreated type="string">24.02.2014 14:11:46:971</FrameCreated><ViewSrv type="key"/><SourceFile type="string">code &lt;0xFFFFFC00-0xFFFFFFFF&gt;</SourceFile><SourceFileInstFlag type="int">8</SourceFileInstFlag><NETFrameMode type="int">73728</NETFrameMode><NETFrameSaveIndex type="int">7</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core1</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW00><SAVED_VIEW_OBJS type="int">1</SAVED_VIEW_OBJS><SAVED_VIEW00 type="int">0</SAVED_VIEW00><OPEN_VIEW01 type="key"><FrameCreated type="string">28.08.2013 15:30:43:499</FrameCreated><ViewSrv type="key"/><NETFrameMode type="int">73728</NETFrameMode><NETFrameSaveIndex type="int">4294967295</NETFrameSaveIndex><FrameUserTitle type="string"></FrameUserTitle><CommonVisibilityGroup type="flag">0</CommonVisibilityGroup><VisibilityGroup_1 type="string">Target0.Controller0.Core1</VisibilityGroup_1><VisibilityGroupsCnt type="int">1</VisibilityGroupsCnt></OPEN_VIEW01></StdUDEProgWin><StdUDESFRView type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDESFRView><StdUDELocalsWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDELocalsWin><StdUDEWatchWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEWatchWin><StdUDESimIOWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDESimIOWin><StdUDEHtmlDocWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEHtmlDocWin><StdUDEGraphWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEGraphWin><StdUDETimeSampleGraphWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDETimeSampleGraphWin><UDEProfilingWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></UDEProfilingWin><StdUDEMemWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></StdUDEMemWin><UDEStackWin type="key"><SAVED_VIEW_OBJS type="int">0</SAVED_VIEW_OBJS></UDEStackWin></ViewSrv><UDE.StdDbgSrv type="key"><INI_SECTION type="key"><System type="key"><PROGRAM1_SERVICE_MODE type="int">2</PROGRAM1_SERVICE_MODE></System><Monitor type="key"><PROGRAM1_CRC_CHECK type="int">1</PROGRAM1_CRC_CHECK></Monitor></INI_SECTION><UDE.PowerPcArchSrv type="key"><UDE.PpcJtagTargIntf type="key"><NewWorkspace type="flag">0</NewWorkspace></UDE.PpcJtagTargIntf></UDE.PowerPcArchSrv><UDE.UDESymbol type="key"><BinaryFiles type="key"><Number type="int">1</Number><BinaryFile1 type="key"><FullPath type="string">..\build\out.elf</FullPath></BinaryFile1></BinaryFiles><ExpressionClipboard type="key"><Number type="int">0</Number></ExpressionClipboard></UDE.UDESymbol><STG_ADDON_PROF type="key"><UDE_Graphwin_Trace_AddOn type="key" name="UDE Graphwin Trace AddOn"><LOAD_STATE type="flag">1</LOAD_STATE></UDE_Graphwin_Trace_AddOn><UDELicense_Server type="key" name="UDELicense Server"><LOAD_STATE type="flag">1</LOAD_STATE></UDELicense_Server><ADD_ON_DEL_FLAG type="flag">0</ADD_ON_DEL_FLAG></STG_ADDON_PROF><CommQueueHndlStg type="key"><Beep type="flag">0</Beep><Retry type="flag">0</Retry><RetryPeriod type="int">0</RetryPeriod></CommQueueHndlStg><TargetStateHndlStg type="key"/></UDE.StdDbgSrv><MRUSourceFileList type="key"><NoOfMRUSrcFileEntries type="int">1</NoOfMRUSrcFileEntries><MRUSrcFile0 type="string">code &lt;0xFFFFFC00-0xFFFFFFFF&gt;</MRUSrcFile0></MRUSourceFileList></Core1><TargetInfoFile type="string">stm_spc56ec74a256s_spc56ec74_minimodule_debug_jtag.cfg</TargetInfoFile><LastWriteDate type="string">24.02.2014 14:13:32:999</LastWriteDate></stg>
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/stm_spc56ec74a256s_spc56ec74_minimodule_debug_jtag.cfg b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/stm_spc56ec74a256s_spc56ec74_minimodule_debug_jtag.cfg
new file mode 100644
index 000000000..db1976028
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/UDE/stm_spc56ec74a256s_spc56ec74_minimodule_debug_jtag.cfg
@@ -0,0 +1,290 @@
1[Main]
2Signature=UDE_TARGINFO_2.0
3Description=STM SPC56EC74A256S Mini Module with Dual Core SPC56EC74 (Jtag)
4Description1=MMU preinitialized, memory mapping 1:1, VLE enabled for SRAM and Flash
5Description2=PLL set for 120MHz
6Description3=FLASH programming prepared but not enabled
7Description4=Write Filter for BAM Module
8MCUs=Controller0
9Architecture=PowerPC
10Vendor=STM
11Board=SPC56EC74A256S Mini Module
12
13[Controller0]
14Family=PowerPC
15Type=SPC56EC74
16Enabled=1
17IntClock=120000
18MemDevs=BAMWriteFilter
19ExtClock=40000
20
21[Controller0.Core0]
22Protocol=PPCJTAG
23Enabled=1
24
25[Controller0.Core1]
26Protocol=PPCJTAG
27Enabled=1
28
29[Controller0.BAMWriteFilter]
30Description=BAM WriteAccess Filter
31Range0Start=0xFFFFC000
32Range0Size=0x4000
33Enabled=1
34Handler=AccessFilter
35Mode=ReadOnly
36
37[Controller0.PFLASH]
38Enabled=1
39EnableMemtoolByDefault=1
40
41[Controller0.PFLASH1]
42Enabled=1
43EnableMemtoolByDefault=1
44
45[Controller0.DFLASH]
46Enabled=1
47EnableMemtoolByDefault=1
48
49[Controller0.SHADOWFLASH]
50Enabled=1
51EnableMemtoolByDefault=0
52
53[Controller0.Core0.LoadedAddOn]
54UDEMemtool=1
55
56[Controller0.Core0.PpcJtagTargIntf]
57PortType=FTDI
58ResetWaitTime=500
59MaxJtagClk=5000
60DoSramInit=1
61UseNexus=1
62AdaptiveJtagPhaseShift=1
63ConnOption=Default
64ChangeJtagClk=-1
65HaltAfterReset=1
66SimioAddr=g_JtagSimioAccess
67FreezeTimers=1
68InvalidTlbOnReset=1
69InvalidateCache=1
70ForceCacheFlush=1
71IgnoreLockedLines=0
72ExecInitCmds=1
73JtagTapNumber=0
74JtagNumOfTaps=1
75JtagNumIrBefore=0
76JtagNumIrAfter=0
77SimioAddr=g_JtagSimioAccess
78FlushCache=0
79AllowMmuSetup=1
80UseExtReset=1
81HandleWdtBug=0
82ForceEndOfReset=0
83JtagViaPod=0
84AllowResetOnCheck=0
85ChangeMsr=0
86ChangeMsrValue=0x0
87ExecOnStartCmds=0
88ExecOnHaltCmds=0
89EnableProgramTimeMeasurement=0
90UseHwResetMode=0
91TargetPort=Default
92HandleNexusAccessBug=0
93DoNotEnableTrapSwBrp=0
94BootPasswd0=0xFEEDFACE
95BootPasswd1=0xCAFEBEEF
96BootPasswd2=0xFFFFFFFF
97BootPasswd3=0xFFFFFFFF
98BootPasswd4=0xFFFFFFFF
99BootPasswd5=0xFFFFFFFF
100BootPasswd6=0xFFFFFFFF
101BootPasswd7=0xFFFFFFFF
102CommDevSel=PortType=USB,Type=FTDI
103JtagIoType=Jtag
104ExecOnHaltCmdsWhileHalted=0
105TimerForPTM=Default
106AllowBreakOnUpdateBreakpoints=0
107ClearDebugStatusOnHalt=1
108HwResetMode=Simulate
109UseMasterNexusIfResetState=1
110UseLocalAddressTranslation=1
111Use64BitNexus=0
112InitSramOnlyWhenNotInitialized=0
113AllowHarrForUpdateDebugRegs=0
114DisableE2EECC=0
115UseCore0ForNexusMemoryAccessWhileRunning=0
116
117[Controller0.Core0.PpcJtagTargIntf.InitScript]
118
119// select TLB 1
120SETSPR 0x274 0x10000108 0xFFFFFFFF
121
122// programm internal Flash, no cache because of flash
123// TLB 1, entry 0
124SETSPR 0x270 0x10000000 0xFFFFFFFF
125// Valid, protect against invalidation, global entry, size=16MB
126SETSPR 0x271 0xC0000700 0xFFFFFFFF
127// effective page number 00000000
128SETSPR 0x272 0x28 0xFFFFFFFF
129// real page 00000000, UX,SX,UW,SW,UR,SR
130SETSPR 0x273 0x3F 0xFFFFFFFF
131// execute TLB write instruction
132EXECOPCODE 0x7C0007A4
133
134// programm internal SRAM
135// TLB 1, entry 1
136SETSPR 0x270 0x10010000 0xFFFFFFFF
137// Valid, protect against invalidation, global entry, size=16MB
138SETSPR 0x271 0xC0000700 0xFFFFFFFF
139// effective page number 40000000, I
140SETSPR 0x272 0x40000028 0xFFFFFFFF
141// real page 0x40000000, UX,SX,UW,SW,UR,SR
142SETSPR 0x273 0x4000003F 0xFFFFFFFF
143// execute TLB write instruction
144EXECOPCODE 0x7C0007A4
145
146// programm peripheral A modules
147// TLB 1, entry 2
148SETSPR 0x270 0x10020000 0xFFFFFFFF
149// Valid, protect against invalidation, global entry, size=1MB
150SETSPR 0x271 0xC0000500 0xFFFFFFFF
151// effective page number C3F00000, I
152SETSPR 0x272 0xC3F0000A 0xFFFFFFFF
153// real page C3F00000, UX,SX,UW,SW,UR,SR
154SETSPR 0x273 0xC3F0003F 0xFFFFFFFF
155// execute TLB write instruction
156EXECOPCODE 0x7C0007A4
157
158// programm off plattfrom modules
159// TLB 1, entry 3
160SETSPR 0x270 0x10030000 0xFFFFFFFF
161// Valid, protect against invalidation, global entry, size=1MB
162SETSPR 0x271 0xC0000500 0xFFFFFFFF
163// effective page number FFE00000, I,G
164SETSPR 0x272 0xFFE0000A 0xFFFFFFFF
165// real page FFE00000, UX,SX,UW,SW,UR,SR
166SETSPR 0x273 0xFFE0003F 0xFFFFFFFF
167// execute TLB write instruction
168EXECOPCODE 0x7C0007A4
169
170// programm on plattfrom modules
171// TLB 1, entry 4
172SETSPR 0x270 0x10040000 0xFFFFFFFF
173// Valid, protect against invalidation, global entry, size=1MB
174SETSPR 0x271 0xC0000500 0xFFFFFFFF
175// effective page number FFF00000, I,G
176SETSPR 0x272 0xFFF0000A 0xFFFFFFFF
177// real page FFF00000, UX,SX,UW,SW,UR,SR
178SETSPR 0x273 0xFFF0003F 0xFFFFFFFF
179// execute TLB write instruction
180EXECOPCODE 0x7C0007A4
181
182// setup IVOPR
183// points to internal memory at 0x40000000
184SETSPR 0x3F 0x40000000 0xFFFFFFFF
185
186// disable watchdog
187SET SWT_SR 0x0000C520
188SET SWT_SR 0x0000D928
189SET SWT_CR 0xFF00000A
190
191// setup pll and clocks
192// Oscillator select
193SET 0xC3FE0374 0x1000000
194SET 0xC3FE0370 0x1
195// enable all modes
196SET 0xC3FDC008 0x5FF
197// run mode
198SET 0xC3FDC02C 0x1F0032
199// enable peripherals in run and low power modes
200SET 0xC3FDC080 0xFE
201SET 0xC3FDC0A0 0x500
202// Z0 clock dividers -> 0.5 system clock
203//SET8 0xC3FE00C0 0x01
204// system clock dividers
205SET8 0xC3FE037C 0x80
206SET8 0xC3FE037D 0x80
207SET8 0xC3FE037E 0x80
208// enable auxiliary clocks
209SET16 0xC3FE0380 0x100
210SET16 0xC3FE0388 0x0
211SET8 0xC3FE038C 0x80
212// setup clock monitor
213SET 0xC3FE0100 0x6
214// Make DRUN configuration active
215SET 0xC3FDC004 0x30005AF0
216SET 0xC3FDC004 0x3000A50F
217WAIT 5
218// setup pll to 120MHz 40Mz external
219SET 0xC3FE00A0 0x0D300041
220// run mode
221SET 0xC3FDC02C 0x1F00F4
222// Make DRUN configuration active
223SET 0xC3FDC004 0x30005AF0
224SET 0xC3FDC004 0x3000A50F
225WAIT 5
226// setup SSCM erro cfg for debug
227SET 0xC3FD8006 0x3 0x3
228
229[Controller0.Core0.PpcJtagTargIntf.OnStartScript]
230
231[Controller0.Core0.PpcJtagTargIntf.OnHaltScript]
232
233[Controller0.Core1.PpcJtagTargIntf]
234PortType=Default
235ResetWaitTime=500
236MaxJtagClk=5000
237DoSramInit=1
238UseNexus=1
239AdaptiveJtagPhaseShift=1
240ConnOption=Break
241ChangeJtagClk=-1
242HaltAfterReset=0
243SimioAddr=g_JtagSimioAccess
244FreezeTimers=1
245InvalidTlbOnReset=0
246InvalidateCache=0
247ForceCacheFlush=0
248IgnoreLockedLines=0
249ExecInitCmds=0
250JtagTapNumber=0
251JtagNumOfTaps=1
252JtagNumIrBefore=0
253JtagNumIrAfter=0
254SimioAddr=g_JtagSimioAccess
255FlushCache=0
256AllowMmuSetup=0
257UseExtReset=0
258HandleWdtBug=0
259ForceEndOfReset=0
260JtagViaPod=0
261AllowResetOnCheck=0
262TargetPort=Default
263ChangeMsr=0
264ChangeMsrValue=0x0
265ExecOnStartCmds=0
266ExecOnHaltCmds=0
267EnableProgramTimeMeasurement=0
268UseHwResetMode=0
269HandleNexusAccessBug=0
270DoNotEnableTrapSwBrp=0
271BootPasswd0=0xFEEDFACE
272BootPasswd1=0xCAFEBEEF
273BootPasswd2=0xFFFFFFFF
274BootPasswd3=0xFFFFFFFF
275BootPasswd4=0xFFFFFFFF
276BootPasswd5=0xFFFFFFFF
277BootPasswd6=0xFFFFFFFF
278BootPasswd7=0xFFFFFFFF
279CommDevSel=
280
281[Controller0.Core1.PpcJtagTargIntf.InitScript]
282
283[Controller0.Core1.PpcJtagTargIntf.OnStartScript]
284
285[Controller0.Core1.PpcJtagTargIntf.OnHaltScript]
286
287[Controller0.Core0.DebugServer.DbgFramework]
288FRAMEWORK_COLOR=14804223
289[Controller0.Core1.DebugServer.DbgFramework]
290FRAMEWORK_COLOR=16777152
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/chconf.h b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/chconf.h
new file mode 100644
index 000000000..a46212c91
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/chconf.h
@@ -0,0 +1,756 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17/**
18 * @file rt/templates/chconf.h
19 * @brief Configuration file template.
20 * @details A copy of this file must be placed in each project directory, it
21 * contains the application specific kernel settings.
22 *
23 * @addtogroup config
24 * @details Kernel related settings and hooks.
25 * @{
26 */
27
28#ifndef CHCONF_H
29#define CHCONF_H
30
31#define _CHIBIOS_RT_CONF_
32#define _CHIBIOS_RT_CONF_VER_6_1_
33
34/*===========================================================================*/
35/**
36 * @name System timers settings
37 * @{
38 */
39/*===========================================================================*/
40
41/**
42 * @brief System time counter resolution.
43 * @note Allowed values are 16, 32 or 64 bits.
44 */
45#if !defined(CH_CFG_ST_RESOLUTION)
46#define CH_CFG_ST_RESOLUTION 32
47#endif
48
49/**
50 * @brief System tick frequency.
51 * @details Frequency of the system timer that drives the system ticks. This
52 * setting also defines the system tick time unit.
53 */
54#if !defined(CH_CFG_ST_FREQUENCY)
55#define CH_CFG_ST_FREQUENCY 1000
56#endif
57
58/**
59 * @brief Time intervals data size.
60 * @note Allowed values are 16, 32 or 64 bits.
61 */
62#if !defined(CH_CFG_INTERVALS_SIZE)
63#define CH_CFG_INTERVALS_SIZE 32
64#endif
65
66/**
67 * @brief Time types data size.
68 * @note Allowed values are 16 or 32 bits.
69 */
70#if !defined(CH_CFG_TIME_TYPES_SIZE)
71#define CH_CFG_TIME_TYPES_SIZE 32
72#endif
73
74/**
75 * @brief Time delta constant for the tick-less mode.
76 * @note If this value is zero then the system uses the classic
77 * periodic tick. This value represents the minimum number
78 * of ticks that is safe to specify in a timeout directive.
79 * The value one is not valid, timeouts are rounded up to
80 * this value.
81 */
82#if !defined(CH_CFG_ST_TIMEDELTA)
83#define CH_CFG_ST_TIMEDELTA 0
84#endif
85
86/** @} */
87
88/*===========================================================================*/
89/**
90 * @name Kernel parameters and options
91 * @{
92 */
93/*===========================================================================*/
94
95/**
96 * @brief Round robin interval.
97 * @details This constant is the number of system ticks allowed for the
98 * threads before preemption occurs. Setting this value to zero
99 * disables the preemption for threads with equal priority and the
100 * round robin becomes cooperative. Note that higher priority
101 * threads can still preempt, the kernel is always preemptive.
102 * @note Disabling the round robin preemption makes the kernel more compact
103 * and generally faster.
104 * @note The round robin preemption is not supported in tickless mode and
105 * must be set to zero in that case.
106 */
107#if !defined(CH_CFG_TIME_QUANTUM)
108#define CH_CFG_TIME_QUANTUM 0
109#endif
110
111/**
112 * @brief Idle thread automatic spawn suppression.
113 * @details When this option is activated the function @p chSysInit()
114 * does not spawn the idle thread. The application @p main()
115 * function becomes the idle thread and must implement an
116 * infinite loop.
117 */
118#if !defined(CH_CFG_NO_IDLE_THREAD)
119#define CH_CFG_NO_IDLE_THREAD FALSE
120#endif
121
122/** @} */
123
124/*===========================================================================*/
125/**
126 * @name Performance options
127 * @{
128 */
129/*===========================================================================*/
130
131/**
132 * @brief OS optimization.
133 * @details If enabled then time efficient rather than space efficient code
134 * is used when two possible implementations exist.
135 *
136 * @note This is not related to the compiler optimization options.
137 * @note The default is @p TRUE.
138 */
139#if !defined(CH_CFG_OPTIMIZE_SPEED)
140#define CH_CFG_OPTIMIZE_SPEED TRUE
141#endif
142
143/** @} */
144
145/*===========================================================================*/
146/**
147 * @name Subsystem options
148 * @{
149 */
150/*===========================================================================*/
151
152/**
153 * @brief Time Measurement APIs.
154 * @details If enabled then the time measurement APIs are included in
155 * the kernel.
156 *
157 * @note The default is @p TRUE.
158 */
159#if !defined(CH_CFG_USE_TM)
160#define CH_CFG_USE_TM FALSE
161#endif
162
163/**
164 * @brief Threads registry APIs.
165 * @details If enabled then the registry APIs are included in the kernel.
166 *
167 * @note The default is @p TRUE.
168 */
169#if !defined(CH_CFG_USE_REGISTRY)
170#define CH_CFG_USE_REGISTRY TRUE
171#endif
172
173/**
174 * @brief Threads synchronization APIs.
175 * @details If enabled then the @p chThdWait() function is included in
176 * the kernel.
177 *
178 * @note The default is @p TRUE.
179 */
180#if !defined(CH_CFG_USE_WAITEXIT)
181#define CH_CFG_USE_WAITEXIT TRUE
182#endif
183
184/**
185 * @brief Semaphores APIs.
186 * @details If enabled then the Semaphores APIs are included in the kernel.
187 *
188 * @note The default is @p TRUE.
189 */
190#if !defined(CH_CFG_USE_SEMAPHORES)
191#define CH_CFG_USE_SEMAPHORES TRUE
192#endif
193
194/**
195 * @brief Semaphores queuing mode.
196 * @details If enabled then the threads are enqueued on semaphores by
197 * priority rather than in FIFO order.
198 *
199 * @note The default is @p FALSE. Enable this if you have special
200 * requirements.
201 * @note Requires @p CH_CFG_USE_SEMAPHORES.
202 */
203#if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY)
204#define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE
205#endif
206
207/**
208 * @brief Mutexes APIs.
209 * @details If enabled then the mutexes APIs are included in the kernel.
210 *
211 * @note The default is @p TRUE.
212 */
213#if !defined(CH_CFG_USE_MUTEXES)
214#define CH_CFG_USE_MUTEXES TRUE
215#endif
216
217/**
218 * @brief Enables recursive behavior on mutexes.
219 * @note Recursive mutexes are heavier and have an increased
220 * memory footprint.
221 *
222 * @note The default is @p FALSE.
223 * @note Requires @p CH_CFG_USE_MUTEXES.
224 */
225#if !defined(CH_CFG_USE_MUTEXES_RECURSIVE)
226#define CH_CFG_USE_MUTEXES_RECURSIVE FALSE
227#endif
228
229/**
230 * @brief Conditional Variables APIs.
231 * @details If enabled then the conditional variables APIs are included
232 * in the kernel.
233 *
234 * @note The default is @p TRUE.
235 * @note Requires @p CH_CFG_USE_MUTEXES.
236 */
237#if !defined(CH_CFG_USE_CONDVARS)
238#define CH_CFG_USE_CONDVARS TRUE
239#endif
240
241/**
242 * @brief Conditional Variables APIs with timeout.
243 * @details If enabled then the conditional variables APIs with timeout
244 * specification are included in the kernel.
245 *
246 * @note The default is @p TRUE.
247 * @note Requires @p CH_CFG_USE_CONDVARS.
248 */
249#if !defined(CH_CFG_USE_CONDVARS_TIMEOUT)
250#define CH_CFG_USE_CONDVARS_TIMEOUT TRUE
251#endif
252
253/**
254 * @brief Events Flags APIs.
255 * @details If enabled then the event flags APIs are included in the kernel.
256 *
257 * @note The default is @p TRUE.
258 */
259#if !defined(CH_CFG_USE_EVENTS)
260#define CH_CFG_USE_EVENTS TRUE
261#endif
262
263/**
264 * @brief Events Flags APIs with timeout.
265 * @details If enabled then the events APIs with timeout specification
266 * are included in the kernel.
267 *
268 * @note The default is @p TRUE.
269 * @note Requires @p CH_CFG_USE_EVENTS.
270 */
271#if !defined(CH_CFG_USE_EVENTS_TIMEOUT)
272#define CH_CFG_USE_EVENTS_TIMEOUT TRUE
273#endif
274
275/**
276 * @brief Synchronous Messages APIs.
277 * @details If enabled then the synchronous messages APIs are included
278 * in the kernel.
279 *
280 * @note The default is @p TRUE.
281 */
282#if !defined(CH_CFG_USE_MESSAGES)
283#define CH_CFG_USE_MESSAGES TRUE
284#endif
285
286/**
287 * @brief Synchronous Messages queuing mode.
288 * @details If enabled then messages are served by priority rather than in
289 * FIFO order.
290 *
291 * @note The default is @p FALSE. Enable this if you have special
292 * requirements.
293 * @note Requires @p CH_CFG_USE_MESSAGES.
294 */
295#if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
296#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
297#endif
298
299/**
300 * @brief Dynamic Threads APIs.
301 * @details If enabled then the dynamic threads creation APIs are included
302 * in the kernel.
303 *
304 * @note The default is @p TRUE.
305 * @note Requires @p CH_CFG_USE_WAITEXIT.
306 * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
307 */
308#if !defined(CH_CFG_USE_DYNAMIC)
309#define CH_CFG_USE_DYNAMIC TRUE
310#endif
311
312/** @} */
313
314/*===========================================================================*/
315/**
316 * @name OSLIB options
317 * @{
318 */
319/*===========================================================================*/
320
321/**
322 * @brief Mailboxes APIs.
323 * @details If enabled then the asynchronous messages (mailboxes) APIs are
324 * included in the kernel.
325 *
326 * @note The default is @p TRUE.
327 * @note Requires @p CH_CFG_USE_SEMAPHORES.
328 */
329#if !defined(CH_CFG_USE_MAILBOXES)
330#define CH_CFG_USE_MAILBOXES TRUE
331#endif
332
333/**
334 * @brief Core Memory Manager APIs.
335 * @details If enabled then the core memory manager APIs are included
336 * in the kernel.
337 *
338 * @note The default is @p TRUE.
339 */
340#if !defined(CH_CFG_USE_MEMCORE)
341#define CH_CFG_USE_MEMCORE TRUE
342#endif
343
344/**
345 * @brief Managed RAM size.
346 * @details Size of the RAM area to be managed by the OS. If set to zero
347 * then the whole available RAM is used. The core memory is made
348 * available to the heap allocator and/or can be used directly through
349 * the simplified core memory allocator.
350 *
351 * @note In order to let the OS manage the whole RAM the linker script must
352 * provide the @p __heap_base__ and @p __heap_end__ symbols.
353 * @note Requires @p CH_CFG_USE_MEMCORE.
354 */
355#if !defined(CH_CFG_MEMCORE_SIZE)
356#define CH_CFG_MEMCORE_SIZE 0
357#endif
358
359/**
360 * @brief Heap Allocator APIs.
361 * @details If enabled then the memory heap allocator APIs are included
362 * in the kernel.
363 *
364 * @note The default is @p TRUE.
365 * @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or
366 * @p CH_CFG_USE_SEMAPHORES.
367 * @note Mutexes are recommended.
368 */
369#if !defined(CH_CFG_USE_HEAP)
370#define CH_CFG_USE_HEAP TRUE
371#endif
372
373/**
374 * @brief Memory Pools Allocator APIs.
375 * @details If enabled then the memory pools allocator APIs are included
376 * in the kernel.
377 *
378 * @note The default is @p TRUE.
379 */
380#if !defined(CH_CFG_USE_MEMPOOLS)
381#define CH_CFG_USE_MEMPOOLS TRUE
382#endif
383
384/**
385 * @brief Objects FIFOs APIs.
386 * @details If enabled then the objects FIFOs APIs are included
387 * in the kernel.
388 *
389 * @note The default is @p TRUE.
390 */
391#if !defined(CH_CFG_USE_OBJ_FIFOS)
392#define CH_CFG_USE_OBJ_FIFOS TRUE
393#endif
394
395/**
396 * @brief Pipes APIs.
397 * @details If enabled then the pipes APIs are included
398 * in the kernel.
399 *
400 * @note The default is @p TRUE.
401 */
402#if !defined(CH_CFG_USE_PIPES)
403#define CH_CFG_USE_PIPES TRUE
404#endif
405
406/**
407 * @brief Objects Caches APIs.
408 * @details If enabled then the objects caches APIs are included
409 * in the kernel.
410 *
411 * @note The default is @p TRUE.
412 */
413#if !defined(CH_CFG_USE_OBJ_CACHES)
414#define CH_CFG_USE_OBJ_CACHES TRUE
415#endif
416
417/**
418 * @brief Delegate threads APIs.
419 * @details If enabled then the delegate threads APIs are included
420 * in the kernel.
421 *
422 * @note The default is @p TRUE.
423 */
424#if !defined(CH_CFG_USE_DELEGATES)
425#define CH_CFG_USE_DELEGATES TRUE
426#endif
427
428/**
429 * @brief Jobs Queues APIs.
430 * @details If enabled then the jobs queues APIs are included
431 * in the kernel.
432 *
433 * @note The default is @p TRUE.
434 */
435#if !defined(CH_CFG_USE_JOBS)
436#define CH_CFG_USE_JOBS TRUE
437#endif
438
439/** @} */
440
441/*===========================================================================*/
442/**
443 * @name Objects factory options
444 * @{
445 */
446/*===========================================================================*/
447
448/**
449 * @brief Objects Factory APIs.
450 * @details If enabled then the objects factory APIs are included in the
451 * kernel.
452 *
453 * @note The default is @p FALSE.
454 */
455#if !defined(CH_CFG_USE_FACTORY)
456#define CH_CFG_USE_FACTORY TRUE
457#endif
458
459/**
460 * @brief Maximum length for object names.
461 * @details If the specified length is zero then the name is stored by
462 * pointer but this could have unintended side effects.
463 */
464#if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH)
465#define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8
466#endif
467
468/**
469 * @brief Enables the registry of generic objects.
470 */
471#if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
472#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE
473#endif
474
475/**
476 * @brief Enables factory for generic buffers.
477 */
478#if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
479#define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE
480#endif
481
482/**
483 * @brief Enables factory for semaphores.
484 */
485#if !defined(CH_CFG_FACTORY_SEMAPHORES)
486#define CH_CFG_FACTORY_SEMAPHORES TRUE
487#endif
488
489/**
490 * @brief Enables factory for mailboxes.
491 */
492#if !defined(CH_CFG_FACTORY_MAILBOXES)
493#define CH_CFG_FACTORY_MAILBOXES TRUE
494#endif
495
496/**
497 * @brief Enables factory for objects FIFOs.
498 */
499#if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
500#define CH_CFG_FACTORY_OBJ_FIFOS TRUE
501#endif
502
503/**
504 * @brief Enables factory for Pipes.
505 */
506#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
507#define CH_CFG_FACTORY_PIPES TRUE
508#endif
509
510/** @} */
511
512/*===========================================================================*/
513/**
514 * @name Debug options
515 * @{
516 */
517/*===========================================================================*/
518
519/**
520 * @brief Debug option, kernel statistics.
521 *
522 * @note The default is @p FALSE.
523 */
524#if !defined(CH_DBG_STATISTICS)
525#define CH_DBG_STATISTICS FALSE
526#endif
527
528/**
529 * @brief Debug option, system state check.
530 * @details If enabled the correct call protocol for system APIs is checked
531 * at runtime.
532 *
533 * @note The default is @p FALSE.
534 */
535#if !defined(CH_DBG_SYSTEM_STATE_CHECK)
536#define CH_DBG_SYSTEM_STATE_CHECK FALSE
537#endif
538
539/**
540 * @brief Debug option, parameters checks.
541 * @details If enabled then the checks on the API functions input
542 * parameters are activated.
543 *
544 * @note The default is @p FALSE.
545 */
546#if !defined(CH_DBG_ENABLE_CHECKS)
547#define CH_DBG_ENABLE_CHECKS FALSE
548#endif
549
550/**
551 * @brief Debug option, consistency checks.
552 * @details If enabled then all the assertions in the kernel code are
553 * activated. This includes consistency checks inside the kernel,
554 * runtime anomalies and port-defined checks.
555 *
556 * @note The default is @p FALSE.
557 */
558#if !defined(CH_DBG_ENABLE_ASSERTS)
559#define CH_DBG_ENABLE_ASSERTS FALSE
560#endif
561
562/**
563 * @brief Debug option, trace buffer.
564 * @details If enabled then the trace buffer is activated.
565 *
566 * @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
567 */
568#if !defined(CH_DBG_TRACE_MASK)
569#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
570#endif
571
572/**
573 * @brief Trace buffer entries.
574 * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is
575 * different from @p CH_DBG_TRACE_MASK_DISABLED.
576 */
577#if !defined(CH_DBG_TRACE_BUFFER_SIZE)
578#define CH_DBG_TRACE_BUFFER_SIZE 128
579#endif
580
581/**
582 * @brief Debug option, stack checks.
583 * @details If enabled then a runtime stack check is performed.
584 *
585 * @note The default is @p FALSE.
586 * @note The stack check is performed in a architecture/port dependent way.
587 * It may not be implemented or some ports.
588 * @note The default failure mode is to halt the system with the global
589 * @p panic_msg variable set to @p NULL.
590 */
591#if !defined(CH_DBG_ENABLE_STACK_CHECK)
592#define CH_DBG_ENABLE_STACK_CHECK FALSE
593#endif
594
595/**
596 * @brief Debug option, stacks initialization.
597 * @details If enabled then the threads working area is filled with a byte
598 * value when a thread is created. This can be useful for the
599 * runtime measurement of the used stack.
600 *
601 * @note The default is @p FALSE.
602 */
603#if !defined(CH_DBG_FILL_THREADS)
604#define CH_DBG_FILL_THREADS FALSE
605#endif
606
607/**
608 * @brief Debug option, threads profiling.
609 * @details If enabled then a field is added to the @p thread_t structure that
610 * counts the system ticks occurred while executing the thread.
611 *
612 * @note The default is @p FALSE.
613 * @note This debug option is not currently compatible with the
614 * tickless mode.
615 */
616#if !defined(CH_DBG_THREADS_PROFILING)
617#define CH_DBG_THREADS_PROFILING TRUE
618#endif
619
620/** @} */
621
622/*===========================================================================*/
623/**
624 * @name Kernel hooks
625 * @{
626 */
627/*===========================================================================*/
628
629/**
630 * @brief System structure extension.
631 * @details User fields added to the end of the @p ch_system_t structure.
632 */
633#define CH_CFG_SYSTEM_EXTRA_FIELDS \
634 /* Add threads custom fields here.*/
635
636/**
637 * @brief System initialization hook.
638 * @details User initialization code added to the @p chSysInit() function
639 * just before interrupts are enabled globally.
640 */
641#define CH_CFG_SYSTEM_INIT_HOOK() { \
642 /* Add threads initialization code here.*/ \
643}
644
645/**
646 * @brief Threads descriptor structure extension.
647 * @details User fields added to the end of the @p thread_t structure.
648 */
649#define CH_CFG_THREAD_EXTRA_FIELDS \
650 /* Add threads custom fields here.*/
651
652/**
653 * @brief Threads initialization hook.
654 * @details User initialization code added to the @p _thread_init() function.
655 *
656 * @note It is invoked from within @p _thread_init() and implicitly from all
657 * the threads creation APIs.
658 */
659#define CH_CFG_THREAD_INIT_HOOK(tp) { \
660 /* Add threads initialization code here.*/ \
661}
662
663/**
664 * @brief Threads finalization hook.
665 * @details User finalization code added to the @p chThdExit() API.
666 */
667#define CH_CFG_THREAD_EXIT_HOOK(tp) { \
668 /* Add threads finalization code here.*/ \
669}
670
671/**
672 * @brief Context switch hook.
673 * @details This hook is invoked just before switching between threads.
674 */
675#define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \
676 /* Context switch code here.*/ \
677}
678
679/**
680 * @brief ISR enter hook.
681 */
682#define CH_CFG_IRQ_PROLOGUE_HOOK() { \
683 /* IRQ prologue code here.*/ \
684}
685
686/**
687 * @brief ISR exit hook.
688 */
689#define CH_CFG_IRQ_EPILOGUE_HOOK() { \
690 /* IRQ epilogue code here.*/ \
691}
692
693/**
694 * @brief Idle thread enter hook.
695 * @note This hook is invoked within a critical zone, no OS functions
696 * should be invoked from here.
697 * @note This macro can be used to activate a power saving mode.
698 */
699#define CH_CFG_IDLE_ENTER_HOOK() { \
700 /* Idle-enter code here.*/ \
701}
702
703/**
704 * @brief Idle thread leave hook.
705 * @note This hook is invoked within a critical zone, no OS functions
706 * should be invoked from here.
707 * @note This macro can be used to deactivate a power saving mode.
708 */
709#define CH_CFG_IDLE_LEAVE_HOOK() { \
710 /* Idle-leave code here.*/ \
711}
712
713/**
714 * @brief Idle Loop hook.
715 * @details This hook is continuously invoked by the idle thread loop.
716 */
717#define CH_CFG_IDLE_LOOP_HOOK() { \
718 /* Idle loop code here.*/ \
719}
720
721/**
722 * @brief System tick event hook.
723 * @details This hook is invoked in the system tick handler immediately
724 * after processing the virtual timers queue.
725 */
726#define CH_CFG_SYSTEM_TICK_HOOK() { \
727 /* System tick event code here.*/ \
728}
729
730/**
731 * @brief System halt hook.
732 * @details This hook is invoked in case to a system halting error before
733 * the system is halted.
734 */
735#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \
736 /* System halt code here.*/ \
737}
738
739/**
740 * @brief Trace hook.
741 * @details This hook is invoked each time a new record is written in the
742 * trace buffer.
743 */
744#define CH_CFG_TRACE_HOOK(tep) { \
745 /* Trace code here.*/ \
746}
747
748/** @} */
749
750/*===========================================================================*/
751/* Port-specific settings (override port settings defaulted in chcore.h). */
752/*===========================================================================*/
753
754#endif /* CHCONF_H */
755
756/** @} */
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.lcf b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.lcf
new file mode 100644
index 000000000..d77c1d8cb
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.lcf
@@ -0,0 +1,153 @@
1/*
2 ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio.
3
4 This file is part of ChibiOS.
5
6 ChibiOS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
11 ChibiOS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20/*
21 * SPC56EC74 memory setup.
22 */
23MEMORY
24{
25 rom : org = 0x00000000, len = 0x00300000
26 dataflash : org = 0x00800000, len = 0x00010000
27 ram : org = 0x40000000, len = 0x00030000
28}
29
30__irq_stack_size__ = 0;
31__process_stack_size__ = 0x1000;
32
33__ram_size__ = SIZEOF(ram);
34__ram_start__ = ADDR(ram);
35__ram_end__ = ADDR(ram) + SIZEOF(ram);
36
37SECTIONS
38{
39 GROUP:
40 {
41 .boot ALIGN(16):
42 {
43 __ivpr_base__ = .;
44 KEEP(*(.boot))
45 }
46
47 .handlers (VLECODE) ALIGN(16):
48 {
49 KEEP(*(.handlers))
50 }
51
52 .crt0 (VLECODE) ALIGN(16):
53 {
54 KEEP(*(.crt0))
55 }
56
57 .init: {}
58 .init_vle (VLECODE) ALIGN(4):
59 {
60 *(.init)
61 *(.init_vle)
62 }
63
64 .vectors ALIGN(0x800):
65 {
66 KEEP(*(.vectors))
67 }
68
69 .code (VLECODE) ALIGN(16):
70 {
71 *(.text)
72 *(.text_vle)
73 }
74
75 .const (CONST) ALIGN(16):
76 {
77 *(.rdata)
78 *(.rodata)
79 }
80
81 .sdata2 (CONST) ALIGN(16):
82 {
83 __sdata2_start__ = . + 0x8000;
84 *(.sdata2)
85 *(.sbss2)
86 }
87
88 .ctors: {}
89 .dtors: {}
90 extab: {}
91 extabindex: {}
92
93 . = ALIGN(4);
94 __romdata_start__ = .;
95 } > rom
96
97 GROUP:
98 {
99 .stacks:
100 {
101 . = ALIGN(8);
102 __irq_stack_base__ = .;
103 . = . + __irq_stack_size__;
104 . = ALIGN(8);
105 __irq_stack_end__ = .;
106 __process_stack_base__ = .;
107 __main_thread_stack_base__ = .;
108 . = . + __process_stack_size__;
109 . = ALIGN(8);
110 __process_stack_end__ = .;
111 __main_thread_stack_end__ = .;
112 }
113
114 .data (DATA) LOAD(__romdata_start__):
115 {
116 . = ALIGN(4);
117 __data_start__ = .;
118 *(.data)
119 . = ALIGN(4);
120 }
121
122 .sdata (DATA) LOAD(ROMADDR(.data) + SIZEOF(.data)):
123 {
124 __sdata_start__ = . + 0x8000;
125 *(.sdata)
126 __data_end__ = .;
127 }
128
129 .sbss (BSS):
130 {
131 __bss_start__ = .;
132 *(.sbss)
133 }
134
135 .bss (BSS):
136 {
137 *(.bss)
138 __bss_end__ = .;
139 }
140
141 /* The default heap uses the (statically) unused part of a RAM section.*/
142 .heap:
143 {
144 . = ALIGN(8);
145 __heap_base__ = .;
146 . = ADDR(ram) + SIZEOF(ram);
147 __heap_end__ = .;
148 }
149
150 .PPC.EMB.sdata0: {}
151 .PPC.EMB.sbss0: {}
152 } > ram
153}
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.mcp b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.mcp
new file mode 100644
index 000000000..e29399c88
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/cw/ch/ch.mcp
Binary files differ
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/halconf.h b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/halconf.h
new file mode 100644
index 000000000..5e342d8c6
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/halconf.h
@@ -0,0 +1,531 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17/**
18 * @file templates/halconf.h
19 * @brief HAL configuration header.
20 * @details HAL configuration file, this file allows to enable or disable the
21 * various device drivers from your application. You may also use
22 * this file in order to override the device drivers default settings.
23 *
24 * @addtogroup HAL_CONF
25 * @{
26 */
27
28#ifndef HALCONF_H
29#define HALCONF_H
30
31#define _CHIBIOS_HAL_CONF_
32#define _CHIBIOS_HAL_CONF_VER_7_1_
33
34#include "mcuconf.h"
35
36/**
37 * @brief Enables the PAL subsystem.
38 */
39#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
40#define HAL_USE_PAL TRUE
41#endif
42
43/**
44 * @brief Enables the ADC subsystem.
45 */
46#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
47#define HAL_USE_ADC FALSE
48#endif
49
50/**
51 * @brief Enables the CAN subsystem.
52 */
53#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
54#define HAL_USE_CAN FALSE
55#endif
56
57/**
58 * @brief Enables the cryptographic subsystem.
59 */
60#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
61#define HAL_USE_CRY FALSE
62#endif
63
64/**
65 * @brief Enables the DAC subsystem.
66 */
67#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
68#define HAL_USE_DAC FALSE
69#endif
70
71/**
72 * @brief Enables the EFlash subsystem.
73 */
74#if !defined(HAL_USE_EFL) || defined(__DOXYGEN__)
75#define HAL_USE_EFL FALSE
76#endif
77
78/**
79 * @brief Enables the GPT subsystem.
80 */
81#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
82#define HAL_USE_GPT FALSE
83#endif
84
85/**
86 * @brief Enables the I2C subsystem.
87 */
88#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
89#define HAL_USE_I2C FALSE
90#endif
91
92/**
93 * @brief Enables the I2S subsystem.
94 */
95#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
96#define HAL_USE_I2S FALSE
97#endif
98
99/**
100 * @brief Enables the ICU subsystem.
101 */
102#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
103#define HAL_USE_ICU FALSE
104#endif
105
106/**
107 * @brief Enables the MAC subsystem.
108 */
109#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
110#define HAL_USE_MAC FALSE
111#endif
112
113/**
114 * @brief Enables the MMC_SPI subsystem.
115 */
116#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
117#define HAL_USE_MMC_SPI FALSE
118#endif
119
120/**
121 * @brief Enables the PWM subsystem.
122 */
123#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
124#define HAL_USE_PWM FALSE
125#endif
126
127/**
128 * @brief Enables the RTC subsystem.
129 */
130#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
131#define HAL_USE_RTC FALSE
132#endif
133
134/**
135 * @brief Enables the SDC subsystem.
136 */
137#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
138#define HAL_USE_SDC FALSE
139#endif
140
141/**
142 * @brief Enables the SERIAL subsystem.
143 */
144#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
145#define HAL_USE_SERIAL TRUE
146#endif
147
148/**
149 * @brief Enables the SERIAL over USB subsystem.
150 */
151#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
152#define HAL_USE_SERIAL_USB FALSE
153#endif
154
155/**
156 * @brief Enables the SIO subsystem.
157 */
158#if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
159#define HAL_USE_SIO FALSE
160#endif
161
162/**
163 * @brief Enables the SPI subsystem.
164 */
165#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
166#define HAL_USE_SPI FALSE
167#endif
168
169/**
170 * @brief Enables the TRNG subsystem.
171 */
172#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
173#define HAL_USE_TRNG FALSE
174#endif
175
176/**
177 * @brief Enables the UART subsystem.
178 */
179#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
180#define HAL_USE_UART FALSE
181#endif
182
183/**
184 * @brief Enables the USB subsystem.
185 */
186#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
187#define HAL_USE_USB FALSE
188#endif
189
190/**
191 * @brief Enables the WDG subsystem.
192 */
193#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
194#define HAL_USE_WDG FALSE
195#endif
196
197/**
198 * @brief Enables the WSPI subsystem.
199 */
200#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
201#define HAL_USE_WSPI FALSE
202#endif
203
204/*===========================================================================*/
205/* PAL driver related settings. */
206/*===========================================================================*/
207
208/**
209 * @brief Enables synchronous APIs.
210 * @note Disabling this option saves both code and data space.
211 */
212#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
213#define PAL_USE_CALLBACKS FALSE
214#endif
215
216/**
217 * @brief Enables synchronous APIs.
218 * @note Disabling this option saves both code and data space.
219 */
220#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
221#define PAL_USE_WAIT FALSE
222#endif
223
224/*===========================================================================*/
225/* ADC driver related settings. */
226/*===========================================================================*/
227
228/**
229 * @brief Enables synchronous APIs.
230 * @note Disabling this option saves both code and data space.
231 */
232#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
233#define ADC_USE_WAIT TRUE
234#endif
235
236/**
237 * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
238 * @note Disabling this option saves both code and data space.
239 */
240#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
241#define ADC_USE_MUTUAL_EXCLUSION TRUE
242#endif
243
244/*===========================================================================*/
245/* CAN driver related settings. */
246/*===========================================================================*/
247
248/**
249 * @brief Sleep mode related APIs inclusion switch.
250 */
251#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
252#define CAN_USE_SLEEP_MODE TRUE
253#endif
254
255/**
256 * @brief Enforces the driver to use direct callbacks rather than OSAL events.
257 */
258#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
259#define CAN_ENFORCE_USE_CALLBACKS FALSE
260#endif
261
262/*===========================================================================*/
263/* CRY driver related settings. */
264/*===========================================================================*/
265
266/**
267 * @brief Enables the SW fall-back of the cryptographic driver.
268 * @details When enabled, this option, activates a fall-back software
269 * implementation for algorithms not supported by the underlying
270 * hardware.
271 * @note Fall-back implementations may not be present for all algorithms.
272 */
273#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
274#define HAL_CRY_USE_FALLBACK FALSE
275#endif
276
277/**
278 * @brief Makes the driver forcibly use the fall-back implementations.
279 */
280#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
281#define HAL_CRY_ENFORCE_FALLBACK FALSE
282#endif
283
284/*===========================================================================*/
285/* DAC driver related settings. */
286/*===========================================================================*/
287
288/**
289 * @brief Enables synchronous APIs.
290 * @note Disabling this option saves both code and data space.
291 */
292#if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
293#define DAC_USE_WAIT TRUE
294#endif
295
296/**
297 * @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
298 * @note Disabling this option saves both code and data space.
299 */
300#if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
301#define DAC_USE_MUTUAL_EXCLUSION TRUE
302#endif
303
304/*===========================================================================*/
305/* I2C driver related settings. */
306/*===========================================================================*/
307
308/**
309 * @brief Enables the mutual exclusion APIs on the I2C bus.
310 */
311#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
312#define I2C_USE_MUTUAL_EXCLUSION TRUE
313#endif
314
315/*===========================================================================*/
316/* MAC driver related settings. */
317/*===========================================================================*/
318
319/**
320 * @brief Enables the zero-copy API.
321 */
322#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
323#define MAC_USE_ZERO_COPY FALSE
324#endif
325
326/**
327 * @brief Enables an event sources for incoming packets.
328 */
329#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
330#define MAC_USE_EVENTS TRUE
331#endif
332
333/*===========================================================================*/
334/* MMC_SPI driver related settings. */
335/*===========================================================================*/
336
337/**
338 * @brief Delays insertions.
339 * @details If enabled this options inserts delays into the MMC waiting
340 * routines releasing some extra CPU time for the threads with
341 * lower priority, this may slow down the driver a bit however.
342 * This option is recommended also if the SPI driver does not
343 * use a DMA channel and heavily loads the CPU.
344 */
345#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
346#define MMC_NICE_WAITING TRUE
347#endif
348
349/*===========================================================================*/
350/* SDC driver related settings. */
351/*===========================================================================*/
352
353/**
354 * @brief Number of initialization attempts before rejecting the card.
355 * @note Attempts are performed at 10mS intervals.
356 */
357#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
358#define SDC_INIT_RETRY 100
359#endif
360
361/**
362 * @brief Include support for MMC cards.
363 * @note MMC support is not yet implemented so this option must be kept
364 * at @p FALSE.
365 */
366#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
367#define SDC_MMC_SUPPORT FALSE
368#endif
369
370/**
371 * @brief Delays insertions.
372 * @details If enabled this options inserts delays into the MMC waiting
373 * routines releasing some extra CPU time for the threads with
374 * lower priority, this may slow down the driver a bit however.
375 */
376#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
377#define SDC_NICE_WAITING TRUE
378#endif
379
380/**
381 * @brief OCR initialization constant for V20 cards.
382 */
383#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
384#define SDC_INIT_OCR_V20 0x50FF8000U
385#endif
386
387/**
388 * @brief OCR initialization constant for non-V20 cards.
389 */
390#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
391#define SDC_INIT_OCR 0x80100000U
392#endif
393
394/*===========================================================================*/
395/* SERIAL driver related settings. */
396/*===========================================================================*/
397
398/**
399 * @brief Default bit rate.
400 * @details Configuration parameter, this is the baud rate selected for the
401 * default configuration.
402 */
403#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
404#define SERIAL_DEFAULT_BITRATE 38400
405#endif
406
407/**
408 * @brief Serial buffers size.
409 * @details Configuration parameter, you can change the depth of the queue
410 * buffers depending on the requirements of your application.
411 * @note The default is 16 bytes for both the transmission and receive
412 * buffers.
413 */
414#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
415#define SERIAL_BUFFERS_SIZE 16
416#endif
417
418/*===========================================================================*/
419/* SERIAL_USB driver related setting. */
420/*===========================================================================*/
421
422/**
423 * @brief Serial over USB buffers size.
424 * @details Configuration parameter, the buffer size must be a multiple of
425 * the USB data endpoint maximum packet size.
426 * @note The default is 256 bytes for both the transmission and receive
427 * buffers.
428 */
429#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
430#define SERIAL_USB_BUFFERS_SIZE 256
431#endif
432
433/**
434 * @brief Serial over USB number of buffers.
435 * @note The default is 2 buffers.
436 */
437#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
438#define SERIAL_USB_BUFFERS_NUMBER 2
439#endif
440
441/*===========================================================================*/
442/* SPI driver related settings. */
443/*===========================================================================*/
444
445/**
446 * @brief Enables synchronous APIs.
447 * @note Disabling this option saves both code and data space.
448 */
449#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
450#define SPI_USE_WAIT TRUE
451#endif
452
453/**
454 * @brief Enables circular transfers APIs.
455 * @note Disabling this option saves both code and data space.
456 */
457#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
458#define SPI_USE_CIRCULAR FALSE
459#endif
460
461/**
462 * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
463 * @note Disabling this option saves both code and data space.
464 */
465#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
466#define SPI_USE_MUTUAL_EXCLUSION TRUE
467#endif
468
469/**
470 * @brief Handling method for SPI CS line.
471 * @note Disabling this option saves both code and data space.
472 */
473#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
474#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
475#endif
476
477/*===========================================================================*/
478/* UART driver related settings. */
479/*===========================================================================*/
480
481/**
482 * @brief Enables synchronous APIs.
483 * @note Disabling this option saves both code and data space.
484 */
485#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
486#define UART_USE_WAIT FALSE
487#endif
488
489/**
490 * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
491 * @note Disabling this option saves both code and data space.
492 */
493#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
494#define UART_USE_MUTUAL_EXCLUSION FALSE
495#endif
496
497/*===========================================================================*/
498/* USB driver related settings. */
499/*===========================================================================*/
500
501/**
502 * @brief Enables synchronous APIs.
503 * @note Disabling this option saves both code and data space.
504 */
505#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
506#define USB_USE_WAIT FALSE
507#endif
508
509/*===========================================================================*/
510/* WSPI driver related settings. */
511/*===========================================================================*/
512
513/**
514 * @brief Enables synchronous APIs.
515 * @note Disabling this option saves both code and data space.
516 */
517#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
518#define WSPI_USE_WAIT TRUE
519#endif
520
521/**
522 * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs.
523 * @note Disabling this option saves both code and data space.
524 */
525#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
526#define WSPI_USE_MUTUAL_EXCLUSION TRUE
527#endif
528
529#endif /* HALCONF_H */
530
531/** @} */
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/main.c b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/main.c
new file mode 100644
index 000000000..86d191b89
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/main.c
@@ -0,0 +1,142 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#include "ch.h"
18#include "hal.h"
19#include "shell.h"
20#include "chprintf.h"
21
22#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(1024)
23
24static const ShellCommand commands[] = {
25 {NULL, NULL}
26};
27
28static const ShellConfig shell_cfg1 = {
29 (BaseSequentialStream *)&SD1,
30 commands
31};
32
33/*
34 * LEDs blinker thread, times are in milliseconds.
35 */
36static THD_WORKING_AREA(waThread1, 128);
37static THD_FUNCTION(Thread1, arg) {
38
39 (void)arg;
40 chRegSetThreadName("blinker");
41
42 while (true) {
43 unsigned i;
44
45 for (i = 0; i < 4; i++) {
46 palClearPad(PORT_E, PE_LED1);
47 chThdSleepMilliseconds(100);
48 palClearPad(PORT_E, PE_LED2);
49 chThdSleepMilliseconds(100);
50 palClearPad(PORT_E, PE_LED3);
51 chThdSleepMilliseconds(100);
52 palClearPad(PORT_E, PE_LED4);
53 chThdSleepMilliseconds(100);
54 palSetPad(PORT_E, PE_LED1);
55 chThdSleepMilliseconds(100);
56 palSetPad(PORT_E, PE_LED2);
57 chThdSleepMilliseconds(100);
58 palSetPad(PORT_E, PE_LED3);
59 chThdSleepMilliseconds(100);
60 palSetPad(PORT_E, PE_LED4);
61 chThdSleepMilliseconds(300);
62 }
63
64 for (i = 0; i < 4; i++) {
65 palTogglePort(PORT_E, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED2) |
66 PAL_PORT_BIT(PE_LED3) | PAL_PORT_BIT(PE_LED4));
67 chThdSleepMilliseconds(500);
68 palTogglePort(PORT_E, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED2) |
69 PAL_PORT_BIT(PE_LED3) | PAL_PORT_BIT(PE_LED4));
70 chThdSleepMilliseconds(500);
71 }
72
73 for (i = 0; i < 4; i++) {
74 palTogglePad(PORT_E, PE_LED1);
75 chThdSleepMilliseconds(250);
76 palTogglePad(PORT_E, PE_LED1);
77 palTogglePad(PORT_E, PE_LED2);
78 chThdSleepMilliseconds(250);
79 palTogglePad(PORT_E, PE_LED2);
80 palTogglePad(PORT_E, PE_LED3);
81 chThdSleepMilliseconds(250);
82 palTogglePad(PORT_E, PE_LED3);
83 palTogglePad(PORT_E, PE_LED4);
84 chThdSleepMilliseconds(250);
85 palTogglePad(PORT_E, PE_LED4);
86 }
87
88 for (i = 0; i < 4; i++) {
89 palClearPort(PORT_E, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED3));
90 palSetPort(PORT_E, PAL_PORT_BIT(PE_LED2) | PAL_PORT_BIT(PE_LED4));
91 chThdSleepMilliseconds(500);
92 palClearPort(PORT_E, PAL_PORT_BIT(PE_LED2) | PAL_PORT_BIT(PE_LED4));
93 palSetPort(PORT_E, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED3));
94 chThdSleepMilliseconds(500);
95 }
96
97 palSetPort(PORT_E, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED2) |
98 PAL_PORT_BIT(PE_LED3) | PAL_PORT_BIT(PE_LED4));
99 }
100}
101
102/*
103 * Application entry point.
104 */
105int main(void) {
106
107 /*
108 * System initializations.
109 * - HAL initialization, this also initializes the configured device drivers
110 * and performs the board-specific initializations.
111 * - Kernel initialization, the main() function becomes a thread and the
112 * RTOS is active.
113 */
114 halInit();
115 chSysInit();
116
117 /*
118 * Shell manager initialization.
119 */
120 shellInit();
121
122 /*
123 * Activates the serial driver 1 using the driver default configuration.
124 */
125 sdStart(&SD1, NULL);
126
127 /*
128 * Creates the blinker thread.
129 */
130 chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
131
132 /*
133 * Normal main() thread activity, spawning shells.
134 */
135 while (true) {
136 thread_t *shelltp = chThdCreateFromHeap(NULL, SHELL_WA_SIZE,
137 "shell", NORMALPRIO + 1,
138 shellThread, (void *)&shell_cfg1);
139 chThdWait(shelltp); /* Waiting termination. */
140 chThdSleepMilliseconds(1000);
141 }
142}
diff --git a/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h
new file mode 100644
index 000000000..50a385873
--- /dev/null
+++ b/lib/chibios/demos/SPC5/RT-SPC56EC-EVB/mcuconf.h
@@ -0,0 +1,293 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#ifndef MCUCONF_H
18#define MCUCONF_H
19
20/*
21 * SPC56ECxx drivers configuration.
22 * The following settings override the default settings present in
23 * the various device driver implementation headers.
24 * Note that the settings for each driver only have effect if the whole
25 * driver is enabled in halconf.h.
26 *
27 * IRQ priorities:
28 * 1...15 Lowest...Highest.
29 * DMA priorities:
30 * 0...15 Highest...Lowest.
31 */
32
33#define SPC56ECxx_MCUCONF
34
35/*
36 * HAL driver system settings.
37 */
38#define SPC5_NO_INIT FALSE
39#define SPC5_ALLOW_OVERCLOCK FALSE
40#define SPC5_DISABLE_WATCHDOG TRUE
41#define SPC5_FMPLL0_IDF_VALUE 5
42#define SPC5_FMPLL0_NDIV_VALUE 60
43#define SPC5_FMPLL0_ODF SPC5_FMPLL_ODF_DIV4
44#define SPC5_XOSCDIV_VALUE 1
45#define SPC5_IRCDIV_VALUE 1
46#define SPC5_PERIPHERAL1_CLK_DIV_VALUE 4
47#define SPC5_PERIPHERAL2_CLK_DIV_VALUE 2
48#define SPC5_PERIPHERAL3_CLK_DIV_VALUE 2
49#define SPC5_Z0_CLK_DIV_VALUE 2
50#define SPC5_FEC_CLK_DIV_VALUE 2
51#define SPC5_FLASH_CLK_DIV_VALUE 2
52#define SPC5_CLOCK_FAILURE_HOOK() osalSysHalt("clock failure")
53
54#define SPC5_EMIOS0_GPRE_VALUE 20
55#define SPC5_EMIOS1_GPRE_VALUE 20
56
57/*
58 * EDMA driver settings.
59 */
60#define SPC5_EDMA_CR_SETTING (EDMA_CR_GRP1PRI(1) | \
61 EDMA_CR_GRP0PRI(0) | \
62 EDMA_CR_EMLM | \
63 EDMA_CR_ERGA)
64#define SPC5_EDMA_GROUP0_PRIORITIES 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
65#define SPC5_EDMA_GROUP1_PRIORITIES 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
66#define SPC5_EDMA_ERROR_IRQ_PRIO 12
67#define SPC5_EDMA_ERROR_HANDLER() osalSysHalt("DMA failure")
68
69/*
70 * SERIAL driver system settings.
71 */
72#define SPC5_SERIAL_USE_LINFLEX0 TRUE
73#define SPC5_SERIAL_USE_LINFLEX1 FALSE
74#define SPC5_SERIAL_USE_LINFLEX2 FALSE
75#define SPC5_SERIAL_USE_LINFLEX3 FALSE
76#define SPC5_SERIAL_USE_LINFLEX4 FALSE
77#define SPC5_SERIAL_USE_LINFLEX5 FALSE
78#define SPC5_SERIAL_USE_LINFLEX6 FALSE
79#define SPC5_SERIAL_USE_LINFLEX7 FALSE
80#define SPC5_SERIAL_USE_LINFLEX8 FALSE
81#define SPC5_SERIAL_USE_LINFLEX9 FALSE
82#define SPC5_SERIAL_LINFLEX0_PRIORITY 8
83#define SPC5_SERIAL_LINFLEX1_PRIORITY 8
84#define SPC5_SERIAL_LINFLEX2_PRIORITY 8
85#define SPC5_SERIAL_LINFLEX3_PRIORITY 8
86#define SPC5_SERIAL_LINFLEX4_PRIORITY 8
87#define SPC5_SERIAL_LINFLEX5_PRIORITY 8
88#define SPC5_SERIAL_LINFLEX6_PRIORITY 8
89#define SPC5_SERIAL_LINFLEX7_PRIORITY 8
90#define SPC5_SERIAL_LINFLEX8_PRIORITY 8
91#define SPC5_SERIAL_LINFLEX9_PRIORITY 8
92
93/*
94 * SPI driver system settings.
95 */
96#define SPC5_SPI_USE_DSPI0 FALSE
97#define SPC5_SPI_USE_DSPI1 FALSE
98#define SPC5_SPI_USE_DSPI2 FALSE
99#define SPC5_SPI_USE_DSPI3 FALSE
100#define SPC5_SPI_USE_DSPI4 FALSE
101#define SPC5_SPI_USE_DSPI5 FALSE
102#define SPC5_SPI_USE_DSPI6 FALSE
103#define SPC5_SPI_USE_DSPI7 FALSE
104#define SPC5_SPI_DMA_MODE SPC5_SPI_DMA_RX_ONLY
105#define SPC5_SPI_DSPI0_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1 | SPC5_MCR_PCSIS2 | SPC5_MCR_PCSIS3 | SPC5_MCR_PCSIS4 | SPC5_MCR_PCSIS5)
106#define SPC5_SPI_DSPI1_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1 | SPC5_MCR_PCSIS2 | SPC5_MCR_PCSIS3 | SPC5_MCR_PCSIS4)
107#define SPC5_SPI_DSPI2_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1 | SPC5_MCR_PCSIS2 | SPC5_MCR_PCSIS3)
108#define SPC5_SPI_DSPI3_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1)
109#define SPC5_SPI_DSPI4_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1)
110#define SPC5_SPI_DSPI5_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1 | SPC5_MCR_PCSIS2)
111#define SPC5_SPI_DSPI6_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1 | SPC5_MCR_PCSIS2 | SPC5_MCR_PCSIS3)
112#define SPC5_SPI_DSPI7_MCR (0 | SPC5_MCR_PCSIS0 | SPC5_MCR_PCSIS1 | SPC5_MCR_PCSIS2 | SPC5_MCR_PCSIS3)
113#define SPC5_SPI_DSPI0_TX1_DMA_CH_ID 4
114#define SPC5_SPI_DSPI0_TX2_DMA_CH_ID 5
115#define SPC5_SPI_DSPI0_RX_DMA_CH_ID 6
116#define SPC5_SPI_DSPI1_TX1_DMA_CH_ID 7
117#define SPC5_SPI_DSPI1_TX2_DMA_CH_ID 8
118#define SPC5_SPI_DSPI1_RX_DMA_CH_ID 9
119#define SPC5_SPI_DSPI2_TX1_DMA_CH_ID 10
120#define SPC5_SPI_DSPI2_TX2_DMA_CH_ID 11
121#define SPC5_SPI_DSPI2_RX_DMA_CH_ID 12
122#define SPC5_SPI_DSPI3_TX1_DMA_CH_ID 13
123#define SPC5_SPI_DSPI3_TX2_DMA_CH_ID 14
124#define SPC5_SPI_DSPI3_RX_DMA_CH_ID 15
125#define SPC5_SPI_DSPI4_TX1_DMA_CH_ID 16
126#define SPC5_SPI_DSPI4_TX2_DMA_CH_ID 17
127#define SPC5_SPI_DSPI4_RX_DMA_CH_ID 18
128#define SPC5_SPI_DSPI5_TX1_DMA_CH_ID 19
129#define SPC5_SPI_DSPI5_TX2_DMA_CH_ID 20
130#define SPC5_SPI_DSPI5_RX_DMA_CH_ID 21
131#define SPC5_SPI_DSPI6_TX1_DMA_CH_ID 22
132#define SPC5_SPI_DSPI6_TX2_DMA_CH_ID 23
133#define SPC5_SPI_DSPI6_RX_DMA_CH_ID 24
134#define SPC5_SPI_DSPI7_TX1_DMA_CH_ID 25
135#define SPC5_SPI_DSPI7_TX2_DMA_CH_ID 26
136#define SPC5_SPI_DSPI7_RX_DMA_CH_ID 27
137#define SPC5_SPI_DSPI0_DMA_IRQ_PRIO 10
138#define SPC5_SPI_DSPI1_DMA_IRQ_PRIO 10
139#define SPC5_SPI_DSPI2_DMA_IRQ_PRIO 10
140#define SPC5_SPI_DSPI3_DMA_IRQ_PRIO 10
141#define SPC5_SPI_DSPI4_DMA_IRQ_PRIO 10
142#define SPC5_SPI_DSPI5_DMA_IRQ_PRIO 10
143#define SPC5_SPI_DSPI6_DMA_IRQ_PRIO 10
144#define SPC5_SPI_DSPI7_DMA_IRQ_PRIO 10
145#define SPC5_SPI_DSPI0_IRQ_PRIO 10
146#define SPC5_SPI_DSPI1_IRQ_PRIO 10
147#define SPC5_SPI_DSPI2_IRQ_PRIO 10
148#define SPC5_SPI_DSPI3_IRQ_PRIO 10
149#define SPC5_SPI_DSPI4_IRQ_PRIO 10
150#define SPC5_SPI_DSPI5_IRQ_PRIO 10
151#define SPC5_SPI_DSPI6_IRQ_PRIO 10
152#define SPC5_SPI_DSPI7_IRQ_PRIO 10
153#define SPC5_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DSPI DMA failure")
154
155/*
156 * ICU-PWM driver system settings.
157 */
158#define SPC5_ICU_USE_EMIOS0_CH0 FALSE
159#define SPC5_ICU_USE_EMIOS0_CH1 FALSE
160#define SPC5_ICU_USE_EMIOS0_CH2 FALSE
161#define SPC5_ICU_USE_EMIOS0_CH3 FALSE
162#define SPC5_ICU_USE_EMIOS0_CH4 FALSE
163#define SPC5_ICU_USE_EMIOS0_CH5 FALSE
164#define SPC5_ICU_USE_EMIOS0_CH6 FALSE
165#define SPC5_ICU_USE_EMIOS0_CH7 FALSE
166#define SPC5_ICU_USE_EMIOS0_CH24 FALSE
167
168#define SPC5_PWM_USE_EMIOS0_GROUP0 FALSE
169#define SPC5_PWM_USE_EMIOS0_GROUP1 FALSE
170
171#define SPC5_EMIOS0_GFR_F0F1_PRIORITY 8
172#define SPC5_EMIOS0_GFR_F2F3_PRIORITY 8
173#define SPC5_EMIOS0_GFR_F4F5_PRIORITY 8
174#define SPC5_EMIOS0_GFR_F6F7_PRIORITY 8
175#define SPC5_EMIOS0_GFR_F8F9_PRIORITY 8
176#define SPC5_EMIOS0_GFR_F10F11_PRIORITY 8
177#define SPC5_EMIOS0_GFR_F12F13_PRIORITY 8
178#define SPC5_EMIOS0_GFR_F14F15_PRIORITY 8
179#define SPC5_EMIOS0_GFR_F16F17_PRIORITY 8
180#define SPC5_EMIOS0_GFR_F18F19_PRIORITY 8
181#define SPC5_EMIOS0_GFR_F20F21_PRIORITY 8
182#define SPC5_EMIOS0_GFR_F22F23_PRIORITY 8
183#define SPC5_EMIOS0_GFR_F24F25_PRIORITY 8
184
185#define SPC5_EMIOS0_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
186 SPC5_ME_PCTL_LP(2))
187#define SPC5_EMIOS0_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
188 SPC5_ME_PCTL_LP(0))
189
190#define SPC5_ICU_USE_EMIOS1_CH24 FALSE
191
192#define SPC5_PWM_USE_EMIOS1_GROUP0 FALSE
193#define SPC5_PWM_USE_EMIOS1_GROUP1 FALSE
194#define SPC5_PWM_USE_EMIOS1_GROUP2 FALSE
195
196#define SPC5_EMIOS1_GFR_F0F1_PRIORITY 8
197#define SPC5_EMIOS1_GFR_F2F3_PRIORITY 8
198#define SPC5_EMIOS1_GFR_F4F5_PRIORITY 8
199#define SPC5_EMIOS1_GFR_F6F7_PRIORITY 8
200#define SPC5_EMIOS1_GFR_F8F9_PRIORITY 8
201#define SPC5_EMIOS1_GFR_F10F11_PRIORITY 8
202#define SPC5_EMIOS1_GFR_F12F13_PRIORITY 8
203#define SPC5_EMIOS1_GFR_F14F15_PRIORITY 8
204#define SPC5_EMIOS1_GFR_F16F17_PRIORITY 8
205#define SPC5_EMIOS1_GFR_F18F19_PRIORITY 8
206#define SPC5_EMIOS1_GFR_F20F21_PRIORITY 8
207#define SPC5_EMIOS1_GFR_F22F23_PRIORITY 8
208#define SPC5_EMIOS1_GFR_F24F25_PRIORITY 8
209
210#define SPC5_EMIOS1_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
211 SPC5_ME_PCTL_LP(2))
212#define SPC5_EMIOS1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
213 SPC5_ME_PCTL_LP(0))
214
215/*
216 * CAN driver system settings.
217 */
218#define SPC5_CAN_USE_FILTERS FALSE
219
220#define SPC5_CAN_USE_FLEXCAN0 FALSE
221#define SPC5_CAN_FLEXCAN0_USE_EXT_CLK FALSE
222#define SPC5_CAN_FLEXCAN0_PRIORITY 11
223#define SPC5_CAN_FLEXCAN0_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
224 SPC5_ME_PCTL_LP(2))
225#define SPC5_CAN_FLEXCAN0_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
226 SPC5_ME_PCTL_LP(0))
227
228#define SPC5_CAN_USE_FLEXCAN1 FALSE
229#define SPC5_CAN_FLEXCAN1_USE_EXT_CLK FALSE
230#define SPC5_CAN_FLEXCAN1_PRIORITY 11
231#define SPC5_CAN_FLEXCAN1_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
232 SPC5_ME_PCTL_LP(2))
233#define SPC5_CAN_FLEXCAN1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
234 SPC5_ME_PCTL_LP(0))
235
236#define SPC5_CAN_USE_FLEXCAN2 FALSE
237#define SPC5_CAN_FLEXCAN2_USE_EXT_CLK FALSE
238#define SPC5_CAN_FLEXCAN2_PRIORITY 11
239#define SPC5_CAN_FLEXCAN2_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
240 SPC5_ME_PCTL_LP(2))
241#define SPC5_CAN_FLEXCAN2_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
242 SPC5_ME_PCTL_LP(0))
243
244#define SPC5_CAN_USE_FLEXCAN3 FALSE
245#define SPC5_CAN_FLEXCAN3_USE_EXT_CLK FALSE
246#define SPC5_CAN_FLEXCAN3_PRIORITY 11
247#define SPC5_CAN_FLEXCAN3_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
248 SPC5_ME_PCTL_LP(2))
249#define SPC5_CAN_FLEXCAN3_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
250 SPC5_ME_PCTL_LP(0))
251
252#define SPC5_CAN_USE_FLEXCAN4 FALSE
253#define SPC5_CAN_FLEXCAN4_USE_EXT_CLK FALSE
254#define SPC5_CAN_FLEXCAN4_PRIORITY 11
255#define SPC5_CAN_FLEXCAN4_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
256 SPC5_ME_PCTL_LP(2))
257#define SPC5_CAN_FLEXCAN4_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
258 SPC5_ME_PCTL_LP(0))
259
260#define SPC5_CAN_USE_FLEXCAN5 FALSE
261#define SPC5_CAN_FLEXCAN5_USE_EXT_CLK FALSE
262#define SPC5_CAN_FLEXCAN5_PRIORITY 11
263#define SPC5_CAN_FLEXCAN5_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
264 SPC5_ME_PCTL_LP(2))
265#define SPC5_CAN_FLEXCAN5_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
266 SPC5_ME_PCTL_LP(0))
267
268/*
269* ADC driver system settings.
270*/
271#define SPC5_ADC_USE_ADC0 FALSE
272#define SPC5_ADC_ADC0_CLK_FREQUENCY HALF_PERIPHERAL_SET_CLOCK_FREQUENCY
273#define SPC5_ADC_ADC0_AUTO_CLOCK_OFF FALSE
274#define SPC5_ADC_ADC0_WD_PRIORITY 12
275#define SPC5_ADC_ADC0_DMA_CH_ID 1
276#define SPC5_ADC_ADC0_DMA_IRQ_PRIO 12
277#define SPC5_ADC_ADC0_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
278 SPC5_ME_PCTL_LP(2))
279#define SPC5_ADC_ADC0_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
280 SPC5_ME_PCTL_LP(0))
281
282#define SPC5_ADC_USE_ADC1 FALSE
283#define SPC5_ADC_ADC1_CLK_FREQUENCY HALF_PERIPHERAL_SET_CLOCK_FREQUENCY
284#define SPC5_ADC_ADC1_AUTO_CLOCK_OFF FALSE
285#define SPC5_ADC_ADC1_WD_PRIORITY 12
286#define SPC5_ADC_ADC1_DMA_CH_ID 2
287#define SPC5_ADC_ADC1_DMA_IRQ_PRIO 12
288#define SPC5_ADC_ADC1_START_PCTL (SPC5_ME_PCTL_RUN(1) | \
289 SPC5_ME_PCTL_LP(2))
290#define SPC5_ADC_ADC1_STOP_PCTL (SPC5_ME_PCTL_RUN(0) | \
291 SPC5_ME_PCTL_LP(0))
292
293#endif /* MCUCONF_H */