summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen5200/tod
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-17 11:40:18 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-19 09:59:39 +0100
commit33cb8bf64d7b7551ea3a2e7ced5d4b56cd32d6db (patch)
tree9aca7c789c974a8e3d7538cfad7d40c4c9aef37a /c/src/lib/libbsp/powerpc/gen5200/tod
parentscore: Delete INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP (diff)
downloadrtems-33cb8bf64d7b7551ea3a2e7ced5d4b56cd32d6db.tar.bz2
score: Add RTEMS_FATAL_SOURCE_BSP
Merge RTEMS_FATAL_SOURCE_BSP_GENERIC and RTEMS_FATAL_SOURCE_BSP_SPECIFIC into new fatal source RTEMS_FATAL_SOURCE_BSP. This makes it easier to figure out the code position given a fatal source and code.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen5200/tod')
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c b/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c
index 2f38ea86fb..0b584a013b 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c
@@ -41,6 +41,7 @@
*/
#include <rtems.h>
+#include <bsp/fatal.h>
#include <libchip/rtc.h>
#include <string.h>
#include "../tod/pcf8563.h"
@@ -185,7 +186,7 @@ pcf8563_set_time(int minor, const rtems_time_of_day *time)
addr = RTC_Table[minor].ulDataPort;
if ((time->year >= 2100) || (time->year < 1900)) {
- mpc5200_fatal(MPC5200_FATAL_PCF8563_INVALID_YEAR);
+ bsp_fatal(MPC5200_FATAL_PCF8563_INVALID_YEAR);
}
info[0] = PCF8563_SECOND_ADR;
info[1 + PCF8563_YEAR_ADR -PCF8563_SECOND_ADR] = To_BCD(time->year % 100);