]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/sys.cpp
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / mbed / targets / cmsis / TARGET_Freescale / TARGET_KLXX / TARGET_KL43Z / TOOLCHAIN_GCC_ARM / sys.cpp
1 /* mbed Microcontroller Library - stackheap
2 * Copyright (C) 2009-2011 ARM Limited. All rights reserved.
3 *
4 * Setup a fixed single stack/heap memory model,
5 * between the top of the RW/ZI region and the stackpointer
6 */
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #include <sys/types.h>
13 #include <errno.h>
14
15 extern void exit(int return_code);
16
17 int _kill(int pid, int sig) {
18 errno = EINVAL;
19 return -1;
20 }
21
22 void _exit(int status) {
23 exit(status);
24 }
25
26 int _getpid(void) {
27 return 1;
28 }
29
30 #ifdef __cplusplus
31 }
32 #endif
Imprint / Impressum