Initialize generic exception handling support * */
| 332 | * |
| 333 | */ |
| 334 | void exc_init(void) |
| 335 | { |
| 336 | (void) exc_undef; |
| 337 | |
| 338 | #if (IVT_ITEMS > 0) |
| 339 | unsigned int i; |
| 340 | |
| 341 | for (i = 0; i < IVT_ITEMS; i++) |
| 342 | exc_register(i, "undef", false, (iroutine_t) exc_undef); |
| 343 | #endif |
| 344 | |
| 345 | #ifdef CONFIG_KCONSOLE |
| 346 | cmd_initialize(&exc_info); |
| 347 | if (!cmd_register(&exc_info)) |
| 348 | printf("Cannot register command %s\n", exc_info.name); |
| 349 | #endif |
| 350 | } |
| 351 | |
| 352 | /** @} |
| 353 | */ |
no test coverage detected