diff options
Diffstat (limited to 'testhal/STM32F4xx/RTC/main.c')
-rw-r--r-- | testhal/STM32F4xx/RTC/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testhal/STM32F4xx/RTC/main.c b/testhal/STM32F4xx/RTC/main.c index ce5fdcae1..6b25d371a 100644 --- a/testhal/STM32F4xx/RTC/main.c +++ b/testhal/STM32F4xx/RTC/main.c @@ -47,6 +47,22 @@ static RTCWakeup wakeupspec; static RTCAlarm alarmspec;
static time_t unix_time;
+/* libc stub */
+int _getpid(void) {return 1;}
+/* libc stub */
+void _exit(int i) {(void)i;}
+/* libc stub */
+#include <errno.h>
+#undef errno
+extern int errno;
+int _kill(int pid, int sig) {
+ (void)pid;
+ (void)sig;
+ errno = EINVAL;
+ return -1;
+}
+
+
/* sleep indicator thread */
static WORKING_AREA(blinkWA, 128);
static msg_t blink_thd(void *arg){
|