low-level funktionen

This commit is contained in:
Carsten Keller 2024-06-09 17:58:14 +02:00
parent 0857af85a9
commit ca97def69c
Signed by: carsten
GPG Key ID: DF06343A3A9B8868

View File

@ -7,6 +7,7 @@
#include <cstdint> #include <cstdint>
#include <cstdio> #include <cstdio>
#include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <CLI.h> #include <CLI.h>
#include <stm32g0xx_ll_gpio.h> #include <stm32g0xx_ll_gpio.h>
@ -14,6 +15,19 @@
static char new_char = '\0'; static char new_char = '\0';
extern "C" int _getpid(void)
{
return 1;
}
extern "C" int _kill(int pid, int sig)
{
(void)pid;
(void)sig;
errno = EINVAL;
return -1;
}
extern "C" int _write(int file, char *ptr, int len) extern "C" int _write(int file, char *ptr, int len)
{ {
(void)file; (void)file;