add Chapter 15 - runtime observer implementation

This commit is contained in:
Amar Mahmutbegovic
2024-12-09 00:53:55 +01:00
parent b378383cf5
commit fb919233e2
1391 changed files with 1058445 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include <array>
#include <cstdint>
#include <gpio.hpp>
namespace hal {
struct gpio_interrupt_manager {
static void register_interrupt_handler(gpio * pin);
static void execute_interrupt_handlers();
static constexpr std::size_t c_gpio_handlers_num = 16;
static inline std::array<gpio*, c_gpio_handlers_num> gpio_handlers{};
static inline std::size_t w_idx = 0;
};
};