Skip to content

Instantly share code, notes, and snippets.

View timblakely's full-sized avatar

Tim Blakely timblakely

View GitHub Profile
@timblakely
timblakely / example_usage.h
Last active April 11, 2020 00:11
Example of C++-based interrupt table
template <int InplaceFunctionStorageSize = 10>
class Stm32g474reInterruptTable
: public common::InterruptTable<118, InplaceFunctionStorageSize> {
public:
using Callback =
common::InterruptTable<118, InplaceFunctionStorageSize>::Callback;
void relocate_vector_table_to_sram();
void reset_with_default(Callback handler);
void set_interrupt(IRQn_Type interrupt, int P, int SP, Callback handler);