Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
control.hpp File Reference

ARM Cortex-M interrupt control primitives. More...

#include <cstdint>
Include dependency graph for control.hpp:

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs functionality.
 
namespace  sbl::core
 
namespace  sbl::core::hal
 
namespace  sbl::core::hal::interrupts
 

Macros

#define __get_PRIMASK()   (0)
 
#define __disable_irq()   do {} while(0)
 
#define __set_PRIMASK(x)   do { (void)(x); } while(0)
 

Functions

uint32_t sbl::core::hal::interrupts::disable_and_save ()
 Disable ARM interrupts and return previous state.
 
void sbl::core::hal::interrupts::restore (uint32_t saved_state)
 Restore ARM interrupt state.
 
uint32_t sbl::core::hal::interrupts::get_state ()
 Get current ARM interrupt state.
 
bool sbl::core::hal::interrupts::are_enabled ()
 Check if ARM interrupts are enabled.
 

Detailed Description

ARM Cortex-M interrupt control primitives.

Low-level hardware operations for ARM interrupt control using CMSIS intrinsics. Provides minimal hardware primitives without RAII - use patterns layer for convenience.

Definition in file control.hpp.

Macro Definition Documentation

◆ __disable_irq

#define __disable_irq ( )    do {} while(0)

Definition at line 21 of file control.hpp.

◆ __get_PRIMASK

#define __get_PRIMASK ( )    (0)

Definition at line 17 of file control.hpp.

◆ __set_PRIMASK

#define __set_PRIMASK (   x)    do { (void)(x); } while(0)

Definition at line 25 of file control.hpp.