3#include "libmicroemu/types.h"
67static constexpr auto kNoOfExternalIrqs = 32U;
70static constexpr u32 CountInternalExceptions() noexcept {
71 return static_cast<u32
>(kLastInternalException) + 1U;
74static constexpr u32 CountExceptions() noexcept {
75 return CountInternalExceptions() + kNoOfExternalIrqs;
The libmicroemu namespace contains all classes and functions of the libmicroemu which are public.
Definition bkpt_flags.h:6
ExceptionType
Exception enumeration.
Definition exception_type.h:12
@ kDebugMonitor
Debugging related ExceptionsOps.
Definition exception_type.h:51
@ kMemoryManagementFault
Memory related fault (bus access error either for instructions or data)
Definition exception_type.h:24
@ kSysTick
SysTick exception, used for system timer.
Definition exception_type.h:60
@ kReserved6
Reserved for future use.
Definition exception_type.h:54
@ kReserved4
Reserved for future use.
Definition exception_type.h:42
@ kReserved1
Reserved for future use.
Definition exception_type.h:33
@ kSVCall
Exception for system calls.
Definition exception_type.h:48
@ kUsageFault
Usage fault exception, triggered by errors in the usage of the processor.
Definition exception_type.h:30
@ kNMI
Definition exception_type.h:18
@ kPendSV
PendSV exception, used for context switching.
Definition exception_type.h:57
@ kHardFault
Hard fault exception, triggered by faults that cannot be handled by any other exception.
Definition exception_type.h:21
@ kReset
Special exception to reset the processor.
Definition exception_type.h:14
@ kReserved3
Reserved for future use.
Definition exception_type.h:39
@ kReserved5
Reserved for future use.
Definition exception_type.h:45
@ kBusFault
Bus fault exception, triggered by bus errors on instruction fetches and data accesses.
Definition exception_type.h:27
@ kReserved2
Reserved for future use.
Definition exception_type.h:36