Jan,

 You can for example (1) put it in your application folder, (2) create
> a new folder and include it with CFLAGS in you Makefile, (3) put it in

-I<folder_name> would do the trick?

> any of the directories contained in your tos/<platform>/.platform file
> or (4) if it is a driver for a new platform create a subdirectory in
> tos/<platform>/chips containing your code and add an appropriate entry
> to your tos/<platform>/.platform.

thanks for the clarification...

> What hardware (MCU, sensor) are you using ? - if you are reading

MoveIV T-Mote Sky, Telos-B, sensors are custom made, connected to ADC0,
ADC1 and ADC3. The readings I sent were for a brightness sensor
connected to ADC1.

> temperature, then there obviously should not be such spikes, so it
> looks like there is a problem with reading data from the sensor. I
> just re-ran Oscilloscope for all external sensors on telos and it
> worked fine. Can you try this:
> 1) increase the sample-hold-time (sht parameter of
> msp430adc12_channel_config_t) - the exact value can be calculated
> using a formula found in the "MSP430 User's Guide", for testing try to
> gradually increase it. If this does not work, try:
> 2) open tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12.h and comment
> out "ADC12_P6PIN_AUTO_CONFIGURE". Now the Ax PINs are not
> automatically configured, so you should (e.g. in Boot.booted()), do
> this:
> 
> call Port61.selectModuleFunc();
> call Port61.makeInput();
> 
> (in your configuration:
>   components HplMsp430GeneralIOC;
>   MyDriverC.Port61 -> HplMsp430GeneralIOC.Port61;)
> 
> Let me know if this was helpful,

thanks for the pointers, I'll give them a try..


Akos

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to