Initial check in
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <fx2.h>
|
||||
|
||||
extern bool (*DR_VendorCommand)(void);
|
||||
extern void (*main_hook)(void);
|
||||
|
||||
extern void cf1_conf(void);
|
||||
extern void cf1_main(void);
|
||||
extern bool cf1_command(void);
|
||||
|
||||
void TRI_Boot(void)
|
||||
{
|
||||
cf1_conf();
|
||||
|
||||
main_hook = cf1_main;
|
||||
DR_VendorCommand = cf1_command;
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
#include <fx2.h>
|
||||
#include <fx2_regs.h>
|
||||
|
||||
#include <tri.h>
|
||||
#include <lcd\lcd_44780.h>
|
||||
|
||||
extern bool jtag_command(void);
|
||||
|
||||
// ============================================================================
|
||||
// command
|
||||
// ============================================================================
|
||||
bool cf1_command(void)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
bit dir = (SETUPDAT[0] & 0x80) ? 1 : 0;
|
||||
BYTE cmd = SETUPDAT[1]; // (SETUPDAT[1] & 0x7F);
|
||||
PSUDAV sud = (PSUDAV)SETUPDAT;
|
||||
|
||||
BYTE X = SETUPDAT[2];
|
||||
BYTE Y = SETUPDAT[3];
|
||||
BYTE C = SETUPDAT[3];
|
||||
|
||||
BYTE LED = SETUPDAT[2];
|
||||
BYTE VAL = SETUPDAT[3];
|
||||
|
||||
//#ifdef DEBUG
|
||||
// lcd_gotoxy(0,0);
|
||||
// lcd_putx2(cmd);
|
||||
// lcd_putx2(X);
|
||||
// lcd_putx2(Y);
|
||||
// lcd_putled( 3, 1);
|
||||
//#endif
|
||||
|
||||
// ----------------------------------------------------
|
||||
// IN command device -> host
|
||||
// ----------------------------------------------------
|
||||
if(dir)
|
||||
{
|
||||
switch(sud->Request)
|
||||
{
|
||||
// --------------------------------------------
|
||||
// default
|
||||
// --------------------------------------------
|
||||
default:
|
||||
result = jtag_command();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// OUT command host -> device
|
||||
// ----------------------------------------------------
|
||||
else
|
||||
{
|
||||
switch(sud->Request)
|
||||
{
|
||||
// --------------------------------------------
|
||||
// display commands
|
||||
// --------------------------------------------
|
||||
case CMD_LCD_LED:
|
||||
lcd_putled( LED, VAL);
|
||||
break;
|
||||
|
||||
case CMD_LCD_CLS:
|
||||
lcd_gotoxy(0,0); lcd_puts(" ");
|
||||
lcd_gotoxy(0,1); lcd_puts(" ");
|
||||
break;
|
||||
|
||||
case CMD_LCD_GOTOXY:
|
||||
lcd_gotoxy(X,Y);
|
||||
break;
|
||||
|
||||
case CMD_LCD_PUTC:
|
||||
lcd_putc(C);
|
||||
break;
|
||||
|
||||
case CMD_LCD_PUTS:
|
||||
lcd_putc(EP0BUF[0]);
|
||||
break;
|
||||
|
||||
// --------------------------------------------
|
||||
// default
|
||||
// --------------------------------------------
|
||||
default:
|
||||
result = jtag_command();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
#include <fx2.h>
|
||||
#include <fx2_regs.h>
|
||||
#include <fx2_syncdelay.h>
|
||||
|
||||
#include <rtx51tny.h>
|
||||
#include <tri.h>
|
||||
|
||||
#include <lcd\lcd_44780.h>
|
||||
|
||||
extern xdata BYTE devSerialNumber [];
|
||||
extern xdata BYTE devCapabilities [];
|
||||
extern xdata BYTE devIdentifier [];
|
||||
|
||||
extern void FX2_Delay(WORD);
|
||||
|
||||
// inherited object routines
|
||||
extern void jtag_main(void);
|
||||
extern void jtag_conf(void);
|
||||
|
||||
// ================================================================================================
|
||||
// main
|
||||
//
|
||||
// This routine is the place to start tasks !
|
||||
// ================================================================================================
|
||||
void cf1_main(void)
|
||||
{
|
||||
// -------------------------------------------------------------------
|
||||
// call "inherited" main()
|
||||
// -------------------------------------------------------------------
|
||||
jtag_main();
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
// configure board
|
||||
// ================================================================================================
|
||||
void cf1_conf()
|
||||
{
|
||||
// ------------------------------------------------------------------------
|
||||
// call "inherited" config()
|
||||
// ------------------------------------------------------------------------
|
||||
jtag_conf();
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// set IFCLK to 30 MHz
|
||||
//
|
||||
// with 30 MHz the on-board SDRAM can run on 120 MHz
|
||||
// with 48 MHz the on-board SDRAM can run on 144 or 96 MHz
|
||||
// ------------------------------------------------------------------------
|
||||
IFCONFIG &= ~bm3048MHZ; SYNCDELAY; // 30 MHz
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// add capabilities
|
||||
// ------------------------------------------------------------------------
|
||||
devCapabilities[1] |= bmCap1_LCD;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Board specific initialization
|
||||
//
|
||||
// TRINITY_2:
|
||||
// - 4 layers board
|
||||
// - 128 pin mcu
|
||||
// - 32k SRAM for mcu
|
||||
// - Lattice FPGA
|
||||
// - 32M SDRAM for FPGA
|
||||
// - LCD (44780) & LED port
|
||||
// - 8 bit expansion port
|
||||
//
|
||||
// Not USB powered device. It must monitor USB power for
|
||||
// correct working. Port C bit 5 is the monitoring bit.
|
||||
//
|
||||
// GPIF is not implemented in this firmware. It is just
|
||||
// a suggestion.
|
||||
//
|
||||
// FPGA - programming
|
||||
//
|
||||
// bit dir init function
|
||||
// ------------------------------------------
|
||||
// PC.0 out 0 TCK
|
||||
// PC.1 out 1 TMS
|
||||
// PC.2 out 1 TDI
|
||||
// PC.3 in - TDO
|
||||
// PC.4 out 1 PRGn
|
||||
//
|
||||
// FPGA - GPIF
|
||||
//
|
||||
// bit/pin dir init function
|
||||
// ------------------------------------------
|
||||
// PC.6 out 0 GA[0]
|
||||
// PC.7 out 0 GA[1]
|
||||
//
|
||||
// PB.0 in/out - GP[0]
|
||||
// PB.1 in/out - GP[1]
|
||||
// PB.2 in/out - GP[2]
|
||||
// PB.3 in/out - GP[3]
|
||||
// PB.4 in/out - GP[4]
|
||||
// PB.5 in/out - GP[5]
|
||||
// PB.6 in/out - GP[6]
|
||||
// PB.7 in/out - GP[7]
|
||||
//
|
||||
// CTL0 out 0 CTL0
|
||||
// CTL1 out 0 CTL1
|
||||
// CTL2 out 0 CTL2
|
||||
// CTL3 out 0 CTL3
|
||||
// CTL4 out 0 CTL4
|
||||
// CTL5 out 0 CTL5
|
||||
//
|
||||
// RDY0 in - RDY0
|
||||
// RDY1 in - RDY1
|
||||
// RDY2 in - RDY2
|
||||
// RDY3 in - RDY3
|
||||
//
|
||||
// FPGA - MISC
|
||||
//
|
||||
// bit dir init function
|
||||
// ------------------------------------------
|
||||
// PD.0 out (0) RESET
|
||||
// IFCK out - CLK
|
||||
// INT5 in (1) INT
|
||||
//
|
||||
//
|
||||
// LED and LCD display
|
||||
//
|
||||
// bit dir init function
|
||||
// ------------------------------------------
|
||||
// PD.0 - - (FPGA)
|
||||
//
|
||||
// PD.1 out 0 LCD R/W
|
||||
// PD.2 out 0 LCD R/S
|
||||
// PD.3 out 0 LCD E
|
||||
//
|
||||
// PD.4 out 0 LED 0
|
||||
// PD.5 out 0 LED 1
|
||||
// PD.6 out 0 LED 2
|
||||
// PD.7 out 0 LED 3
|
||||
//
|
||||
// PE.0 out 0 LCD D0
|
||||
// PE.1 out 0 LCD D1
|
||||
// PE.2 out 0 LCD D2
|
||||
// PE.3 out 0 LCD D3
|
||||
// PE.4 out 0 LCD D4
|
||||
// PE.5 out 0 LCD D5
|
||||
// PE.6 out 0 LCD D6
|
||||
// PE.7 out 0 LCD D7
|
||||
// ------------------------------------------
|
||||
//
|
||||
// Expansion Port
|
||||
//
|
||||
// bit dir init function
|
||||
// ------------------------------------------
|
||||
// PA.0 i/o - PA.0
|
||||
// PA.1 out 0 PA.1
|
||||
// PA.2 out 0 PA.2
|
||||
// PA.3 out 0 PA.3
|
||||
// PA.4 out 0 PA.4
|
||||
// PA.5 out 0 PA.5
|
||||
// PA.6 out 0 PA.6
|
||||
// PA.7 out 0 PA.7
|
||||
// ------------------------------------------
|
||||
//
|
||||
// MISC
|
||||
//
|
||||
// bit dir init function
|
||||
// ------------------------------------------
|
||||
// PC.5 in (1) VMON
|
||||
// PA.0 out 0 debug trigger 1
|
||||
//
|
||||
// ------------------------------------------------------------------------
|
||||
PORTCCFG = 0x00; SYNCDELAY; // port C is I/O, not GPIFADDR
|
||||
|
||||
IOC = 0xFE; // set default values
|
||||
OEC = 0x17; // set port directions
|
||||
|
||||
IOA = 0x00; // expansion port
|
||||
OEA = 0x01; //
|
||||
|
||||
devSerialNumber[0] = 'C';
|
||||
devSerialNumber[1] = '5';
|
||||
|
||||
EP0BCL = 0x40; SYNCDELAY;
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
// INITIALIZE LCD
|
||||
// -------------------------------------------------------------------
|
||||
lcd_init();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#include <fx2.h>
|
||||
|
||||
extern bool (*DR_VendorCommand)(void);
|
||||
extern void (*main_hook)(void);
|
||||
|
||||
extern void cnc1_conf(void);
|
||||
extern void cnc1_main(void);
|
||||
extern bool cnc1_command(void);
|
||||
|
||||
void tri_boot(void)
|
||||
{
|
||||
cnc1_conf();
|
||||
|
||||
main_hook = cnc1_main;
|
||||
DR_VendorCommand = cnc1_command;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
#include <fx2.h>
|
||||
#include <fx2_regs.h>
|
||||
|
||||
extern bool cf1_command(void);
|
||||
|
||||
// ================================================================================================
|
||||
// Command
|
||||
// ================================================================================================
|
||||
bool cnc1_command(void)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
bit dir = (SETUPDAT[0] & 0x80) ? 1 : 0;
|
||||
BYTE cmd = SETUPDAT[1];
|
||||
PSUDAV sud = (PSUDAV)SETUPDAT;
|
||||
|
||||
// ----------------------------------------------------
|
||||
// IN command device -> host
|
||||
// ----------------------------------------------------
|
||||
if(dir)
|
||||
{
|
||||
switch(sud->Request)
|
||||
{
|
||||
// --------------------------------------------
|
||||
// default
|
||||
// --------------------------------------------
|
||||
default:
|
||||
result = cf1_command();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// OUT command host -> device
|
||||
// ----------------------------------------------------
|
||||
else
|
||||
{
|
||||
switch(sud->Request)
|
||||
{
|
||||
// --------------------------------------------
|
||||
// default
|
||||
// --------------------------------------------
|
||||
default:
|
||||
result = cf1_command();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
#include <fx2.h>
|
||||
#include <fx2_regs.h>
|
||||
#include <fx2_syncdelay.h>
|
||||
#include <fx2_i2c.h>
|
||||
|
||||
#include <lcd\lcd_44780.h>
|
||||
|
||||
#include <tri.h>
|
||||
|
||||
extern xdata BYTE devSerialNumber [];
|
||||
extern xdata BYTE devCapabilities [];
|
||||
extern xdata BYTE devIdentifier [];
|
||||
|
||||
extern void cf1_main(void);
|
||||
extern void cf1_conf(void);
|
||||
|
||||
extern void cnc1_ep6out(void);
|
||||
|
||||
xdata BYTE buf[30];
|
||||
|
||||
// ================================================================================================
|
||||
// main
|
||||
// ================================================================================================
|
||||
void cnc1_main(void)
|
||||
{
|
||||
// ------------------------------------------------------------------------
|
||||
// call *inherited* main()
|
||||
// ------------------------------------------------------------------------
|
||||
cf1_main();
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// *cf1* specific main()
|
||||
// ------------------------------------------------------------------------
|
||||
lcd_gotoxy(0,0); lcd_puts("X CNC1 X");
|
||||
lcd_gotoxy(0,1); lcd_puts("M M");
|
||||
|
||||
PD7 = 0;
|
||||
PD6 = 1;
|
||||
PD5 = 0;
|
||||
PD4 = 1;
|
||||
|
||||
buf[0] = 0;
|
||||
buf[1] = 0x61;
|
||||
buf[2] = 0x39;
|
||||
|
||||
|
||||
// fx2_i2c_write( 0x10, 4, buf);
|
||||
|
||||
|
||||
|
||||
fx2_i2c_write( 0x10, 1, buf);
|
||||
fx2_i2c_read( 0x10, 4, buf);
|
||||
|
||||
lcd_gotoxy( 2, 1);
|
||||
lcd_putc(buf[0] & 0xDF);
|
||||
lcd_putc(buf[1] & 0xDF);
|
||||
lcd_putc(buf[2] & 0xDF);
|
||||
lcd_putc(buf[3] & 0xDF);
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
// configure
|
||||
// ================================================================================================
|
||||
void cnc1_conf(void)
|
||||
{
|
||||
// ------------------------------------------------------------------------
|
||||
// call *inherited* config()
|
||||
// ------------------------------------------------------------------------
|
||||
cf1_conf();
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// temp serial number
|
||||
// ------------------------------------------------------------------------
|
||||
devSerialNumber[0] = 'N';
|
||||
devSerialNumber[1] = '5';
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Configure EP6/EP8
|
||||
//
|
||||
// Endpoint 6 is the OUT endpoint for FPGA communication.
|
||||
// Endpoint 8 is the IN endpoint for FPGA communication.
|
||||
// ------------------------------------------------------------------------
|
||||
EP6CFG = EP_VALID | EP_OUT | EP_BULK | EP_512 | EP_2x; SYNCDELAY;
|
||||
EP8CFG = EP_VALID | EP_IN | EP_BULK | EP_512 | EP_2x; SYNCDELAY;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Out endpoints do not come up armed.
|
||||
// Since the EP6 is double buffered we must write dummy byte
|
||||
// count twice. Arm EP6 by writing byte count w/skip flag.
|
||||
// ------------------------------------------------------------------------
|
||||
EP6BCL = 0x80; SYNCDELAY;
|
||||
EP6BCL = 0x80; SYNCDELAY;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Enable EP6/EP8 interrupts
|
||||
// ------------------------------------------------------------------------
|
||||
EPIE |= (bmEP6 | bmEP8);
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// usb interrupt handler hooks
|
||||
// ------------------------------------------------------------------------
|
||||
ep6inout = cnc1_ep6out;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#include <fx2.h>
|
||||
#include <fx2_regs.h>
|
||||
|
||||
#include <tri.h>
|
||||
|
||||
// ================================================================================================
|
||||
// EP6OUT
|
||||
//
|
||||
// ================================================================================================
|
||||
void cnc1_ep6out(void)
|
||||
{
|
||||
|
||||
|
||||
// ----------------------------------------------------------
|
||||
// Re-arm output endpoint EP6
|
||||
// ----------------------------------------------------------
|
||||
EP6BCL = 0x80;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#include <fx2.h>
|
||||
|
||||
extern bool (*DR_VendorCommand)(void);
|
||||
extern void (*main_hook)(void);
|
||||
|
||||
extern void mb_conf(void);
|
||||
extern void mb_main(void);
|
||||
extern bool mb_command(void);
|
||||
|
||||
void tri_boot(void)
|
||||
{
|
||||
mb_conf();
|
||||
|
||||
main_hook = mb_main;
|
||||
DR_VendorCommand = mb_command;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#include <fx2.h>
|
||||
#include <fx2_regs.h>
|
||||
|
||||
extern bool cf1_command(void);
|
||||
|
||||
bool mb_command( void)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
bit dir = (SETUPDAT[0] & 0x80) ? 1 : 0;
|
||||
BYTE cmd = SETUPDAT[1];
|
||||
PSUDAV sud = (PSUDAV)SETUPDAT;
|
||||
|
||||
|
||||
// ----------------------------------------------------
|
||||
// IN command device -> host
|
||||
// ----------------------------------------------------
|
||||
if(dir)
|
||||
{
|
||||
switch( sud->Request)
|
||||
{
|
||||
// --------------------------------------------
|
||||
// default
|
||||
// --------------------------------------------
|
||||
default:
|
||||
result = cf1_command();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// OUT command host -> device
|
||||
// ----------------------------------------------------
|
||||
else
|
||||
{
|
||||
switch( sud->Request)
|
||||
{
|
||||
// --------------------------------------------
|
||||
// default
|
||||
// --------------------------------------------
|
||||
default:
|
||||
result = cf1_command();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
#include <fx2.h>
|
||||
#include <fx2_regs.h>
|
||||
#include <fx2_i2c.h>
|
||||
#include <fx2_usart.h>
|
||||
|
||||
#include <lcd\lcd_44780.h>
|
||||
|
||||
#include <tri.h>
|
||||
#include <modbus.h>
|
||||
|
||||
extern void cf1_main(void);
|
||||
extern void cf1_conf(void);
|
||||
|
||||
|
||||
BYTE xdata buf[10];
|
||||
BYTE xdata dly[10];
|
||||
|
||||
|
||||
// =================================================================================================
|
||||
// configure
|
||||
// =================================================================================================
|
||||
void mb_conf( void)
|
||||
{
|
||||
// ------------------------------------------------------------------------
|
||||
// call *inherited* config()
|
||||
// ------------------------------------------------------------------------
|
||||
cf1_conf();
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// temp serial number
|
||||
// ------------------------------------------------------------------------
|
||||
devSerialNumber[0] = 'M';
|
||||
devSerialNumber[1] = 'B';
|
||||
devSerialNumber[2] = '1';
|
||||
|
||||
|
||||
devCapabilities[0] |= bmCap0_MBRTU;
|
||||
devCapabilities[0] |= bmCap0_MBASC;
|
||||
|
||||
// TEST only !!!
|
||||
// ------------------------------------------------------------------------
|
||||
// initialize serial port
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
//fx2_usart_init( 9600, uc8e1);
|
||||
lcd_putled(3,1);
|
||||
|
||||
mb_init( mbChannel1, mbRTU, 10, 9600, mbParityEven);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void FX2_Delay( WORD ms);
|
||||
|
||||
|
||||
|
||||
// =================================================================================================
|
||||
// main
|
||||
// =================================================================================================
|
||||
void mb_main( void)
|
||||
{
|
||||
int i;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// call *inherited* main()
|
||||
// ------------------------------------------------------------------------
|
||||
cf1_main();
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// TEST only !!!
|
||||
// ------------------------------------------------------------------------
|
||||
// ------------------------------------------------------------------------
|
||||
// *modbus* specific main()
|
||||
// ------------------------------------------------------------------------
|
||||
lcd_gotoxy(0,0); lcd_puts(" MODBUS ");
|
||||
lcd_gotoxy(0,1); lcd_puts("> -- <");
|
||||
|
||||
|
||||
buf[0] = 0x10;
|
||||
buf[0] = 0x3;
|
||||
buf[1] = 40001 >> 8;
|
||||
buf[2] = 40001 & 0xFF;
|
||||
buf[3] = 0x00;
|
||||
buf[4] = 0x01;
|
||||
|
||||
buf[5] = 0x11;
|
||||
buf[6] = 0x22;
|
||||
buf[7] = 0x33;
|
||||
|
||||
dly[0] = 0;
|
||||
dly[1] = 0;
|
||||
dly[2] = 0;
|
||||
dly[3] = 0;
|
||||
dly[4] = 0;
|
||||
dly[5] = 0;
|
||||
dly[6] = 0;
|
||||
dly[7] = 0;
|
||||
|
||||
|
||||
buf[0] = 31001 >> 8;
|
||||
buf[1] = 31001;
|
||||
buf[2] = 0;
|
||||
buf[3] = 1;
|
||||
buf[4] = 5;
|
||||
buf[5] = 5;
|
||||
|
||||
// fx2_i2c_write( 0x55, 6, buf);
|
||||
// fx2_i2c_read( 0x55, 2, buf);
|
||||
|
||||
buf[0] = 4;
|
||||
buf[1] = 31001 >> 8;
|
||||
buf[2] = 31001;
|
||||
buf[3] = 0;
|
||||
buf[4] = 1;
|
||||
|
||||
|
||||
|
||||
// fx2_usart_send( 4, buf, dly);
|
||||
// fx2_usart_send( 4, &buf[4], &dly[4]);
|
||||
|
||||
|
||||
// for( i=0; i<35; i++)
|
||||
// {
|
||||
// lcd_putled(0,1);
|
||||
// mb_send( mbChannel1, 2, 5, buf, 0);
|
||||
// lcd_putled(0,0);
|
||||
//
|
||||
// FX2_Delay(100);
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// set plc portparameters
|
||||
// --------------------------------------------------------------
|
||||
buf[0] = 40006 >> 8; // register address
|
||||
buf[1] = 40006; //
|
||||
|
||||
buf[2] = 0; // number of words
|
||||
buf[3] = 3; // number of words
|
||||
|
||||
buf[4] = 0; // modbus address
|
||||
buf[5] = 1; //
|
||||
|
||||
buf[6] = 0; // speed
|
||||
buf[7] = 48; //
|
||||
|
||||
buf[8] = 0; // config
|
||||
buf[9] = 1;
|
||||
|
||||
fx2_i2c_write( 0x55, 10, buf);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,119 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<ProjectGui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_gui.xsd">
|
||||
|
||||
<SchemaVersion>-6.1</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<PrjGuiSettings>
|
||||
<LastAddFilePath></LastAddFilePath>
|
||||
</PrjGuiSettings>
|
||||
|
||||
<ViewPool/>
|
||||
|
||||
<SECTreeCtrl>
|
||||
<View>
|
||||
<WinId>38003</WinId>
|
||||
<ViewName>Registers</ViewName>
|
||||
<TableColWidths>228 229</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>346</WinId>
|
||||
<ViewName>Code Coverage</ViewName>
|
||||
<TableColWidths>293 160</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>204</WinId>
|
||||
<ViewName>Performance Analyzer</ViewName>
|
||||
<TableColWidths>453</TableColWidths>
|
||||
</View>
|
||||
</SECTreeCtrl>
|
||||
|
||||
<TreeListPane>
|
||||
<View>
|
||||
<WinId>35141</WinId>
|
||||
<ViewName>Event Statistics</ViewName>
|
||||
<UserString></UserString>
|
||||
<TableColWidths>200 50 700</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>1506</WinId>
|
||||
<ViewName>Symbols</ViewName>
|
||||
<UserString></UserString>
|
||||
<TableColWidths>106 106 106</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>1936</WinId>
|
||||
<ViewName>Watch 1</ViewName>
|
||||
<UserString></UserString>
|
||||
<TableColWidths>200 133 133</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>1937</WinId>
|
||||
<ViewName>Watch 2</ViewName>
|
||||
<UserString></UserString>
|
||||
<TableColWidths>200 133 133</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>1935</WinId>
|
||||
<ViewName>Call Stack + Locals</ViewName>
|
||||
<UserString></UserString>
|
||||
<TableColWidths>200 133 133</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>2506</WinId>
|
||||
<ViewName>Trace Data</ViewName>
|
||||
<UserString></UserString>
|
||||
<TableColWidths>75 135 130 95 70 230 200 150</TableColWidths>
|
||||
</View>
|
||||
<View>
|
||||
<WinId>466</WinId>
|
||||
<ViewName>Source Browser</ViewName>
|
||||
<UserString>500</UserString>
|
||||
<TableColWidths>300</TableColWidths>
|
||||
</View>
|
||||
</TreeListPane>
|
||||
|
||||
<CompViewPool/>
|
||||
|
||||
<WindowSettings>
|
||||
<LogicAnalizer>
|
||||
<ShowLACursor>1</ShowLACursor>
|
||||
<ShowSignalInfo>1</ShowSignalInfo>
|
||||
<ShowCycles>0</ShowCycles>
|
||||
<LeftSideBarSize>0</LeftSideBarSize>
|
||||
<TimeBaseIndex>-1</TimeBaseIndex>
|
||||
</LogicAnalizer>
|
||||
</WindowSettings>
|
||||
|
||||
<WinLayoutEx>
|
||||
<sActiveDebugView></sActiveDebugView>
|
||||
<WindowPosition>
|
||||
<length>44</length>
|
||||
<flags>0</flags>
|
||||
<showCmd>1</showCmd>
|
||||
<MinPosition>
|
||||
<xPos>-1</xPos>
|
||||
<yPos>-1</yPos>
|
||||
</MinPosition>
|
||||
<MaxPosition>
|
||||
<xPos>-1</xPos>
|
||||
<yPos>-1</yPos>
|
||||
</MaxPosition>
|
||||
<NormalPosition>
|
||||
<Top>228</Top>
|
||||
<Left>231</Left>
|
||||
<Right>1892</Right>
|
||||
<Bottom>1333</Bottom>
|
||||
</NormalPosition>
|
||||
</WindowPosition>
|
||||
<MDIClientArea>
|
||||
<RegID>0</RegID>
|
||||
<MDITabState>
|
||||
<Len>366</Len>
|
||||
<Data>01000000040000000100000001000000010000000100000000000000020000000000000001000000010000000000000028000000280000000100000002000000010000000100000043433A5C576F726B5C6D722E73775C73772E6D63755C6D63752E6678325C6678322E7472695C70726A5C7472692E70726F746F5C7372635C70726F746F5F626F6F742E63000000000C70726F746F5F626F6F742E6300000000C5D4F200FFFFFFFF43433A5C576F726B5C6D722E73775C73772E6D63755C6D63752E6678325C6678322E7472695C70726A5C7472692E70726F746F5C7372635C70726F746F5F636F6E662E63000000000C70726F746F5F636F6E662E6300000000FFDC7800FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD500010000000000000002000000C6020000520100005C0700009A030000</Data>
|
||||
</MDITabState>
|
||||
</MDIClientArea>
|
||||
</WinLayoutEx>
|
||||
|
||||
</ProjectGui>
|
||||
@@ -0,0 +1,834 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_opt.xsd">
|
||||
|
||||
<SchemaVersion>1.0</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Extensions>
|
||||
<cExt>*.c</cExt>
|
||||
<aExt>*.s*; *.src; *.a*</aExt>
|
||||
<oExt>*.obj</oExt>
|
||||
<lExt>*.lib</lExt>
|
||||
<tExt>*.txt; *.h; *.inc</tExt>
|
||||
<pExt>*.plm</pExt>
|
||||
<CppX>*.cpp</CppX>
|
||||
<nMigrate>0</nMigrate>
|
||||
</Extensions>
|
||||
|
||||
<DaveTm>
|
||||
<dwLowDateTime>0</dwLowDateTime>
|
||||
<dwHighDateTime>0</dwHighDateTime>
|
||||
</DaveTm>
|
||||
|
||||
<Target>
|
||||
<TargetName>release</TargetName>
|
||||
<ToolsetNumber>0x0</ToolsetNumber>
|
||||
<ToolsetName>MCS-51</ToolsetName>
|
||||
<TargetOption>
|
||||
<CLK51>48000000</CLK51>
|
||||
<OPTTT>
|
||||
<gFlags>1</gFlags>
|
||||
<BeepAtEnd>1</BeepAtEnd>
|
||||
<RunSim>1</RunSim>
|
||||
<RunTarget>0</RunTarget>
|
||||
<RunAbUc>0</RunAbUc>
|
||||
</OPTTT>
|
||||
<OPTHX>
|
||||
<HexSelection>0</HexSelection>
|
||||
<FlashByte>65535</FlashByte>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
</OPTHX>
|
||||
<OPTLEX>
|
||||
<PageWidth>120</PageWidth>
|
||||
<PageLength>65</PageLength>
|
||||
<TabStop>8</TabStop>
|
||||
<ListingPath>.\lst\release\</ListingPath>
|
||||
</OPTLEX>
|
||||
<ListingPage>
|
||||
<CreateCListing>1</CreateCListing>
|
||||
<CreateAListing>1</CreateAListing>
|
||||
<CreateLListing>1</CreateLListing>
|
||||
<CreateIListing>0</CreateIListing>
|
||||
<AsmCond>1</AsmCond>
|
||||
<AsmSymb>1</AsmSymb>
|
||||
<AsmXref>0</AsmXref>
|
||||
<CCond>1</CCond>
|
||||
<CCode>0</CCode>
|
||||
<CListInc>0</CListInc>
|
||||
<CSymb>0</CSymb>
|
||||
<LinkerCodeListing>0</LinkerCodeListing>
|
||||
</ListingPage>
|
||||
<OPTXL>
|
||||
<LMap>1</LMap>
|
||||
<LComments>1</LComments>
|
||||
<LGenerateSymbols>1</LGenerateSymbols>
|
||||
<LLibSym>1</LLibSym>
|
||||
<LLines>1</LLines>
|
||||
<LLocSym>1</LLocSym>
|
||||
<LPubSym>1</LPubSym>
|
||||
<LXref>0</LXref>
|
||||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>255</CpuCode>
|
||||
<Books>
|
||||
<Book>
|
||||
<Number>0</Number>
|
||||
<Title>Data Sheet</Title>
|
||||
<Path>DATASHTS\CYPRESS\CY7C68XXX_DS.PDF</Path>
|
||||
</Book>
|
||||
<Book>
|
||||
<Number>1</Number>
|
||||
<Title>Technical Reference Manual</Title>
|
||||
<Path>DATASHTS\CYPRESS\FX2_TRM.PDF</Path>
|
||||
</Book>
|
||||
</Books>
|
||||
<DebugOpt>
|
||||
<uSim>1</uSim>
|
||||
<uTrg>0</uTrg>
|
||||
<sLdApp>1</sLdApp>
|
||||
<sGomain>1</sGomain>
|
||||
<sRbreak>1</sRbreak>
|
||||
<sRwatch>1</sRwatch>
|
||||
<sRmem>1</sRmem>
|
||||
<sRfunc>1</sRfunc>
|
||||
<sRbox>1</sRbox>
|
||||
<tLdApp>1</tLdApp>
|
||||
<tGomain>0</tGomain>
|
||||
<tRbreak>1</tRbreak>
|
||||
<tRwatch>1</tRwatch>
|
||||
<tRmem>1</tRmem>
|
||||
<tRfunc>0</tRfunc>
|
||||
<tRbox>1</tRbox>
|
||||
<tRtrace>1</tRtrace>
|
||||
<sRSysVw>1</sRSysVw>
|
||||
<tRSysVw>1</tRSysVw>
|
||||
<sRunDeb>0</sRunDeb>
|
||||
<sLrtime>0</sLrtime>
|
||||
<bEvRecOn>1</bEvRecOn>
|
||||
<bSchkAxf>0</bSchkAxf>
|
||||
<bTchkAxf>0</bTchkAxf>
|
||||
<nTsel>-1</nTsel>
|
||||
<sDll></sDll>
|
||||
<sDllPa></sDllPa>
|
||||
<sDlgDll></sDlgDll>
|
||||
<sDlgPa></sDlgPa>
|
||||
<sIfile></sIfile>
|
||||
<tDll></tDll>
|
||||
<tDllPa></tDllPa>
|
||||
<tDlgDll></tDlgDll>
|
||||
<tDlgPa></tDlgPa>
|
||||
<tIfile></tIfile>
|
||||
<pMon></pMon>
|
||||
</DebugOpt>
|
||||
<Breakpoint/>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
<DebugFlag>
|
||||
<trace>0</trace>
|
||||
<periodic>1</periodic>
|
||||
<aLwin>0</aLwin>
|
||||
<aCover>0</aCover>
|
||||
<aSer1>0</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>0</viewmode>
|
||||
<vrSel>0</vrSel>
|
||||
<aSym>0</aSym>
|
||||
<aTbox>0</aTbox>
|
||||
<AscS1>0</AscS1>
|
||||
<AscS2>0</AscS2>
|
||||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
<StkLoc>0</StkLoc>
|
||||
<TrcWin>0</TrcWin>
|
||||
<newCpu>0</newCpu>
|
||||
<uProt>0</uProt>
|
||||
</DebugFlag>
|
||||
<LintExecutable></LintExecutable>
|
||||
<LintConfigFile></LintConfigFile>
|
||||
<bLintAuto>0</bLintAuto>
|
||||
<bAutoGenD>0</bAutoGenD>
|
||||
<LntExFlags>0</LntExFlags>
|
||||
<pMisraName></pMisraName>
|
||||
<pszMrule></pszMrule>
|
||||
<pSingCmds></pSingCmds>
|
||||
<pMultCmds></pMultCmds>
|
||||
<pMisraNamep></pMisraNamep>
|
||||
<pszMrulep></pszMrulep>
|
||||
<pSingCmdsp></pSingCmdsp>
|
||||
<pMultCmdsp></pMultCmdsp>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
|
||||
<Target>
|
||||
<TargetName>cnc1</TargetName>
|
||||
<ToolsetNumber>0x0</ToolsetNumber>
|
||||
<ToolsetName>MCS-51</ToolsetName>
|
||||
<TargetOption>
|
||||
<CLK51>48000000</CLK51>
|
||||
<OPTTT>
|
||||
<gFlags>1</gFlags>
|
||||
<BeepAtEnd>1</BeepAtEnd>
|
||||
<RunSim>1</RunSim>
|
||||
<RunTarget>0</RunTarget>
|
||||
<RunAbUc>0</RunAbUc>
|
||||
</OPTTT>
|
||||
<OPTHX>
|
||||
<HexSelection>0</HexSelection>
|
||||
<FlashByte>65535</FlashByte>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
</OPTHX>
|
||||
<OPTLEX>
|
||||
<PageWidth>120</PageWidth>
|
||||
<PageLength>65</PageLength>
|
||||
<TabStop>8</TabStop>
|
||||
<ListingPath>.\lst\cnc1\</ListingPath>
|
||||
</OPTLEX>
|
||||
<ListingPage>
|
||||
<CreateCListing>1</CreateCListing>
|
||||
<CreateAListing>1</CreateAListing>
|
||||
<CreateLListing>1</CreateLListing>
|
||||
<CreateIListing>0</CreateIListing>
|
||||
<AsmCond>1</AsmCond>
|
||||
<AsmSymb>1</AsmSymb>
|
||||
<AsmXref>0</AsmXref>
|
||||
<CCond>1</CCond>
|
||||
<CCode>0</CCode>
|
||||
<CListInc>0</CListInc>
|
||||
<CSymb>0</CSymb>
|
||||
<LinkerCodeListing>0</LinkerCodeListing>
|
||||
</ListingPage>
|
||||
<OPTXL>
|
||||
<LMap>1</LMap>
|
||||
<LComments>1</LComments>
|
||||
<LGenerateSymbols>1</LGenerateSymbols>
|
||||
<LLibSym>1</LLibSym>
|
||||
<LLines>1</LLines>
|
||||
<LLocSym>1</LLocSym>
|
||||
<LPubSym>1</LPubSym>
|
||||
<LXref>0</LXref>
|
||||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>0</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>255</CpuCode>
|
||||
<Books>
|
||||
<Book>
|
||||
<Number>0</Number>
|
||||
<Title>Data Sheet</Title>
|
||||
<Path>DATASHTS\CYPRESS\CY7C68XXX_DS.PDF</Path>
|
||||
</Book>
|
||||
<Book>
|
||||
<Number>1</Number>
|
||||
<Title>Technical Reference Manual</Title>
|
||||
<Path>DATASHTS\CYPRESS\FX2_TRM.PDF</Path>
|
||||
</Book>
|
||||
</Books>
|
||||
<DebugOpt>
|
||||
<uSim>1</uSim>
|
||||
<uTrg>0</uTrg>
|
||||
<sLdApp>1</sLdApp>
|
||||
<sGomain>1</sGomain>
|
||||
<sRbreak>1</sRbreak>
|
||||
<sRwatch>1</sRwatch>
|
||||
<sRmem>1</sRmem>
|
||||
<sRfunc>1</sRfunc>
|
||||
<sRbox>1</sRbox>
|
||||
<tLdApp>1</tLdApp>
|
||||
<tGomain>0</tGomain>
|
||||
<tRbreak>1</tRbreak>
|
||||
<tRwatch>1</tRwatch>
|
||||
<tRmem>1</tRmem>
|
||||
<tRfunc>0</tRfunc>
|
||||
<tRbox>1</tRbox>
|
||||
<tRtrace>1</tRtrace>
|
||||
<sRSysVw>1</sRSysVw>
|
||||
<tRSysVw>1</tRSysVw>
|
||||
<sRunDeb>0</sRunDeb>
|
||||
<sLrtime>0</sLrtime>
|
||||
<bEvRecOn>1</bEvRecOn>
|
||||
<bSchkAxf>0</bSchkAxf>
|
||||
<bTchkAxf>0</bTchkAxf>
|
||||
<nTsel>-1</nTsel>
|
||||
<sDll></sDll>
|
||||
<sDllPa></sDllPa>
|
||||
<sDlgDll></sDlgDll>
|
||||
<sDlgPa></sDlgPa>
|
||||
<sIfile></sIfile>
|
||||
<tDll></tDll>
|
||||
<tDllPa></tDllPa>
|
||||
<tDlgDll></tDlgDll>
|
||||
<tDlgPa></tDlgPa>
|
||||
<tIfile></tIfile>
|
||||
<pMon></pMon>
|
||||
</DebugOpt>
|
||||
<Breakpoint/>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
<DebugFlag>
|
||||
<trace>0</trace>
|
||||
<periodic>1</periodic>
|
||||
<aLwin>0</aLwin>
|
||||
<aCover>0</aCover>
|
||||
<aSer1>0</aSer1>
|
||||
<aSer2>0</aSer2>
|
||||
<aPa>0</aPa>
|
||||
<viewmode>0</viewmode>
|
||||
<vrSel>0</vrSel>
|
||||
<aSym>0</aSym>
|
||||
<aTbox>0</aTbox>
|
||||
<AscS1>0</AscS1>
|
||||
<AscS2>0</AscS2>
|
||||
<AscS3>0</AscS3>
|
||||
<aSer3>0</aSer3>
|
||||
<eProf>0</eProf>
|
||||
<aLa>0</aLa>
|
||||
<aPa1>0</aPa1>
|
||||
<AscS4>0</AscS4>
|
||||
<aSer4>0</aSer4>
|
||||
<StkLoc>0</StkLoc>
|
||||
<TrcWin>0</TrcWin>
|
||||
<newCpu>0</newCpu>
|
||||
<uProt>0</uProt>
|
||||
</DebugFlag>
|
||||
<LintExecutable></LintExecutable>
|
||||
<LintConfigFile></LintConfigFile>
|
||||
<bLintAuto>0</bLintAuto>
|
||||
<bAutoGenD>0</bAutoGenD>
|
||||
<LntExFlags>0</LntExFlags>
|
||||
<pMisraName></pMisraName>
|
||||
<pszMrule></pszMrule>
|
||||
<pSingCmds></pSingCmds>
|
||||
<pMultCmds></pMultCmds>
|
||||
<pMisraNamep></pMisraNamep>
|
||||
<pszMrulep></pszMrulep>
|
||||
<pSingCmdsp></pSingCmdsp>
|
||||
<pMultCmdsp></pMultCmdsp>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2lp - startup</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>1</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_startup.s51</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_startup.s51</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>2</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_conf.s51</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_conf.s51</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2lp - init</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>3</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_delay1ms.s51</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_delay1ms.s51</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>4</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_delay.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_delay.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>5</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_globals.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_globals.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>6</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_init.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_init.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2lp - iic</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>7</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_i2c.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_i2c.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_eeprom.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_eeprom.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2lp - serial</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>4</GroupNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_usart.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_usart.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2lp - usb</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_jmptbl.s51</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_jmptbl.s51</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_disconnect.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_disconnect.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_usb_isr.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_usb_isr.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_usb_sleep.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_usb_sleep.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2lp\src\fx2_usb_sudav.c</PathWithFileName>
|
||||
<FilenameWithoutPath>fx2_usb_sudav.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2mr - jtag</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2mr\src\jtag\jtag.s51</PathWithFileName>
|
||||
<FilenameWithoutPath>jtag.s51</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2mr - lcd</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2mr\src\lcd\44780\lcd_44780.c</PathWithFileName>
|
||||
<FilenameWithoutPath>lcd_44780.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>fx2mr - modbus</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2mr\src\modbus\mb_crc.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mb_crc.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\..\lib\fx2mr\src\modbus\mb.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mb.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>tri - base</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.base\src\tri_dscr.s51</PathWithFileName>
|
||||
<FilenameWithoutPath>tri_dscr.s51</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.base\src\tri_main.c</PathWithFileName>
|
||||
<FilenameWithoutPath>tri_main.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.base\src\tri_conf.c</PathWithFileName>
|
||||
<FilenameWithoutPath>tri_conf.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.base\src\tri_glb.c</PathWithFileName>
|
||||
<FilenameWithoutPath>tri_glb.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>23</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.base\src\tri_cmd.c</PathWithFileName>
|
||||
<FilenameWithoutPath>tri_cmd.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>24</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.base\src\tri_usb_ep1.c</PathWithFileName>
|
||||
<FilenameWithoutPath>tri_usb_ep1.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>tri - jtag</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>25</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.jtag\src\jtag_conf.c</PathWithFileName>
|
||||
<FilenameWithoutPath>jtag_conf.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>26</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.jtag\src\jtag_cmd.c</PathWithFileName>
|
||||
<FilenameWithoutPath>jtag_cmd.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>27</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\tri.jtag\src\jtag_ep2.c</PathWithFileName>
|
||||
<FilenameWithoutPath>jtag_ep2.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>tri - cf1</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>11</GroupNumber>
|
||||
<FileNumber>28</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\src\cf1_boot.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cf1_boot.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>11</GroupNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\src\cf1_conf.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cf1_conf.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>11</GroupNumber>
|
||||
<FileNumber>30</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\src\cf1_cmd.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cf1_cmd.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>tri - cf1 - cnc1</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>31</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\src\cnc1\cnc1_boot.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cnc1_boot.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>32</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\src\cnc1\cnc1_conf.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cnc1_conf.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>33</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\src\cnc1\cnc1_cmd.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cnc1_cmd.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>34</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\src\cnc1\cnc1_ep6.c</PathWithFileName>
|
||||
<FilenameWithoutPath>cnc1_ep6.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
</ProjectOpt>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user