diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-02-05 17:23:55 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-02-06 15:35:55 +0100 |
commit | c082b57502a37df0ada44c1ea8a10f768e2dc79a (patch) | |
tree | 1fbeda836beb61b564f1592335bf331455b80376 /c/src/lib/libbsp/powerpc/mpc55xxevb/clock/clock-config.c | |
parent | bsps/powerpc: Add and use ppc_cpu_is_specific_e200 (diff) | |
download | rtems-c082b57502a37df0ada44c1ea8a10f768e2dc79a.tar.bz2 |
bsp/mpc55xx: Add and use BSP specific fatal codes
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/clock/clock-config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/clock/clock-config.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/clock/clock-config.c index f2489448b7..5134d80d28 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/clock/clock-config.c +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/clock/clock-config.c @@ -51,7 +51,7 @@ static void mpc55xx_clock_handler_install(rtems_isr_entry isr) NULL ); if (sc != RTEMS_SUCCESSFUL) { - rtems_fatal_error_occurred(0xdeadbeef); + mpc55xx_fatal(MPC55XX_FATAL_CLOCK_EMIOS_IRQ_INSTALL); } } @@ -71,12 +71,12 @@ static void mpc55xx_clock_initialize(void) if (prescaler > 0) { interval /= (uint64_t) prescaler; } else { - rtems_fatal_error_occurred(0xdeadbeef); + mpc55xx_fatal(MPC55XX_FATAL_CLOCK_EMIOS_PRESCALER); } /* Check interval */ if (interval == 0 || interval > MPC55XX_EMIOS_VALUE_MAX) { - rtems_fatal_error_occurred(0xdeadbeef); + mpc55xx_fatal(MPC55XX_FATAL_CLOCK_EMIOS_INTERVAL); } /* Configure eMIOS channel */ @@ -157,7 +157,7 @@ static void mpc55xx_clock_handler_install(rtems_isr_entry isr) NULL ); if (sc != RTEMS_SUCCESSFUL) { - rtems_fatal_error_occurred(0xdeadbeef); + mpc55xx_fatal(MPC55XX_FATAL_CLOCK_PIT_IRQ_INSTALL); } } |