Skip to content

ATOMIC_BLOCK: Documentation and Compatibility List #761

Open
@TimMathias

Description

@TimMathias

Please could you add some documentation describing the ATOMIC_BLOCK macro with a list of boards/architectures that support it or do not support it as the case my be? I would like to conditionally encapsulate some code within an ATOMIC_BLOCK for the systems that support it. Thank you.

#ifdef SOME_BOARDS_OR_ARCH
ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
{
#endif
  // Some code.
#ifdef SOME_BOARDS_OR_ARCH
}
#endif

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions