Code Monkey home page Code Monkey logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
Quick question: what happens if an application is using the ADC?

Original comment by razvanm on 9 Jun 2011 at 4:21

from tinyos-main.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
Oh, everything still works and this isn't a hack -- we're just wiring down to 
the bottom of the ADC stack.

If you wire VoltageC like ReprogramGuardC does now, you end up pulling in 
Msp430InternalVoltageC, AdcReadNowClientC, AdcReadStreamClientC, AdcReadClientC 
and so on down the line  However at the end of the day you pull in 
Msp430Adc12ClientAutoRVGC, the same thing I used -- that arbitrates access to 
the ADC channel for sharing.

The only comment I would make is that it looks like my patch doesn't release 
the resource when it's done, so it should be fixed...

Original comment by [email protected] on 9 Jun 2011 at 4:28

from tinyos-main.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024

Original comment by [email protected] on 17 Jun 2011 at 7:40

  • Changed state: Accepted

from tinyos-main.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
I can confirm that burn from apps/tests/deluge/Blink works fine with this 
change. The decrease in ROM I got was 2638 bytes.

Current SVN head:

    compiled BlinkAppC to build/telosb/main.exe
           41420 bytes in ROM
            1454 bytes in RAM

Current SVN head with the patch:

    compiled BlinkAppC to build/telosb/main.exe
           38782 bytes in ROM
            1406 bytes in RAM

As Stephen said, the resource for Msp430Adc12ClientAutoRVGC is never released 
by this patch and that needs to be fixed before it gets committed.

Note: I only have one telosb so I was not able to also test the burn-net script.

Original comment by [email protected] on 26 Jul 2011 at 8:18

from tinyos-main.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024

Original comment by [email protected] on 3 Aug 2011 at 4:16

from tinyos-main.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
Not sure if the issue referred to in 50 was what I was talking about; as far as 
I knew, all that needs to be done is call Resource.release() after reading a 
sample; I don't know any bugs in Msp430Adc12ClientAutoRVGC. Here's the patch 
that does what I was thinking.  This is really only important if you *don't* 
reprogram; if you do, it triggers a reboot so no one should ever care.

Original comment by [email protected] on 3 Aug 2011 at 9:35

Attachments:

from tinyos-main.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
The latest version of the patch looks good to me. Feel free to submit it. I 
think issue 50 is is just a misunderstanding.

Original comment by razvanm on 3 Aug 2011 at 2:58

from tinyos-main.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 20, 2024
Done!

Original comment by [email protected] on 3 Aug 2011 at 10:44

  • Changed state: Fixed

from tinyos-main.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.