summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
aa6f1ac)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
lib_LOADLIBES += ulut
endif
lib_LOADLIBES += ulut
endif
+ifneq ($(CONFIG_OC_BUILD4RTEMS),y)
lib_LOADLIBES += rt
lib_LOADLIBES += pthread
lib_LOADLIBES += rt
lib_LOADLIBES += pthread
lib_LOADLIBES += m
#link_VARIANTS = app sdram
lib_LOADLIBES += m
#link_VARIANTS = app sdram
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/mman.h> /* this provides mlockall() */
#include <pthread.h>
#include <unistd.h>
#include <sys/mman.h> /* this provides mlockall() */
#include <pthread.h>
sper->period_time.tv_nsec -= 1000*1000*1000;
sper->period_time.tv_sec += 1;
}
sper->period_time.tv_nsec -= 1000*1000*1000;
sper->period_time.tv_sec += 1;
}
return clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &sper->period_time, NULL);
return clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &sper->period_time, NULL);
+#else
+ return nanosleep(&sper->period_time, NULL);
+#endif /*__rtems__*/
}
void appl_sig_handler(int sig)
}
void appl_sig_handler(int sig)
if (appl_base_task_prio < fifo_min_prio)
appl_base_task_prio = fifo_min_prio;
if (appl_base_task_prio < fifo_min_prio)
appl_base_task_prio = fifo_min_prio;
if (mlockall(MCL_FUTURE | MCL_CURRENT) < 0) {
fprintf(stderr, "%s: mlockall failed - cannot lock application in memory\n", argv0);
exit(1);
}
if (mlockall(MCL_FUTURE | MCL_CURRENT) < 0) {
fprintf(stderr, "%s: mlockall failed - cannot lock application in memory\n", argv0);
exit(1);
}
#include <stdint.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdint.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>