X-Git-Url: http://sigrok.org/gitweb/?p=sigrok-firmware-fx2lafw.git;a=blobdiff_plain;f=fx2lib%2Fexamples%2Freset%2Freset.c;fp=fx2lib%2Fexamples%2Freset%2Freset.c;h=0000000000000000000000000000000000000000;hp=b9ddff9b24de04c1bde1ef8714a1505d4d535f26;hb=94ca1bed405209b1fa36466174449f07b14127ab;hpb=0bac7de529ed84f6b2236e41f435c5a4cd86ff95 diff --git a/fx2lib/examples/reset/reset.c b/fx2lib/examples/reset/reset.c deleted file mode 100644 index b9ddff9b..00000000 --- a/fx2lib/examples/reset/reset.c +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright (C) 2009 Ubixum, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - **/ - -#include - -#include -#include - -#include -#include -#include -#include - -#define LG_PROM 0x51 // large prom ( is 16 bit addr mode) - -#define READ_SIZE 100 - -xdata BYTE buf[READ_SIZE]; - -#define IIC_SIZE 8 -extern xdata BYTE fx2_c0[]; - -/* - Modified eeprom_write that always uses two byte buffer. - So can write to LG_PROM w/ out recompiling lib. - (The library dynamically detects the prom based on the startup state. - On the dev board, you can switch the prom with EEPROM select while - the firmware is running.) -*/ -void eeprom_write_local(BYTE prom_addr, WORD addr, WORD length, BYTE* buf) { - BYTE addr_len=0; - // 1st bytes of buffer are address and next byte is value - BYTE data_buffer[3]; - BYTE cur_byte=0; - - while ( cur_byte