I'm not sure exactly what you are asking now.

If it's how to use the PIN defines, I've posted a number
of times on the subject -- but don't seem to be able to
access the forum archive at
mail.millennium.berkeley.edu/pipermail/tinyos-help/
is there a new one someplace? Searching the code
for other examples should be instructive too.

I also don't know why you're still get "implicit declaration"
errors, although it may be masking the absence of the lower
level sbi() etc functions still.

MS



Vishrut Shah wrote:
> 
> Hello Sir,
> 
>                As per your instruction i have included one file that has 
> all these macros defined. I has resolved most of the errors.
> 
> Now function like *TOSH_CLR_RFM_CTL0_PIN* , TOSH_SET_RFM_CTL1_PIN , 
> TOSH_MAKE_ONE_WIRE_OUTPUT are defined in this file as
> 
> #define TOSH_ASSIGN_PIN(name, port, bit) \
> static inline void TOSH_SET_##name##_PIN() {sbi(PORT##port , bit);} \
> *static inline void TOSH_CLR_##name##_PIN() {cbi(PORT##port , bit);} \*
> static inline int TOSH_READ_##name##_PIN() \
>   {return (inp(PIN##port) & (1 << bit)) != 0;} \
> static inline void TOSH_MAKE_##name##_OUTPUT() {sbi(DDR##port , bit);} \
> static inline void TOSH_MAKE_##name##_INPUT() {cbi(DDR##port , bit);}
> 
> #define TOSH_ASSIGN_OUTPUT_ONLY_PIN(name, port, bit) \
> static inline void TOSH_SET_##name##_PIN() {sbi(PORT##port , bit);} \
> *static inline void TOSH_CLR_##name##_PIN() {cbi(PORT##port , bit);} \*
> static inline void TOSH_MAKE_##name##_OUTPUT() {;}
> 
> #define TOSH_ALIAS_OUTPUT_ONLY_PIN(alias, connector)\
> static inline void TOSH_SET_##alias##_PIN() 
> {TOSH_SET_##connector##_PIN();} \
> *static inline void TOSH_CLR_##alias##_PIN() 
> {TOSH_CLR_##connector##_PIN();} \*
> static inline void TOSH_MAKE_##alias##_OUTPUT() {} \
> 
> Now how i can use change function TOSH_CLR_RFM_CTL0_PIN in terms of the 
> lines shown bold in the above descriptions??
> 
> 
> ==========================
> xubuntos@xubuntos-tinyos:/opt/tinyos-2.1.1/contrib/s-mac/apps/SMACTest$ 
> make micaz
> mkdir -p build/micaz
>     compiling SMACTest to a micaz binary
> ncc -o build/micaz/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow 
> -Wall -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb 
> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -I. 
> -I/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz 
> -I/opt/tinyos-2.1.1/contrib/s-mac/tos/interfaces 
> -I/opt/tinyos-2.1.1/contrib/s-mac/tos/system 
> -DIDENT_APPNAME=\"SMACTest\" -DIDENT_USERNAME=\"xubuntos\" 
> -DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USERHASH=0x00f95284L 
> -DIDENT_TIMESTAMP=0x4d6e6e94L -DIDENT_UIDHASH=0xef73c5bfL 
> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' 
> -fnesc-dump='referenced(interfacedefs, components)' 
> -fnesc-dumpfile=build/micaz/wiring-check.xml SMACTest.nc -lm
> In file included from /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                  from SMACTest.nc:38:
> In component `SMACM':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function 
> `handleCTS':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:1803: 
> `TOS_NODE_INODE_ID' undeclared (first use in this function)
> /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:1803: (Each 
> undeclared identifier is reported only once
> /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:1803: for each 
> function it appears in.)
> In file included from 
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControl.nc:50,
>                  from 
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/PhyRadio.nc:50,
>                  from /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                  from SMACTest.nc:38:
> In component `RadioControlM':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc: In 
> function `RadioState.idle':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:128: 
> implicit declaration of function `TOSH_SET_RFM_CTL0_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:129: 
> implicit declaration of function `TOSH_SET_RFM_CTL1_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:130: 
> implicit declaration of function `TOSH_CLR_RFM_TXD_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc: In 
> function `RadioState.sleep':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:158: 
> implicit declaration of function `TOSH_CLR_RFM_TXD_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:159: 
> implicit declaration of function `TOSH_CLR_RFM_CTL0_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:160: 
> implicit declaration of function `TOSH_CLR_RFM_CTL1_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc: In 
> function `RadioByte.startTx':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:181: 
> implicit declaration of function `TOSH_CLR_RFM_CTL0_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:182: 
> implicit declaration of function `TOSH_SET_RFM_CTL1_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc: In 
> function `__vector_9':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:272: 
> implicit declaration of function `TOSH_READ_RFM_RXD_PIN'
> In file included from 
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/SlavePinC.nc:55,
>                  from 
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControl.nc:50,
>                  from 
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/PhyRadio.nc:50,
>                  from /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                  from SMACTest.nc:38:
> In component `HPLSlavePinC':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc: In 
> function `SlavePin.high':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:53: 
> implicit declaration of function `TOSH_MAKE_ONE_WIRE_OUTPUT'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:54: 
> implicit declaration of function `TOSH_SET_ONE_WIRE_PIN'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc: In 
> function `SlavePin.low':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:59: 
> implicit declaration of function `TOSH_MAKE_ONE_WIRE_OUTPUT'
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:60: 
> implicit declaration of function `TOSH_CLR_ONE_WIRE_PIN'
> In file included from /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                  from SMACTest.nc:38:
> In component `ClockSMACM':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc: In 
> function `__vector_12':
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:77: 
> warning: `return' with a value, in function returning void
> In component `SMACTest':
> SMACTest.nc: At top level:
> SMACTest.nc:42: syntax error before `Boot'
> make: *** [exe0] Error 1
> ==========================
> 
> Waiting 4 help
> 
> Thanks & Regards,
> Vishrut Shah
> On Fri, Mar 4, 2011 at 10:37 PM, Michael Schippling <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     I guess the header containing the definitions is not being
>     included in your source files. Probably hacking one of the
>     main include files is the easiest way.
> 
>     MS
> 
> 
>     Vishrut Shah wrote:
> 
>         Hello,
> 
>                  As you can see that following is the output which i am
>         getting currently.Now how to resolve this ??
> 
>         ==============================================
>         ubuntos@xubuntos-tinyos:/opt/tinyos-2.1.1/contrib/s-mac/apps/SMACTest$
>         make micaz sim
>         mkdir -p simbuild/micaz
>          placing object files in simbuild/micaz
>          writing XML schema to app.xml
>          compiling SMACTest to object file sim.o
>         ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
>         -fnesc-nido-tosnodes=1000 -fnesc-simulate
>         -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
>         -Wall -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
>         -DDEFINED_TOS_AM_GROUP=0x22 --param
>         max-inline-insns-single=100000 -I.
>         -I/opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz
>         -I/opt/tinyos-2.1.1/contrib/s-mac/tos/interfaces
>         -I/opt/tinyos-2.1.1/contrib/s-mac/tos/system
>         -DIDENT_APPNAME=\"SMACTest\" -DIDENT_USERNAME=\"xubuntos\"
>         -DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USERHASH=0x00f95284L
>         -DIDENT_TIMESTAMP=0x4d6da9b7L -DIDENT_UIDHASH=0x2aeaa201L
>         -Wno-nesc-data-race SMACTest.nc   -fnesc-dump=components
>         -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
>         -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
>         In file included from testMsg.h:8:
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACMsg.h:42:1: warning:
>         "TOS_BCAST_ADDR" redefined
>         In file included from testMsg.h:1:
>         <built-in>: warning: this is the location of the previous definition
>         In file included from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                         from SMACTest.nc:38:
>         In component `SMACM':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
>         `update_myNeighbList.runTask':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:655: implicit
>         declaration of function `inp'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
>         `tryToSend':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:816: implicit
>         declaration of function `inp'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
>         `MACComm.broadcastMsg':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:870: implicit
>         declaration of function `inp'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
>         `MACComm.unicastMsg':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:959: implicit
>         declaration of function `inp'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
>         `Clock.fire':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:1510: implicit
>         declaration of function `inp'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc: In function
>         `handleCTS':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:1803:
>         `TOS_NODE_INODE_ID' undeclared (first use in this function)
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:1803: (Each
>         undeclared identifier is reported only once
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMACM.nc:1803: for each
>         function it appears in.)
>         In file included from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControl.nc:50,
>                         from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/PhyRadio.nc:50,
>                         from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                         from SMACTest.nc:38:
>         In component `RadioControlM':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         In function `RadControlInit.init':
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:95:
>         implicit declaration of function `cbi'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         In function `RadioState.idle':
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:120:
>         implicit declaration of function `outp'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:121:
>         implicit declaration of function `cbi'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:128:
>         implicit declaration of function `TOSH_SET_RFM_CTL0_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:129:
>         implicit declaration of function `TOSH_SET_RFM_CTL1_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:130:
>         implicit declaration of function `TOSH_CLR_RFM_TXD_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:140:
>         implicit declaration of function `sbi'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         In function `RadioState.sleep':
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:150:
>         implicit declaration of function `outp'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:151:
>         implicit declaration of function `cbi'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:158:
>         implicit declaration of function `TOSH_CLR_RFM_TXD_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:159:
>         implicit declaration of function `TOSH_CLR_RFM_CTL0_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:160:
>         implicit declaration of function `TOSH_CLR_RFM_CTL1_PIN'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         In function `RadioByte.startTx':
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:170:
>         implicit declaration of function `outp'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:171:
>         implicit declaration of function `cbi'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:181:
>         implicit declaration of function `TOSH_CLR_RFM_CTL0_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:182:
>         implicit declaration of function `TOSH_SET_RFM_CTL1_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:184:
>         implicit declaration of function `inp'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:191:
>         implicit declaration of function `sbi'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         At top level:
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:240:
>         old-style parameter lists not supported
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:240:
>         warning: return-type defaults to `int'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         In function `TOSH_SIGNAL':
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:242:
>         implicit declaration of function `inp'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:244:
>         implicit declaration of function `outp'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:252:
>         implicit declaration of function `outp'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         At top level:
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:269:
>         old-style parameter lists not supported
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:269:
>         warning: return-type defaults to `int'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:268:
>         redefinition of `TOSH_SIGNAL'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:239:
>         previous declaration of `TOSH_SIGNAL'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:
>         In function `TOSH_SIGNAL':
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:271:
>         warning: `return' with no value, in function returning non-void
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:272:
>         implicit declaration of function `TOSH_READ_RFM_RXD_PIN'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:276:
>         implicit declaration of function `cbi'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:277:
>         implicit declaration of function `outp'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:280:
>         implicit declaration of function `sbi'
>         
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControlM.nc:283:
>         implicit declaration of function `inp'
>         In file included from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/SlavePinC.nc:55,
>                         from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/RadioControl.nc:50,
>                         from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/PhyRadio.nc:50,
>                         from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                         from SMACTest.nc:38:
>         In component `HPLSlavePinC':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:
>         In
>         function `SlavePin.high':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:53:
>         implicit declaration of function `TOSH_MAKE_ONE_WIRE_OUTPUT'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:54:
>         implicit declaration of function `TOSH_SET_ONE_WIRE_PIN'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:
>         In
>         function `SlavePin.low':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:59:
>         implicit declaration of function `TOSH_MAKE_ONE_WIRE_OUTPUT'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/HPLSlavePinC.nc:60:
>         implicit declaration of function `TOSH_CLR_ONE_WIRE_PIN'
>         In file included from
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/system/SMAC.nc:66,
>                         from SMACTest.nc:38:
>         In component `ClockSMACM':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc: In
>         function `Clock.start':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:54:
>         implicit declaration of function `cbi'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:55:
>         implicit declaration of function `bit_is_set'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:64:
>         implicit declaration of function `sbi'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:
>         At top level:
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:75:
>         old-style parameter lists not supported
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:75:
>         warning: return-type defaults to `int'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc: In
>         function `TimeStamp.getTime32':
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:82:
>         implicit declaration of function `bit_is_set'
>         /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:84:
>         implicit declaration of function `__inw'
>         In component `SMACTest':
>         SMACTest.nc: At top level:
>         SMACTest.nc:42: syntax error before `Boot'
>         make: *** [sim-exe] Error 1
>         ==============================================
> 
>         Reply soon.. Waiting 4 your reply
> 
>         Thanks & Regards,
>         Vishrut Shah
> 
>         On 3/4/11, Vishrut Shah <[email protected]
>         <mailto:[email protected]>> wrote:
> 
>             Hello ,
> 
>             Yes i found all that files that has defined macros. But why
>             at the time of
>             compilation it shows that these macros are implicit definition.
> 
>             How do i solve that so that it can fins these macros??
> 
>             Is there any thing like setting path will solve the problem??
> 
>             Thanks
> 
> 
>             On Fri, Mar 4, 2011 at 2:00 AM, Michael Schippling
>             <[email protected] <mailto:[email protected]>>wrote:
> 
>                 For T1, things like sbi() are in the compiler includes,
>                 in my case:  /usr/local/avr/include/deprecated.h (!!?)
> 
>                 The funications for setting pins, like:
>                   TOSH_MAKE_TRIGGER_INPUT();
>                   TOSH_SET_TRIGGER_PIN();
>                 are defined in source files spread far and wide,
>                 where you may find something like this:
>                   TOSH_ASSIGN_PIN(TRIGGER, E, 7);     // port,pin E7
>                 that creates the association of name "TRIGGER" to port/pin.
> 
>                 Unfortunately those defines are defined by a deeply nested
>                 set of macro defines, so just searching for the definition
>                 of "TOSH_SET_TRIGGER_PIN" will turn up exactly nada, as you
>                 have probably already discovered.
> 
>                 MS
> 
> 
>                 Vishrut Shah wrote:
> 
>                     Hello ,
> 
>                              Did any one knows where are the hardware
>                     level functions
>                     defined
>                     in tinyOS 1.x . And also what are the related TinyOS
>                     2.x functions.
> 
>                     Functions like : cbi(), sbi(), bit_is_set() and
>                     funcations for setting
>                     PINs.
> 
>                     Actually i am converting S-MAC protocol of TinyOS
>                     1.x to TinyOS 2.x and
>                     it's almost done. But it won't able to find some
>                     lower level function
>                     and
>                     generating error as follows :
> 
>                     ------------------------
>                     In component `ClockSMACM':
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:
>                     In
>                     function `Clock.start':
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:54:
>                     implicit declaration of function `cbi'
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:55:
>                     implicit declaration of function `bit_is_set'
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:64:
>                     implicit declaration of function `sbi'
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:
>                     At top
>                     level:
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:75:
>                     old-style parameter lists not supported
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:75:
>                     warning: return-type defaults to `int'
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:
>                     In
>                     function `TimeStamp.getTime32':
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:82:
>                     implicit declaration of function `bit_is_set'
>                     
> /opt/tinyos-2.1.1/contrib/s-mac/tos/platform/micaz/ClockSMACM.nc:84:
>                     implicit declaration of function `__inw'
> 
>                     -----------------------
> 
>                     So if anyone knows in which file or directory it is
>                     defined then please
>                     reply soon.
> 
>                     Thanks in advance
> 
> 
>                     
> ------------------------------------------------------------------------
> 
>                     _______________________________________________
>                     Tinyos-help mailing list
>                     [email protected]
>                     <mailto:[email protected]>
>                     
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to