I'm not sure if this is what you're looking for, but in my TinyOS 1.1.15 tree for avr-based motes, those macros seem to be defined in "/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h". There is a note saying that the macros are no longer included in avr-libc 1.2.3. Perhaps you should just include this file, or simply copy the macros since you say you don't want to include hardware.h.
- Ryan Stinnett > Date: Thu, 27 Jul 2006 13:32:46 +0200 > From: "BiBe" <[EMAIL PROTECTED]> > Subject: [Tinyos-help] equivalent to outp() > To: <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > Hi! > Does anybody have an idea, how to write in hardware registers in tinyOS > 1.1.11 as described below? > Thanks, > BiBe > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:tinyos-help- > > [EMAIL PROTECTED] On Behalf Of BiBe > > Sent: Wednesday, July 26, 2006 2:48 PM > > To: [email protected] > > Subject: [Tinyos-help] equivalent to outp() > > > > Hi! > > I'd like to update tinyOS from 1.1.0 to 1.1.11. In the programs I used in > > the older version, there is the function outp() used in some lines, which > > is > > no longer available in 1.1.11. So I tried to modify but it doesn't work. > > Are > > these methods equivalent? > > > > // method 1 (tinyOS 1.1.0) > > outp(0x4e, ICR1H); > > outp(0x20, ICR1L); > > > > // method 2 (tinyOS 1.1.11) > > cbi(ICR1H, 0); > > sbi(ICR1H, 1); > > cbi(ICR1H, 2); > > sbi(ICR1H, 3); > > sbi(ICR1H, 4); > > cbi(ICR1H, 5); > > cbi(ICR1H, 6); > > cbi(ICR1H, 7); > > > > cbi(ICR1L, 0); > > sbi(ICR1L, 1); > > cbi(ICR1L, 2); > > cbi(ICR1L, 3); > > cbi(ICR1L, 4); > > sbi(ICR1L, 5); > > cbi(ICR1L, 6); > > sbi(ICR1L, 7); > > > > Are cbi() and sbi() available in tinyOS 1.1.11 or how can those register > > values be set manually? > > > > An assignment like "ICR1H = 0x4e; ICR1L = 0x20;" is not compilable in my > > environment, because I do not want to include "hardware.h". > > > > Thanks, > > BiBe > > > > > > _______________________________________________ > > Tinyos-help mailing list > > [email protected] > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
