I think those -- sbi(), cbi(), etc -- are in
        \usr\local\avr\include\avr\sfr_defs.h
so you're still not getting the right AVR includes for some reason.
MS


M.Soledad Escolar Díaz wrote:
Thanks for your reply. I solved this error but I can't compile Blink still
(make pc is ok). When I do 'make mica' I get the next error messages:

[EMAIL PROTECTED] Blink]# make mica
    compiling Blink to a mica binary
ncc -o build/mica/main.exe -Os -board=micasb -target=mica  -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000
-fnesc-cfile=build/mica/app.c Blink.nc -lm In file included from /opt/tinyos-1.x/tos/platform/mica/hardware.h:49,
                 from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h: In function
`TOSH_sleep':
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h:144: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h: In function
`__nesc_atomic_start':
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h:155: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h: In function
`__nesc_atomic_end':
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h:162: warning: implicit
declaration of function `outp'
In file included from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_RED_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:57: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_RED_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:57: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_RED_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:57: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RED_LED_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:57: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RED_LED_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:57: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_YELLOW_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:58: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_YELLOW_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:58: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_YELLOW_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:58: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_YELLOW_LED_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:58: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_YELLOW_LED_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:58: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_GREEN_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:59: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_GREEN_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:59: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_GREEN_LED_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:59: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_GREEN_LED_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:59: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_GREEN_LED_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:59: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function `TOSH_SET_UD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:61: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function `TOSH_CLR_UD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:61: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_UD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:61: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_UD_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:61: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_UD_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:61: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_INC_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:62: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_INC_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:62: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_INC_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:62: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INC_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:62: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INC_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:62: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_POT_SELECT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:63: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_POT_SELECT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:63: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_POT_SELECT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:63: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_POT_SELECT_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:63: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_POT_SELECT_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:63: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_POT_POWER_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:64: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_POT_POWER_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:64: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_POT_POWER_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:64: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_POT_POWER_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:64: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_POT_POWER_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:64: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_BOOST_ENABLE_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:65: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_BOOST_ENABLE_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:65: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_BOOST_ENABLE_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:65: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_BOOST_ENABLE_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:65: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_BOOST_ENABLE_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:65: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_FLASH_SELECT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:67: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_FLASH_SELECT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:67: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_FLASH_SELECT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:67: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_SELECT_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:67: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_SELECT_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:67: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_FLASH_CLK_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:68: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_FLASH_CLK_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:68: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_FLASH_CLK_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:68: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_CLK_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:68: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_CLK_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:68: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_FLASH_OUT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:69: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_FLASH_OUT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:69: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_FLASH_OUT_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:69: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_OUT_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:69: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_OUT_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:69: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_FLASH_IN_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:70: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_FLASH_IN_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:70: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_FLASH_IN_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:70: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_IN_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:70: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_FLASH_IN_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:70: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_INT1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:72: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_INT1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:72: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_INT1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:72: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INT1_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:72: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INT1_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:72: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_INT2_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:73: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_INT2_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:73: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_INT2_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:73: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INT2_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:73: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INT2_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:73: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_INT3_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:74: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_INT3_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:74: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_INT3_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:74: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INT3_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:74: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_INT3_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:74: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_RFM_RXD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:76: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_RFM_RXD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:76: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_RFM_RXD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:76: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_RXD_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:76: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_RXD_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:76: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_RFM_TXD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:77: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_RFM_TXD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:77: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_RFM_TXD_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:77: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_TXD_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:77: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_TXD_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:77: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_RFM_CTL0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:78: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_RFM_CTL0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:78: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_RFM_CTL0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:78: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_CTL0_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:78: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_CTL0_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:78: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_RFM_CTL1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:79: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_RFM_CTL1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:79: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_RFM_CTL1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:79: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_CTL1_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:79: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_RFM_CTL1_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:79: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:81: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:81: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:82: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW1_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:82: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW2_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:83: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW2_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:83: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW3_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:84: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW3_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:84: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW4_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:85: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW4_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:85: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW5_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:86: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW5_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:86: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW6_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:87: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW6_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:87: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PW7_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:88: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_PW7_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:88: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_I2C_BUS1_SCL_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:90: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_I2C_BUS1_SCL_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:90: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_I2C_BUS1_SCL_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:90: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_I2C_BUS1_SCL_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:90: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_I2C_BUS1_SCL_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:90: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_I2C_BUS1_SDA_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:91: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_I2C_BUS1_SDA_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:91: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_I2C_BUS1_SDA_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:91: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_I2C_BUS1_SDA_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:91: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_I2C_BUS1_SDA_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:91: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_I2W_BUS_SCL_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:93: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_I2W_BUS_SCL_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:93: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_I2W_BUS_SDA_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:94: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_I2W_BUS_SDA_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:94: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_I2W_BUS_SDA_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:94: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_I2W_BUS_SDA_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:94: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_I2W_BUS_SDA_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:94: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_LITTLE_GUY_RESET_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:96: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_LITTLE_GUY_RESET_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:96: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_LITTLE_GUY_RESET_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:96: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_LITTLE_GUY_RESET_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:96: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_LITTLE_GUY_RESET_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:96: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_UART_RXD0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:98: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_UART_RXD0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:98: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_UART_RXD0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:98: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_UART_RXD0_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:98: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_UART_RXD0_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:98: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_UART_TXD0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:99: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_UART_TXD0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:99: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_UART_TXD0_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:99: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_UART_TXD0_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:99: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_UART_TXD0_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:99: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_ONE_WIRE_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:101: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_CLR_ONE_WIRE_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:101: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_READ_ONE_WIRE_PIN':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:101: warning: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_ONE_WIRE_OUTPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:101: warning: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_MAKE_ONE_WIRE_INPUT':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:101: warning: implicit
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/mica/hardware.h: In function
`TOSH_SET_PIN_DIRECTIONS':
/opt/tinyos-1.x/tos/platform/mica/hardware.h:105: warning: implicit
declaration of function `outp'
/opt/tinyos-1.x/tos/system/TimerM.nc: In function `Timer.start':
/opt/tinyos-1.x/tos/system/TimerM.nc:102: implicit declaration of function
`inp'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function
`Clock.setInterval':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:88: implicit declaration of
function `outp'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function
`Clock.getInterval':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:98: implicit declaration of
function `inp'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function
`Clock.setIntervalAndScale':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:123: implicit declaration of
function `cbi'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:124: implicit declaration of
function `outp'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:129: implicit declaration of
function `sbi'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function
`Clock.readCounter':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:135: implicit declaration of
function `inp'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function
`Clock.setCounter':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:139: implicit declaration of
function `outp'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function
`Clock.intDisable':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:143: implicit declaration of
function `cbi'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function
`Clock.intEnable':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:146: implicit declaration of
function `sbi'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function `Clock.setRate':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:153: implicit declaration of
function `cbi'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:155: implicit declaration of
function `sbi'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:158: implicit declaration of
function `outp'
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc: In function `__vector_15':
/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc:172: implicit declaration of
function `outp'
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc: In function
`getPowerLevel':
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc:64: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc: In function
`doAdjustment':
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc:88: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc:98: implicit
declaration of function `outp'
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc:99: implicit
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc: In function
`PowerManagement.adjustPower':
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc:108: implicit
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc:111: implicit
declaration of function `outp'
/opt/tinyos-1.x/tos/platform/mica/HPLPowerManagementM.nc:112: implicit
declaration of function `sbi'
make: *** [build/mica/main.exe] Error 1

It seems that can not find the macros declaration (sbi, cbi, outp...) for
the motes. When I search 'sbi' I get:

[EMAIL PROTECTED] tinyos-1.x]# find . -name "*.h" -exec grep "sbi" '{}' \;
-print

#define sbi(x...) a_holder_val = 1
static inline void SET_##name##_PIN() {sbi(PORT##port , bit);} \
static inline void MAKE_##name##_OUTPUT() {sbi(DDR##port , bit);} \
./apps/LittleGuySleep/hardware.h
static inline void TOSH_SET_##name##_PIN() {sbi(PORT##port , bit);} \
static inline void TOSH_MAKE_##name##_OUTPUT() {sbi(DDR##port , bit);} \
static inline void TOSH_SET_##name##_PIN() {sbi(PORT##port , bit);} \
    //sbi(MCUCR, 5);
  sbi(MCUCR, SE);
./tos/platform/avrmote/avrhardware.h
"1:     sbiw    %0,1\n"
./tos/platform/mica/hardware.h
"1:     sbiw    %0,1\n"
./tos/platform/mica2dot/hardware.h
//#define sbi(x...) a_holder_val = 1
#define sbi(port, bit) set_io_bit(port, bit)
static inline void TOSH_SET_##name##_PIN() {sbi(PORT##port , bit);} \
static inline void TOSH_MAKE_##name##_OUTPUT() {sbi(DDR##port , bit);} \
static inline void TOSH_SET_##name##_PIN() {sbi(PORT##port , bit);} \
./tos/platform/pc/hardware.nido.h

These macros exist for 'pc' platform but do not exist for mica platform in
$TOSDIR/platform/mica/hardware.h, is it ok? Is there anything wrong in the installation? Somebody can help me?

Thanks in advance.


-----Mensaje original-----
De: Michael Schippling [mailto:[EMAIL PROTECTED] Enviado el: lunes, 04 de junio de 2007 18:50
Para: "M.Soledad Escolar Díaz"
CC: tinyos-help@Millennium.Berkeley.EDU
Asunto: Re: [Tinyos-help] Compiling Blink for micaz

Those header files are usually in /usr/local/avr/include
If they are there, then there is something wrong with the
internal search path, with which I cannot help. If they're
not there then see where the avr gcc or libc rpms tried
to put them. Try a file find and see if they exist anywhere...

MS

M.Soledad Escolar Díaz wrote:
Hello,

I’m a newbie with TinyOS. I have installed TinyOS 1.1 in a RedHat 9 system. I have currently installed:

avarice-2.0.20030825cvs-1.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tools/linux/avarice-2.0.20030825
cvs-1.i386.rpm>
avr-binutils-2.13.2.1-1.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tools/linux/avr-binutils-2.13.2.
1-1.i386.rpm>
avr-gcc-3.3tinyos-1.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tools/linux/avr-gcc-3.3tinyos-1.
i386.rpm>
avr-insight-pre6.0cvs.tinyos-1.3.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tools/linux/avr-insight-pre6.0cv
s.tinyos-1.3.i386.rpm>
avr-libc-20030512cvs-1.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tools/linux/avr-libc-20030512cvs
-1.i386.rpm>
graphviz-1.10-1.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tools/linux/graphviz-1.10-1.i386
.rpm>
nesc-1.1-1.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tinyos/linux/nesc-1.1-1.i386.rpm
tinyos-tools-1.1.0-1.i386.rpm
<http://webs.cs.berkeley.edu/tos/dist-1.1.0/tinyos/linux/tinyos-tools-1.1.0-
1.i386.rpm>
I am trying to compile the Blink application for the mica platform (it works for ‘make pc’). When I do ‘make mica’ I get the next error messages:

/tmp/ccoMaZpu.s: Assembler messages:

/tmp/ccoMaZpu.s:10: Error: unknown opcode `disabled'

