From d042edfc8be35969759814b3762ebbd38b963965 Mon Sep 17 00:00:00 2001 From: borutr Date: Mon, 24 Apr 2006 08:51:57 +0000 Subject: [PATCH] git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4113 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 9 +++++ device/examples/main8051.c | 73 -------------------------------------- src/SDCCalloc.h | 35 ------------------ 3 files changed, 9 insertions(+), 108 deletions(-) delete mode 100644 device/examples/main8051.c delete mode 100644 src/SDCCalloc.h diff --git a/ChangeLog b/ChangeLog index 692ef83a..c06a6dc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-04-24 Borut Razem + + * device/examples/main8051.c: deleted - it was removed from CVS + 24.mar.2000 and after that modified 18.feb.2001, so it reappered + after the transition to Subversion + * src/SDCCalloc.h: deleted - it was removed from CVS + 3.feb.2001 and after that modified 18.feb.2001, so it reappered + after the transition to Subversion + 2006-04-22 Maarten Brock * as/asx8051.dsp: added mcs51/strcmpi.h diff --git a/device/examples/main8051.c b/device/examples/main8051.c deleted file mode 100644 index e9d88424..00000000 --- a/device/examples/main8051.c +++ /dev/null @@ -1,73 +0,0 @@ -/*------------------------------------------------------------------------- - CPU Startup Code - - Written By - Dipl.-Ing. (FH) Michael Schmitt - Bug-Fix Oct 15 1999 - mschmitt@mainz-online.de - michael.schmitt@t-online.de - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - In other words, you are welcome to use, share and improve this program. - You are forbidden to forbid anyone else to use, share and improve - what you give them. Help stamp out software-hoarding! --------------------------------------------------------------------------*/ - -/* here are some definition about the CPU */ -#include -#include -#define CPUCLKHZ 11059200 -//#define CPUCLKHZ 24000000 -#define BAUDRATE 9600 - -// For serial com. we use the internal UART and data exchange is done by interrupt and not via polling -#define SERIAL_VIA_INTERRUPT -#define SERIAL_VIA_INTERRUPT_XBUFLEN 64 -#define SERIAL_VIA_INTERRUPT_RBUFLEN 4 -//#define SERIAL_VIA_POLLING - -// include a 1msec timer -#define USE_SYSTEM_TIMER - -// all 8051-CPU utils can be found here -#include "cpu_tools.h" -#include "cpu_tools.c" - -// that is needed for printf, will be removed after the debug version - -// if the following files are copied to the local folder, enable the next two lines and comment out -// the two lines above -//#include "vprintf.c" -//#include "printf_large.c" - -//#include "harddisk.c" - -void main() -{ - // This has to be done first - init_hardware(); - - - printf( "\n\r<<< RESET >>>\r\n" ); - - printf( "\n\rStartTime : " ); - printf( "%ld \n\r",SystemTicks1msec ); - - while( 1 ) - { - printf( "\r%ld ", SystemTicks1msec); - delayMsec( 999 ); - } -} diff --git a/src/SDCCalloc.h b/src/SDCCalloc.h deleted file mode 100644 index fc7fbb6a..00000000 --- a/src/SDCCalloc.h +++ /dev/null @@ -1,35 +0,0 @@ - -#ifndef _SDCCalloc_H -#define _SDCCalloc_H - -#include "SDCCerr.h" - -#if OPT_DISABLE_GC != 0 - -# include -# define GC_malloc(x) calloc((x), 1) -# define GC_free(x) free(x) -# define GC_realloc realloc -# define GC_malloc_atomic malloc - -#else - -#include "./gc/gc.h" - -#endif - - -#define ALLOC(x,sz) if (!(x = GC_malloc(sz))) \ - { \ - werror(E_OUT_OF_MEM,__FILE__,(long) sz);\ - exit (1); \ - } - -#define ALLOC_ATOMIC(x,sz) if (!((x) = GC_malloc_atomic(sz))) \ - { \ - werror(E_OUT_OF_MEM,__FILE__,(long) sz); \ - exit (1); \ - } - - -#endif -- 2.30.2