/* * Lib(X)SVF - A library for implementing SVF and XSVF JTAG players * * Copyright (C) 2009 RIEGL Research ForschungsGmbH * Copyright (C) 2009 Clifford Wolf * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ #include "propeller2.h" #include "stdio.h" //#include "Platform.h" //#include "libxsvf.h" // //#include "svf.c" //#include "xsvf.c" //#include "memname.c" // //#include "scan.c" //#include "statename.c" //#include "tap.c" //#include "play.c" //#include //#include //#include //#include //#include //#include int main()//RJA { int cf = _clockfreq(); printf("clock freq= %d\n", cf); mount("/sd", _vfs_open_sdcard()); FILE* f; f = fopen("/sd/test.dat", "w"); for (;;) { _pinnot(57); _waitms(100); } fclose(f); //Note: Clock frequency set with enum in Platform.h //check clock freq int cf = _clockfreq(); printf("clock freq= %d\n", cf); mount("/sd", _vfs_open_sdcard()); //FILE* f; //f= fopen("/sd/test.dat", "w"); //printf("File open\n"); //for (;;) //{ // _pinnot(57); // //_waitx(cf / 10); // _waitms(100); //} for (;;) { char c = getchar(); _pinnot(56); fputc(c, f); } }