forked from Imagelibrary/rtems
bsp/mpc55xx: Add and use mpc55xx_fatal_code
This commit is contained in:
@@ -77,6 +77,10 @@ void *bsp_idle_thread(uintptr_t arg);
|
||||
|
||||
#define BSP_IDLE_TASK_BODY bsp_idle_thread
|
||||
|
||||
typedef enum {
|
||||
MPC55XX_FATAL_FMPLL_LOCK
|
||||
} mpc55xx_fatal_code;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
|
||||
if (!lock) {
|
||||
bsp_reset();
|
||||
rtems_fatal(RTEMS_FATAL_SOURCE_BSP_SPECIFIC, MPC55XX_FATAL_FMPLL_LOCK);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user