Coder Social home page Coder Social logo

Comments (5)

EmbeddedMan avatar EmbeddedMan commented on August 28, 2024

Turns out that the quick240 board uses mSYSTEMLock() and mSYSTEMUnlock() from plib.h.
Turns out there are actually four boards that should be using these plib.h macros as they try to write to the OSCCON register to turn off the secondary oscillator.
So fixing this issue will require moving those macros (and the DmaSuspend() that they depend on) into our core libraries.

from chipkit32-max.

EmbeddedMan avatar EmbeddedMan commented on August 28, 2024

Turns out that there is a huge rabbit hole here. To replace the mSYSTEMUlock() macro from plib.h, we need to implement DmaSuspend(), which is part of plib.h, and which has different code for each of the three different types of DMA on PIC32. I'm not sure re-writing this section of the plib.h system is worth it at this point. It is unlikely that users will have DMA already turned on when the _board_init() function is called from Board_Data.c on boot time. So I'm just going to ignore DMA for this unlock sequence.

from chipkit32-max.

majenkotech avatar majenkotech commented on August 28, 2024

When I finally get round to finishing my DMA abstraction layer I will add a function dma_suspend() and dma_resume() for you.

from chipkit32-max.

EmbeddedMan avatar EmbeddedMan commented on August 28, 2024

You are so awesome. Thanks Matt!

On Wed, Oct 21, 2015 at 8:40 AM, Matt Jenkins [email protected]
wrote:

When I finally get round to finishing my DMA abstraction layer I will add
a function dma_suspend() and dma_resume() for you.


Reply to this email directly or view it on GitHub
#623 (comment)
.

from chipkit32-max.

EmbeddedMan avatar EmbeddedMan commented on August 28, 2024

The original issue should now be fixed. No boards or libraries include plib.h anymore.

from chipkit32-max.

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.