add Chapter11

This commit is contained in:
Amar Mahmutbegovic
2024-09-22 16:52:43 +02:00
parent 7203d7ab66
commit f10d0ef610
205 changed files with 302793 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;
};
};