idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
intr_alloc.hpp File Reference

Interrupt allocation levels and flags. More...

#include <idfxx/flags>

Go to the source code of this file.

Namespaces

namespace  idfxx
 

Typedefs

using idfxx::intr_levels = flags< intr_level >
 A set of interrupt priority levels.
 

Enumerations

enum class  idfxx::intr_level : int {
  idfxx::level_1 = 1u << 1 ,
  idfxx::level_2 = 1u << 2 ,
  idfxx::level_3 = 1u << 3 ,
  idfxx::level_4 = 1u << 4 ,
  idfxx::level_5 = 1u << 5 ,
  idfxx::level_6 = 1u << 6 ,
  idfxx::nmi = 1u << 7
}
 Hardware interrupt priority levels. More...
 
enum class  idfxx::intr_flag : int {
  idfxx::none = 0 ,
  idfxx::shared = 1u << 8 ,
  idfxx::edge = 1u << 9 ,
  idfxx::iram = 1u << 10 ,
  idfxx::disabled = 1u << 11
}
 Interrupt behavioral flags. More...
 

Variables

constexpr intr_levels idfxx::intr_level_lowmed = intr_level::level_1 | intr_level::level_2 | intr_level::level_3
 Low and medium priority levels (1-3). These can be handled in C / C++.
 
constexpr intr_levels idfxx::intr_level_high
 High priority levels (4-6 and NMI). These require assembly handlers.
 
constexpr intr_levels idfxx::intr_level_all = intr_level_lowmed | intr_level_high
 All interrupt levels.
 

Detailed Description

Interrupt allocation levels and flags.

Definition in file intr_alloc.hpp.