summaryrefslogtreecommitdiff
path: root/libopie
authormickeyl <mickeyl>2003-05-19 21:22:16 (UTC)
committer mickeyl <mickeyl>2003-05-19 21:22:16 (UTC)
commit71b023064e90282346055f0fea37d9a0d84bfa1b (patch) (unidiff)
treead82d6360ff7ef04aed5309e59e80729fcadd2a7 /libopie
parente1435cdf8522e2a932533390b72f39edfe39a24c (diff)
downloadopie-71b023064e90282346055f0fea37d9a0d84bfa1b.zip
opie-71b023064e90282346055f0fea37d9a0d84bfa1b.tar.gz
opie-71b023064e90282346055f0fea37d9a0d84bfa1b.tar.bz2
SIMpad specific fix
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 921a94e..103104f 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -296,13 +296,13 @@ ODevice *ODevice::inst ( )
296 296
297 if ( !dev ) { 297 if ( !dev ) {
298 if ( QFile::exists ( "/proc/hal/model" )) 298 if ( QFile::exists ( "/proc/hal/model" ))
299 dev = new iPAQ ( ); 299 dev = new iPAQ ( );
300 else if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" )) 300 else if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" ))
301 dev = new Zaurus ( ); 301 dev = new Zaurus ( );
302 else if ( QFile::exists ( "/proc/ucb1x00" ) && QFile::exists ( "/proc/CS3" )) 302 else if ( QFile::exists ( "/proc/ucb1x00" ) && QFile::exists ( "/proc/cs3" ))
303 dev = new SIMpad ( ); 303 dev = new SIMpad ( );
304 else 304 else
305 dev = new ODevice ( ); 305 dev = new ODevice ( );
306 306
307 dev-> init ( ); 307 dev-> init ( );
308 } 308 }
@@ -1572,13 +1572,13 @@ void SIMpad::initButtons ( )
1572 1572
1573 QCopChannel *sysch = new QCopChannel ( "QPE/System", this ); 1573 QCopChannel *sysch = new QCopChannel ( "QPE/System", this );
1574 connect ( sysch, SIGNAL( received( const QCString &, const QByteArray & )), this, SLOT( systemMessage ( const QCString &, const QByteArray & ))); 1574 connect ( sysch, SIGNAL( received( const QCString &, const QByteArray & )), this, SLOT( systemMessage ( const QCString &, const QByteArray & )));
1575} 1575}
1576 1576
1577// SIMpad boardcontrol register CS3 1577// SIMpad boardcontrol register CS3
1578#define SIMPAD_BOARDCONTROL "/proc/CS3" 1578#define SIMPAD_BOARDCONTROL "/proc/cs3"
1579#define SIMPAD_VCC_5V_EN 0x0001 // For 5V PCMCIA 1579#define SIMPAD_VCC_5V_EN 0x0001 // For 5V PCMCIA
1580#define SIMPAD_VCC_3V_EN 0x0002 // FOR 3.3V PCMCIA 1580#define SIMPAD_VCC_3V_EN 0x0002 // FOR 3.3V PCMCIA
1581#define SIMPAD_EN1 0x0004 // This is only for EPROM's 1581#define SIMPAD_EN1 0x0004 // This is only for EPROM's
1582#define SIMPAD_EN0 0x0008 // Both should be enable for 3.3V or 5V 1582#define SIMPAD_EN0 0x0008 // Both should be enable for 3.3V or 5V
1583#define SIMPAD_DISPLAY_ON 0x0010 1583#define SIMPAD_DISPLAY_ON 0x0010
1584#define SIMPAD_PCMCIA_BUFF_DIS 0x0020 1584#define SIMPAD_PCMCIA_BUFF_DIS 0x0020
@@ -1647,15 +1647,15 @@ bool SIMpad::setLedState ( OLed l, OLedState st )
1647 case Led_BlinkSlow: leds. OnTime = 10; leds. OffTime = 10; break; 1647 case Led_BlinkSlow: leds. OnTime = 10; leds. OffTime = 10; break;
1648 case Led_BlinkFast: leds. OnTime = 5; leds. OffTime = 5; break; 1648 case Led_BlinkFast: leds. OnTime = 5; leds. OffTime = 5; break;
1649 } 1649 }
1650 1650
1651 { 1651 {
1652 /*TODO Implement this like that: 1652 /*TODO Implement this like that:
1653 read from CS3 1653 read from cs3
1654 && with SIMPAD_LED2_ON 1654 && with SIMPAD_LED2_ON
1655 write to CS3 */ 1655 write to cs3 */
1656 m_leds [0] = st; 1656 m_leds [0] = st;
1657 return true; 1657 return true;
1658 } 1658 }
1659 } 1659 }
1660 } 1660 }
1661 return false; 1661 return false;