/tmp/ccoMaZpu.s:12: Error: unrecognized symbol type ""

/tmp/ccoMaZpu.s:12: Error: unknown opcode `disabled'

/tmp/ccoMaZpu.s:13: Error: expected comma after name `HPLPowerManagementM' in .size directive

/tmp/ccoMaZpu.s:13: Error: unknown opcode `disabled'

/tmp/ccoMaZpu.s:14: Error: unknown opcode `hplpowerma'

      ……

I have read the TinyOS FAQ and I have seen it is needed to upgrade the binutils, gcc and libc rpms to the 1.2.0 version. But when I upgrade:

avr-binutils-2.15tinyos-3.i386.rpm
<http://www.tinyos.net/dist-1.2.0/tools/linux/avr-binutils-2.15tinyos-3.i386
.rpm>
avr-gcc-3.4.3-1.i386.rpm
<http://www.tinyos.net/dist-1.2.0/tools/linux/avr-gcc-3.4.3-1.i386.rpm>

avr-libc-1.2.3-1.i386.rpm
<http://www.tinyos.net/dist-1.2.0/tools/linux/avr-libc-1.2.3-1.i386.rpm>
I get the next errors:

[EMAIL PROTECTED] Blink]# make mica

mkdir -p build/mica

    compiling Blink to a mica binary

ncc -o build/mica/main.exe -Os -board=micasb -target=mica -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000 -fnesc-cfile=build/mica/app.c Blink.nc -lm

/opt/tinyos-1.x/tos/system/tos.h:47:22: inttypes.h: No such file or directory

/opt/tinyos-1.x/tos/system/tos.h:71:20: string.h: No such file or
directory
/opt/tinyos-1.x/tos/system/tos.h:72:20: stdlib.h: No such file or
directory
/opt/tinyos-1.x/tos/system/tos.h:73:18: math.h: No such file or directory

/opt/tinyos-1.x/tos/system/tos.h:75:19: ctype.h: No such file or directory In file included from /opt/tinyos-1.x/tos/platform/mica/hardware.h:49,

                 from /opt/tinyos-1.x/tos/system/tos.h:132:

…..

Would you have any suggestions?

Thanks in advance.


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to