Giter Site home page Giter Site logo

simplyatomic's People

Contributors

wizard97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplyatomic's Issues

MKR1000

Hello,
Does your library support the arduino MKR1000?
Thank you very much for the information.
Regards,
Jose

Conflicts with AVR `util/atomic.h`

If, in a single sketch, both util/atomic.h and SimplyAtomic.h are included, compilation fails:

In file included from mjs_firmware.ino:26:0:
.../avr/include/util/atomic.h: In function 'uint8_t __iSeiRetVal()':
.../avr/include/util/atomic.h:42:27: error: redefinition of 'uint8_t __iSeiRetVal()'
 static __inline__ uint8_t __iSeiRetVal(void)
			   ^
In file included from .../SimplyAtomic/SimplyAtomic.h:9:0,
		 from mjs_firmware.ino:24:
.../SimplyAtomic/avr.h:15:27: note: 'uint8_t __iSeiRetVal()' previously defined here
 static __inline__ uint8_t __iSeiRetVal(void)

Similar errors appear for __iCliRetVal and __iRestore. Fixing this
should be a matter of adding a "SimplyAtomic" prefix to all these helper
functions (also, I think __iSeiRetVal is not used, and could be
removed?).

It would also be good to add a prefix to the ATOMIC_RESTORESTATE macro,
or remove it altogether and just inline it. I would expect an error
about this macro too, but somehow that doesn't happen here.

On an unrelated note, I see that this code is based on AVR's
util/atomic.h, but the license notice is not preserved, which violates
the license of that code. One could argue that this code is too simple
to apply copyright to, but just keeping the license wouldn't hurt. Now,
there is no license attached at all, which would prevent people from
redistributing (binaries containing) this code.

Error: unknown opcode cli

I try to use SimplyAtomic on Arduino using ESP8266 board.
On compiling I get the message: Error: unknown opcode or format name 'cli'.
How can I solve this?

Thanks for your help.

Best regards,

Ton

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.