* device/include/asm/ds390/features.h,
* device/include/mcs51/at89s53.h,
* device/include/ser.h,
* device/include/ser_ir.h,
* device/include/serial.h: changed keywords to double underscore variants,
fixes bug
1590261 some more, thanks Steven Borley
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4498
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
+
+ * device/include/asm/default/features.h,
+ * device/include/asm/ds390/features.h,
+ * device/include/mcs51/at89s53.h,
+ * device/include/ser.h,
+ * device/include/ser_ir.h,
+ * device/include/serial.h: changed keywords to double underscore variants,
+ fixes bug 1590261 some more, thanks Steven Borley
+
2006-12-01 Raphael Neider <rneider AT web.de>
* src/pic/pcode.c (register_reassign): do not crash on recursive code
#ifndef __SDC51_ASM_FEATURES_H
#define __SDC51_ASM_FEATURES_H 1
-#define _REENTRANT reentrant
-#define _CODE code
+#define _REENTRANT __reentrant
+#define _CODE __code
#define _AUTOMEM
#define _STATMEM
#ifndef __SDC51_ASM_DS390_FEATURES_H
#define __SDC51_ASM_DS390_FEATURES_H 1
-#define _REENTRANT reentrant
-#define _CODE code
+#define _REENTRANT __reentrant
+#define _CODE __code
/* define _AUTOMEM to indicate the default storage class for
automatic variables. To be used with pointers to automatic variables.
*/
#if defined(SDCC_STACK_AUTO)
#if defined(SDCC_USE_XSTACK)
- #define _AUTOMEM pdata
+ #define _AUTOMEM __pdata
#else
- #define _AUTOMEM idata
+ #define _AUTOMEM __idata
#endif
#elif defined(SDCC_MODEL_SMALL)
- #define _AUTOMEM data
+ #define _AUTOMEM __data
#else
- #define _AUTOMEM xdata
+ #define _AUTOMEM __xdata
#endif
/* define _STATMEM to indicate the default storage class for
}
*/
#if defined(SDCC_MODEL_SMALL)
- #define _STATMEM data
+ #define _STATMEM __data
#else
- #define _STATMEM xdata
+ #define _STATMEM __xdata
#endif
#endif
#endif
/* define AT89S53 specific registers only */
-sfr at 0x84 DP1L; /* Data Pointer 1 Low Byte */
-sfr at 0x85 DP1H ; /* Data Pointer 1 High Byte */
-sfr at 0x86 SPDR; /* SPI Data Register */
-sfr at 0xAA SPSR; /* SPI Status Register */
-sfr at 0x96 WMCON; /* Watchdog and Memory Control Register */
-sfr at 0xD5 SPCR; /* SPI Control Register */
+__sfr __at (0x84) DP1L; /* Data Pointer 1 Low Byte */
+__sfr __at (0x85) DP1H; /* Data Pointer 1 High Byte */
+__sfr __at (0x86) SPDR; /* SPI Data Register */
+__sfr __at (0xAA) SPSR; /* SPI Status Register */
+__sfr __at (0x96) WMCON; /* Watchdog and Memory Control Register */
+__sfr __at (0xD5) SPCR; /* SPI Control Register */
/*------------------------------------------------
SPSR (0xAA) Bit Values - Reset Value = 0000.0000
#define _SER_H_
void ser_init(void);
-void ser_interrupt_handler(void) interrupt 4 using 1;
+void ser_interrupt_handler(void) __interrupt 4 __using 1;
void ser_putc(unsigned char);
unsigned char ser_getc(void);
void ser_printString(char *String);
/*-------------------------------------------------------------------------
- ser_ir.h - header file for serial routines
-
+ ser_ir.h - header file for serial routines
+
Written By - Josef Wolf <jw@raven.inka.de> (1999)
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!
unsigned char ser_can_xmt (void);
/* needs to be defined somewhere :-() */
-void ser_handler (void) interrupt 4;
+void ser_handler (void) __interrupt 4;
//----------------------------------------------------------------------------
//Written by Dmitry S. Obukhov, 1996
-// dso@usa.net
+// dso@usa.net
//----------------------------------------------------------------------------
//This module implements serial interrupt handler and IO routinwes using
-//two 256 byte cyclic buffers. Bit variables can be used as flags for
+//two 256 byte cyclic buffers. Bit variables can be used as flags for
//real-time kernel tasks
//Last modified 6 Apr 97
//----------------------------------------------------------------------------
void serial_init(void);
-void serial_interrupt_handler(void) interrupt 4 using 1;
+void serial_interrupt_handler(void) __interrupt 4 __using 1;
void serial_putc(unsigned char);
unsigned char serial_getc(void);
void autobaud();