Giter Club home page Giter Club logo

Comments (2)

terjeio avatar terjeio commented on June 25, 2024

Quick fix ltoa()?

That breaks other drivers...

I added a macro symbol for itoa() in CCS:

image

Way to fix it?

from plugin_openpnp.

speters avatar speters commented on June 25, 2024

Thx for this idea, that seems better than touching the Plugin sources.

Maybe this could find its way into TI driver.h (I hesitate to make a pull request for changes like this):

diff --git i/base/driver.h w/base/driver.h
index 3c433c6..fff068d 100644
--- i/base/driver.h
+++ w/base/driver.h
@@ -129,6 +129,10 @@
 #define DIGITAL_OUT(port, pin, on) GPIOPinWrite(port, 1<<pin, (on) ? 1<<pin : 0);
 #endif
 
+#ifdef OPENPNP_ENABLE
+#define itoa(a, b, c) ltoa(a, b, c)
+#endif
+
 // Define GPIO output mode options
 // Use GPIO_SHIFTx when output bits are consecutive and in the same port
 // Use GPIO_MAP when output bits are not consecutive but in the same port

PS:
If anyone who is also untrained in CCSTudio also wondered where this screenshot from above came from: It shows settings which are only available when "Show advanced settings" in the project properties dialogue is activated. A tree "C/C++ General" is then available.

from plugin_openpnp.

Related Issues (2)

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.