XK-1A Development Board Tutorial
</ Package >
</ P a c k a g e s >
< Links >
< L i n k E n c o d i n g = " 2 w i r e " D e l a y s = " 4 ,4 " >
< L i n k E n d p o i n t N o d e I d = " M a s t e r " L i n k = " X 0 L D " / >
< L i n k E n d p o i n t N o d e I d = " S l a v e " L i n k = " X 0 L C " / >
</ Link >
</ Links >
< E x t e r n a l D e v i c e s >
< D e v i c e N o d e I d = " M a s t e r " C o r e = " 0 " N a m e = " b o o t F l a s h "
C l a s s = " S P I F l a s h " T y p e = " A T 2 5 F S 0 1 0 " >
< A t t r i b u t e N a m e = " P O R T _ S P I _ M I S O " V a l u e = " P O R T _ S P I _ M I S O " / >
< A t t r i b u t e N a m e = " P O R T _ S P I _ S S "
V a l u e = " P O R T _ S P I _ S S " / >
< A t t r i b u t e N a m e = " P O R T _ S P I _ C L K "
V a l u e = " P O R T _ S P I _ C L K " / >
< A t t r i b u t e N a m e = " P O R T _ S P I _ M O S I " V a l u e = " P O R T _ S P I _ M O S I " / >
</ Device >
</ E x t e r n a l D e v i c e s >
< J T A G C h a i n >
< J T A G D e v i c e N o d e I d = " M a s t e r " P o s i t i o n = " 0 " / >
< J T A G D e v i c e N o d e I d = " S l a v e " P o s i t i o n = " 1 " / >
</ J T A G C h a i n >
</ Network >
7. Make it default target
8. In the
Project Explorer
, expand your new file to reveal the header file
platform.h
, and expand this header to reveal the symbols
stdcore[0]
and
stdcore[1]
.
These symbols name the two processor cores for your new target, which can be
referred to in your XC application.
9. In your XC source file, change the header include file
<xs1.h>
to
<platform.h>
.
10. Modify the declaration of the port
led
to place it on the first core, as shown
below:
on stdcore [0]: out port led = XS1_PORT_4F;
11. Modify the declaration of the port
but1
to place it on the second core.
12. Modify the call to the function
flashLED
to place it on the first core, as shown
below:
on stdcore [0]:
flashLED(
arguments
);
13. Modify the call to the function
respondToButton
to place it on the second core.
14. In the
Project Explorer
, expand your project and application folder, and then
double-click on the file
Makefile
.
X7366A