Hi Tomas,
for RTCS error codes, RTCS_ERROR_BASE is 0x1000 defined by mqx.h.
RTCS related error codes are in listed rtcs.h.
error code 0x1310 means:
RTCSERR_PCB_ALLOC (RTCS_ERROR_BASE|0x310) /* couldn't allocate PCBs */
the error indicates a problem with the amount of memory available for RTCS in your system.