MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / get_exception_msg

Function get_exception_msg

libcpu/risc-v/common64/trap.c:141–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139#endif /* RT_USING_SMP */
140
141static const char *get_exception_msg(int id)
142{
143 const char *msg;
144 if (id < sizeof(Exception_Name) / sizeof(const char *))
145 {
146 msg = Exception_Name[id];
147 }
148 else
149 {
150 msg = "Unknown Exception";
151 }
152 return msg;
153}
154
155#ifdef RT_USING_SMART
156#include "lwp.h"

Callers 2

handle_userFunction · 0.85
handle_trapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected