Subject:
|
Re: Expansion Board Files
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Tue, 26 Jan 1999 22:49:30 GMT
|
Original-From:
|
Fred G. Martin <FREDM@MEDIA.MIT.EDUstopspam>
|
Viewed:
|
1246 times
|
| |
 | |
argh!@ my last email (which may arrive before this one) is in reply
to this.
repeating it in the proper context:
yes, there was a linefeed bug in the expsens.c file in hbexplib.zip.
it should be fixed now. please re-download from the expansion board
asoftware page and try again.
let us know if this fixes the problem. thanks a lot.
fred
In your message you said:
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_01BE4944.9C4F5080
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
>
> Fred;
> Here is the copy of expsens,c--------- At the lines in the hb was having
> problems with there was a small square figure at the starting point outside
> the comment*\ and\* for some reason.
>
> Any one else having a problem?????
>
> Thanks Terry
>
>
>
> ----------
> > From: Fred G. Martin <fredm@media.mit.edu>
> > To: Terry P. Gathright <669@worldnet.att.net>
> > Cc: handyboard@media.mit.edu
> > Subject: Re: Expansion Board Files
> > Date: Tuesday, January 26, 1999 6:10 AM
> >
> > terry --
> >
> > please send an attached copy of expsens.c. there's got to be a bogus
> > character in there.
> >
> > did anyone else have problems?
> >
> > fred
> >
> >
> > In your message you said:
> > > Still unable to load the expansion board files.
> > > lib_hb.lis is in the libs.
> > > How do I do ic _config in windows? do I need to?
> > > System will run fine until I try to load the expansion board files.
> > > I downloaded hbexplib.zip,unziped,put all expansion-libs inc:\ic\libs.
> > >
> > > Synchronizing with board
> > > Pcode version 3.10 present on board
> > > Loading C:\IC\libs\lib_hb.lis.
> > > Loading lib_hb.c.
> > > Loading C:\IC\libs\lib_hb.icb.
> > > Loading C:\IC\libs\libexpbd.icb.
> > > Loading C:\IC\libs\expsens.c.
> > > Loading C:\IC\libs\expservo.icb.
> > > Loading C:\IC\libs\explego.icb.
> > > C:\IC\libs\expsens.c(2): parse error close to token "<illegal>"
> > > Errors, unloading files
> > > Cannot find file lib_hb.lis or file lib_hb.lis
> > > C:\IC\libs\expsens.c(2): parse error close to token "<illegal>"
> > >
> > > Thanks to All;
> > > Terry G.
> > > ----------
> > > > From: Terry P. Gathright <669@worldnet.att.net>
> > > > To: handyboard@media.mit.edu
> > > > Subject: Expansion Board Files
> > > > Date: Sunday, January 24, 1999 9:56 PM
> > > >
> > > > I have not got my expansion board files to load!
> > > > what am I not doing correctly? Help !!
> > > >
> > > > I have deleted all my ic files, reloaded 3.2 from Newton Labs in
> > > > c\ic.
> > > >
> > > > In ic I have :
> > > >
> > > > expansion-libs
> > > > libs
> > > > ic.help
> > > > ic.ini
> > > > ic.win.exe
> > > > install.log
> > > >
> > > > I can load ic but not any of the expansion files.
> > > > I get the message: parse error close to token "<illegal>".
> > > > I have tried putting some expansion-libs into libs but still
> > > > get the <"illegal>" and unloads.
> > > > After swaping files around so much the board would not load
> > > > libs so I deleted all and starting over now.
> > > >
> > > > Please explain the correct procedure to get this bugger up and running.
> > > > The expansion board kit from Douglas Electronics was great although
> > > > instructions would have helped.
> > > >
> > > > Thanks in advance,
> > > > Terry Gathright
> > > > 669@worldnet.att.net
>
> ------=_NextPart_000_01BE4944.9C4F5080
> Content-Type: application/octet-stream; name="expsens.c"
> Content-Transfer-Encoding: 7bit
> Content-Description: expsens.c (C File)
> Content-Disposition: attachment; filename="expsens.c"
>
> /* expsens.c */
>
/*
> maintained by Fred Martin (fredm@media.mit.edu)
>
VERSION HISTORY
>
> June 12, 1998 fredm
> first version created
>
*/
>
int analog(int port)
> {
> if (port < 2) {
> printf("Port is in use by expansion bd\n");
> beep();
> return -1;
> } else if (port < 7) {
> return _raw_analog(port);
> } else if (port < 16) {
> return 255 * !digital(port);
> } else if (port < 24) {
> return _exp_analog((port-16)<<8);
> } else if (port < 32) {
> return _exp_analog(((port-24)<<8)+1);
> } else {
> printf("Analog port out of range\n");
> beep();
> return -1;
> }
> }
>
int digital(int port)
> {
> if (port < 7) /* analogs */
> return analog(port) < 128;
> if (port == 7) /* TIC1 */
> return !(peek(0x1000) & 1);
> if (port == 8) /* TIC2 */
> return !(peek(0x1000) & 2);
> if (port == 9) /* PAI */
> return !(peek(0x1000) & 128);
> if (port < 16) /* normal bit of 7fff as gotten from digital chip */
> return !((peek(0x7fff) >> (port - 10)) & 1);
> if (port < 32) /* expbd analogs */
> return analog(port) < 128;
> else {
> printf("Digital port outof range\n");
> beep();
> return -1;
> }
> }
>
> ------=_NextPart_000_01BE4944.9C4F5080--
>
>
|
|
Message is in Reply To:
 | | Re: Expansion Board Files
|
| Fred; Here is the copy of expsens,c---...--- At the lines in the hb was having problems with there was a small square figure at the starting point outside the comment*\ and\* for some reason. Any one else having a problem????? Thanks Terry ---...--- (...) (26 years ago, 26-Jan-99, to lugnet.robotics.handyboard)
|
4 Messages in This Thread:   
  
  
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|