diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen5200/tod/pcf8563.c | 3 |
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); |