From e128998032f5bdabea53bfd5b82bb7ed9c382686 Mon Sep 17 00:00:00 2001 From: frief Date: Sun, 15 Feb 2009 22:26:36 +0000 Subject: [PATCH] * device/include/mcs51/p89v66x.h: added ENBOOT thanks Gudjon Gudjonsson * device/include/mcs51/p89c66x.h: fixed some defines * device/include/mcs51/p89v66x.h: fixed some sbit addresses * doc/sdccman.lyx: added 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 --- ChangeLog | 9 ++++++++ device/include/mcs51/p89c66x.h | 14 ++++++------ device/include/mcs51/p89v66x.h | 15 ++++++------ doc/sdccman.lyx | 42 +++++++++++++++++++++++++++++----- 4 files changed, 60 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b4753c8..08a365a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-02-15 Frieder Ferlemann + + * device/include/mcs51/p89v66x.h: added ENBOOT thanks + Gudjon Gudjonsson + * device/include/mcs51/p89c66x.h: fixed some defines + * device/include/mcs51/p89v66x.h: fixed some sbit addresses + * doc/sdccman.lyx: added to index, try to reanimate + svn keywords + 2008-02-14 Borut Razem * doc/sdccman.lyx: corrected cpp info diff --git a/device/include/mcs51/p89c66x.h b/device/include/mcs51/p89c66x.h index c4fadd7b..bcce93f3 100644 --- a/device/include/mcs51/p89c66x.h +++ b/device/include/mcs51/p89c66x.h @@ -121,10 +121,10 @@ SFR(IPH, 0xB7); // Interrupt Priority High #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); @@ -213,9 +213,9 @@ SFR(PSW, 0xD0); // Program Status Word 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); @@ -271,7 +271,7 @@ SFR(TH2, 0xCD); // Timer High 2 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 diff --git a/device/include/mcs51/p89v66x.h b/device/include/mcs51/p89v66x.h index 93acf952..968cd3a7 100644 --- a/device/include/mcs51/p89v66x.h +++ b/device/include/mcs51/p89v66x.h @@ -42,6 +42,7 @@ SFR(AUXR, 0x8E); // Auxiliary #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 @@ -112,13 +113,13 @@ SFR(CCAPM4, 0xC6); // Module 4 Mode #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 diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index fabc8d8d..82a7bbd6 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -120,7 +120,7 @@ SDCC 2.8.9 \newline $Date:: $ \newline -$Revision: 5272$ +$Revision$ \end_layout \begin_layout Standard @@ -21078,8 +21078,26 @@ name "printf()" \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 +\begin_inset LatexCommand index +name "" + +\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 @@ -21107,7 +21125,7 @@ name "USE\\_FLOATS" \emph on - \begin_inset ERT -status collapsed +status open \begin_layout Standard @@ -21236,7 +21254,7 @@ mcs51 \begin_layout Standard printf \begin_inset LatexCommand index -name "printf" +name "printf()" \end_inset @@ -27396,7 +27414,19 @@ Output of float values via printf() \begin_layout Standard The library is normally built without support for displaying float values, - only will appear instead of the value. + only +\begin_inset LatexCommand index +name "" + +\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 -- 2.30.2