* device/include/mcs51/p89c66x.h: fixed some defines
* device/include/mcs51/p89v66x.h: fixed some sbit addresses
* doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate svn keywords
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5380
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2008-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
+
+ * device/include/mcs51/p89v66x.h: added ENBOOT thanks
+ Gudjon Gudjonsson <gudjon AT gudjon.org>
+ * device/include/mcs51/p89c66x.h: fixed some defines
+ * device/include/mcs51/p89v66x.h: fixed some sbit addresses
+ * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
+ svn keywords
+
2008-02-14 Borut Razem <borut.razem AT siol.net>
* doc/sdccman.lyx: corrected cpp info
#define PPCH 0x40
#define PS1H 0x20
#define PS0H 0x10
- #define PT1H 0x80
- #define PX1H 0x40
- #define PT0H 0x20
- #define PX0H 0x10
+ #define PT1H 0x08
+ #define PX1H 0x04
+ #define PT0H 0x02
+ #define PX0H 0x01
SFR(P0, 0x80); // Port 0
SBIT(AD7, 0x80, 7);
SBIT(P0_7, 0x80, 7);
SFR(RCAP2H, 0xCB); // Timer 2 Capture High
SFR(RCAP2L, 0xCA); // Timer 2 Capture Low
SFR(SADDR, 0xA9); // I2C Slave Address
-SFR(SADEN, 0xB9); // I2C Slave Address Mask
+SFR(SADEN, 0xB9); // I2C Slave Address Mask
SFR(S0BUF, 0x99); // Serial Data Buffer
-SFR(S0CON, 0x98); // Serial Control
+SFR(S0CON, 0x98); // Serial Control
SBIT(SM0_FE, 0x98, 7);
SBIT(SM1, 0x98, 6);
SBIT(SM2, 0x98, 5);
SFR(TL0, 0x8A); // Timer Low 0
SFR(TL1, 0x8B); // Timer Low 1
SFR(TL2, 0xCC); // Timer Low 2
-SFR(TMOD , 0x89); // Timer Mode
+SFR(TMOD, 0x89); // Timer Mode
#define GATE_1 0x80
#define C_T_1 0x40
#define M1_1 0x20
#define EXTRAM 0x02
#define AO 0x01
SFR(AUXR1, 0xA2); // Auxiliary 1
+ #define ENBOOT 0x20
#define GF2 0x08
// Bit 2 must be zero
#define DPS 0x01
#define PWM 0x02
#define ECCF 0x01
SFR(CCON, 0xC0); // PCA Counter Control
- SBIT(CF, 0xD8, 7);
- SBIT(CR, 0xD8, 6);
- SBIT(CCF4, 0xD8, 4);
- SBIT(CCF3, 0xD8, 3);
- SBIT(CCF2, 0xD8, 2);
- SBIT(CCF1, 0xD8, 1);
- SBIT(CCF0, 0xD8, 0);
+ SBIT(CF, 0xC0, 7);
+ SBIT(CR, 0xC0, 6);
+ SBIT(CCF4, 0xC0, 4);
+ SBIT(CCF3, 0xC0, 3);
+ SBIT(CCF2, 0xC0, 2);
+ SBIT(CCF1, 0xC0, 1);
+ SBIT(CCF0, 0xC0, 0);
SFR(CH, 0xF9); // PCA Counter High
SFR(CL, 0xE9); // PCA Counter Low
SFR(CMOD, 0xC1); // PCA Counter Mode
\newline
$Date:: $
\newline
-$Revision: 5272$
+$Revision$
\end_layout
\begin_layout Standard
\family typewriter
printf_large.c
\family default
- does not support float (except on ds390).
- To enable this, recompile it with the option
+ does not support float
+\begin_inset LatexCommand index
+name "Floating point support"
+
+\end_inset
+
+ (except on ds390), only <NO FLOAT>
+\begin_inset LatexCommand index
+name "<NO FLOAT>"
+
+\end_inset
+
+
+\begin_inset LatexCommand index
+name "printf floating point support"
+
+\end_inset
+
+ will be printed instead of the value.
+ To enable floating point output, recompile it with the option
\emph on
-
\begin_inset ERT
\emph on
-
\begin_inset ERT
-status collapsed
+status open
\begin_layout Standard
\begin_layout Standard
printf
\begin_inset LatexCommand index
-name "printf"
+name "printf()"
\end_inset
\begin_layout Standard
The library is normally built without support for displaying float values,
- only <NO FLOAT> will appear instead of the value.
+ only <NO FLOAT>
+\begin_inset LatexCommand index
+name "<NO FLOAT>"
+
+\end_inset
+
+
+\begin_inset LatexCommand index
+name "printf floating point support"
+
+\end_inset
+
+ will appear instead of the value.
To change this, rebuild the library as stated above, but call
\family typewriter
./configure.gnu --enable-floats