add Chapter18

This commit is contained in:
Amar Mahmutbegovic
2025-02-06 00:19:59 +01:00
parent 9cc9cc7d73
commit 8634accda5
1533 changed files with 1092521 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include <stdx/compiler.hpp>
#include <cstddef>
#include <cstdint>
namespace interrupt {
enum struct irq_num_t : std::uint32_t {};
using priority_t = std::size_t;
inline namespace literals {
// NOLINTNEXTLINE(google-runtime-int)
CONSTEVAL auto operator""_irq(unsigned long long int v) -> irq_num_t {
return static_cast<irq_num_t>(v);
}
} // namespace literals
} // namespace interrupt