diff --git a/conanfile.py b/conanfile.py index 939ac4b..0f13b62 100644 --- a/conanfile.py +++ b/conanfile.py @@ -26,7 +26,7 @@ class libhal_arm_cortex_conan(ConanFile): name = "libhal-armcortex" - version = "2.0.3" + version = "2.1.0" license = "Apache-2.0" url = "https://github.com/conan-io/conan-center-index" homepage = "https://libhal.github.io/libhal-armcortex" diff --git a/include/libhal-armcortex/interrupt.hpp b/include/libhal-armcortex/interrupt.hpp index 7fa6041..8028b47 100644 --- a/include/libhal-armcortex/interrupt.hpp +++ b/include/libhal-armcortex/interrupt.hpp @@ -24,6 +24,26 @@ namespace hal::cortex_m { /// Used specifically for defining an interrupt vector table of addresses. using interrupt_pointer = void (*)(); +enum class irq +{ + top_of_stack = 0, + reset = 1, + non_maskable hard_fault = 2, + hard_fault = 3, + memory_management_fault = 4, + bus_fault = 5, + usage_fault = 6, + reserve7 = 7, + reserve8 = 8, + reserve9 = 9, + reserve10 = 10, + sv_call = 11, + reserve12 = 12, + reserve13 = 13, + pend_sv = 14, + systick = 15, +}; + /** * @brief Cortex M series interrupt controller *